/* ==========================================================================
   MÉTODO ATHENAS 4.0 - STYLE SYSTEM (MAXIMUM FIDELITY TO REFERENCE)
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* CSS Variables for Premium Editorial Palette */
:root {
    --bg-primary: #140E11; /* Dark Eggplant / Deep Charcoal */
    --bg-secondary: #1D1418; /* Vinho escuro quase preto para seções */
    --bg-card: #251B20;
    --accent-rose: #c06e74; /* Rosé Queimado */
    --accent-rose-hover: #a6565c;
    --accent-gold: #d4af37; /* Cobre / Dourado Rosé */
    --accent-whatsapp: #25d366;
    --text-primary: #ffffff;
    --text-secondary: #e5d9df; /* Off-White / Cinza quente */
    --text-muted: #a5969e;
    --border-color: rgba(192, 110, 116, 0.16);
    
    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-pill: 50px;
    
    --max-width: 1200px;
}

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

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

/* Typography Utility for Rose Metallic Highlight */
.highlight-text {
    color: var(--accent-rose);
    font-style: italic;
    font-family: var(--font-title);
    text-transform: lowercase;
}

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

.section {
    padding: 30px 0; /* Extremely compact gaps matching reference */
}

@media (min-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Header & Navigation (Blur and transparency) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(20, 14, 17, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    transition: var(--transition-smooth);
}

.logo-container {
    display: flex;
    align-items: center;
}

/* Logo Image official Imagem A styling */
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

/* Thin golden-rosé burger toggle on top right */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 12px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--accent-rose);
    border-radius: 1px;
    transition: var(--transition-smooth);
}

/* Fullscreen Menu Overlay */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.nav-menu.active {
    right: 0;
}

.nav-menu a {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    font-family: var(--font-title);
}

.nav-menu a:hover {
    color: var(--accent-rose);
}

/* Active Hamburguer State */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Premium Buttons replicated exactly from print */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn--primary {
    background-color: var(--accent-rose);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(192, 110, 116, 0.2);
}

.btn--primary:hover {
    background-color: var(--accent-rose-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 110, 116, 0.3);
}

.btn--outline-gold {
    border: 1px solid rgba(212, 175, 55, 0.35);
    background-color: transparent;
    color: var(--text-primary);
}

.btn--outline-gold:hover {
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.04);
    transform: translateY(-2px);
}

.btn-icon {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* Hero Section (Pixel perfect layout matching Imagem B) */
.hero {
    position: relative;
    padding-top: 85px; /* Compact top header gap */
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    overflow: hidden;
}

/* Gradient overlay for reading protection in mobile (left to right) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #140E11 48%, rgba(20, 14, 17, 0.85) 75%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.hero__content {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Hero Title: Serif grande imponente com itálico rosé */
.hero__title {
    font-family: var(--font-title);
    font-size: 2.35rem; 
    line-height: 1.15;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: -0.5px;
    text-align: left;
    max-width: 58%; /* Keeps text concentrated on the left side, clear of Ana's body */
    z-index: 5;
}

/* Subheadline */
.hero__subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
    text-align: left;
    max-width: 58%; /* Keeps text concentrated on the left side, clear of Ana's body */
    margin-bottom: 24px;
    z-index: 5;
}

/* Hero CTAs */
.hero__ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 58%; /* Limits CTAs width to align with text and prevent crossing Ana's body */
    z-index: 10;
}

/* Absolute background blend matching celular mockup Imagem B */
.hero__media {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 46%; /* Sightly reduced width to guarantee no overlap with text/buttons in small screens */
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.92;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: hidden;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Carefully adjusted to keep Ana's entire face, head, and arms perfectly visible */
    /* Elegant blend melt to Eggplant background */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%), linear-gradient(to top, transparent 0%, black 15%), linear-gradient(to bottom, transparent 0%, black 15%);
    mask-image: linear-gradient(to right, transparent 0%, black 50%), linear-gradient(to top, transparent 0%, black 15%), linear-gradient(to bottom, transparent 0%, black 15%);
}

