/* ============================================================
   KANAN DENTAL — "Aura" Design System
   A fresh, editorial approach. Sage + Cream + Copper.
   ============================================================ */

/* ======================== TOKENS ======================== */
:root {
    /* Background */
    --bg: #F5F1EB;
    --bg-alt: #EDE8E0;
    --surface: #FFFFFF;
    --surface-warm: #FAF7F2;

    /* Primary — Deep Forest */
    --primary: #1A2F23;
    --primary-50: #2D5A40;
    --primary-rgb: 26, 47, 35;

    /* Accent — Warm Copper */
    --accent: #C07D4F;
    --accent-light: #D4A574;
    --accent-dark: #A06A3F;
    --accent-rgb: 192, 125, 79;

    /* Highlight — Fresh Mint */
    --mint: #7EB09B;
    --mint-light: #C1DDD1;
    --mint-dark: #5E9080;

    /* Neutrals */
    --text: #1A1A1A;
    --text-body: #4A4A4A;
    --text-muted: #8A8A80;
    --border: #E5E0D6;
    --border-light: #F0ECE4;

    /* Typography */
    --font-display: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

    /* Sizing */
    --container: 1200px;
    --section-py: clamp(64px, 10vw, 120px);
    --header-h: 72px;

    /* Radius — larger, softer */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 999px;

    /* Ease */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur: 0.4s;
    --dur-slow: 0.7s;
}

/* ======================== RESET ======================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-body);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.4s ease;
}
body.loaded { opacity: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; cursor: pointer; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--mint); color: var(--primary); }
input, select, textarea { font: inherit; }

/* ======================== LAYOUT ======================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

/* ======================== SHARED TYPOGRAPHY ======================== */
.hdg-lg {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.hdg-lg em {
    font-style: normal;
    color: var(--accent);
}

.tag-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}
.tag-line {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.sec-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(32px, 5vw, 56px);
}
.sec-intro .tag-label { justify-content: center; }
.sec-desc {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 1.05rem;
}

/* ======================== BUTTONS ======================== */
.btn-fill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--r-full);
    transition: background var(--dur) var(--ease), transform 0.25s var(--ease-spring), box-shadow var(--dur) var(--ease);
    white-space: nowrap;
}
.btn-fill:hover {
    background: var(--primary-50);
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}
.btn-fill i { width: 18px; height: 18px; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--border);
    border-radius: var(--r-full);
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
}
.btn-ghost:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.btn-ghost i { width: 18px; height: 18px; }

.btn-full { width: 100%; justify-content: center; }

/* ======================== PRELOADER ======================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-dots {
    display: flex;
    gap: 8px;
}
.loader-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: dotBounce 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ======================== HEADER ======================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.header.scrolled {
    background: rgba(245, 241, 235, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.brand {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
.brand-k {
    color: var(--accent);
    font-size: 1.6rem;
}
.brand-rest {
    color: var(--text);
}

/* Nav Links */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    position: relative;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color 0.25s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link.active::after,
.nav-link:hover::after { width: 100%; }

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--r-full);
    transition: background var(--dur) var(--ease), transform 0.2s var(--ease-spring);
}
.header-cta:hover {
    background: var(--primary-50);
    transform: scale(1.04);
}
.header-cta i { width: 16px; height: 16px; }

/* Menu Button — 2-line style (different from 3-bar hamburger) */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
}
.menu-btn span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    transform-origin: center;
}
.menu-btn span:first-child { width: 100%; }
.menu-btn span:last-child { width: 60%; margin-left: auto; }

.menu-btn.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}
.menu-btn.active span:last-child {
    width: 100%;
    transform: translateY(-4px) rotate(-45deg);
}

/* ======================== MOBILE DRAWER ======================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 85vw);
    height: 100dvh;
    z-index: 200;
    background: var(--surface);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    padding: 24px;
}
.drawer.active { transform: translateX(0); }

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.drawer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}
.drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--text-muted);
    border-radius: 50%;
    transition: background 0.2s;
}
.drawer-close:hover { background: var(--bg); }

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.drawer-link {
    padding: 14px 16px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--r-sm);
    transition: background 0.2s ease, color 0.2s ease;
}
.drawer-link:hover {
    background: var(--bg);
    color: var(--text);
}

.drawer-cta {
    margin-top: 16px;
    text-align: center;
}

.drawer-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.drawer-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.drawer-footer i { width: 16px; height: 16px; }

/* ======================== HERO ======================== */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 48px) 0 64px;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

