/* ==========================================================================
   Medical Diagnostic Services Inc (MDS X-Ray)
   Static site stylesheet — healthcare / accessible theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Noto+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette (healthcare) */
  --primary: #0891b2;        /* cyan-600 */
  --primary-dark: #0e6f8a;
  --primary-darker: #164e63; /* cyan-900 (text) */
  --secondary: #22d3ee;      /* cyan-400 */
  --cta: #16a34a;            /* green-600 */
  --cta-dark: #15803d;
  --bg: #ffffff;
  --bg-soft: #ecfeff;        /* cyan-50 */
  --bg-muted: #f1f5f9;       /* slate-100 */
  --text: #164e63;
  --text-body: #334155;      /* slate-700 */
  --text-muted: #64748b;     /* slate-500 */
  --border: #e2e8f0;         /* slate-200 */
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(8, 145, 178, .25);
  --shadow-lg: 0 24px 60px -20px rgba(8, 145, 178, .35);
  --maxw: 1200px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5 {
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--muted { background: var(--bg-muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-body); max-width: 720px; }
.center .lead { margin-inline: auto; }
.grid { display: grid; gap: 28px; }
.eyebrow {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Figtree', sans-serif; font-weight: 600;
  padding: 13px 26px; border-radius: 999px;
  cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  font-size: 1rem; line-height: 1; text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary-darker); }
.btn-white:hover { background: var(--bg-soft); color: var(--primary-darker); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--primary-darker); color: #cdeef6;
  font-size: .88rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #e0f7fd; }
.topbar a:hover { color: #fff; }
.topbar .topbar-group { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.topbar .stat { display: inline-flex; align-items: center; gap: 7px; }
.topbar .badge { background: var(--cta); color: #fff; font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .76rem; letter-spacing: .04em; }
.topbar svg { width: 15px; height: 15px; flex: none; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 60px; width: auto; display: block; }
.brand .brand-fallback {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Figtree', sans-serif; font-weight: 800; color: var(--text);
  font-size: 1.18rem; letter-spacing: -.01em;
}
.brand .brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.brand .brand-mark svg { width: 25px; height: 25px; }
.brand .brand-text small { display: block; font-family: 'Noto Sans', sans-serif; font-weight: 500; font-size: .68rem; letter-spacing: .12em; color: var(--text-muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  font-family: 'Figtree', sans-serif; font-weight: 600; font-size: .98rem;
  color: var(--text); padding: 10px 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a.nav-link:hover { background: var(--bg-soft); color: var(--primary-dark); }
.nav-links a.nav-link.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Dropdown */
.has-dropdown > .nav-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover > .nav-link svg { transform: rotate(180deg); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-family: 'Figtree', sans-serif; font-weight: 600; color: var(--text); font-size: .95rem; }
.dropdown a:hover { background: var(--bg-soft); color: var(--primary-dark); }

/* Mobile toggle */
.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: 8px;
  border-radius: 8px; color: var(--text);
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(34,211,238,.20), transparent 60%),
    linear-gradient(160deg, #f6feff 0%, #ecfeff 45%, #e0f6fb 100%);
}
.hero::before { /* drifting glow blob */
  content: ''; position: absolute; top: -160px; right: -140px; width: 520px; height: 520px; z-index: 1;
  background: radial-gradient(circle at 30% 30%, rgba(8,145,178,.20), transparent 70%); border-radius: 50%;
  animation: heroBlob 16s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -180px; left: -120px; width: 440px; height: 440px; z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.18), transparent 70%); border-radius: 50%;
  animation: heroBlob 19s ease-in-out infinite reverse;
}
/* lightweight animated background layer */
.hero-deco { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-deco .shape { position: absolute; border-radius: 50%; filter: blur(6px); will-change: transform; }
.hero-deco .shape-1 { width: 86px; height: 86px; left: 6%; top: 26%; background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.55), transparent 72%); animation: heroFloat 9s ease-in-out infinite; }
.hero-deco .shape-2 { width: 54px; height: 54px; left: 16%; bottom: 18%; background: radial-gradient(circle at 30% 30%, rgba(22,163,74,.40), transparent 72%); animation: heroFloat 11s ease-in-out infinite 1s; }
.hero-deco .shape-3 { width: 120px; height: 120px; right: 8%; bottom: 12%; background: radial-gradient(circle at 30% 30%, rgba(8,145,178,.28), transparent 72%); animation: heroFloat 13s ease-in-out infinite .5s; }
.hero-deco .shape-4 { width: 40px; height: 40px; right: 22%; top: 18%; background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.45), transparent 72%); animation: heroFloat 8s ease-in-out infinite 2s; }
.hero-deco .shape-5 { width: 70px; height: 70px; left: 38%; top: 10%; background: radial-gradient(circle at 30% 30%, rgba(22,163,74,.30), transparent 72%); animation: heroFloat 12s ease-in-out infinite 1.5s; }
.hero-deco .shape-6 { width: 100px; height: 100px; left: 30%; bottom: 6%; background: radial-gradient(circle at 30% 30%, rgba(8,145,178,.22), transparent 72%); animation: heroFloat 14s ease-in-out infinite .8s; }