/* Desktop layout: standard robust columns */
@media (min-width: 992px) {
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    /* Disable mobile gradient overlay on desktop to keep columns clean */
    .hero::before {
        display: none;
    }
    
    .hero__grid {
        display: grid;
        grid-template-columns: 1.35fr 0.85fr; /* Comfortably widened left column to let text breathe */
        grid-template-areas: 
            "title media"
            "subtitle media"
            "ctas media";
        gap: 16px 60px;
        align-items: center;
    }
    
    .hero__content {
        display: contents; /* Unwraps to follow grid areas */
    }
    
    .hero__title { 
        grid-area: title; 
        text-align: left;
        font-size: 3.15rem; /* Marginally reduced from 3.85rem so headline sits perfectly on fewer lines */
        margin-bottom: 0;
        max-width: 100%;
    }
    
    .hero__subtitle { 
        grid-area: subtitle; 
        text-align: left;
        margin: 0;
        max-width: 100%;
    }
    
    .hero__ctas { 
        grid-area: ctas; 
        margin: 0;
        max-width: 100%;
    }
    
    .hero__media { 
        grid-area: media; 
        position: relative;
        right: unset;
        top: unset;
        bottom: unset;
        width: 100%;
        height: 100%;
        max-width: 380px; /* Reduced visual size to keep layout extremely elegant and comfortable */
        justify-self: center; /* Beautifully centers the card on the right column */
        opacity: 1;
        aspect-ratio: 4 / 5;
        border-radius: var(--border-radius-md);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        border: 1px solid rgba(255,255,255,0.01);
        overflow: hidden;
    }
    
    .hero__media img {
        mask-image: none;
        -webkit-mask-image: none;
        object-position: center;
    }
}

/* Benefits Section (delicate icons and thin divisions) */
.benefits {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .benefits__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5px 8px;
}

@media (min-width: 768px) {
    .benefit-card {
        border-right: 1px solid rgba(192, 110, 116, 0.15);
    }
    .benefit-card:last-child {
        border-right: none;
    }
}

.benefit-card__icon-box {
    margin-bottom: 10px;
    color: var(--accent-rose);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card__icon-box svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
}

.benefit-card__title {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Testimonials Section */
.testimonials {
    background: radial-gradient(circle at bottom left, rgba(192, 110, 116, 0.04) 0%, rgba(20, 14, 17, 0) 55%);
    padding: 36px 0; /* Compact vertical gap for mobile devices to reduce layout footprint */
}

.section-title {
    font-family: var(--font-title);
    font-size: 1.5rem; /* Reduced from 1.75rem to fit beautifully on narrow mobile screens */
    margin-bottom: 20px; /* Reduced from 30px */
    font-weight: 400;
    letter-spacing: -0.3px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
}

.testimonial-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 16px; /* Reduced padding on mobile to optimize space */
    border: 1px solid rgba(255, 255, 255, 0.01);
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px; /* Compact gap */
    align-items: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .testimonial-card {
        grid-template-columns: 1.25fr 1fr;
        padding: 35px;
        gap: 35px;
    }
}

.testimonial__quote-mark {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(--accent-rose);
    line-height: 1;
    margin-bottom: -15px;
    display: block;
}

.testimonial__text {
    font-size: 0.9rem; /* Marginally reduced from 1rem to keep text highly readable and compact */
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 12px;
    font-weight: 300;
    line-height: 1.5;
}

.testimonial__author {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial__media {
    width: 100%;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10; /* Premium horizontal ratio on mobile to keep height compact and elegant */
    max-height: 180px; /* Restricts vertical size to avoid stretching the card */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.01);
}

.testimonial__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Centered and slightly elevated to frame the face perfectly without cutting */
}

@media (min-width: 768px) {
    .testimonial__media {
        aspect-ratio: 4 / 3; /* Horizontal ratio on desktop to match height of the text column perfectly */
        max-height: 290px; /* Limits maximum height to keep card beautifully balanced */
    }
}

/* Dots Navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.25;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--accent-rose);
    opacity: 1;
    width: 16px;
    border-radius: 3px;
}

/* Before and After Section */
.before-after {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 36px 0; /* Compact vertical gap for mobile devices to reduce vertical scroll footprint */
}

.before-after__wrapper {
    position: relative;
    overflow: hidden;
    padding: 5px 0;
}

.before-after__carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
}

.before-after__carousel::-webkit-scrollbar {
    display: none;
}

