/* ==========================================================================
   Aurelia Dental Studio - Friendly Premium Theme
   ========================================================================== */

/* Variables */
:root {
    --color-bg: #FFFFFF;
    --color-mint: #F0FDF4; /* Very light green */
    --color-blue-light: #E3F2FD; /* Soft trust blue */
    --color-primary: #2ECC71; /* Vibrant Green */
    --color-primary-dark: #27AE60;
    --color-navy: #1E293B; /* Dark text */
    --color-grey: #64748B;
    --color-grey-light: #E2E8F0;
    --color-white: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
    
    --border-radius: 12px;
    --border-radius-pill: 50px;
    
    --transition: 0.3s ease;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Reset & Basics */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-navy);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-navy);
}

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

/* Typography */
.eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
    margin-bottom: 1rem;
}
.text-center { text-align: center; }
.lead { font-size: 1.25rem; color: var(--color-grey); line-height: 1.8; }
.max-w { max-width: 800px; margin: 0 auto; }

/* Reveal Animations (Triggered by JS) */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
[data-reveal="delay-1"] { transition-delay: 0.1s; }
[data-reveal="delay-2"] { transition-delay: 0.2s; }
[data-reveal="delay-3"] { transition-delay: 0.3s; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}
.btn-primary { background-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3); }

.btn-secondary { background-color: var(--color-white); color: var(--color-primary); }
.btn-secondary:hover { background-color: var(--color-mint); }

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

.btn-sm { padding: 0.75rem 1.5rem; font-size: 0.75rem; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-md); }
section { padding: var(--spacing-xl) 0; }
.section-bg-light { background-color: var(--color-mint); }
.section-bg-blue { background-color: var(--color-blue-light); }
.section-header { margin-bottom: var(--spacing-lg); }

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 1.5rem 0; transition: all var(--transition);
}
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
}
.header-inner { max-width: 1440px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: var(--color-navy); }
.site-header:not(.scrolled) .logo { color: var(--color-white); }
.desktop-nav a { margin: 0 1.5rem; font-size: 0.9rem; font-weight: 600; color: var(--color-navy); }
.site-header:not(.scrolled) .desktop-nav a { color: var(--color-white); }
.desktop-nav a:hover { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.mobile-menu-toggle { display: none; }

/* Scroll Sequences */
.scroll-sequence-section { position: relative; height: 300vh; padding: 0; }
.sticky-container { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; background: #000; }
canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 2s ease; }
canvas.ready { opacity: 1; }

/* Hero Content */
.hero-content {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 10%; color: var(--color-white); pointer-events: none;
    z-index: 10;
    background: linear-gradient(to right, rgba(0,20,40,0.7) 0%, rgba(0,20,40,0.3) 50%, transparent 100%);
}
.hero-text { max-width: 650px; transition: opacity 0.5s ease, transform 0.5s ease; }
.hero-text h1 { font-size: 4.5rem; margin-bottom: 1.5rem; color: var(--color-white); }
.hero-text p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2.5rem; }
.hero-actions { pointer-events: auto; display: flex; gap: 1rem; }
.scrolling-text { position: absolute; opacity: 0; transform: translateY(30px); }
.scrolling-text h2 { font-size: 3.5rem; color: var(--color-white); }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    color: var(--color-white); display: flex; flex-direction: column; align-items: center; gap: 1rem;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
}
.scroll-indicator .line { width: 2px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0)); }

/* Overlay Text (Seq 2 & 3) */
.sequence-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; color: var(--color-white); background: rgba(0,20,40,0.35); }
.seq-text { position: absolute; opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease; transform: translateY(30px); }
.seq-text h2 { font-size: 3.5rem; color: var(--color-white); }
.seq-text h3 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.seq-text p { font-size: 1.125rem; opacity: 0.9; }

.seq-2 .pos-1 { top: 30%; left: 10%; max-width: 600px; }
.seq-2 .pos-2 { top: 50%; right: 10%; max-width: 400px; }
.seq-2 .pos-3 { bottom: 20%; left: 10%; max-width: 400px; }
.seq-2 .pos-4 { top: 40%; right: 10%; max-width: 400px; }

.seq-3 .stage-1 { top: 40%; left: 10%; }
.seq-3 .stage-2 { top: 50%; right: 10%; max-width: 400px; }
.seq-3 .stage-3 { bottom: 20%; left: 10%; max-width: 400px; }
.seq-3 .stage-4 { top: 30%; right: 10%; max-width: 400px; }
.seq-3 .stage-5 { bottom: 30%; left: 15%; max-width: 500px; }
.seq-3 .stage-6 { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: auto;}
.seq-3 .stage-6 h2 { margin-bottom: 2rem; }

