/* --- Variables & Reset --- */
:root {
    --primary-gold: #DFA560;
    --primary-gold-hover: #c48e4d;
    --primary-deep-blue: #0D2350;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --white: #ffffff;
    --offwhite: #f9f9f9;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --container-width: 1200px;
    --section-padding: 80px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-deep-blue);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.small-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding);
}

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

.text-white {
    color: var(--white);
}

.text-deep-blue {
    color: var(--primary-deep-blue);
}

.bg-deep-blue {
    background-color: var(--primary-deep-blue);
}

.bg-offwhite {
    background-color: var(--offwhite);
}

.bg-white {
    background-color: var(--white);
}

.gold-text {
    color: var(--primary-gold);
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-50 {
    margin-top: 50px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.op-80 {
    opacity: 0.8;
}

.op-50 {
    opacity: 0.5;
}

/* --- Typography --- */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    display: block;
    margin-bottom: 10px;
}

.eyebrow-dark {
    color: var(--primary-deep-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.eyebrow-gold {
    color: var(--primary-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title-light {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1rem;
}

@media(max-width: 768px) {

    .section-title,
    .section-title-light {
        font-size: 2rem;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-gold {
    background-color: var(--primary-gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(223, 165, 96, 0.3);
}

.btn-gold:hover {
    background-color: var(--primary-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 165, 96, 0.5);
}

.btn-gold-outline {
    border-color: var(--primary-gold);
    color: var(--primary-deep-blue);
    background: transparent;
}

.btn-gold-outline:hover {
    background-color: var(--primary-gold);
    color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    /* Slightly larger padding for importance */
    font-size: 1rem;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* --- Header --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.2rem 0;
    transition: 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-deep-blue);
    letter-spacing: -0.5px;
}

.desktop-nav a {
    margin-left: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-deep-blue);
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-deep-blue);
    margin: 5px 0;
}

@media(max-width: 900px) {

    .desktop-nav,
    .mobile-hidden {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: 0.4s ease-in-out;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-overlay nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-menu-overlay a {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-deep-blue);
    font-family: var(--font-heading);
    text-decoration: none;
}

/* Fix for giant button in mobile menu */
.mobile-menu-overlay .btn {
    font-size: 1rem;
    padding: 12px 30px;
    margin-top: 10px;
    font-family: var(--font-body);
}

/* Specific smaller button for Desktop Header */
.header-container .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Prevent horizontal scroll from images */
    padding-top: 80px;
    /* Header space */
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('../assets/images/estrutura-do-hospital/apartamento-excluisivov3.jpg') no-repeat center center/cover;
    z-index: 0;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0D2350 0%, rgba(13, 35, 80, 0.95) 45%, rgba(13, 35, 80, 0.2) 100%);
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    height: 100%;
}

.hero-content {
    color: var(--white);
    text-align: left;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.subheadline {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
}

.hero-image-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    /* Changed from flex-end to center for better vertical alignment */
    justify-content: center;
}

.hero-doctor-img {
    width: auto;
    max-height: 85vh;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-trust-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.badge:last-child {
    border: none;
}

.badge svg {
    color: var(--primary-gold);
}

@media(max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 40px;
    }

    .hero-bg-gradient {
        background: linear-gradient(180deg, #0D2350 0%, rgba(13, 35, 80, 0.9) 60%, rgba(13, 35, 80, 0.6) 100%);
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding-top: 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .badge {
        border: none;
        padding: 0;
    }

    .hero-image-wrapper {
        display: block;
        max-width: 80%;
        margin: 20px auto 0;
    }

    .hero-doctor-img {
        max-height: 300px;
        object-fit: contain;
    }
}

/* --- Layout Grids --- */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media(max-width: 900px) {

    .grid-2-cols,
    .grid-3-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .reversed-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    /* Image below text on mobile if desired, or standard stacking */
}

/* --- Images & Cards --- */
.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.elegant-img,
.doctor-img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .elegant-img {
    transform: scale(1.03);
}

/* Luxury List (Indications) */
.luxury-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.icon-check {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-gold);
    display: flex;
    /* Could add a checkmark SVG inside via pseudos if wanted, or plain */
    flex-shrink: 0;
    position: relative;
}

.icon-check::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle on dark */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--white);
}

.p-40 {
    padding: 40px;
}

/* Benefits Cards */
.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s;
    border-top: 3px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-gold);
}

.benefit-card .icon-box {
    margin: 0 auto 20px;
    color: var(--primary-gold);
    width: 60px;
    height: 60px;
    background: rgba(223, 165, 96, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--primary-deep-blue);
}

/* Timeline (How it works) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    /* Align with numbers */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 2;
}

.step-content h3 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Testimonials */
.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    /* Simple scroll for mvp/standard */
    padding-bottom: 20px;
}

.testimonial-card {
    flex: 0 0 300px;
    /* Fixed width cards */
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.testimonial-card .stars {
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-deep-blue);
}

/* FAQ */
.faq-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-deep-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0.8;
}

.faq-answer p {
    padding-bottom: 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Approx height */
.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    transition: 0.3s;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    /* Ensure select arrow is visible or custom if needed, but default is usually okay on mobile */
    appearance: none;
    /* simple reset, might need arrow icon re-added or let browser handle */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.contact-form select option {
    background-color: var(--primary-deep-blue);
    /* Hard bg for options so they are readable */
    color: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.15);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    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.4);
    z-index: 1000;
    transition: transform 0.3s;
    overflow: hidden;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Scroll Reveal Classes (handled by JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-gold {
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(223, 165, 96, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(223, 165, 96, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(223, 165, 96, 0);
    }
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 35, 80, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--primary-deep-blue);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.close-modal:hover {
    opacity: 1;
    color: var(--primary-gold);
}