/* css/hero.css */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-elegant);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Padrão sutil de mármore */
.hero {
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(212, 175, 55, 0.01) 0%, transparent 50%);
}

.hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-16);
    width: 100%;
    min-height: calc(100vh - 120px);
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-subtitle {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-4);
    position: relative;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: var(--spacing-6);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--warm-gray-600);
    line-height: 1.7;
    margin-bottom: var(--spacing-8);
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
    position: relative;
    height: calc(100vh - 140px);
    max-height: 800px;
}

.hero-doctor {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-image {
    width: 100%;
    height: 100%;
    max-height: 700px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-2xl);
    position: relative;
    z-index: 2;
    transition: all var(--transition-slow);
    filter: contrast(1.1) brightness(1.05) saturate(1.1);
}

.hero-doctor::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.08) 0%,
        rgba(212, 175, 55, 0.04) 30%,
        transparent 70%
    );
    border-radius: var(--radius-2xl);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-doctor::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%),
        radial-gradient(ellipse at 70% 70%, transparent 50%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: var(--radius-2xl);
    z-index: 3;
    pointer-events: none;
}

/* Efeito de esfumaçado nas bordas */
.hero-doctor {
    mask: 
        radial-gradient(ellipse at center, black 60%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask: 
        radial-gradient(ellipse at center, black 60%, transparent 100%);
    -webkit-mask-composite: source-in;
}

/* Efeito hover na imagem */
.hero-doctor:hover .doctor-image {
    transform: scale(1.02);
    filter: contrast(1.15) brightness(1.08) saturate(1.15);
}

.hero-doctor:hover::before {
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.12) 0%,
        rgba(212, 175, 55, 0.06) 30%,
        transparent 70%
    );
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    width: 48px;
    height: 48px;
    background: var(--marble);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    animation: pulse 3s infinite;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 50%;
}

.scroll-indicator:hover::before {
    opacity: 1;
}

.scroll-indicator:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-marble);
    border-color: var(--gold-light);
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
}

.scroll-indicator:hover svg {
    color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        gap: var(--spacing-12);
    }
    
    .hero-doctor {
        max-width: 400px;
    }
    
    .hero-image {
        height: calc(100vh - 160px);
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        min-height: 100vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
        text-align: center;
        min-height: calc(100vh - 80px);
        padding: var(--spacing-4) 0;
    }

    .hero-text {
        order: 2;
        animation: fadeInUp 1s ease-out 0.3s both;
        padding: 0 var(--spacing-4);
    }

    .hero-image {
        order: 1;
        height: 45vh;
        max-height: 400px;
        min-height: 280px;
        margin-bottom: var(--spacing-4);
        animation: fadeInUp 1s ease-out;
    }

    .hero-buttons {
        justify-content: center;
        gap: var(--spacing-3);
    }

    .hero-doctor {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-doctor::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: var(--spacing-4);
    }

    .hero-description {
        font-size: var(--font-size-base);
        max-width: 100%;
        margin-bottom: var(--spacing-6);
    }

    .hero-subtitle::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
    }

    .scroll-indicator {
        width: 40px;
        height: 40px;
        bottom: var(--spacing-6);
    }

    .scroll-indicator svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 70px;
    }

    .hero-content {
        padding: var(--spacing-2) 0;
        gap: var(--spacing-4);
    }

    .hero-text {
        padding: 0 var(--spacing-2);
    }

    .hero-image {
        height: 40vh;
        max-height: 320px;
        min-height: 240px;
        margin-bottom: var(--spacing-2);
    }

    .hero-doctor {
        max-width: 280px;
    }
    
    .hero-doctor::before {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-description {
        font-size: var(--font-size-sm);
        line-height: 1.6;
        margin-bottom: var(--spacing-5);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-subtitle {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-3);
    }

    .hero-subtitle::after {
        width: 30px;
    }

    .scroll-indicator {
        width: 36px;
        height: 36px;
        bottom: var(--spacing-4);
    }

    .scroll-indicator svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 360px) {
    .hero-content {
        min-height: calc(100vh - 70px);
    }

    .hero-image {
        height: 35vh;
        max-height: 280px;
        min-height: 220px;
    }

    .hero-doctor {
        max-width: 250px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .hero-buttons {
        max-width: 280px;
    }
}

/* Melhorias de performance */
@media (prefers-reduced-motion: reduce) {
    .hero-text,
    .hero-image,
    .hero-doctor::before {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* Melhorias para telas de alta densidade */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .doctor-image {
        filter: contrast(1.05) brightness(1.02) saturate(1.05);
    }
}