/* 
   RARA BEAUTY - PREMIUM AESTHETIC CLINIC
   Mobile First Design System
*/

:root {
    /* Colors */
    --primary: #D4A5A5;
    /* Dusty Rose - Brand Main */
    --primary-dark: #b88a8a;
    /* Darker Rose for hover */
    --primary-light: #FDF5F2;
    /* Soft Creme/Nude - Backgrounds */
    --accent: #C5A059;
    /* Gold/Bronze - Highlights */
    --text-main: #2A2A2A;
    /* Dark Grey - Main Text */
    --text-muted: #666666;
    /* Muted Text */
    --white: #ffffff;
    --black: #000000;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 100px;

    /* Layout */
    --container-max: 1200px;
    --header-height: 70px;

    /* Shadows & Radius */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-btn: 50px;
    /* Pill shape buttons */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base size */
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Robust Image Cropping */
.img-crop-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Foca na parte superior (fachada/rosto) */
}

.img-crop-card {
    width: 100%;
    height: 250px;
    /* Altura fixa para cards */
    object-fit: cover;
    object-position: center;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 8px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-nude {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.btn-nude:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary);
    font-weight: 600;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-link {
    padding: 0;
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.btn-link:hover {
    border-color: var(--primary);
}

.btn.small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Pulse Animation for Main CTA */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 165, 165, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 165, 165, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 165, 165, 0);
    }
}

/* Navbar - Sticky & Glassmorphism */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85);
    /* Fallback */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 38px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: block;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    min-height: 90vh;
    /* Better for mobile */
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    /* Desktop size */
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
}

.micro-urgency {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-style: italic;
    opacity: 0.8;
}

.trust-badges {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-badges span i {
    color: var(--primary);
    margin-right: 8px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-md) 50px var(--radius-md) 50px;
    box-shadow: 20px 20px 0 rgba(197, 160, 89, 0.25);
    /* Image optimization */
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Authority Strip */
.authority-strip {
    background-color: var(--primary);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 1.1rem;
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
    overflow: hidden;
}

.authority-strip-content {
    position: relative;
}

.authority-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 14px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.3;
}

.highlight {
    font-style: italic;
    font-weight: 600;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    border-radius: var(--radius-md);
    position: relative;
    z-index: 2;
}

.about-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    z-index: 1;
}

.about-content .overline {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Procedures Section */
.procedures {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-light);
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.proc-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.proc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--accent);
}

.proc-img {
    height: 220px;
    overflow: hidden;
}

.proc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proc-card:hover .proc-img img {
    transform: scale(1.05);
}

.proc-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.proc-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-family: var(--font-sans);
    font-weight: 600;
}

.proc-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* CTA Strip */
.cta-strip {
    background: var(--primary);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    /* filter: brightness(0) invert(1); Removed to show original colors */
    opacity: 1;
}

.cta-strip h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 30px;
}

/* Results / Fail-Safe Before After Slider */
.results {
    padding: var(--spacing-xl) 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    align-items: start;
}

.ba-slider-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.ba-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 3/4;
    /* Mantém proporção fixa para evitar layout shift */
    cursor: grab;
    background: #f0f0f0;
    /* Fallback color */
}

.ba-slider:active {
    cursor: grabbing;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    z-index: 2;
    /* Começa visível (50%) por padrão via CSS puro */
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: grab;
    margin: 0;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--accent);
    /* Gold handle */
    transform: translateX(-50%);
    pointer-events: none;
    /* Let clicks pass through to input */
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ba-handle-line {
    flex: 1;
    width: 2px;
    background: rgba(255, 255, 255, 0.8);
}

.ba-handle-circle {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
}

.ba-label {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 6;
    pointer-events: none;
    user-select: none;
}

.ba-label-before {
    left: 20px;
}

.ba-label-after {
    right: 20px;
}

.result-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    font-family: 'Playfair Display', serif;
}

.disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 40px;
}

/* Differentials */
.differentials {
    padding: 60px 0;
    background-color: #fafafa;
}

.diff-grid-refined {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.diff-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.diff-box h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.diff-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: 15px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aaa;
    margin-bottom: 20px;
}

.socials a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
}

.socials a:hover {
    color: var(--primary);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-family: var(--font-sans);
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p,
.footer-contact a {
    color: #aaa;
    margin-bottom: 12px;
    display: block;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    /* Desktop default off or on depending on pref, user asked for mobile visible */
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20bd5a;
}

/* Differentials Section - Vivid Rose */
.differentials {
    background-color: rgba(212, 165, 165, 0.2);
    /* Vivid Rose Background */
    padding: var(--spacing-xl) 0;
}

.diff-grid-refined {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.diff-box i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.diff-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.diff-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* MOBILE FIRST MEDIA QUERIES */

@media (max-width: 900px) {

    /* Reset Layouts for Tablet/Mobile */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        /* Image below text on mobile */
    }

    /* Wait, user said: "Avoid image unique giant... use layout divided (desktop) or optimized (mobile)". */

    .hero-image img {
        height: 300px;
        width: 100%;
        object-fit: cover;
        border-radius: var(--radius-md);
        margin-bottom: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-decoration {
        display: none;
    }

    /* Navbar Mobile */
    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        border-bottom: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    /* Show Floating WhatsApp */
    .whatsapp-float {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
    }

    .about-content h2 {
        font-size: 1.8rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.1);
    color: #FFF;
}