/* ============================================================
   AURELIA DENTAL — Premium Design System
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Light theme */
  --bg: #F5F9FD;
  --bg-2: #EAF2FB;
  --surface: #FFFFFF;
  --surface-2: #F7FAFE;
  --ink: #10202E;
  --ink-soft: #2C3E4E;
  --muted: #5E7185;
  --border: #E4ECF4;
  --border-strong: #D2DFEC;
  --primary: #2E7BD2;
  --primary-600: #1F62B4;
  --primary-700: #17508F;
  --primary-soft: #E8F2FC;
  --primary-tint: #F1F7FD;
  --accent: #34C2B0;
  --accent-soft: #E4F7F4;
  --whatsapp: #25D366;
  --whatsapp-600: #1EAE56;
  --danger: #E5533D;
  --star: #F5B441;

  --shadow-sm: 0 2px 8px rgba(20, 45, 75, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 45, 75, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 45, 75, 0.16);
  --shadow-primary: 0 12px 30px rgba(46, 123, 210, 0.28);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --container: 1200px;
  --header-h: 76px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --hero-grad: linear-gradient(135deg, #dcebfa 0%, #eaf3fb 40%, #e6f6f3 100%);
}

[data-theme="dark"] {
  --bg: #0A121B;
  --bg-2: #0E1926;
  --surface: #111F2C;
  --surface-2: #16283A;
  --ink: #EAF2FA;
  --ink-soft: #CBDBE9;
  --muted: #93A6B7;
  --border: #223442;
  --border-strong: #2C4152;
  --primary: #5AA2EA;
  --primary-600: #7CB8F1;
  --primary-700: #A6D0F7;
  --primary-soft: #14293D;
  --primary-tint: #0F2334;
  --accent: #45D3C1;
  --accent-soft: #102E32;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.55);
  --shadow-primary: 0 14px 34px rgba(30, 90, 165, 0.45);
  --hero-grad: linear-gradient(135deg, #0e2032 0%, #0c1a28 45%, #0b2029 100%);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; }
ul { list-style: none; }

::selection { background: var(--primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.display { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.02em; }
.h-section { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 660px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head .lead { margin-top: 16px; }
.text-center { text-align: center; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: 0.96rem;
  position: relative; overflow: hidden; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(46, 123, 210, 0.40); background: var(--primary-600); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  transform: translateX(-130%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-md); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.30); }
.btn-whatsapp:hover { transform: translateY(-3px); background: var(--whatsapp-600); box-shadow: 0 18px 40px rgba(37, 211, 102, 0.42); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { transform: translateY(-3px); background: var(--primary); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; letter-spacing: -0.01em; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); overflow: hidden; flex: none;
  border: 1px solid var(--border);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand small { display: block; font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: -2px; }
.brand-name { line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 100px; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft);
  position: relative; transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-tint); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s;
  position: relative;
}
.icon-btn:hover { transform: translateY(-2px); color: var(--primary); border-color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--primary); color: #fff; border-radius: 100px; font-size: 0.68rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--surface);
  transform: scale(0); transition: transform 0.35s var(--ease);
}
.cart-count.show { transform: scale(1); }

/* theme toggle */
.theme-toggle { overflow: hidden; }
.theme-toggle svg { transition: transform 0.5s var(--ease), opacity 0.3s; position: absolute; }
.theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.theme-toggle .moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .moon { opacity: 0; transform: rotate(90deg) scale(0.4); }

.hamburger { display: none; }
.nav-cta { display: inline-flex; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100; background: var(--surface);
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column; padding: 24px; visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-links { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.mobile-links a {
  font-family: var(--font-display); font-size: 1.5rem; padding: 14px 8px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; color: var(--ink);
  opacity: 0; transform: translateX(20px);
}
.mobile-links a svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform 0.3s var(--ease); }
.mobile-links a:active svg, .mobile-links a:hover svg { transform: translateX(5px); color: var(--primary); }
.mobile-links a.active { color: var(--primary); }
.mobile-menu.open .mobile-links a { animation: slideIn 0.5s var(--ease) forwards; }
.mobile-menu.open .mobile-links a:nth-child(1) { animation-delay: 0.06s; }
.mobile-menu.open .mobile-links a:nth-child(2) { animation-delay: 0.12s; }
.mobile-menu.open .mobile-links a:nth-child(3) { animation-delay: 0.18s; }
.mobile-menu.open .mobile-links a:nth-child(4) { animation-delay: 0.24s; }
.mobile-menu.open .mobile-links a:nth-child(5) { animation-delay: 0.30s; }
.mobile-menu.open .mobile-links a:nth-child(6) { animation-delay: 0.36s; }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }
.mobile-menu-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--hero-grad); }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.loaded { opacity: 1; }
.hero-vid-mobile { display: none; }
@media (max-width: 700px) {
  .hero-vid-desktop { display: none; }
  .hero-vid-mobile { display: block; }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(247,251,253,0.94) 0%, rgba(247,251,253,0.78) 42%, rgba(247,251,253,0.30) 72%, rgba(247,251,253,0.05) 100%);
}
[data-theme="dark"] .hero-overlay {
  background: linear-gradient(105deg, rgba(10,18,27,0.95) 0%, rgba(10,18,27,0.82) 44%, rgba(10,18,27,0.42) 74%, rgba(10,18,27,0.10) 100%);
}
.hero-inner { max-width: 680px; padding: 40px 0; }
.hero h1 { margin: 20px 0 22px; }
.hero .lead { max-width: 540px; font-size: clamp(1.02rem, 1.7vw, 1.22rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 42px; }
.hero-trust .stat strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--primary); display: block; line-height: 1; }
.hero-trust .stat span { font-size: 0.82rem; color: var(--muted); }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--primary); border-radius: 3px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } 100% { opacity: 0; } }

