/* ============================================================
   GetFitDXB — Flow Design System
   Fonts: DM Sans + JetBrains Mono (loaded via <link> in HTML)
   Primary: #0EA5E9 (sky blue) on #FAFAFA backgrounds
   ============================================================ */

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --sand: #F5F0EB;
  --warm: #FFF5EF;
  --ink: #111111;
  --t1: #374151;
  --t2: #6B7280;
  --t3: #9CA3AF;
  --main: #0EA5E9;
  --main-h: #0C93CF;
  --main-soft: rgba(14,165,233,.08);
  --teal: #0EA5E9;
  --teal-soft: rgba(14,165,233,.08);
  --bd: #E5E7EB;
  --bdh: #0EA5E9;
  --r: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 32px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.1);
  --fm: 'DM Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fm);
  background: var(--bg);
  color: var(--t1);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.c { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
a { color: var(--main); text-decoration: none; transition: all .2s; }
a:hover { color: var(--main-h); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-weight: 700;
  padding: 15px 32px;
  border-radius: var(--r);
  font-size: .9375rem;
  transition: all .3s;
  border: none;
  cursor: pointer;
}
.btn-c { background: var(--main); color: #fff; }
.btn-c:hover { background: var(--main-h); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,.3); }

.btn-w { background: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25); }
.btn-w:hover { background: rgba(255,255,255,.25); }

.btn-o { background: var(--white); color: var(--ink); border: 1.5px solid var(--bd); }
.btn-o:hover { border-color: var(--main); color: var(--main); }

.btn-t { background: var(--teal); color: #fff; }
.btn-t:hover { background: #0C93CF; transform: translateY(-2px); }

.btn-sm { padding: 11px 24px; font-size: .8125rem; border-radius: 12px; }

/* ── NAV — transparent on hero, solid on scroll ─────────────── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: all .35s;
}
.nav.solid {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd);
  padding: 8px 0;
}
.ni { display: flex; align-items: center; justify-content: space-between; height: 48px; }

/* Brand */
.nb {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  transition: color .3s;
}
.nb span { color: var(--main); }
.nav.solid .nb { color: var(--ink); }

/* Nav links */
.nls { display: flex; align-items: center; gap: 2px; }
.nl {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: 8px 16px;
  border-radius: 10px;
  transition: all .2s;
}
.nl:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav.solid .nl { color: var(--t2); }
.nav.solid .nl:hover { color: var(--ink); background: var(--sand); }

/* Nav right buttons */
.nr { display: flex; gap: 8px; }
.nav.solid .btn-w {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--bd);
}
.nav.solid .btn-w:hover { border-color: var(--main); color: var(--main); }

/* ── HERO — full-bleed ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.5) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 80px; max-width: 680px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: 6px 18px 6px 8px;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}
.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--main);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--main), #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ── SEARCH BOX — glassmorphism ─────────────────────────────── */
.search {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}
.sf { flex: 1; padding: 14px 20px; display: flex; flex-direction: column; }
.sf-label {
  font-size: .5625rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}
.sf-input {
  border: none;
  outline: none;
  font-family: var(--fm);
  font-size: 1rem;
  color: #fff;
  background: transparent;
  font-weight: 500;
}
.sf-input::placeholder { color: rgba(255,255,255,.35); }
.sf-div { width: 1px; background: rgba(255,255,255,.12); margin: 10px 0; }
.sf-btn {
  background: var(--main);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0 32px;
  font-family: var(--fm);
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
}
.sf-btn:hover { background: var(--main-h); box-shadow: 0 4px 20px rgba(14,165,233,.4); }

.search-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  padding: 6px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}
.pill:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── TRUST BAR ──────────────────────────────────────────────── */
.trust { background: var(--white); border-bottom: 1px solid var(--bd); padding: 20px 0; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--t2); font-weight: 500; }
.trust-icon { font-size: 1.25rem; }

