/* ==========================================================================
   Kayakriti Design System v2 — UI/UX Pro Max + Motion
   Premium futuristic medical aesthetic
   Typography: Bricolage Grotesque (display) + Instrument Serif (italic accent)
              + Inter Tight (body)
   Palette: Sky Blue (#2D7DD2) + Ink (#0E1E35) + airy surfaces
   ========================================================================== */

:root {
  /* Brand tokens */
  --blue: #2D7DD2;
  --blue-2: #4A9EE8;
  --blue-deep: #1B5FA0;
  --blue-hover: #246BB5;
  --ink: #0E1E35;
  --ink-2: #1A2E4F;
  --ink-3: #243A5E;
  --surface: #EBF3FB;
  --tint: #D6E8F8;
  --tint-2: #C2DDF3;
  --page-bg: #F5F8FD;
  --muted: #5A7A9A;
  --body: #334A68;
  --white: #FFFFFF;
  --line: #E3ECF5;
  --line-2: #D1DEEC;
  --success: #1FA971;
  --warn: #D97706;

  /* Glow / glass */
  --glow-blue: 0 10px 40px -10px rgba(45, 125, 210, 0.45);
  --glow-soft: 0 8px 32px -8px rgba(14, 30, 53, 0.12);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-bd: rgba(255, 255, 255, 0.8);

  /* Premium gradient backgrounds */
  --grad-aurora: radial-gradient(at 20% 0%, #C2DDF3 0px, transparent 50%),
                 radial-gradient(at 80% 0%, #EBF3FB 0px, transparent 50%),
                 radial-gradient(at 0% 50%, #F5F8FD 0px, transparent 50%),
                 radial-gradient(at 80% 100%, #D6E8F8 0px, transparent 50%);
  --grad-blue: linear-gradient(135deg, #2D7DD2 0%, #4A9EE8 100%);
  --grad-ink: linear-gradient(135deg, #0E1E35 0%, #243A5E 100%);
  --grad-mesh: conic-gradient(from 180deg at 50% 50%, #2D7DD2 0deg, #4A9EE8 90deg, #C2DDF3 180deg, #EBF3FB 270deg, #2D7DD2 360deg);

  /* Typography — editorial luxury pairing
     Cormorant Garamond (display + italic accent) — Vogue/Dior-style
     Jost (body, UI) — refined Futura-inspired geometric sans  */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-3xl: 36px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Layout */
  --max: 1200px;
  --nav-h: 72px;
  --mobile-bar-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.18s;
  --t-base: 0.3s;
  --t-slow: 0.6s;
}

/* Respect 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;
  }
}

/* ---------------- Reset ---------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* `overflow-x: clip` (not `hidden`) — clips any descendant that
     overflows horizontally on mobile (decorative blobs, mega-menu
     min-widths, fixed CTAs, etc.) WITHOUT creating a new scrolling
     container. `hidden` would break `position: sticky` on descendants
     like the service-page sidebar; `clip` doesn't. Supported in all
     modern browsers (Chrome 90+, Firefox 81+, Safari 16+). */
  overflow-x: clip;
}
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  color: var(--body);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--blue-hover); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
::selection { background: var(--tint); color: var(--ink); }

/* Focus rings (accessibility) */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------------- Typography (Cormorant editorial luxury) ---------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
h3 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 500; letter-spacing: -0.012em; }
h4 { font-size: 21px; font-weight: 500; font-family: var(--font-display); letter-spacing: -0.005em; }
h5 { font-size: 13px; font-weight: 600; font-family: var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }

.serif {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue);
  font-family: var(--font);
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 2px;
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 680px;
  line-height: 1.6;
  font-weight: 400;
}
.accent { color: var(--blue); }
.ink { color: var(--ink); }

/* ---------------- Layout ---------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-sm { padding: clamp(32px, 5vw, 64px) 0; }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------------- Navbar (floating glass) ---------------- */
.nav {
  position: sticky; top: 12px; z-index: 100;
  margin: 12px 16px 0;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-2xl);
  box-shadow: var(--glow-soft);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.03em;
}
.brand-dot {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad-blue);
  box-shadow: var(--glow-blue);
  display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-size: 16px;
  position: relative;
  overflow: hidden;
}
.brand-dot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
  border-radius: inherit;
}
.nav-links { display: flex; gap: var(--s-5); align-items: center; }
.nav-links a {
  color: var(--body); font-weight: 500; font-size: 15px;
  padding: 8px 0; position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--grad-blue); color: var(--white) !important;
  padding: 12px 22px !important; border-radius: var(--r-pill);
  font-weight: 600 !important; font-size: 14px !important;
  box-shadow: var(--glow-blue);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 50px -10px rgba(45, 125, 210, 0.6);
}
.nav-burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }

/* Dropdown mega menu */
.has-menu { position: relative; }
.has-menu > a::after { content: " ⌄"; color: var(--muted); font-weight: 700; }
.menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px; min-width: 320px;
  box-shadow: 0 20px 60px -10px rgba(14, 30, 53, 0.15);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.has-menu:hover .menu, .has-menu:focus-within .menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 4px 24px; min-width: 480px; }
.menu a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--body); font-size: 14px; font-weight: 500;
}
.menu a:hover { background: var(--surface); color: var(--ink); }
.menu h5 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 8px 12px 8px; font-weight: 700; }

@media (max-width: 960px) {
  .nav { margin: 8px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: calc(var(--nav-h) + 4px); left: 0; right: 0;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 16px 20px; gap: 4px;
    box-shadow: 0 16px 40px -8px rgba(14, 30, 53, 0.15);
  }
  .nav-links.open a { padding: 12px; border-radius: 10px; }
  .nav-links.open a:hover { background: var(--surface); }
  .has-menu .menu { display: none; }
  .nav-links.open .nav-cta { text-align: center; margin-top: 8px; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--r-pill);
  font-family: var(--font);
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: var(--glow-blue);
}
.btn-primary:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 16px 50px -10px rgba(45, 125, 210, 0.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); color: var(--white); transform: translateY(-1px); }
.btn-ghost {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--tint); }
.btn-pill { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-icon {
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: inline-grid; place-items: center;
}
.btn-icon:hover { background: var(--ink-2); transform: translateY(-1px); }

/* ---------------- Cards ---------------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s-5);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.card:hover {
  border-color: var(--tint);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -12px rgba(14, 30, 53, 0.1);
}
.card-flat { background: var(--surface); border-color: transparent; }
.card-flat:hover { background: var(--tint); }
.card-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card-dark h2, .card-dark h3 { color: var(--white); }
.card-link {
  display: flex; flex-direction: column; gap: 10px;
  color: inherit; text-decoration: none;
  cursor: pointer;
}
.card .card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--surface); color: var(--blue);
  display: grid; place-items: center; font-size: 22px;
  transition: transform var(--t-fast) var(--ease);
}
.card:hover .card-icon { transform: scale(1.06) rotate(-3deg); }
.card-flat .card-icon { background: var(--white); }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14px; }
.card-arrow { color: var(--blue); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; transition: gap var(--t-fast) var(--ease); }
.card:hover .card-arrow { gap: 12px; }

/* Glass card */
.card-glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-bd);
  box-shadow: var(--glow-soft);
}