/* Hero Text */
.hero-text { max-width: 560px; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 20px;
}
.hero-em {
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-card {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12);
    max-width: 460px;
}
.hero-img-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.hero-float-badge {
    position: absolute;
    bottom: 20px;
    left: -24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    animation: badgeFloat 3s ease-in-out infinite;
}
.hero-float-badge i { width: 20px; height: 20px; color: var(--accent); }
.hero-float-badge strong {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}
.hero-float-badge small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.2;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-accent-ring {
    position: absolute;
    top: -32px;
    right: -32px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--mint-light);
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}

/* ======================== STATS BAND ======================== */
.stats-band {
    background: var(--primary);
    padding: 40px 0;
}
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.stat-lbl {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

/* ======================== ABOUT — BENTO ======================== */
.about { padding: var(--section-py) 0; }

.bento {
    display: grid;
    grid-template-columns: 1fr 0.8fr 0.4fr;
    grid-template-rows: auto auto;
    gap: 16px;
    grid-template-areas:
        "main photo badge"
        "main photosm feats";
}
.bento-cell {
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.bento-main {
    grid-area: main;
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.bento-main p {
    color: var(--text-body);
    font-size: 0.98rem;
}
.bento-main .btn-fill {
    align-self: flex-start;
    margin-top: 8px;
}

.bento-photo {
    grid-area: photo;
    padding: 0;
}
.bento-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-badge {
    grid-area: badge;
    padding: 24px;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.badge-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}
.badge-txt {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    margin-top: 4px;
}

.bento-photo-sm {
    grid-area: photosm;
    padding: 0;
}
.bento-photo-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-feats {
    grid-area: feats;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
}
.feat i {
    width: 18px;
    height: 18px;
    color: var(--mint);
    flex-shrink: 0;
}

/* ======================== SERVICES — HORIZONTAL SCROLL ======================== */
.services {
    padding: var(--section-py) 0;
    background: var(--surface-warm);
}

.svc-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 clamp(16px, 4vw, 32px);
}
.svc-scroll::-webkit-scrollbar { display: none; }

.svc-track {
    display: flex;
    gap: 20px;
    padding-bottom: 8px;
    width: max-content;
}

.svc-card {
    width: 320px;
    flex-shrink: 0;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    position: relative;
    transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
    display: flex;
    flex-direction: column;
}
.svc-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.1);
}

.svc-idx {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    transition: color 0.3s ease;
}
.svc-card:hover .svc-idx { color: var(--mint-light); }

.svc-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--r-md);
    margin-bottom: 20px;
    transition: background var(--dur) ease, color var(--dur) ease;
}
.svc-icon i { width: 24px; height: 24px; color: var(--accent); }
.svc-card:hover .svc-icon {
    background: var(--accent);
}
.svc-card:hover .svc-icon i { color: #fff; }

.svc-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.svc-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 16px;
    transition: gap 0.3s var(--ease);
}
.svc-link:hover { gap: 10px; }
.svc-link i { width: 16px; height: 16px; }

/* ======================== WHY KANAN ======================== */
.why-kanan {
    padding: var(--section-py) 0;
    background: var(--surface-warm);
}

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

.wk-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
    transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.wk-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.08);
}

.wk-num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--border);
    transition: color 0.3s ease;
}
.wk-card:hover .wk-num { color: var(--mint-light); }

.wk-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.wk-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.wk-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--r-md);
    transition: background var(--dur) ease;
}
.wk-icon i { width: 20px; height: 20px; color: var(--accent); }
.wk-card:hover .wk-icon { background: var(--accent); }
.wk-card:hover .wk-icon i { color: #fff; }

/* ======================== DOCTOR ======================== */
.doctor {
    padding: var(--section-py) 0;
}

.doc-card {
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.doc-img {
    position: relative;
    min-height: 360px;
}
.doc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.doc-exp {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--r-full);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
}
.doc-exp i { width: 16px; height: 16px; }

.doc-info {
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.doc-desg {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.doc-info > p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.doc-tags span {
    padding: 6px 14px;
    background: var(--bg);
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* ======================== PATIENT JOURNEY — TIMELINE ======================== */
.journey {
    padding: var(--section-py) 0;
    background: var(--bg);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 0;
}

.tl-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--border), var(--accent-light), var(--mint), var(--border));
    border-radius: 2px;
}

.tl-step {
    position: relative;
    display: flex;
    gap: 24px;
    padding-bottom: 32px;
}
.tl-step:last-child { padding-bottom: 0; }

.tl-dot {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.tl-dot span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
    transition: color 0.3s ease;
}
.tl-step:hover .tl-dot {
    background: var(--accent);
    border-color: var(--accent);
}
.tl-step:hover .tl-dot span { color: #fff; }

.tl-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tl-step:hover .tl-card {
    border-color: var(--accent-light);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.08);
}

.tl-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--r-md);
}
.tl-icon i { width: 20px; height: 20px; color: var(--accent); }