/* Trust Strip (Overlapping Layout) */
.trust-strip { background-color: var(--color-blue-light); padding: var(--spacing-xl) 0; position: relative; margin-top: -5rem; z-index: 20; border-radius: 40px 40px 0 0;}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.trust-item { background: var(--color-white); padding: 2.5rem 1.5rem; border-radius: var(--border-radius); text-align: center; box-shadow: var(--shadow-card); transition: transform var(--transition); }
.trust-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.trust-icon { width: 60px; height: 60px; background: var(--color-mint); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--color-primary); }
.trust-icon svg { width: 30px; height: 30px; }
.trust-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.trust-item p { font-size: 0.9rem; color: var(--color-grey); }

/* Intro Section */
.intro-section h2 { font-size: 3rem; margin-bottom: 2rem; }

/* Services (Image Cards Style) */
.services-section { background-color: var(--color-mint); }
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 4rem; }
.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-img { height: 200px; width: 100%; object-fit: cover; }
.card-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { color: var(--color-grey); margin-bottom: 2rem; flex-grow: 1; }
.service-card .btn { width: 100%; }

.services-list { max-width: 800px; margin: 0 auto; background: var(--color-white); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow-card); }
.service-row { display: flex; justify-content: space-between; padding: 1.5rem 0; border-bottom: 1px solid var(--color-grey-light); align-items: center; }
.service-row:last-child { border-bottom: none; padding-bottom: 0; }
.service-row span { font-size: 1.25rem; font-weight: 600; }

/* Technology */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; max-width: 900px; margin: 0 auto; }
.tech-item { display: flex; align-items: flex-start; gap: 1.5rem; }
.tech-icon { width: 50px; height: 50px; flex-shrink: 0; background: var(--color-mint); color: var(--color-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.tech-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* Dentists */
.dentist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.dentist-card { background: var(--color-white); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-card); text-align: center; padding-bottom: 2rem; transition: transform var(--transition); cursor: pointer; }
.dentist-card:hover { transform: translateY(-10px); }
.dentist-img { aspect-ratio: 3/4; margin-bottom: 1.5rem; overflow: hidden; }
.dentist-img img { width: 100%; height: 100%; object-fit: cover; }
.dentist-info { padding: 0 1.5rem; }
.dentist-info h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.dentist-info .role { font-size: 0.8rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; margin-bottom: 0.5rem; }
.dentist-info .spec { font-size: 0.875rem; color: var(--color-grey); margin-bottom: 1.5rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 300px); gap: 1rem; }
.gallery-item { border-radius: var(--border-radius); overflow: hidden; position: relative; display: flex; align-items: flex-end; padding: 1.5rem; color: var(--color-white); }
.gallery-item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; z-index: 1;}
.gallery-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); z-index: 2; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item span { position: relative; z-index: 3; font-size: 1.25rem; font-weight: 700; }
.item-1 { grid-column: 1 / 3; grid-row: 1 / 3; }