.before-after-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.01);
}

@media (min-width: 600px) {
    .before-after-card {
        flex: 0 0 47%;
    }
}

@media (min-width: 992px) {
    .before-after-card {
        flex: 0 0 31.33%; /* Grid adjusts beautifully for exactly 3 cards in desktop */
    }
}

.before-after-card__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-primary);
}

.before-after-card__side {
    position: relative;
    aspect-ratio: 3 / 4; /* Portrait ratio matching sliced vertical photos perfectly */
    overflow: hidden;
}

.before-after-card__side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Frames head and body gracefully without bad cuts */
}

.before-after-card__tag {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background-color: rgba(20, 14, 17, 0.85);
    backdrop-filter: blur(4px);
    color: var(--text-primary);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.before-after-card__tag--after {
    background-color: rgba(192, 110, 116, 0.9);
}

.before-after-card__info {
    padding: 12px;
    text-align: center;
}

.before-after-card__name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.before-after-card__result {
    font-size: 0.75rem;
    color: var(--accent-rose);
    font-weight: 500;
}

/* Gallery Section Padding */
.gallery {
    padding: 36px 0; /* Compact vertical gap for mobile devices to reduce vertical scroll footprint */
}

/* Shared Premium Large-Screen Spacing */
@media (min-width: 768px) {
    .testimonials, .before-after, .gallery {
        padding: 75px 0; /* Premium spaciousness */
    }
}

/* Gallery Section */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.gallery__item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.01);
    transition: var(--transition-smooth);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   FOOTER & STICKY CTA
   ========================================================================== */

.footer {
    background-color: var(--bg-secondary);
    padding: 45px 0 135px 0; /* Increased bottom padding on mobile to fully clear the sticky WhatsApp button */
    border-top: 1px solid var(--border-color);
    text-align: center;
}

@media (min-width: 768px) {
    .footer {
        padding: 60px 0 135px 0;
        text-align: left;
    }
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 1.25fr 1fr 1.5fr;
        gap: 40px;
    }
}

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

@media (min-width: 768px) {
    .footer__brand {
        align-items: flex-start;
    }
}

/* Footer logo official Imagem A styling */
.footer__logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    opacity: 0.92;
    filter: brightness(1.2) contrast(1.05) drop-shadow(0 2px 6px rgba(255,255,255,0.03)); /* Increases visibility on deep background */
    transition: var(--transition-smooth);
}

.footer__logo:hover {
    opacity: 1;
    filter: brightness(1.35) contrast(1.1) drop-shadow(0 2px 10px rgba(255,255,255,0.06));
}

.footer__description {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.6;
    font-weight: 300;
}

.footer__title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer__links a:hover {
    color: var(--accent-rose);
}

.footer__contact-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer__contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer__contact-info p {
        justify-content: flex-start;
    }
}

.footer__copyright {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.02);
    font-size: 0.775rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* Sticky Whatsapp Pill Bar matching reference bottom layout */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 40px);
    max-width: 460px;
    z-index: 998;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cta.active {
    transform: translateX(-50%) translateY(0);
}

/* Float elegantly in the bottom-right corner on desktop to avoid blocking content */
@media (min-width: 992px) {
    .sticky-cta {
        left: unset;
        right: 30px;
        transform: translateY(120px);
        width: auto;
        max-width: 250px;
    }
    
    .sticky-cta.active {
        transform: translateY(0);
    }
    
    .sticky-cta__btn {
        padding: 12px 20px;
        font-size: 0.725rem;
    }
}

.sticky-cta__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px; /* Reduced from 15px 24px on mobile to decrease button height */
    background: linear-gradient(135deg, #c06e74 0%, #b25964 100%);
    box-shadow: 0 12px 28px rgba(178, 89, 100, 0.4);
    border-radius: var(--border-radius-pill);
    color: var(--text-primary);
    font-size: 0.775rem; /* Marginally reduced from 0.825rem on mobile for cleaner sizing */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.12);
}

.sticky-cta__btn:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 35px rgba(178, 89, 100, 0.5);
}

.sticky-cta__left, .sticky-cta__right {
    display: flex;
    align-items: center;
}

.sticky-cta__icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-right: 10px;
}

.sticky-cta__logo {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
