/* ==========================================================================
   CSS Reset & Variables
   ========================================================================== */
:root {
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA8825;
    --dark: #111111;
    --dark-grey: #222222;
    --light-grey: #F8F8F8;
    --white: #FFFFFF;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    font-family: var(--font-body);
    margin-bottom: 1.5rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.center {
    text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid var(--gold);
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 22, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    transition: var(--transition);
}

.nav-container {
    display: grid;
    grid-template-columns: 1.4fr auto 1.4fr;
    align-items: center;
    width: 100%;
}

.nav-left-group {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-img {
    height: 46px;
    transition: var(--transition);
}

.logo-subtitle {
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--gold);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--gold);
}

.nav-right-group {
    display: flex;
    justify-content: flex-end;
}

.btn-calendar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section & Entrance Animations
   ========================================================================== */
@keyframes fadeInUpReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #FDFBF5; /* Solid premium off-white/beige background */
    padding-top: 140px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 53%; /* Only covers the right side on desktop */
    height: 100%;
    background: linear-gradient(to right, #FDFBF5 0%, rgba(253, 251, 245, 0.95) 8%, rgba(253, 251, 245, 0.8) 20%, rgba(253, 251, 245, 0) 65%),
                url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&q=80&w=1920') no-repeat center right;
    background-size: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding-left: 0;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
}

.kicker-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 2px;
}

.kicker-line {
    height: 1px;
    width: 50px;
    background-color: var(--gold);
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.25;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    font-weight: 400; /* Beautiful elegant editorial serif */
    letter-spacing: -0.5px;
    color: #162238; /* Slate dark navy */
    opacity: 0;
    animation: fadeInUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: #555;
    font-weight: 400;
    max-width: 620px;
    opacity: 0;
    animation: fadeInUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.35s;
}

.hero-cta-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0;
    animation: fadeInUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

.btn-gold-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600 !important;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--dark-grey);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.play-icon {
    color: var(--gold);
    font-size: 1.15rem;
    margin-right: 4px;
}