.tl-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.tl-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ======================== TEXT MARQUEE BAND ======================== */
.text-band {
    background: var(--accent);
    padding: 20px 0;
    overflow: hidden;
}

.text-band-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: textBandScroll 30s linear infinite;
}
.text-band:hover .text-band-track {
    animation-play-state: paused;
}

.tb-item {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tb-dot {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

@keyframes textBandScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ======================== GALLERY ======================== */
.gallery {
    padding: var(--section-py) 0;
    background: var(--surface-warm);
}

.gal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gal-item {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}
.gal-item.gal-wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}
.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.gal-item:hover img {
    transform: scale(1.06);
}

.gal-hover {
    position: absolute;
    inset: 0;
    background: rgba(var(--primary-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gal-hover i { width: 28px; height: 28px; color: #fff; }
.gal-item:hover .gal-hover { opacity: 1; }

/* ======================== TESTIMONIALS — MARQUEE ======================== */
.testimonials {
    padding: var(--section-py) 0;
    overflow: hidden;
}

.marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 50s linear infinite;
}
.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mq-card {
    width: 380px;
    flex-shrink: 0;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mq-stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
}

.mq-card > p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.mq-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.mq-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    flex-shrink: 0;
}
.mq-author strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
}
.mq-author small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ======================== APPOINTMENT ======================== */
.appointment {
    padding: var(--section-py) 0;
    background: var(--primary);
}

.appt-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.appt-left .hdg-lg,
.appt-left .tag-label { color: rgba(255,255,255,0.95); }
.appt-left .tag-label .tag-line { background: var(--accent-light); }
.appt-left .hdg-lg em { color: var(--accent-light); }
.appt-left .sec-desc { color: rgba(255,255,255,0.55); }

.appt-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}
.appt-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-md);
}
.appt-card i { width: 20px; height: 20px; color: var(--accent-light); flex-shrink: 0; }
.appt-card small { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.appt-card span,
.appt-card a { font-size: 0.9rem; color: rgba(255,255,255,0.85); font-weight: 500; }

/* Form */
.appt-form {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: clamp(24px, 4vw, 40px);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.field {
    position: relative;
}
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 18px 0 8px;
    border: none;
    border-bottom: 2px solid var(--border);
    background: transparent;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
.field textarea { resize: vertical; min-height: 60px; }
.field select { cursor: pointer; }

.field label {
    position: absolute;
    left: 0;
    top: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.25s var(--ease);
    transform-origin: left;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); }

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
}
/* Select & Date always show label up */
.field-select label,
.field input[type="date"] + label {
    top: 0;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
}

.field.error input,
.field.error select,
.field.error textarea {
    border-color: #e74c3c;
    animation: fieldShake 0.4s ease;
}
@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.field + .field { margin-top: 20px; }
.field-row + .field { margin-top: 0; }
.field-row + .field-row { margin-top: 0; }

.appt-form .btn-fill {
    margin-top: 24px;
    background: var(--accent);
}
.appt-form .btn-fill:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 16px;
}
.form-hint i { width: 14px; height: 14px; }