/* Floating glass icon bubbles in the outer hero gutters (wide screens) */
.hero-bubbles { display: none; }
.bubble {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px; color: var(--primary);
  background: rgba(255,255,255,.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 26px -12px rgba(8,49,68,.4);
}
.bubble svg { width: 22px; height: 22px; }
.bubble-1 { left: 12px; top: 30%; }
.bubble-2 { left: 12px; bottom: 20%; color: var(--cta); }
.bubble-3 { right: 12px; top: 24%; color: var(--secondary); }
/* show once the centered container leaves a real edge gutter for the bubbles */
@media (min-width: 1280px) { .hero-bubbles { display: block; } }
.hero-deco .hero-grid-lines {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(8,145,178,.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 60%);
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 60%);
  opacity: .5;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; padding: 84px 0 90px; }
.hero h1 .grad {
  background: linear-gradient(115deg, var(--primary) 10%, #0ea5c4 50%, var(--secondary) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .hero-rotate {
  display: inline-block; min-height: 1.18em;
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,.7,.25,1);
  will-change: opacity, transform;
}
.hero h1 .hero-rotate.is-out { opacity: 0; transform: translateY(14px); }
.hero p { font-size: 1.18rem; max-width: 560px; color: var(--text-body); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px 34px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(8,145,178,.18); }
.hero-trust .stat b { font-family: 'Figtree', sans-serif; font-size: 1.8rem; color: var(--primary); display: block; line-height: 1; }
.hero-trust .stat span { font-size: .9rem; color: var(--text-muted); }

/* Layered image hero with 3D parallax stage */
.hero-visual { position: relative; padding: 10px 18px; perspective: 1100px; }
.hero-stage {
  position: relative; transform-style: preserve-3d; will-change: transform;
  transition: transform .35s cubic-bezier(.22,.7,.25,1);
}
.hero-frame {
  position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 6; animation: heroFloatMain 10s ease-in-out infinite;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s ease; }
.hero-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,49,68,0) 45%, rgba(8,49,68,.50) 100%); }
.hero-visual:hover .hero-frame img { transform: scale(1.05); }
.hero-mini {
  position: absolute; left: -10px; bottom: 54px; width: 168px; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 5px solid #fff; background: #fff; z-index: 3;
}
.hero-mini img { width: 100%; height: 124px; object-fit: cover; display: block; }
.float-badge {
  position: absolute; right: -6px; top: 30px; z-index: 3; background: #fff; color: var(--text);
  padding: 13px 17px; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center;
}
.float-badge .fb-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--cta); color: #fff; flex: none; }
.float-badge .fb-ico svg { width: 23px; height: 23px; }
.float-badge b { font-family: 'Figtree', sans-serif; font-size: 1.04rem; display: block; line-height: 1.1; color: var(--text); }
.float-badge small { color: var(--text-muted); font-size: .8rem; }
/* small labeled chips floating over the hero image */
.float-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px;
  padding: 8px 13px 8px 8px; border-radius: 13px; font-size: .82rem; font-weight: 700;
  font-family: 'Figtree', sans-serif; color: var(--text); white-space: nowrap;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px -12px rgba(8,49,68,.45); border: 1px solid rgba(255,255,255,.9);
}
.float-chip .fc-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(8,145,178,.12); color: var(--primary); flex: none; }
.float-chip .fc-ico.fc-ico-pulse { background: rgba(22,163,74,.14); color: var(--cta); }
.float-chip .fc-ico svg { width: 17px; height: 17px; }
.float-chip-tl { left: -22px; top: 38%; }
.float-chip-br { right: -16px; bottom: 70px; }