.hero-trust-banner {
    display: inline-flex;
    align-items: center;
    background-color: var(--white);
    padding: 18px 35px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    margin-top: 45px;
    gap: 30px;
    opacity: 0;
    animation: fadeInUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.65s;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-icon {
    font-size: 1.6rem;
    color: var(--gold);
}

.trust-text h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.trust-text p {
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    white-space: nowrap;
}

.trust-divider {
    width: 1px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Hero Bottom Info Bar
   ========================================================================== */
.hero-bottom-bar {
    background-color: #0F1626; /* Deep clinical navy */
    padding: 25px 0;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.bottom-bar-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 24s linear infinite;
}

.bottom-bar-track:hover {
    animation-play-state: paused;
}

.bottom-bar-item {
    flex: 0 0 290px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-right: 60px;
}

.bottom-bar-icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-top: -3px;
}

.bottom-bar-text h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.bottom-bar-text p {
    font-size: 0.75rem;
    color: #A0AEC0;
    line-height: 1.5;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-frame {
    position: relative;
    padding: 20px;
    transition: var(--transition);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    border: 2px solid var(--gold);
    z-index: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-frame::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 90%;
    height: 90%;
    border: 2px solid transparent;
    border-right-color: var(--gold-light);
    border-bottom-color: var(--gold-light);
    z-index: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-frame img {
    position: relative;
    z-index: 1;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translate(10px, 10px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-frame:hover::before {
    transform: translate(-10px, -10px);
    border-color: var(--gold-dark);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.image-frame:hover::after {
    transform: translate(10px, 10px);
    border-color: var(--gold);
}

.image-frame:hover img {
    transform: translate(5px, 5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-features i {
    color: var(--gold);
    font-size: 1.2rem;
}

/* ==========================================================================
   Transformations (Carousel) Section
   ========================================================================== */
.transformations {
    padding: 100px 0;
    background-color: var(--light-grey);
}

.section-description {
    max-width: 600px;
    margin: 0 auto 50px;
    color: #666;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    background: #fff;
}

.carousel-track {
    position: relative;
    height: 500px; /* Adjust based on image aspect ratio */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-button:hover {
    background: var(--gold);
    color: var(--white);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--gold);
    border-color: var(--white);
}

/* ==========================================================================
   Services Banner
   ========================================================================== */
.services-banner {
    padding: 80px 0;
    background-color: var(--dark);
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.service-card {
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #aaa;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0a0a0a;
    color: #ccc;
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 300px;
}

.footer h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: var(--gold);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-subtitle {
        font-size: 0.45rem;
        letter-spacing: 1.5px;
    }

    .about-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        background: none;
        background-color: #FDFBF5;
    }
    
    .hero-overlay {
        width: 100%;
        left: 0;
        background: linear-gradient(to bottom, rgba(253, 251, 245, 0.96) 0%, rgba(253, 251, 245, 0.85) 60%, rgba(253, 251, 245, 0.96) 100%),
                    url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&q=80&w=1920') no-repeat center right;
        background-size: cover;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 22, 38, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .navbar .btn-primary {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero {
        height: auto;
        padding-top: 140px;
        padding-bottom: 50px;
        align-items: flex-start;
        background: none;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        width: 100%;
    }
    
    .hero-cta-buttons .btn-large {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .hero-trust-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        padding: 20px;
    }
    
    .trust-divider {
        display: none;
    }
    
    .carousel-track {
        height: 350px;
    }
}

/* ==========================================================================
   Floating WhatsApp Button & CSS Frames
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0px rgba(212, 175, 55, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    animation: pulse-gold 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(212, 175, 55, 0);
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0px rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0px rgba(212, 175, 55, 0);
    }
}

/* Custom Interactive Frames for Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    transition: var(--transition);
    border-radius: 8px;
    pointer-events: none;
}

.service-card:hover::before {
    border-color: var(--gold);
    transform: scale(1.03);
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   Location & Reviews Section
   ========================================================================== */
.location-reviews {
    padding: 100px 0;
    background-color: var(--light-grey);
}

.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.reviews-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.google-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.google-badge .g-logo {
    height: 24px;
}

.google-badge span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

.stars-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stars {
    color: #FFB400; /* Google Star Color */
    font-size: 1.2rem;
    display: flex;
    gap: 4px;
}

.reviews-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.patient-reviews {
    width: 100%;
    margin-bottom: 10px;
}

.review-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    background-color: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.reviewer-info strong {
    display: block;
    color: var(--dark);
    font-size: 1.05rem;
}

.reviewer-info span {
    color: #FFB400;
    font-size: 0.8rem;
}

.review-item p {
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

.map-container {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid var(--white);
    border-radius: 12px;
    pointer-events: none;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .location-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-container {
        height: 350px;
    }
}

/* ==========================================================================
   Hero Micro SVG & Subtle Pulsing
   ========================================================================== */
.micro-arch-svg {
    margin-right: 12px;
    vertical-align: middle;
    transition: var(--transition);
}

.micro-arch-svg .upper-micro {
    animation: micro-bite-upper 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: center top;
}

.micro-arch-svg .lower-micro {
    animation: micro-bite-lower 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: center bottom;
}

.micro-arch-svg .micro-tooth {
    animation: micro-teeth-glow 3.5s ease-in-out infinite;
}

@keyframes micro-bite-upper {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.2px); }
}

@keyframes micro-bite-lower {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(1.2px); }
}

@keyframes micro-teeth-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; fill: var(--gold-light); }
}

/* ==========================================================================
   Antes e Depois Section
   ========================================================================== */
.before-after-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.comparison-slider-wrapper {
    max-width: 800px;
    margin: 40px auto 30px;
    padding: 0 10px;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    background-color: var(--light-grey);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.image-after-pane, .image-before-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
}

.image-after-pane img, .image-before-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-before-pane {
    width: 50%; /* Controlled dynamically by input range */
    overflow: hidden;
    z-index: 2;
}

/* Targeted imperfect filter for ANTES */
.before-img-filter {
    filter: sepia(0.65) saturate(1.3) hue-rotate(-22deg) contrast(0.92) brightness(0.92);
}

.badge-smile {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-after {
    right: 20px;
    background-color: rgba(212, 175, 55, 0.9);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

.badge-before {
    left: 20px;
    background-color: rgba(17, 17, 17, 0.75);
    color: #E2A5A5;
    border: 1px solid rgba(255,255,255,0.1);
}

.slider-divider {
    position: absolute;
    top: 0;
    left: 50%; /* Controlled dynamically */
    width: 2px;
    height: 100%;
    background-color: var(--gold);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.divider-line {
    height: 50%;
    width: 100%;
    background-color: var(--gold);
}

.divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background-color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.comparison-slider:hover .divider-handle {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--gold);
    color: var(--white);
}

.slider-control {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
    -webkit-appearance: none;
    appearance: none;
}

.slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 480px;
}

.slider-control::-moz-range-thumb {
    width: 40px;
    height: 480px;
    cursor: ew-resize;
}

.before-after-cta {
    margin-top: 40px;
}

.btn-mude-sorriso {
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
    transform: scale(1);
    transition: var(--transition);
}

.btn-mude-sorriso:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   Tecnologia e Estética Avançada Section
   ========================================================================== */
.tech-section {
    padding: 100px 0;
    background-color: #FAF8F2; /* Cream/light gold background */
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.tech-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.tech-info {
    display: flex;
    flex-direction: column;
}

.tech-description {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.7;
}

.tech-features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.tech-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feat-icon {
    width: 48px;
    height: 48px;
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.05);
}

.feat-text h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #162238;
}

.feat-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.simulator-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-simulator {
    background-color: var(--white);
    color: var(--dark-grey);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 12px 24px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.btn-simulator:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.1);
}

.btn-simulator.active {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}

/* Simulator Visual Display Card */
.simulator-card {
    background-color: #121824; /* Dark medical diagnostic screen appearance */
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    position: relative;
}

.simulator-header {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green {
    background-color: #00E676;
    box-shadow: 0 0 10px #00E676;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.simulator-title {
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.simulator-display {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1E293B 0%, #0F172A 100%);
    min-height: 350px;
}

.simulator-footer {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* SVG Interactive tooth movements */
.arch-simulator-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.arch-simulator-svg .jaw-upper {
    transform: translateY(0px);
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.arch-simulator-svg .jaw-lower {
    transform: translateY(0px);
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Class added by JS to open the jaws */
.arch-simulator-svg.bite-open .jaw-upper {
    transform: translateY(-22px);
}

.arch-simulator-svg.bite-open .jaw-lower {
    transform: translateY(22px);
}

/* Tooth alignment transitions */
.arch-simulator-svg .tooth {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), fill 0.8s ease, stroke 0.8s ease, filter 0.8s ease;
}

/* Invisalign Aligners (hidden by default) */
.arch-simulator-svg .aligner-tray {
    opacity: 0;
    transform: scale(0.98);
    transform-origin: 200px 110px;
    transition: opacity 0.8s ease, transform 0.8s ease, stroke-dashoffset 2s ease;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.arch-simulator-svg.aligner-active .aligner-tray {
    opacity: 0.95;
    transform: scale(1);
    stroke-dashoffset: 0;
    animation: aligner-glow-pulse 3s infinite alternate;
}

@keyframes aligner-glow-pulse {
    0% { filter: drop-shadow(0 0 2px rgba(0, 210, 255, 0.4)); }
    100% { filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.8)); }
}

/* Natural Crooked Teeth coordinates - BEFORE treatment */
/* We simulate slightly crooked teeth in natural state using transforms */
.arch-simulator-svg .natural-crooked-3 { transform: rotate(-3.5deg) translate(-2px, 3px); transform-origin: 131px 108px; }
.arch-simulator-svg .natural-crooked-4 { transform: rotate(2.5deg) translate(0px, 1.5px); transform-origin: 159px 111px; }
.arch-simulator-svg .natural-crooked-5 { transform: rotate(-3deg) translate(-1px, 2.5px); transform-origin: 240px 111px; }
.arch-simulator-svg .natural-crooked-6 { transform: rotate(4.5deg) translate(2px, 3.5px); transform-origin: 269px 108px; }

.arch-simulator-svg .natural-crooked-11 { transform: rotate(3deg) translate(0px, -2px); transform-origin: 131px 191px; }
.arch-simulator-svg .natural-crooked-12 { transform: rotate(-2.5deg) translate(1.5px, -1.5px); transform-origin: 159px 188px; }
.arch-simulator-svg .natural-crooked-13 { transform: rotate(3deg) translate(-1.5px, -1.5px); transform-origin: 240px 188px; }
.arch-simulator-svg .natural-crooked-14 { transform: rotate(-4deg) translate(0px, -2px); transform-origin: 269px 191px; }

/* Straightened Teeth - AFTER treatment (Active when veneers OR aligners are active) */
.arch-simulator-svg.straightened .natural-crooked-1,
.arch-simulator-svg.straightened .natural-crooked-2,
.arch-simulator-svg.straightened .natural-crooked-3,
.arch-simulator-svg.straightened .natural-crooked-4,
.arch-simulator-svg.straightened .natural-crooked-5,
.arch-simulator-svg.straightened .natural-crooked-6,
.arch-simulator-svg.straightened .natural-crooked-7,
.arch-simulator-svg.straightened .natural-crooked-8,
.arch-simulator-svg.straightened .natural-crooked-9,
.arch-simulator-svg.straightened .natural-crooked-10,
.arch-simulator-svg.straightened .natural-crooked-11,
.arch-simulator-svg.straightened .natural-crooked-12,
.arch-simulator-svg.straightened .natural-crooked-13,
.arch-simulator-svg.straightened .natural-crooked-14,
.arch-simulator-svg.straightened .natural-crooked-15,
.arch-simulator-svg.straightened .natural-crooked-16 {
    transform: rotate(0deg) translate(0px, 0px) !important;
}

/* Veneers Gradient Fill state */
.arch-simulator-svg.veneers-active .tooth {
    fill: url(#tooth-ven) !important;
    stroke: var(--gold) !important;
    stroke-width: 1.2px;
    filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4));
}

/* Responsive adjustments for new sections */
@media (max-width: 992px) {
    .tech-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .comparison-slider {
        height: 380px;
    }
    .slider-control::-webkit-slider-thumb {
        height: 380px;
    }
    .slider-control::-moz-range-thumb {
        height: 380px;
    }
}

@media (max-width: 600px) {
    .comparison-slider {
        height: 280px;
    }
    .slider-control::-webkit-slider-thumb {
        height: 280px;
    }
    .slider-control::-moz-range-thumb {
        height: 280px;
    }
    .badge-smile {
        padding: 4px 10px;
        font-size: 0.65rem;
        bottom: 10px;
    }
    .badge-after { right: 10px; }
    .badge-before { left: 10px; }
    .divider-handle {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    .btn-simulator {
        width: 100%;
        justify-content: center;
    }
}


