/* ==========================================================================
   HERO SECTION - Terapeutas no Digital
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    background: var(--color-primary-gradient);
    overflow: hidden;
    padding-top: 72px;
    padding-bottom: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: end;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 650px;
    padding-bottom: 40px;
}

/* Hero Title */
.hero-title {
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
}

.hero-title .highlight {
    position: relative;
    color: var(--color-accent);
    display: inline;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 4px;
    text-decoration-thickness: 3px;
}

/* Hero Rotating Text */
.highlight-rotator {
    position: relative;
    display: inline-block;
    min-width: 280px;
    text-align: left;
}

.highlight-word {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 4px;
    text-decoration-thickness: 3px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
}

.highlight-word.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-3xl);
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.hero-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(244, 208, 63, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.hero-feature-content h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.hero-feature-content p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 0;
}

.hero-image-placeholder {
    width: 500px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-lg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-features {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-image {
    animation: fadeInRight 0.8s ease-out 0.2s backwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 0;
    }
    
    .hero-content {
        gap: var(--spacing-3xl);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
    }
    
    .hero-text {
        max-width: none;
        order: 1;
        padding-bottom: var(--spacing-2xl);
    }
    
    .hero-image {
        order: 2;
        justify-content: center;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-features {
        align-items: center;
    }
    
    .hero-feature {
        text-align: left;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-placeholder {
        width: 100%;
        max-width: 400px;
        height: 400px;
    }

    /* ── Rotating word: same behaviour as desktop, just centered ── */
    .highlight-rotator {
        display: inline-block;
        text-align: center;
        min-width: 220px;
    }

    .highlight-word {
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        text-align: center;
    }

    .highlight-word.active {
        position: relative;
        left: auto;
        transform: translateX(0) translateY(0);
        text-align: center;
    }
}

/* ── Hero: more top space on mobile to avoid logo overlap ── */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
}