/* ======================== FAQ ======================== */
.faq {
    padding: var(--section-py) 0;
    background: var(--surface-warm);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item[open] {
    border-color: var(--accent-light);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    list-style: none;
    -webkit-user-select: none;
    user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; content: ''; }

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.3s var(--ease);
}
.faq-icon::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.faq-icon::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-a {
    padding: 0 22px 18px;
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ======================== CONTACT ======================== */
.contact {
    padding: var(--section-py) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: 24px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.c-card {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    align-items: flex-start;
}
.c-card i { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.c-card h4 {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.c-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.c-card a { color: var(--accent); font-weight: 500; }

.contact-map {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

/* ======================== FLOATING ACTION BUTTONS ======================== */
.fab-group {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease);
    pointer-events: none;
}
.fab-group.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.3s ease;
}
.fab:hover { transform: scale(1.1); }
.fab i { width: 20px; height: 20px; }

.fab-call { background: var(--primary); box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3); }
.fab-wa { background: #25D366; box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35); }

/* ======================== BACK TO TOP ======================== */
.btt {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
    pointer-events: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.btt.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.btt:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btt i { width: 20px; height: 20px; }

/* ======================== FOOTER ======================== */
.footer {
    background: var(--primary);
    padding: 56px 0 0;
    color: rgba(255,255,255,0.65);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-col a {
    display: block;
    font-size: 0.88rem;
    padding: 4px 0;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent-light); }

.footer-col p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    padding: 4px 0;
    color: rgba(255,255,255,0.55);
}
.footer-col p i { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-col p a { display: inline; padding: 0; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.82rem;
}
.footer-bottom a { color: var(--accent-light); }
.footer-bottom a:hover { color: var(--accent); }

/* ======================== LIGHTBOX ======================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; }

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--r-sm);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-align: center;
    max-width: 600px;
}

/* ======================== SUCCESS MODAL ======================== */
.modal-bg {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-bg.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 40px;
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s var(--ease-spring);
}
.modal-bg.active .modal-box { transform: scale(1); }

.modal-check {
    margin-bottom: 16px;
}
.modal-check i {
    width: 48px;
    height: 48px;
    color: var(--mint);
}
.modal-box h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.modal-box p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

/* ======================== SCROLL REVEAL ======================== */
[data-reveal] {
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal].revealed {
    opacity: 1;
    transform: none !important;
}
[data-reveal="up"] { transform: translateY(36px); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.92); }

/* ======================== ACCESSIBILITY ======================== */
body.tabbing *:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
    .nav { display: none; }
    .header-cta { display: none; }
    .menu-btn { display: flex; }

    .wk-grid { grid-template-columns: 1fr; }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-text { max-width: 100%; }
    .hero-p { margin: 0 auto 28px; }
    .hero-btns { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-img-card { max-width: 320px; }
    .hero-float-badge { left: auto; right: -12px; bottom: 16px; }
    .hero-accent-ring { display: none; }

    .bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "main main"
            "photo badge"
            "photosm feats";
    }

    .doc-card { grid-template-columns: 1fr; }
    .doc-img { min-height: 280px; }

    .appt-wrap { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }

    .stats-row { gap: 16px; }
    .stat-sep { height: 28px; }
}

@media (max-width: 768px) {
    .hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); padding-bottom: 48px; }

    .hero-h1 { font-size: clamp(2rem, 8vw, 3rem); }

    .wk-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .wk-num { font-size: 2rem; }
    .wk-icon { display: none; }

    .tl-line { left: 20px; }
    .tl-dot { width: 40px; height: 40px; }
    .tl-dot span { font-size: 0.9rem; }
    .tl-card { flex-direction: column; }

    .bento {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "photo"
            "badge"
            "photosm"
            "feats";
    }

    .gal-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gal-item.gal-wide { grid-column: span 2; aspect-ratio: 2/1; }

    .svc-card { width: 280px; }

    .mq-card { width: 300px; padding: 22px; }

    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .field-row { grid-template-columns: 1fr; gap: 0; }
    .field-row .field + .field { margin-top: 20px; }
}

@media (max-width: 480px) {
    .hero-img-card { max-width: 260px; }
    .hero-float-badge { display: none; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn-fill,
    .hero-btns .btn-ghost { width: 100%; justify-content: center; }

    .stat-sep { display: none; }
    .stats-row { gap: 12px; }
    .stat { flex: 1; min-width: 80px; }

    .svc-card { width: 260px; padding: 24px 20px; }

    .appt-form { padding: 20px; }

    .gal-grid { grid-template-columns: 1fr; }
    .gal-item.gal-wide { grid-column: span 1; aspect-ratio: 16/9; }
}

/* ======================== PRINT ======================== */
@media print {
    .header, .preloader, .fab-group, .btt, .drawer, .drawer-overlay,
    .hero-dot-grid, .hero-accent-ring, .modal-bg { display: none; }
    body { background: #fff; color: #000; }
    .hero { min-height: auto; padding: 20px 0; }
    .stats-band { background: #f0f0f0; color: #000; }
    .stats-band .stat-num { color: #000; }
    .appointment { background: #f0f0f0; }
    .footer { background: #333; }
}
