/* CSS Variables & Theme Setup */
:root {
    --primary: #0b2545;
    --primary-light: #134074;
    --secondary: #00b4d8;
    --accent: #90e0ef;
    --accent-dark: #0077b6;
    --accent-light: #f0f9ff;
    --text-main: #1d2d44;
    --text-muted: #627284;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 20px 40px rgba(19, 64, 116, 0.08);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, .brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-white { color: var(--bg-white); }
.text-teal { color: var(--secondary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--bg-white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--bg-white);
    border: none;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

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

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

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 0.6rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 1.5rem;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.top-info a:hover {
    color: var(--secondary);
}

.rating-badge-top {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.rating-badge-top .star {
    color: #ffb703;
}

/* Header & Navigation */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--card-shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--primary);
    min-width: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.tooth-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 5px rgba(0, 180, 216, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.brand-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--secondary);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 0;
    background: radial-gradient(circle at 10% 20%, rgba(240, 249, 255, 0.6) 0%, rgba(255, 255, 255, 1) 90%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.pill-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--accent-light);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust-indicators {
    display: flex;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #d8f3dc;
    color: #40916c;
    border-radius: 50%;
    font-size: 0.7rem;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.image-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(0, 180, 216, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    animation: floating 3s ease-in-out infinite;
    will-change: transform;
}

.badge-star {
    font-size: 2rem;
    color: #ffb703;
}

.floating-badge h4 {
    font-size: 1.1rem;
    color: var(--primary);
}

.floating-badge p {
    font-size: 0.8rem;
}

/* Insurance Acceptance Bar */
.insurance-bar {
    background-color: var(--bg-light);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.insurance-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.insurance-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.logo-item {
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--primary-light);
    opacity: 0.7;
    transition: var(--transition);
}

.logo-item:hover {
    opacity: 1;
    color: var(--secondary);
}

/* Quote Banners */
.quote-banner {
    background-color: var(--bg-light);
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cool-quote {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    font-style: italic;
    color: var(--primary);
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.4;
}

.quote-author {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 600;
}

.quote-banner.dark-bg {
    background-color: var(--primary);
    border: none;
}

.quote-banner.dark-bg .cool-quote {
    color: var(--bg-white);
}

/* About Practice Section */
.about-section {
    padding: 7rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}

.experience-card {
    position: absolute;
    top: 30px;
    right: -20px;
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    max-width: 220px;
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.2);
}

.experience-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.experience-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.subtitle {
    display: block;
    color: var(--secondary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.benefit-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--secondary);
}

.benefit-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.b-icon {
    font-size: 1.5rem;
}

.benefit-card h4 {
    font-size: 1.1rem;
    color: var(--primary);
}

.benefit-card p {
    font-size: 0.85rem;
}

/* Patient Workflow Section */
.workflow-section {
    padding: 7rem 0;
    background-color: var(--bg-light);
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.workflow-timeline {
    display: flex;
    flex-direction: column;
}

.workflow-timeline h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.timeline-steps {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--accent);
    z-index: 1;
}

.timeline-step {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--secondary);
    background-color: var(--bg-light);
    border: 2px solid var(--accent);
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    left: 13px;
    top: 10px;
}

.step-icon-wrapper {
    background-color: var(--accent-light);
    color: var(--accent-dark);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.1);
    transition: var(--transition);
}

.timeline-step:hover .step-icon-wrapper {
    background-color: var(--secondary);
    color: var(--bg-white);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.2);
}

.step-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
}

/* Workflow Drawer Carousel Styles */
.workflow-drawer-card {
    background: radial-gradient(130% 130% at 0% 0%, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--border-radius-lg);
    padding: 3.5rem;
    color: var(--bg-white);
    box-shadow: 0 25px 50px rgba(11, 37, 69, 0.15);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
    height: 540px;
}

.drawer-header h4 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.drawer-header p {
    color: var(--accent);
    font-size: 0.9rem;
}

.drawer-slides-container {
    position: relative;
    flex-grow: 1;
    height: 300px;
}

.drawer-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.drawer-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    z-index: 5;
}

