/* VARIÁVEIS & RESET */
:root {
    --primary: #0B7156;
    --primary-dark: #386158;
    --light: #E2F7EC;
    --gray-green: #C6D4CB;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #555555;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --container-width: 1200px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

p {
    margin-bottom: 1.5rem;
}

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

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* TYPOGRAPHY UTILS */
.highlight {
    color: var(--white);
    /* For dark backgrounds/glass */
    font-style: italic;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 100%);
    padding: 0 10px;
}

.italic-serif {
    font-style: italic;
    font-weight: 400;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text);
    font-weight: 300;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(11, 113, 86, 0.3);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    /* Since it might be on glass on hero, need adjustment there */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11, 113, 86, 0.4);
}

/* HERO SECTION - Refined Mixed Style */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 0 80px 0;
    /* Reduced top padding as requested */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, rgba(226, 247, 236, 0.85) 100%);
    backdrop-filter: blur(2px);
}

.hero-centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    /* Wider container to allow comfortable 30% video */
    margin: 0 auto;
    z-index: 10;
    position: relative;
    padding: 0 1rem;
}

/* Glass Card Translucent Effect - Brought back from fast design */
.glass-card-translucent {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: clamp(3rem, 5vw, 4rem);
    /* Increased padding inside card */
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text {
    margin-bottom: 3rem;
}

.hero-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--primary-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
    max-width: 900px;
    text-wrap: balance;
    /* Ensures balanced lines without forced breaks */
}

.highlight-text-bg {
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.highlight-text-bg::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: -2px;
    width: calc(100% + 4px);
    height: 30%;
    background-color: rgba(11, 113, 86, 0.2);
    z-index: -1;
    border-radius: 2px;
}

.hero-text .subtitle {
    color: var(--text);
    font-size: 1.15rem;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    max-width: 700px;
    font-weight: 400;
}

/* Video Player - Aligned with Subtitle */
.hero-video-player {
    width: 100%;
    /* 100% of container to align with text/subtitle */
    max-width: 700px;
    /* Aligned with subtitle max-width */
    min-width: 280px;
    /* Ensure it doesn't get too small */
    margin: 0 auto 2rem auto;
    position: relative;
}

.watch-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Video Frame Centered */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio - Fixes "vertical/horizontal" issue */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(11, 113, 86, 0.25);
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures filling the 16:9 box */
}

.glass-frame {
    border: 4px solid rgba(255, 255, 255, 0.9);
}

/* Scroll Indicator */
.scroll-indicator .mouse {
    border-color: var(--primary-dark);
}

.scroll-indicator .wheel {
    background: var(--primary-dark);
}

/* ABOUT SECTION - Dark Contrast */
.about {
    padding: var(--spacing-xl) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, var(--primary-dark) 0%, #1a3c36 100%);
    /* Deep Green Gradient */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern or glow behind image if needed */
.about::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(11, 113, 86, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    /* Stronger shadow on dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-wrapper img {
    width: 100%;
    transition: transform 0.7s ease;
}

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

/* Decorative box behind image - Lighter for contrast */
.decorative-box {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80%;
    height: 80%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    z-index: -1;
    border-radius: 20px;
}

.about-text {
    padding-left: var(--spacing-md);
}

.section-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--light);
    /* Light mint green */
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--light);
    padding-bottom: 5px;
    opacity: 0.8;
}

.about-text h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--white);
}

.lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    /* Off-white text */
    margin-bottom: 2rem;
}

.benefits-list {
    margin-bottom: 2.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.check-icon {
    color: var(--white);
    font-weight: bold;
    font-size: 1rem;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.2);
    /* Glassy checkcircle */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.highlight-box {
    background: rgba(255, 255, 255, 0.1);
    /* Glassy box */
    padding: 1.5rem;
    border-left: 4px solid var(--light);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--white);
    box-shadow: none;
    backdrop-filter: blur(5px);
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
        /* Allow content to dictate height on mobile if needed */
        height: auto;
        display: block;
        /* Stack on mobile */
    }

    .video-background {
        opacity: 0.5;
    }

    .glass-card-translucent {
        padding: 2rem 1.5rem;
        width: 100%;
        border-radius: 20px;
    }

    .hero-centered-content {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero-video-player {
        width: 90%;
        /* 90% on Mobile as requested */
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .hero-text .subtitle {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-image {
        order: -1;
        /* Image first on mobile? Or text first? Standard is often image first or hidden. Let's keep it first. */
        max-width: 600px;
        margin: 0 auto;
    }

    .about-text {
        padding-left: 0;
        text-align: center;
        /* Center text on mobile for better flow */
    }

    .benefits-list {
        text-align: left;
        display: inline-block;
    }

    .hero-text-box {
        padding: 2rem;
    }
}

/* SECTION 3: TREATMENTS (Bento) */
.treatments {
    padding: var(--spacing-xl) 0;
    background-color: #F9FAF9;
    /* Neutral bg */
}

.section-header {
    margin-bottom: 3rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid #E5E5E5;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 113, 86, 0.15);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.icon-wrapper {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.service-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text);
}

/* SECTION 4: DIFERENCIAIS (Sticky) */
.diferenciais {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.sticky-wrapper {
    display: flex;
    gap: var(--spacing-lg);
}

.sticky-content {
    flex: 0 0 40%;
    position: sticky;
    top: 20vh;
    height: fit-content;
}

.sticky-content h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 2rem;
    color: var(--primary);
}

.conceptual-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.diferenciais-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
}

.scroll-content {
    flex: 1;
    padding-top: 2rem;
}

.diferencial-item {
    margin-bottom: 20vh;
    /* Space to scroll */
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.diferencial-item.active {
    opacity: 1;
    transform: scale(1);
}

.big-number {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 5rem;
    color: var(--light);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
    color: var(--gray-green);
    opacity: 0.4;
}

.diferencial-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* SECTION 5: FAQ */
.faq {
    padding: var(--spacing-xl) 0;
    background-color: #F8F9FA;
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #E5E5E5;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    color: var(--text);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Approximate height for transition */
    padding-bottom: 1.5rem;
}

.faq-answer p {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* SECTION 6: FOOTER */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
    /* For texture if added */
}

/* Texture pattern placeholder */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-link {
    display: inline-block;
    color: var(--light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
}

.footer-link:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--light);
    transform: scale(1.1);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.whatsapp-float.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

/* CONTACT FORM SECTION */
.contact-form-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, #F9FAF9 0%, #E2F7EC 100%);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #E5E5E5;
}

.glass-card-light {
    /* Optional glass effect if preferred, using solid white for reliability */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.main-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.main-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.main-form input,
.main-form select,
.main-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fff;
    resize: vertical;
}

.main-form input:focus,
.main-form select:focus,
.main-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 113, 86, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 968px) {

    /* Diferenciais Sticky Fix */
    .sticky-wrapper {
        flex-direction: column;
    }

    .sticky-content {
        position: sticky;
        top: 60px;
        /* offset from top to give breathing room */
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        z-index: 10;
        background-color: var(--white);
        padding-top: 1rem;
        padding-bottom: 1.5rem;
        margin-bottom: 0;
    }

    .sticky-content h2 {
        order: 2;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    .conceptual-image {
        order: 1;
        height: 300px;
    }

    .scroll-content {
        position: relative;
        z-index: 1;
        padding-top: 2rem;
    }

    .diferencial-item {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        opacity: 1;
        /* keep opacity 1 on mobile to avoid script issues */
        transform: scale(1);
    }

    /* Footer Fix */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}