/* ---------- Video block ---------- */
.video-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--hero-grad); box-shadow: var(--shadow-lg); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1s var(--ease); }
.video-frame video.loaded { opacity: 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

/* Feature (why choose) */
.features { grid-template-columns: repeat(4, 1fr); }
.feature { padding: 30px 26px; text-align: left; }
.feature .fi { width: 54px; height: 54px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; transition: transform 0.4s var(--ease); }
.feature:hover .fi { transform: scale(1.08) rotate(-4deg); }
.feature .fi svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { font-size: 0.92rem; color: var(--muted); }

/* Service cards */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { overflow: hidden; display: flex; flex-direction: column; }
.service-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--hero-grad); }
.service-media video, .service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.service-card:hover .service-media video, .service-card:hover .service-media img { transform: scale(1.07); }
.service-media .badge-ico { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--primary); box-shadow: var(--shadow-sm); }
.service-media .badge-ico svg { width: 22px; height: 22px; }
.service-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 1.22rem; margin-bottom: 9px; }
.service-body p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.service-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--primary); font-size: 0.92rem; }
.service-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.service-card:hover .service-link svg { transform: translateX(5px); }

/* icon-only service list (services page has many) */
.svc-mini { grid-template-columns: repeat(3, 1fr); }
.svc-mini-item { padding: 26px 24px; display: flex; gap: 16px; align-items: flex-start; }
.svc-mini-item .fi { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.svc-mini-item .fi svg { width: 24px; height: 24px; }
.svc-mini-item h4 { font-size: 1.05rem; margin-bottom: 5px; }
.svc-mini-item p { font-size: 0.86rem; color: var(--muted); }

/* ---------- Doctor ---------- */
.doctor-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.doctor-photo-wrap { position: relative; }
.doctor-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5; background: var(--bg-2); z-index: 2;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctor-photo-wrap::before {
  content: ""; position: absolute; inset: -22px -22px 44px 44px; border-radius: var(--radius-lg);
  background: url("../assets/images/frame.jpeg") center/cover; z-index: 1;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .doctor-photo-wrap::before { opacity: 0.55; mix-blend-mode: screen; }
.doctor-badge {
  position: absolute; z-index: 3; bottom: 22px; left: -18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.doctor-badge .di { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.doctor-badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.doctor-badge span { font-size: 0.78rem; color: var(--muted); }
.qual-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.qual { padding: 8px 16px; border-radius: 100px; background: var(--primary-soft); color: var(--primary-600); font-weight: 600; font-size: 0.86rem; border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.doctor-points { display: grid; gap: 14px; margin-top: 22px; }
.doctor-point { display: flex; gap: 13px; align-items: flex-start; }
.doctor-point .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; margin-top: 2px; }
.doctor-point .ck svg { width: 15px; height: 15px; }
.doctor-point p { font-size: 0.95rem; }
.doctor-point strong { color: var(--ink); }

/* ---------- Store / Products ---------- */
.store-grid { grid-template-columns: repeat(3, 1fr); }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-media { aspect-ratio: 1/1; overflow: hidden; background: var(--surface-2); position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-tag { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.product-body h3 { font-size: 1.12rem; margin: 6px 0 6px; font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; }
.product-body .pdesc { font-size: 0.85rem; color: var(--muted); flex: 1; }
.product-rating { display: flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--star); font-size: 0.82rem; }
.product-rating span { color: var(--muted); margin-left: 4px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 12px; }
.price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.price small { font-size: 0.8rem; color: var(--muted); font-family: var(--font-sans); font-weight: 500; }
.qty { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 100px; overflow: hidden; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-soft); transition: background 0.2s, color 0.2s; }
.qty button:hover { background: var(--primary-soft); color: var(--primary); }
.qty input { width: 34px; text-align: center; border: none; background: transparent; color: var(--ink); font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.add-cart { margin-top: 14px; }

/* ---------- Cart Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 25, 40, 0.5); z-index: 1190; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface);
  z-index: 1200; transform: translateX(100%); transition: transform 0.5s var(--ease); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.cart-head h3 { font-size: 1.3rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty svg { width: 60px; height: 60px; margin: 0 auto 16px; opacity: 0.5; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); animation: fadeUp 0.4s var(--ease); }
.cart-item img { width: 66px; height: 66px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item h4 { font-size: 0.92rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: 3px; }
.cart-item .ci-price { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.cart-item .ci-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ci-remove { color: var(--muted); font-size: 0.78rem; display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s; }
.ci-remove:hover { color: var(--danger); }
.cart-foot { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-total .price { font-size: 1.6rem; }
.qty.small button { width: 28px; height: 28px; }
.qty.small input { width: 30px; }

/* ---------- Modal (auth / checkout / success) ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s; }
.modal-wrap.show { opacity: 1; visibility: visible; }
.modal-wrap::before { content: ""; position: absolute; inset: 0; background: rgba(10, 25, 40, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal {
  position: relative; background: var(--surface); border-radius: var(--radius-lg); width: min(460px, 100%);
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  transform: translateY(24px) scale(0.97); transition: transform 0.4s var(--ease); padding: 34px 32px;
}
.modal-wrap.show .modal { transform: translateY(0) scale(1); }
.modal-wide { width: min(560px, 100%); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: background 0.2s, color 0.2s; }
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal h2 { font-size: 1.7rem; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 100px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: 100px; font-weight: 600; font-size: 0.9rem; color: var(--muted); transition: all 0.3s var(--ease); }
.auth-tabs button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field .req { color: var(--danger); }
.control {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--ink); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.control::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.control.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
textarea.control { resize: vertical; min-height: 110px; }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235E7185' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.err-msg { color: var(--danger); font-size: 0.78rem; margin-top: 5px; display: none; }
.field.error .err-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.input-icon .control { padding-left: 44px; }

/* Payment methods */
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.pay-opt { position: relative; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt label {
  display: flex; align-items: center; gap: 11px; padding: 14px 15px; border: 1.5px solid var(--border-strong);
  border-radius: 13px; cursor: pointer; transition: all 0.25s var(--ease); font-weight: 600; font-size: 0.9rem; height: 100%;
}
.pay-opt .pay-badge { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; color: #fff; flex: none; letter-spacing: -0.02em; text-align: center; line-height: 1; }
.pay-opt label small { display: block; font-weight: 500; color: var(--muted); font-size: 0.74rem; }
.pay-opt input:checked + label { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 3px var(--primary-soft); }
.pay-opt input:focus-visible + label { box-shadow: 0 0 0 3px var(--primary-soft); }

/* Success state */
.success-state { text-align: center; padding: 12px 6px; }
.success-check { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 22px; }
.success-check svg { width: 44px; height: 44px; color: var(--accent); }
.success-check .circle { stroke-dasharray: 166; stroke-dashoffset: 166; animation: draw 0.6s var(--ease) forwards; }
.success-check .tick { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.4s 0.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-state h2 { margin-bottom: 10px; }
.success-state p { color: var(--muted); margin-bottom: 8px; }
.success-summary { background: var(--surface-2); border-radius: 14px; padding: 16px 18px; margin: 20px 0; text-align: left; font-size: 0.9rem; }
.success-summary .row { display: flex; justify-content: space-between; padding: 4px 0; }
.success-summary .row strong { color: var(--ink); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 60px) 0 60px; overflow: hidden; background: var(--hero-grad); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--bg)); opacity: 0.6; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-inner { max-width: 720px; }
.page-hero h1 { margin: 18px 0 16px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band .cta-media { position: absolute; inset: 0; z-index: -2; background: var(--hero-grad); }
.cta-band .cta-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.cta-band .cta-media video.loaded { opacity: 1; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(31,98,180,0.92), rgba(23,80,143,0.86)); }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { opacity: 0.9; max-width: 560px; margin: 14px auto 0; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--primary-600); border-color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--primary-600); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.cta-band .btn-primary:hover { background: #fff; color: var(--primary-700); }

/* ---------- Split content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-list { display: grid; gap: 16px; margin-top: 24px; }
.split-list li { display: flex; gap: 12px; align-items: flex-start; }
.split-list .ck { width: 24px; height: 24px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; margin-top: 3px; }
.split-list .ck svg { width: 14px; height: 14px; }

/* ---------- Stats strip ---------- */
.stats-strip { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-box { padding: 30px 18px; }
.stat-box strong { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--primary); display: block; line-height: 1; }
.stat-box span { color: var(--muted); font-size: 0.88rem; margin-top: 8px; display: block; }

/* ---------- Info cards (patient friendly) ---------- */
.info-grid { grid-template-columns: repeat(3, 1fr); }
.info-card { padding: 28px 26px; }
.info-card .ii { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.info-card .ii svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.info-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 50px); align-items: start; }
.contact-info-card { padding: 30px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ci { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.contact-line .ci svg { width: 22px; height: 22px; }
.contact-line strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 3px; }
.contact-line a, .contact-line span { color: var(--ink); font-weight: 500; }
.contact-line a:hover { color: var(--primary); }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 20px; border: 1px solid var(--border); aspect-ratio: 16/10; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: clamp(50px, 7vw, 80px) 0 30px; margin-top: 40px; }
[data-theme="dark"] .site-footer { background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--ink-soft); font-size: 0.94rem; transition: color 0.2s, padding 0.2s; }
.footer-col a:hover { color: var(--primary); padding-left: 4px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink-soft); transition: all 0.3s var(--ease); }
.social-row a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); border-color: var(--primary); }
.social-row svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.footer-bottom .disclaimer { max-width: 620px; font-size: 0.78rem; opacity: 0.85; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.42);
  transition: transform 0.4s var(--ease); animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float .wa-tip { position: absolute; right: 70px; white-space: nowrap; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; box-shadow: var(--shadow-md); opacity: 0; transform: translateX(10px); transition: all 0.3s var(--ease); pointer-events: none; border: 1px solid var(--border); }
.wa-float:hover .wa-tip { opacity: 1; transform: translateX(0); }
@keyframes waPulse { 0% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.42), 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.42), 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.42), 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* page load fade */
.page-fade { animation: pageIn 0.6s var(--ease); }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; z-index: -1; pointer-events: none; }
.blob-1 { width: 380px; height: 380px; background: var(--primary-soft); top: -80px; right: -80px; }
.blob-2 { width: 300px; height: 300px; background: var(--accent-soft); bottom: -60px; left: -60px; }

/* Toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120%); z-index: 1400; background: var(--ink); color: var(--bg); padding: 13px 22px; border-radius: 100px; font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; transition: transform 0.45s var(--ease); }
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--accent); }

/* Loader */
.page-loader { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: grid; place-items: center; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.page-loader.hide { opacity: 0; visibility: hidden; }
.loader-mark { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader-mark img { width: 60px; height: 60px; border-radius: 16px; animation: loaderPulse 1.4s var(--ease) infinite; }
.loader-bar { width: 140px; height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--primary); border-radius: 4px; animation: loaderSlide 1.2s var(--ease) infinite; }
@keyframes loaderPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes loaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .store-grid, .svc-mini, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: grid; }
  .doctor-split { grid-template-columns: 1fr; }
  .doctor-photo-wrap { max-width: 420px; margin: 0 auto; }
  .doctor-badge { left: 10px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid, .store-grid, .svc-mini, .features, .info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
  .hero-trust { gap: 20px; }
  .hero-cta .btn { flex: 1; min-width: 0; }
  .modal { padding: 26px 22px; }
  .cta-band { padding: 40px 24px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 27px; height: 27px; }
  .stat-box { padding: 18px 10px; }
}
@media (max-width: 420px) {
  .hero-trust { gap: 14px; }
  .hero-trust .stat strong { font-size: 1.4rem; }
  .brand small { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
  .hero-media video { display: none; }
}