/* ── SECTIONS ───────────────────────────────────────────────── */
.sec { padding: 80px 0; }
.sec-warm { background: var(--warm); }
.sec-sand { background: var(--sand); }
.sec-dark { background: var(--ink); color: #fff; }

.ey {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--main);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.st {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.ss { color: var(--t2); max-width: 520px; font-size: 1rem; line-height: 1.65; }
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }

/* ── CATEGORY CARDS — image overlay ────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat {
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  height: 220px;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s;
}
.cat:hover { transform: scale(1.02); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover img { transform: scale(1.08); }
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  z-index: 1;
}
.cat-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; z-index: 2; color: #fff; }
.cat-name { font-size: 1.05rem; font-weight: 700; }
.cat-count { font-size: .75rem; color: rgba(255,255,255,.65); margin-top: 2px; }

/* ── TRAINER CARDS — photo/rating/price/heart ───────────────── */
.tr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tr {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  display: block;
  text-decoration: none;
  color: var(--t1);
}
.tr:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tr-img { height: 240px; position: relative; overflow: hidden; }
.tr-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tr:hover .tr-img img { transform: scale(1.05); }
.tr-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--main);
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.tr-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  cursor: pointer;
  transition: all .2s;
}
.tr-fav:hover { background: #fff; transform: scale(1.1); }
.tr-body { padding: 18px; }
.tr-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.tr-spec { font-size: .8125rem; color: var(--t2); margin: 2px 0 10px; }
.tr-meta { display: flex; align-items: center; gap: 16px; font-size: .8125rem; color: var(--t3); }
.tr-rating { color: #FBBF24; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.tr-price { margin-left: auto; font-weight: 700; color: var(--ink); font-size: .9375rem; }

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how { text-align: center; }
.how-img { width: 100%; height: 200px; border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.how-img img { width: 100%; height: 100%; object-fit: cover; }
.how-num { font-family: var(--mono); font-size: .6875rem; color: var(--main); font-weight: 700; margin-bottom: 6px; display: block; }
.how-t { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.how-d { font-size: .9375rem; color: var(--t2); line-height: 1.6; }

/* ── AREA CARDS ─────────────────────────────────────────────── */
.area-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.area {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  height: 140px;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s;
}
.area:hover { transform: scale(1.03); }
.area img { width: 100%; height: 100%; object-fit: cover; }
.area-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 50%); }
.area-info { position: absolute; bottom: 0; padding: 14px; color: #fff; z-index: 1; }
.area-name { font-size: .9375rem; font-weight: 700; }
.area-ct { font-size: .6875rem; color: rgba(255,255,255,.65); }

/* ── SELLER SPLIT ───────────────────────────────────────────── */
.seller-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
}
.seller-img { position: relative; overflow: hidden; min-height: 420px; }
.seller-img img { width: 100%; height: 100%; object-fit: cover; }
.seller-content {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: rgba(255,255,255,.7);
}
.seller-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.seller-content p { margin-bottom: 24px; font-size: 1rem; line-height: 1.65; }
.seller-stats { display: flex; gap: 28px; margin-bottom: 28px; }
.sst-n { font-size: 1.5rem; font-weight: 800; color: var(--main); }
.sst-l { font-size: .6875rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .04em; }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.test {
  background: var(--white);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.test:hover { transform: translateY(-3px); }
.test-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.test-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.test-avatar img { width: 100%; height: 100%; object-fit: cover; }
.test-info { font-size: .875rem; font-weight: 700; color: var(--ink); }
.test-info span { display: block; font-size: .75rem; color: var(--t3); font-weight: 400; }
.test-stars { color: #FBBF24; font-size: .875rem; margin-bottom: 10px; }
.test-text { font-size: .9375rem; color: var(--t1); line-height: 1.6; font-style: italic; }

/* ── BLOG CARDS ─────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  display: block;
  text-decoration: none;
  color: var(--t1);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bc-img { height: 200px; overflow: hidden; }
.bc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .bc-img img { transform: scale(1.05); }
.bc-body { padding: 22px; }
.bc-cat {
  font-family: var(--mono);
  font-size: .625rem;
  color: var(--main);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  display: block;
}
.bc-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 6px; }
.bc-desc { font-size: .8125rem; color: var(--t2); line-height: 1.5; }

/* ── NEWSLETTER SECTION ─────────────────────────────────────── */
.nl-section {
  background: linear-gradient(135deg, var(--main) 0%, #38BDF8 50%, #7DD3FC 100%);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.nl-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.nl-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; position: relative; }
.nl-section p { color: rgba(255,255,255,.8); max-width: 460px; margin: 0 auto 24px; font-size: 1rem; position: relative; }
.nl-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; position: relative; }
.nl-input {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-family: var(--fm);
  font-size: 1rem;
  outline: none;
  background: rgba(255,255,255,.2);
  color: #fff;
  backdrop-filter: blur(10px);
}
.nl-input::placeholder { color: rgba(255,255,255,.5); }
.nl-btn {
  background: #fff;
  color: var(--main);
  border: none;
  border-radius: 14px;
  padding: 16px 28px;
  font-family: var(--fm);
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.nl-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.45); padding: 72px 0 32px; }
.fg {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
.fb { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.fb span { color: var(--main); }
.fd { font-size: .8125rem; line-height: 1.65; }
.fh {
  font-family: var(--mono);
  font-size: .5625rem;
  font-weight: 600;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.fcol a { display: block; font-size: .8125rem; color: rgba(255,255,255,.4); padding: 4px 0; transition: color .15s; }
.fcol a:hover { color: var(--main); }
.fbot {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(255,255,255,.2);
}

/* ── REVEAL ON SCROLL ───────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.rv.on { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tr-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .seller-split { grid-template-columns: 1fr; }
  .seller-img { min-height: 280px; }
}

/* ── HAMBURGER BUTTON ───────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  border-radius: 10px;
  transition: background .2s;
  z-index: 201;
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }
.nav.solid .nav-toggle:hover { background: var(--sand); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.nav.solid .nav-toggle span { background: var(--ink); }

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ──────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  flex-direction: column;
  padding-top: 80px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-menu-bg {
  position: fixed;
  inset: 0;
  background: rgba(14,165,233,.97);
  z-index: -1;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 20px;
}
.mobile-menu-links a {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  padding: 14px 32px;
  border-radius: 14px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  transition: background .2s;
  letter-spacing: -.01em;
}
.mobile-menu-links a:hover { background: rgba(255,255,255,.15); color: #fff; }
.mobile-menu-links a.active { background: rgba(255,255,255,.2); color: #fff; }

.mobile-menu-divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,.25);
  margin: 12px auto;
}

.mobile-menu-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 20px 32px;
}
.mobile-menu-btns .btn {
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 14px 24px;
  font-size: 1rem;
}
.mobile-menu-btns .btn-w {
  background: #fff;
  color: var(--main);
  border: 2px solid rgba(255,255,255,.4);
}
.mobile-menu-btns .btn-w:hover { background: rgba(255,255,255,.9); }
.mobile-menu-btns .btn-c {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.mobile-menu-btns .btn-c:hover { background: rgba(255,255,255,.3); }

/* ── ALTERNATIVE MOBILE NAV (nhb/nd pattern) ────────────────── */
/* Used on blog and area pages with menuBtn / menuDrawer pattern */
.nhb {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  z-index: 201;
  transition: background .2s;
}
.nhb span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.nav:not(.scrolled) .nhb span { background: #fff; }
.nhb[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nhb[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nhb[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nd {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1.5px solid var(--bd);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 16px 20px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 199;
}
.nd.open { display: flex; }
.ndl {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.ndl:hover { background: var(--sand); color: var(--main); }
.ndl.active { color: var(--main); font-weight: 700; }

.nav { position: relative; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .search { flex-direction: column; }
  .sf-div { width: 100%; height: 1px; margin: 0; }
  .sf-btn { padding: 16px; border-radius: 12px; }
  .cat-grid,
  .tr-grid,
  .how-grid,
  .test-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .fg { grid-template-columns: 1fr 1fr; }
  .nls, .nr, .na { display: none; }
  .nav-toggle { display: flex; }
  .nhb { display: flex; }
  .nl-form { flex-direction: column; }
}

/* ── TOC LABEL (replaces h3/h4 used as ToC heading) ────────── */
.toc-label {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--t2);
  margin-bottom: 8px;
  margin-top: 0;
}

/* ── Accessibility: respect prefers-reduced-motion (P1-22) ── */
@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 {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── LCP hardening: prevent CLS from images (P1-5) ────────── */
img { max-width: 100%; height: auto; }
img[width][height] { height: auto; }

/* ── iOS safe-area (P1-3) ─────────────────────────────────── */
body {
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
