/* ==========================================================================
   CSS Design System & Stylesheet - Terapeuta Carlos Magno (Light Mode)
   ========================================================================== */

/* Variables & Setup */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc; /* Slate 50 */
    --bg-tertiary: #f1f5f9;  /* Slate 100 */
    
    --text-primary: #0f172a;   /* Slate 900 */
    --text-secondary: #334155; /* Slate 700 */
    --text-muted: #64748b;    /* Slate 500 */
    
    --color-primary: #10b981;       /* Emerald 500 */
    --color-primary-hover: #059669; /* Emerald 600 */
    --color-accent: #047857;        /* Emerald 700 */
    --color-danger: #ef4444;        /* Red 500 */
    --color-danger-dark: #b91c1c;   /* Red 700 */
    
    --gradient-brand: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-brand-hover: linear-gradient(135deg, #34d399 0%, #047857 100%);
    --gradient-hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 10px 20px rgba(16, 185, 129, 0.2);
    
    --border-light: 1px solid #e2e8f0; /* Slate 200 */
    --border-accent: 1px solid rgba(16, 185, 129, 0.2);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--gradient-brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1.15rem 2.75rem;
    font-size: 1.05rem;
    border-radius: 14px;
}

/* Icons */
.icon-whatsapp {
    width: 1.5rem;
    height: 1.5rem;
}

/* Watermark & Badge */
.brand-watermark {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(16, 185, 129, 0.06);
    border: var(--border-accent);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Sections Base */
.section {
    padding: 7rem 0;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    margin-bottom: 2rem;
    letter-spacing: -0.75px;
    color: var(--text-primary);
}

.section-text {
    font-size: 1.075rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 500;
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2.25rem 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
    background: url('./assets/images/bg_hero.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero-overlay);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-action-text {
    font-size: 1.05rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background: var(--gradient-glow);
    z-index: -1;
    top: -5%;
    left: -5%;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.hero-image:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
}

/* Two Column Layout (O que é & Como funciona) */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 5rem;
    align-items: center;
}

.reverse-layout {
    grid-template-columns: 1.05fr 1fr;
}

.layout-image {
    position: relative;
}

.image-border-effect {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-secondary);
    border: var(--border-light);
}

.content-img {
    width: 100%;
    border-radius: 20px;
    transition: var(--transition-smooth);
    object-fit: cover;
}

.image-border-effect:hover .content-img {
    transform: scale(1.03);
}

/* Section styling variations */
.o-que-e-section {
    background-color: var(--bg-secondary);
}

.como-funciona-section {
    background-color: var(--bg-primary);
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
    background: url('./assets/images/bg_testimonials.jpg') no-repeat center center;
    background-size: cover;
}

.testimonials-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.94);
    z-index: 1;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.video-card {
    background: var(--bg-primary);
    border: var(--border-light);
    border-radius: 16px;
    padding: 0.6rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.08);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.section-cta-wrapper {
    margin-top: 4.5rem;
}

/* Para quem é? Section */
.para-quem-section {
    background-color: var(--bg-secondary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.glass-card {
    background: var(--bg-primary);
    border: var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

#card-enfrenta:hover {
    border-color: rgba(239, 68, 68, 0.2);
}

#card-deseja:hover {
    border-color: rgba(16, 185, 129, 0.25);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
}

.card-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
}

.card-icon-wrapper.red-accent {
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.card-icon-wrapper.green-accent {
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-accent);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.card-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.025rem;
    font-weight: 500;
}

.bullet-icon {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.bullet-cross {
    color: var(--color-danger);
}

.bullet-check {
    color: var(--color-primary);
}

/* Sobre mim Section */
.sobre-mim-section {
    background-color: var(--bg-primary);
}

.profile-img {
    object-position: center 20%;
    aspect-ratio: 4/5;
}

/* Footer */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid #e2e8f0;
    padding: 3.5rem 0;
    text-align: center;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-note {
    color: var(--text-muted);
}

/* Floating WhatsApp Widget */
.whatsapp-floating-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.whatsapp-btn-circle {
    width: 3.75rem;
    height: 3.75rem;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: var(--transition-smooth);
    position: relative;
}

.whatsapp-btn-circle svg {
    width: 2rem;
    height: 2rem;
}

/* Pulsing effect */
.whatsapp-btn-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25d366;
    opacity: 0;
    animation: widgetPulse 2s infinite;
}

.whatsapp-floating-widget:hover .whatsapp-btn-circle {
    transform: scale(1.08) rotate(5deg);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.widget-tooltip {
    background-color: #ffffff;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: var(--border-light);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-floating-widget:hover .widget-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes widgetPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .two-col-layout {
        gap: 3rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    /* Center layout for video card 3 if we have 2 columns */
    .video-grid > :nth-child(3) {
        grid-column: span 2;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4.5rem 0;
    }
    
    .hero-section {
        text-align: center;
        padding-top: 5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-bg-overlay {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .two-col-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .reverse-layout {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .layout-image {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .video-grid > :nth-child(3) {
        grid-column: span 1;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .glass-card {
        padding: 2rem;
    }
    
    .whatsapp-floating-widget {
        bottom: 1.25rem;
        right: 1.25rem;
    }
    
    .widget-tooltip {
        display: none; /* Hide tooltip on mobile to avoid screen overlap */
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        padding: 0.95rem 1.5rem;
    }
    
    .badge {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.65rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