/* Results */
.before-after-slider { max-width: 900px; margin: 3rem auto 0; box-shadow: var(--shadow-card); border-radius: var(--border-radius); overflow: hidden; }
.slider-container { height: 500px; position: relative; overflow: hidden; background: #000; }
.slider-container img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.img-before { position: absolute; top:0; left:0; width: 50%; height: 100%; overflow: hidden; z-index: 2; border-right: 4px solid var(--color-white); }
.img-before img { width: 200%; max-width: 200%; } 
.label { position: absolute; bottom: 1.5rem; padding: 0.5rem 1rem; background: var(--color-white); color: var(--color-navy); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; border-radius: var(--border-radius-pill); z-index: 3;}
.img-before .label { left: 1.5rem; }
.img-after .label { right: 1.5rem; z-index: 1;}

/* Testimonials */
.testimonials-section { background-color: var(--color-blue-light); }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.testimonial-card { background: var(--color-white); padding: 3rem; border-radius: var(--border-radius); box-shadow: var(--shadow-card); }
.stars { color: #F59E0B; margin-bottom: 1rem; font-size: 1.25rem; letter-spacing: 2px; }
.quote { font-size: 1.125rem; font-weight: 500; margin-bottom: 1.5rem; color: var(--color-navy); }
.author { font-size: 0.875rem; color: var(--color-grey); font-weight: 600; }

/* FAQ */
.faq-accordion { max-width: 800px; margin: 0 auto; background: var(--color-white); border-radius: var(--border-radius); box-shadow: var(--shadow-card); padding: 1rem 2rem; }
.faq-accordion details { border-bottom: 1px solid var(--color-grey-light); padding: 1.5rem 0; }
.faq-accordion details:last-child { border-bottom: none; }
.faq-accordion summary { font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--color-primary); }
.faq-accordion details[open] summary::after { content: '-'; }
.faq-accordion .content { padding-top: 1rem; color: var(--color-grey); }

/* Booking Steps (Numbered List Layout) */
.booking-section { background-color: var(--color-mint); }
.booking-container { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.booking-header { text-align: left; }
.booking-header h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.booking-steps { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.booking-step { display: flex; align-items: center; gap: 1.5rem; background: var(--color-white); padding: 1.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow-card); }
.step-num { width: 40px; height: 40px; background: var(--color-primary); color: white; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.step-text { font-weight: 600; }

.booking-form-box { background: var(--color-white); padding: 3rem; border-radius: var(--border-radius); box-shadow: var(--shadow-card); }
.options-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
.radio-card { display: block; border: 2px solid var(--color-grey-light); padding: 1rem; border-radius: var(--border-radius); cursor: pointer; transition: all 0.2s; font-weight: 600; text-align: center; }
.radio-card:hover, .radio-card:has(input:checked) { border-color: var(--color-primary); background-color: var(--color-mint); color: var(--color-primary); }
.radio-card input { display: none; }
.input-group { margin-bottom: 1.5rem; }
.input-group input { width: 100%; padding: 1rem 1.5rem; border: 2px solid var(--color-grey-light); border-radius: var(--border-radius-pill); font-family: var(--font-body); font-size: 1rem; outline: none; transition: border-color 0.3s;}
.input-group input:focus { border-color: var(--color-primary); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h2 { font-size: 3rem; margin-bottom: 2rem; }
.info-block { display: flex; gap: 1rem; margin-bottom: 2rem; align-items: flex-start; }
.info-block svg { color: var(--color-primary); width: 24px; height: 24px; flex-shrink: 0; margin-top: 4px; }
.info-block h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.info-block p { color: var(--color-grey); }
.contact-map { background: var(--color-grey-light); min-height: 400px; border-radius: var(--border-radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }

/* Footer */
.site-footer { background-color: var(--color-navy); color: var(--color-white); padding: var(--spacing-xl) 0 var(--spacing-md); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand .logo { font-size: 1.5rem; color: var(--color-white); margin-bottom: 1rem; display: block; }
.footer-brand p { color: #94A3B8; max-width: 300px; }
.footer-links h4, .footer-contact h4, .footer-social h4 { font-size: 1rem; color: var(--color-white); margin-bottom: 1.5rem; }
.footer-links a, .footer-social a { display: block; color: #94A3B8; margin-bottom: 0.75rem; }
.footer-links a:hover, .footer-social a:hover { color: var(--color-primary); }
.footer-contact p { color: #94A3B8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.875rem; color: #94A3B8; }
.legal a { margin-right: 1.5rem; }

/* Utilities */
.chat-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 99; }
.chat-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--color-primary); color: white; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4); display: flex; align-items: center; justify-content: center; transition: transform var(--transition); }
.chat-btn:hover { transform: scale(1.1); }

.scroll-top { position: fixed; bottom: 2rem; right: 7rem; width: 45px; height: 45px; border-radius: 50%; background: var(--color-white); color: var(--color-navy); border: none; box-shadow: var(--shadow-card); cursor: pointer; opacity: 0; transition: opacity var(--transition); pointer-events: none; z-index: 98; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { color: var(--color-primary); }

/* Responsive */
@media (max-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .featured { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .dentist-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .item-1 { grid-column: 1 / -1; height: 300px; }
    .booking-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
    .mobile-menu-toggle span { display: block; width: 25px; height: 2px; background: var(--color-navy); }
    .site-header:not(.scrolled) .mobile-menu-toggle span { background: var(--color-white); }
    .header-actions .btn { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .seq-text h2 { font-size: 2rem; }
    .intro-section h2 { font-size: 2rem; }
    .booking-form-box { padding: 1.5rem; }
    .trust-strip { margin-top: 0; border-radius: 0; }
}