.slide-info h3 {
    font-size: 1.5rem;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.slide-badge {
    display: inline-block;
    background-color: rgba(0, 180, 216, 0.2);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.slide-visual {
    height: 140px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.slide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.slide-step-item {
    font-size: 0.75rem;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    line-height: 1.3;
}

.slide-step-item span {
    background-color: var(--secondary);
    color: var(--bg-white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

.drawer-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.drawer-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.drawer-indicators .dot.active {
    background-color: var(--secondary);
    transform: scale(1.3);
}

/* --- Workflow Micro-Animations (Pure CSS Loops) --- */

/* 1. Teeth Cleaning Loop */
.cleaning-animation-container.inline-animation {
    background: none;
    border: none;
    backdrop-filter: none;
    height: 100px;
}

.animated-tooth-wrapper {
    position: relative;
    width: 180px;
    height: 100px;
}

.animated-tooth {
    position: absolute;
    bottom: 5px;
    left: 55px;
    width: 60px;
    height: 60px;
}

.tooth-crown {
    position: absolute;
    width: 60px;
    height: 42px;
    background-color: var(--bg-white);
    border-radius: 18px 18px 8px 8px;
    box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.05);
}

.tooth-roots {
    position: absolute;
    bottom: 5px;
    width: 60px;
    height: 18px;
}

.t-root {
    position: absolute;
    width: 20px;
    height: 22px;
    background-color: var(--bg-white);
    border-radius: 4px 4px 12px 12px;
}

.left-r { left: 8px; transform: rotate(8deg); }
.right-r { right: 8px; transform: rotate(-8deg); }

.tooth-smile {
    position: absolute;
    width: 18px;
    height: 10px;
    border-bottom: 3px solid var(--primary);
    border-radius: 0 0 50% 50%;
    bottom: 24px;
    left: 21px;
}

.tooth-smile.open-smile {
    height: 14px;
    border-radius: 0 0 100% 100%;
}

.animated-brush {
    position: absolute;
    top: 15px;
    left: -20px;
    width: 80px;
    height: 20px;
    display: flex;
    align-items: center;
    z-index: 4;
    transform: rotate(-15deg);
    animation: brushTeeth 2s ease-in-out infinite;
    will-change: transform;
}

.brush-handle {
    width: 58px;
    height: 7px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: 4px;
}

.brush-head {
    width: 22px;
    height: 12px;
    background-color: var(--bg-white);
    border-radius: 3px;
}

.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    opacity: 0;
}

.bubble-1 { animation: bubblePop 1.5s ease-out infinite; left: 70px; top: 40px; }
.bubble-2 { animation: bubblePop 1.5s ease-out infinite 0.4s; left: 100px; top: 30px; }

@keyframes brushTeeth {
    0% { transform: translate(40px, 35px) rotate(-15deg); }
    50% { transform: translate(100px, 32px) rotate(-12deg); }
    100% { transform: translate(40px, 35px) rotate(-15deg); }
}

@keyframes bubblePop {
    0% { transform: translateY(10px) scale(0.5); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-30px) scale(1.1); opacity: 0; }
}

/* 2. Whitening Animation */
.whitening-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.whitening-tooth {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background-color: #fcf6bd;
    border-radius: 15px 15px 8px 8px;
    animation: whitenTooth 4s ease-in-out infinite;
    box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.05);
    will-change: transform;
}

.whitening-light {
    position: absolute;
    top: -20px;
    left: -10px;
    width: 100px;
    height: 50px;
    background: radial-gradient(ellipse at bottom, rgba(0, 210, 255, 0.4) 0%, rgba(0, 210, 255, 0) 70%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    animation: lightBeam 4s ease-in-out infinite;
    z-index: 2;
    will-change: transform;
}

.visual-sparkle {
    position: absolute;
    font-size: 1.2rem;
    color: #ffd166;
    opacity: 0;
    animation: sparklePop 4s ease-in-out infinite;
    top: 5px;
    right: 5px;
    will-change: transform;
}

@keyframes whitenTooth {
    0% { background-color: #fcf6bd; }
    40% { background-color: #ffffff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
    90% { background-color: #ffffff; }
    100% { background-color: #fcf6bd; }
}

@keyframes lightBeam {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    40% { opacity: 1; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes sparklePop {
    0% { opacity: 0; transform: scale(0.5); }
    40% { opacity: 0; }
    50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
    80% { opacity: 1; }
    90% { opacity: 0; }
    100% { opacity: 0; }
}

/* 3. Dental Implant Animation */
.implant-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.implant-screw {
    position: absolute;
    bottom: 10px;
    left: 28px;
    width: 24px;
    height: 35px;
    background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 50%, #64748b 100%);
    border-radius: 3px;
    clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
}

.implant-crown {
    position: absolute;
    width: 44px;
    height: 38px;
    background-color: var(--bg-white);
    border-radius: 12px 12px 6px 6px;
    left: 18px;
    box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.05);
    animation: fitCrown 4s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite;
    will-change: transform;
}

@keyframes fitCrown {
    0% { transform: translateY(-40px); opacity: 0; }
    15% { transform: translateY(-40px); opacity: 1; }
    40% { transform: translateY(2px); }
    85% { transform: translateY(2px); opacity: 1; }
    95% { opacity: 0; }
    100% { transform: translateY(-40px); opacity: 0; }
}

/* 4. Alignment / Orthodontics Animation */
.alignment-animation {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    width: 120px;
    height: 60px;
}

.align-tooth {
    width: 32px;
    height: 38px;
    background-color: var(--bg-white);
    border-radius: 8px 8px 4px 4px;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.align-2 {
    animation: straightenTooth 4s ease-in-out infinite;
    will-change: transform;
}

@keyframes straightenTooth {
    0% { transform: rotate(-15deg) translateY(-2px); }
    40% { transform: rotate(0deg) translateY(0); box-shadow: 0 0 10px rgba(0, 180, 216, 0.4); }
    90% { transform: rotate(0deg) translateY(0); }
    100% { transform: rotate(-15deg) translateY(-2px); }
}

/* 5. Cosmetic Veneers Animation */
.veneer-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.base-tooth {
    position: absolute;
    width: 46px;
    height: 46px;
    background-color: #e2e8f0;
    border-radius: 12px 12px 6px 6px;
    top: 17px;
    left: 17px;
}

.veneer-shell {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--secondary);
    border-radius: 14px 14px 8px 8px;
    top: 15px;
    left: 15px;
    animation: snapVeneer 4s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2);
    will-change: transform;
}

@keyframes snapVeneer {
    0% { transform: scale(1.4) translate(-15px, -15px); opacity: 0; }
    20% { transform: scale(1.4) translate(-15px, -15px); opacity: 1; }
    45% { transform: scale(1) translate(0, 0); border-color: rgba(255, 255, 255, 0); }
    85% { transform: scale(1) translate(0, 0); opacity: 1; }
    95% { opacity: 0; }
    100% { transform: scale(1.4) translate(-15px, -15px); opacity: 0; }
}

/* 6. Emergency Animation */
.emergency-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.emergency-tooth {
    position: absolute;
    width: 46px;
    height: 46px;
    background-color: var(--bg-white);
    border-radius: 12px 12px 6px 6px;
    top: 17px;
    left: 17px;
}

.emergency-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid #ef4444;
    border-radius: 50%;
    top: 10px;
    left: 10px;
    animation: redPulse 2s infinite;
    will-change: transform;
}

.emergency-cross {
    position: absolute;
    color: #ef4444;
    font-size: 1.5rem;
    top: 25px;
    left: 30px;
    animation: crossRotate 4s ease infinite;
}

@keyframes redPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes crossRotate {
    0% { color: #ef4444; transform: scale(1); }
    40% { color: #22c55e; transform: scale(1.2) rotate(90deg); }
    80% { color: #22c55e; }
    100% { color: #ef4444; transform: scale(1); }
}

/* 7. Denture fit Animation */
.denture-animation {
    position: relative;
    width: 100px;
    height: 80px;
}

.denture-base {
    position: absolute;
    width: 70px;
    height: 20px;
    background-color: #fda4af;
    border-radius: 30px 30px 0 0;
    bottom: 20px;
    left: 15px;
}

.denture-plate {
    position: absolute;
    width: 70px;
    height: 25px;
    background: radial-gradient(circle at center, #ffffff 60%, #cbd5e1 100%);
    border-radius: 30px 30px 5px 5px;
    border-bottom: 4px solid #f43f5e;
    left: 15px;
    animation: fitDenture 4s ease-in-out infinite;
}

@keyframes fitDenture {
    0% { transform: translateY(-30px); opacity: 0; }
    20% { transform: translateY(-30px); opacity: 1; }
    45% { transform: translateY(8px); }
    85% { transform: translateY(8px); opacity: 1; }
    95% { opacity: 0; }
    100% { transform: translateY(-30px); opacity: 0; }
}


/* Services Section */
.services-section {
    padding: 7rem 0;
}

.section-lead {
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    text-align: left;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(0, 180, 216, 0.2);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--accent-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.service-link:hover {
    color: var(--accent-dark);
}

/* Reviews Section */
.reviews-section {
    padding: 7rem 0;
    background-color: var(--bg-light);
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.rating-score {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stars-outer {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    color: #e2e8f0;
    font-family: Arial, sans-serif;
}

.stars-outer::before {
    content: "★★★★★";
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    color: #ffb703;
}

.stars-inner::before {
    content: "★★★★★";
}

.rating-total {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    color: var(--accent-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

.review-author h4 {
    font-size: 1.05rem;
    color: var(--primary);
}

.review-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-section {
    padding: 7rem 0;
}

.faq-header {
    margin-bottom: 4rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.8rem;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.8rem;
    background-color: var(--bg-white);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: rgba(0, 180, 216, 0.2);
    box-shadow: var(--card-shadow);
}

.faq-item.active .faq-question {
    color: var(--secondary);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Info & Booking Section */
.info-booking-section {
    padding: 7rem 0;
    background-color: var(--bg-light);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: stretch;
}

.hours-card {
    background-color: var(--primary);
    color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hours-head h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.live-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #40916c;
    background: rgba(64, 145, 108, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.live-status-indicator.closed {
    color: #e63946;
    background: rgba(230, 57, 70, 0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #40916c;
    border-radius: 50%;
    animation: statusPulse 1.5s infinite;
}

.live-status-indicator.closed .status-dot {
    background-color: #e63946;
    animation: none;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li.today {
    color: var(--secondary);
    font-weight: 700;
}

/* Map Card Wrapper */
.map-card-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 3rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-head h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.map-head p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.map-frame-container {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Booking Section Wrapper */
.booking-section-wrapper {
    padding: 7rem 0;
}

.booking-form-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 4rem 3rem;
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.booking-form-head {
    margin-bottom: 3rem;
}

.booking-form-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.booking-form-card p {
    font-size: 1.1rem;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input, .form-group select {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-white);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 5rem 0 2rem;
    border-top: 5px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h4, .footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    font-family: 'Outfit', sans-serif;
}

.footer-brand-subtitle {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

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

/* Animations */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive Styles & Overrides */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 105;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 4px;
    transition: var(--transition);
}

/* Hamburger Morph to X */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

body.menu-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 5rem 2rem 3rem;
        gap: 1.5rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 104;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.15rem;
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .nav-links a:not(.btn) {
        text-align: center;
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 0.5rem;
        border-bottom: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-trust-indicators {
        justify-content: center;
    }
    
    .hero-img {
        height: 400px;
    }
    
    .floating-badge {
        left: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .insurance-logos {
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .brand-title {
        font-size: 1.05rem;
    }
    .brand-subtitle {
        font-size: 0.65rem;
    }
    .logo-area {
        max-width: 75%;
        min-width: 0;
    }
    .logo-text {
        min-width: 0;
    }
    .experience-card {
        right: 0;
    }
    .workflow-drawer-card {
        padding: 2rem 1.5rem;
        height: auto;
        min-height: 560px;
    }
    .drawer-slides-container {
        height: 350px;
    }
}

/* Mobile Specific Optimizations */
@media (max-width: 576px) {
    .container {
        padding: 0 1.2rem;
    }

    h1, .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    h2, .about-text h2, .workflow-timeline h2, .map-head h3, .booking-form-card h3 {
        font-size: 1.7rem;
        line-height: 1.35;
    }

    .hero-lead {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .floating-badge {
        left: 10px;
        bottom: 15px;
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .floating-badge h4 {
        font-size: 0.85rem;
    }

    .floating-badge p {
        font-size: 0.7rem;
    }
}

/* Missing Keyframe Animations */
@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