/* depth float layers (translateZ gives parallax against stage tilt) */
.float-1 { animation: heroFloatA 6.5s ease-in-out infinite; }
.float-2 { animation: heroFloatB 8s ease-in-out infinite; }

/* ---------- Hero entrance + motion ---------- */
.hero-a { animation: heroFadeUp .85s cubic-bezier(.22,.7,.25,1) both; }
.hero-a-1 { animation-delay: .06s; }
.hero-a-2 { animation-delay: .16s; }
.hero-a-3 { animation-delay: .30s; }
.hero-a-4 { animation-delay: .44s; }
.hero-a-5 { animation-delay: .56s; }
.hero-a-6 { animation-delay: .64s; }
.hero-a-7 { animation-delay: .72s; }
.hero-a-8 { animation-delay: .80s; }
.hero-a-visual { animation: heroScaleIn 1.05s cubic-bezier(.22,.7,.25,1) both; animation-delay: .22s; }

/* premium CTA hover (hero only) */
.btn-cta { position: relative; overflow: hidden; }
.btn-cta::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -130%; width: 55%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-22deg); transition: left .65s ease; pointer-events: none;
}
.btn-cta:hover::before { left: 150%; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(22,163,74,.6); }
.btn-cta svg { transition: transform .25s ease; }
.btn-cta:hover svg { transform: translateX(4px); }

@keyframes heroFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes heroScaleIn { from { opacity: 0; transform: scale(.92) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroFloatMain { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes heroFloatA { 0%, 100% { transform: translate3d(0, 0, 26px); } 50% { transform: translate3d(0, -12px, 26px); } }
@keyframes heroFloatB { 0%, 100% { transform: translate3d(0, 0, 16px); } 50% { transform: translate3d(0, 11px, 16px); } }
@keyframes heroFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -22px); } }
@keyframes heroBlob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(28px, 22px) scale(1.08); } }