/* ---------------- Pills / badges ---------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--tint); color: var(--blue);
}
.pill-ink { background: var(--ink); color: var(--white); }
.pill-white {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(14, 30, 53, 0.04);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.pill-glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-bd);
  color: var(--ink);
}

/* ---------------- Stat bar ---------------- */
.statbar {
  background: var(--surface); border-radius: var(--r-xl);
  padding: var(--s-5); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
  position: relative;
  overflow: hidden;
}
.statbar::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.4;
}
.statbar > div { text-align: center; }
.statbar strong {
  display: block; color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.statbar span { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .statbar { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Hero (page header) ---------------- */
.page-hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--page-bg) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--tint) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.page-hero h1 { margin-top: 12px; margin-bottom: 16px; position: relative; }
.page-hero .lead { position: relative; }
.breadcrumb { font-size: 13px; color: var(--muted); position: relative; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; opacity: 0.6; }

/* ---------------- Procedure grid ---------------- */
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .proc-grid { grid-template-columns: 1fr; } }
.proc-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  text-decoration: none; color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.proc-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.proc-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -12px rgba(45, 125, 210, 0.18);
  color: inherit;
}
.proc-card:hover::before { transform: scaleX(1); }
.proc-card h4 { color: var(--ink); font-size: 18px; font-weight: 700; }
.proc-card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.proc-card .tag { font-size: 11px; color: var(--blue); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.proc-card .arrow { color: var(--blue); font-weight: 600; font-size: 13px; margin-top: auto; display: flex; align-items: center; gap: 6px; transition: gap var(--t-fast) var(--ease); }
.proc-card:hover .arrow { gap: 10px; }

/* ---------------- Forms ---------------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  min-height: 44px;
  width: 100%; box-sizing: border-box;
}
/* Phone input with +91 prefix */
.tel-wrap { position: relative; display: flex; align-items: center; }
.tel-flag {
  position: absolute; left: 14px;
  font-size: 13px; color: var(--body); pointer-events: none;
  white-space: nowrap; user-select: none; z-index: 1;
}
.tel-wrap input[type="tel"] { padding-left: 68px !important; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 4px var(--tint);
}
/* `minmax(0, 1fr)` — without the 0 floor, content min-width can push the
   columns wider than the form (the `1fr` shorthand is `minmax(auto, 1fr)`,
   and `auto` floor = max content size). */
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field-row > .field { min-width: 0; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.help { font-size: 12px; color: var(--muted); }

/* ---------------- Doctor card ---------------- */
.doctor {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--s-5);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-2xl); padding: var(--s-5);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.doctor:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -12px rgba(14, 30, 53, 0.1);
}
.doctor-photo {
  border-radius: var(--r-xl); aspect-ratio: 1;
  background: var(--grad-aurora);
  display: grid; place-items: center;
  font-size: 72px; color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.doctor h3 { margin-bottom: 4px; }
.doctor .role { color: var(--blue); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.doctor .creds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.doctor .creds .pill { font-size: 11px; padding: 4px 10px; }
.doctor p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
@media (max-width: 700px) { .doctor { grid-template-columns: 1fr; } .doctor-photo { max-width: 160px; } }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--ink); color: var(--white);
  padding: 80px 0 32px;
  margin-top: 96px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.3;
}
.footer h5 { color: var(--white); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.footer a { color: rgba(255,255,255,0.72); font-size: 14px; display: block; padding: 4px 0; transition: color var(--t-fast) var(--ease); }
.footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); margin-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bot {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.footer-bot a { display: inline; color: rgba(255,255,255,0.6); }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; color: var(--white); font-size: 24px; margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.footer-brand .brand-dot { background: var(--grad-blue); }
.footer-tagline { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 18px; max-width: 320px; line-height: 1.6; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 12px; }
.contact-line svg { flex-shrink: 0; opacity: 0.7; margin-top: 3px; }

/* ---------------- Sticky mobile CTA ---------------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  display: none; gap: 10px;
}
.mobile-bar a {
  flex: 1; height: 48px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 700;
  min-height: 44px;
}
.mobile-bar a:first-child { background: var(--surface); color: var(--ink); }
.mobile-bar a:last-child { background: var(--grad-blue); color: var(--white); box-shadow: var(--glow-blue); }
@media (max-width: 720px) { .mobile-bar { display: flex; } body { padding-bottom: calc(var(--mobile-bar-h) + 8px); } }

/* ---------------- Utilities ---------------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.text-center { text-align: center; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; }
.items-center { align-items: center; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--grad-ink); color: var(--white);
  border-radius: var(--r-3xl); padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(45, 125, 210, 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); position: relative; }
.cta-band p { color: rgba(255,255,255,0.78); position: relative; }
.cta-band .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; position: relative; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------------- Two-col layout (service pages) ---------------- */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sidebar {
  position: sticky; top: calc(var(--nav-h) + 32px);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 24px;
  box-shadow: var(--glow-soft);
}
.sidebar h4 { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.sidebar ul li a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--body); font-size: 14px; font-weight: 500;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sidebar ul li a:hover, .sidebar ul li a.active {
  background: var(--surface); color: var(--ink);
}

.prose { max-width: 720px; }
.prose p { color: var(--body); font-size: 16px; margin-bottom: 18px; line-height: 1.75; }
.prose h2 { margin-top: 48px; margin-bottom: 18px; }
.prose h3 { margin-top: 32px; margin-bottom: 14px; }
.prose ul { padding-left: 1.25em; margin-bottom: 18px; list-style: none; }
.prose ul li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--body); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--tint); border: 3px solid var(--blue);
}
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------------- Feature list ---------------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--white);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.feature:hover { transform: translateY(-2px); border-color: var(--tint); box-shadow: var(--glow-soft); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); color: var(--blue);
  display: grid; place-items: center; flex-shrink: 0;
}
.feature h4 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }

/* ---------------- Testimonial ---------------- */
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 32px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute; top: 16px; right: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 80px; color: var(--tint);
  line-height: 1;
  pointer-events: none;
}
.testimonial p { color: var(--ink); font-size: 18px; line-height: 1.6; margin-bottom: 18px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-blue);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.testimonial .name { color: var(--ink); font-weight: 700; font-size: 14px; }
.testimonial .meta { color: var(--muted); font-size: 12px; }

/* ---------------- Animation helpers (Motion-friendly) ---------------- */
.fade-in { animation: fadeIn 0.5s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.slide-in { animation: slideIn 0.35s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Reveal on scroll (used by main.js with IntersectionObserver) */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }

/* Floating animation */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float { animation: floaty 6s ease-in-out infinite; }

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 125, 210, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(45, 125, 210, 0); }
}
.pulse-glow { animation: pulseGlow 2.4s ease-in-out infinite; }

/* Aurora background helper */
.bg-aurora {
  background: var(--grad-aurora);
}

/* Spin slow */
@keyframes spin-slow { to { transform: rotate(360deg); } }
.spin-slow { animation: spin-slow 24s linear infinite; }