/* ---------- Section heading ---------- */
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Cards: services ---------- */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: #c7eef7; transform: translateY(-6px); }
.card .card-media { position: relative; height: 198px; overflow: hidden; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card .card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,49,68,0) 50%, rgba(8,49,68,.42)); }
.card .card-ico {
  position: absolute; left: 22px; bottom: -28px; z-index: 2; margin: 0;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px;
  background: #fff; color: var(--primary); box-shadow: var(--shadow);
}
.card .card-ico svg { width: 30px; height: 30px; }
.card .card-body { padding: 42px 26px 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: .98rem; }
.card .card-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-family: 'Figtree', sans-serif; font-weight: 600; font-size: .95rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Feature list (advantages) ---------- */
.features { grid-template-columns: repeat(3, 1fr); }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .f-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: var(--bg-soft); color: var(--primary); flex: none; }
.feature .f-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { color: var(--text-muted); font-size: .96rem; margin: 0; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--cta); flex: none; margin-top: 3px; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media {
  position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  min-height: 400px; background: linear-gradient(150deg, var(--primary), var(--primary-darker));
}
.split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.split .media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8,49,68,.10) 30%, rgba(8,49,68,.55)); }
.split .media:hover img { transform: scale(1.05); }
.split .media .media-badge {
  position: absolute; left: 22px; bottom: 22px; z-index: 2; display: flex; gap: 13px; align-items: center;
  background: rgba(255,255,255,.93); backdrop-filter: blur(6px); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
}
.split .media .media-badge .mb-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--cta); color: #fff; flex: none; }
.split .media .media-badge .mb-ico svg { width: 24px; height: 24px; }
.split .media .media-badge b { font-family: 'Figtree', sans-serif; font-size: 1.7rem; color: var(--primary); display: block; line-height: 1; }
.split .media .media-badge span { font-size: .85rem; color: var(--text-muted); }
/* legacy centered stat (kept as fallback) */
.split .media .media-stat { position: relative; z-index: 2; display: grid; place-items: center; height: 100%; min-height: 400px; text-align: center; color: #fff; font-family: 'Figtree', sans-serif; }
.split .media .media-stat b { font-size: clamp(2.6rem, 6vw, 4rem); display: block; line-height: 1; }
.split .media .media-stat span { font-size: 1.05rem; color: #cdeff7; }

/* ---------- Service detail blocks ---------- */
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 18px 0; }
.svc-block:nth-child(even) .svc-text { order: 2; }
.svc-block .svc-visual {
  position: relative; border-radius: 20px; overflow: hidden; min-height: 360px; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--bg-soft), #cdeff7);
  display: grid; place-items: center; color: var(--primary);
}
.svc-block .svc-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.svc-block .svc-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8,49,68,0) 55%, rgba(8,49,68,.3)); }
.svc-block .svc-visual:hover img { transform: scale(1.05); }
.svc-block .svc-visual svg { position: relative; z-index: 1; width: 96px; height: 96px; opacity: .85; }
.svc-block .svc-text .svc-tag { color: var(--primary); font-weight: 700; font-family: 'Figtree', sans-serif; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }
.svc-divider { height: 1px; background: var(--border); margin: 56px 0; border: 0; }

/* ---------- Hero brand name ---------- */
.hero-brand {
  font-family: 'Figtree', sans-serif; font-weight: 800; color: var(--text);
  font-size: 1.12rem; letter-spacing: .01em; line-height: 1.2; margin: 0 0 8px;
}

/* ---------- State pills ---------- */
.state-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; margin: 24px 0; }
.state-pills li {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border); color: var(--text);
  font-family: 'Figtree', sans-serif; font-weight: 600; font-size: .95rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.state-pills li:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c7eef7; }
.state-pills svg { width: 16px; height: 16px; color: var(--primary); flex: none; }

/* ---------- Order tracking timeline ---------- */
.track { max-width: 720px; margin: 0 auto; }
.track-step { display: flex; gap: 20px; align-items: flex-start; position: relative; padding-bottom: 30px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before {
  content: ''; position: absolute; left: 23px; top: 50px; bottom: -2px; width: 2px;
  background: linear-gradient(var(--cta), var(--secondary));
}
.track-step:last-child::before { display: none; }
.track-step .ts-node {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--cta); color: #fff; flex: none; box-shadow: var(--shadow); position: relative; z-index: 1;
}
.track-step .ts-node svg { width: 24px; height: 24px; }
.track-step .ts-body { padding-top: 9px; }
.track-step .ts-body h3 { margin: 0 0 2px; font-size: 1.12rem; }
.track-step .ts-body p { margin: 0; color: var(--text-muted); font-size: .96rem; }
.track-note { text-align: center; margin-top: 40px; font-family: 'Figtree', sans-serif; font-weight: 700; color: var(--primary); letter-spacing: .02em; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(34,211,238,.30), transparent 60%),
    linear-gradient(150deg, var(--primary), var(--primary-darker));
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d4f3fb; font-size: 1.15rem; max-width: 640px; }
.cta-band .hero-cta { margin-top: 26px; }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-grid > div { display: flex; flex-direction: column; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.info-row { display: flex; gap: 15px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--border); }
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row .i-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); color: var(--primary); flex: none; }
.info-row .i-ico svg { width: 23px; height: 23px; }
.info-row h4 { margin: 0 0 3px; font-family: 'Figtree', sans-serif; font-size: 1.02rem; color: var(--text); }
.info-row p { margin: 0; color: var(--text-muted); font-size: .98rem; }
.info-row a { color: var(--text-body); }
.info-row a:hover { color: var(--primary); }

.locations { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.loc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.loc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.loc-card .loc-state { display: inline-flex; align-items: center; gap: 7px; font-family: 'Figtree', sans-serif; font-weight: 700; color: var(--primary); letter-spacing: .05em; text-transform: uppercase; font-size: .85rem; margin-bottom: 10px; }
.loc-card .loc-state svg { width: 17px; height: 17px; }
.loc-card address { font-style: normal; color: var(--text-body); line-height: 1.6; }
.loc-card .loc-phone { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-family: 'Figtree', sans-serif; font-weight: 700; color: var(--text); }
.loc-card .loc-phone svg { width: 17px; height: 17px; color: var(--cta); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 380px; flex: 1; border-radius: var(--radius); box-shadow: var(--shadow-sm); filter: saturate(1.05); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 80% -20%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(160deg, var(--primary-darker), var(--primary));
  color: #fff; padding: 72px 0 66px;
}
.page-hero .ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d4f3fb; max-width: 640px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: #a5e8f5; margin-bottom: 16px; }
.breadcrumb a { color: #d4f3fb; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 15px; height: 15px; }

/* ---------- Footer ---------- */
.footer { background: var(--primary-darker); color: #b9e6f1; padding: 60px 0 0; }
.footer a { color: #cdeef6; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; font-family: 'Figtree', sans-serif; }
.footer .f-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer .f-brand .brand-mark { width: 42px; height: 42px; }
.footer .f-brand .brand-fallback { color: #fff; }
.footer .f-brand .brand-text small { color: #8fcfdf; }
.footer .f-logo { background: #fff; border-radius: 14px; padding: 12px 14px; display: inline-flex; box-shadow: var(--shadow-sm); }
.footer .f-logo img { height: 82px; width: auto; display: block; }
.footer p { color: #9fd4e2; font-size: .95rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: .96rem; }
.footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer .f-contact svg { width: 18px; height: 18px; color: var(--secondary); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: .9rem; color: #8fcfdf; }
.footer-bottom .f-badges { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.7,.25,1), transform .7s cubic-bezier(.22,.7,.25,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* directional variants use vertical motion to avoid any horizontal overflow */
.reveal-left, .reveal-right { transform: translateY(30px); }
.reveal-scale { transform: scale(.94); }
.reveal-left.in, .reveal-right.in, .reveal-scale.in { transform: none; }
/* staggered children */
.stagger > .reveal:nth-child(1) { transition-delay: .05s; }
.stagger > .reveal:nth-child(2) { transition-delay: .13s; }
.stagger > .reveal:nth-child(3) { transition-delay: .21s; }
.stagger > .reveal:nth-child(4) { transition-delay: .29s; }
.stagger > .reveal:nth-child(5) { transition-delay: .37s; }
.stagger > .reveal:nth-child(6) { transition-delay: .45s; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--primary-darker); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px 18px 22px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.nav-link { padding: 13px 12px; border-radius: 10px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--bg-soft); border-radius: 0; margin: 2px 0 6px 14px; padding: 2px 0; }
  .has-dropdown:hover > .nav-link svg { transform: none; }
  .nav-actions .btn-hide-sm { display: none; }
  .hero-visual { padding: 0; width: 100%; max-width: 480px; margin: 0 auto; perspective: none; }
  .hero-stage { transform: none !important; }
  .hero-mini { display: none; }
  .float-badge { right: 12px; top: 12px; padding: 10px 13px; }
  .float-badge .fb-ico { width: 36px; height: 36px; }
  .float-badge b { font-size: .95rem; }
  .float-chip { display: none; }
  /* flatten 3D depth on touch to avoid any overflow */
  .float-1 { animation: heroFloatMain 6.5s ease-in-out infinite; }
  .hero-deco .shape-2, .hero-deco .shape-4 { display: none; }
  .split, .svc-block, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-block:nth-child(even) .svc-text { order: 0; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .locations { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 18px; }
  .topbar .topbar-group:first-child .stat:not(.badge-wrap) { display: none; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
