/* ==========================================================================
   Sarom Business Solutions — design system
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --blue-950: #071833;
  --blue-900: #0b2249;
  --blue-800: #10306a;
  --blue-700: #1b4fa0;
  --blue-600: #2e66b2;
  --blue-500: #2f8fce;
  --blue-400: #57a8dc;
  --blue-300: #8fc4e8;
  --blue-200: #c2dcef;
  --blue-100: #e0ecf7;
  --blue-50: #f1f6fb;
  --gold-600: #a67a2e;
  --gold-500: #c9a24b;
  --gold-400: #d6b36a;
  --gold-300: #e4cb92;
  --gold-100: #f6eeda;
  --ink: #14202e;
  --ink-soft: #3a485a;
  --muted: #647386;
  --line: #e2e7ee;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(11,34,73,0.08), 0 4px 16px rgba(11,34,73,0.06);
  --shadow-md: 0 6px 24px rgba(11,34,73,0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 76px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; }

::selection { background: var(--blue-700); color: var(--white); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--blue-700); color: var(--white);
  padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}
.container-narrow { max-width: 860px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.eyebrow-light { color: var(--gold-300); }
.eyebrow-light::before { background: var(--gold-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold-500); color: var(--blue-950); }
.btn-gold:hover { background: var(--gold-400); }
.btn-blue { background: var(--blue-700); color: var(--white); }
.btn-blue:hover { background: var(--blue-800); }
.btn-outline { border: 1.5px solid var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-700); color: var(--white); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.6); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-whatsapp { background: #25d366; color: #062b18; }
.btn-whatsapp:hover { background: #1fbd5a; }

.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Text link ---------- */
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--blue-700); }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }
.text-link:hover { color: var(--blue-600); }
/* ==========================================================================
   Cards & section scaffolding
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--blue-100); color: var(--blue-700); margin-bottom: 18px;
}

.section { padding-block: clamp(48px, 6vw, 80px); }

/* Homepage-only final micro-tuning: ~12% tighter gaps between the major
   homepage sections (e.g. Services → Featured). Hero, trust strip, CTA band,
   internal heading/card spacing and all other pages keep their spacing. */
body.page-home .section { padding-block: clamp(42px, 5.3vw, 70px); }
.section-light { background: var(--blue-50); }
.section-white { background: var(--white); }
.section-blue { background: var(--blue-900); }

.section-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 42px); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 640px; }
.section-head-dark h2 { color: var(--white); }
.section-head-dark .section-lede { color: rgba(255,255,255,.8); }
.section-cta { margin-top: 30px; text-align: center; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 28px rgba(11,34,73,.08); }

.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { width: 46px; height: 40px; object-fit: contain; border-radius: 8px; }
.header-inner .brand-logo { width: 52px; height: 45px; } /* header logo mark +13%; footer mark unchanged */
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name strong { font-size: 1.02rem; font-weight: 700; color: var(--blue-900); font-family: var(--font-sans); letter-spacing: -.01em; }
.brand-name em { font-style: normal; font-size: .7rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* Nav */
.site-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 8px;
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  transition: color .18s ease, background-color .18s ease;
}
.nav-link:hover, .nav-link.active { color: var(--blue-700); background: var(--blue-50); }
.chevron { transition: transform .2s ease; }
.has-submenu.is-open .chevron { transform: rotate(180deg); }

.has-submenu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 280px; max-width: 420px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 14px;
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1001;
}
.submenu.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu-heading {
  font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold-600); padding: 8px 10px 2px;
}
.submenu-link { display: block; padding: 8px 10px; border-radius: 8px; font-size: .92rem; color: var(--ink-soft); }
.submenu-link:hover { background: var(--blue-50); color: var(--blue-700); }
.submenu-all { margin-top: 8px; border-top: 1px solid var(--line); padding: 10px; font-weight: 700; color: var(--blue-700); font-size: .92rem; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-800); }
.header-cta:hover { color: var(--blue-600); }
.header-cta-phone span { font-weight: 700; font-size: .9rem; }

/* Nav toggle (mobile) */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: 10px;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--blue-900); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-header.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta-mobile { display: none; }
/* ---------- Desktop nav ---------- */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .nav-list { gap: 2px; }
  .has-submenu:hover > .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}

/* ---------- Mobile nav (<1024px) ---------- */
@media (max-width: 1023.98px) {
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 16px 20px 28px;
  }
  .site-nav.is-open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 13px 12px; font-size: 1rem; width: 100%; justify-content: space-between; }
  .has-submenu { display: block; }

  /* The open-state rule in the desktop block (.submenu.is-open, specificity 0,2,0)
     sets transform: translateX(-50%). It outranks a plain `.submenu` reset, so the
     open mobile panel was shifted left by half its own width and clipped off-screen.
     Matching the open state here gives the mobile reset equal specificity and lets
     `transform: none` win, keeping the open submenu inside the viewport. */
  .submenu,
  .submenu.is-open {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; max-width: none; box-shadow: none; border: 0; border-left: 3px solid var(--blue-100);
    border-radius: 0; margin: 4px 0 4px 12px; padding: 6px 0 6px 12px;
  }
  .submenu { display: none; }
  .submenu.is-open { display: grid; }

  .nav-cta-mobile { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
  .header-cta-phone { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: var(--blue-900); color: var(--white); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(201,162,75,.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(47,143,206,.16), transparent 55%),
    linear-gradient(160deg, var(--blue-950) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent);
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  padding-block: clamp(44px, 6vw, 64px);
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: -.015em;
}
.hero-copy h1 .accent { color: var(--gold-300); }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 12px; }
.hero-sub { font-size: .95rem; color: rgba(255,255,255,.65); margin-bottom: 22px; }
.hero-sub::before { content: "●"; color: var(--gold-400); margin-right: 8px; font-size: .6rem; vertical-align: middle; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero right panel */
.hero-panel { display: none; }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .hero-panel { display: block; }
  .hero-panel-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(6px);
  }
  .hero-panel-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--white); margin-bottom: 18px; }
  .hero-panel-list { display: grid; gap: 14px; }
  .hero-panel-list li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.87); font-size: .96rem; }
  .hero-panel-list svg { color: var(--gold-400); flex-shrink: 0; }
  .hero-panel-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: rgba(255,255,255,.6); }
}
/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip { position: relative; border-top: 1px solid rgba(255,255,255,.12); background: rgba(7,24,51,.55); }
.trust-strip-inner { display: grid; gap: 14px; padding-block: 18px; align-items: center; }
.trust-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badges li {
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 8px 22px; font-weight: 700; font-size: .95rem; letter-spacing: .06em;
  color: var(--white); background: rgba(255,255,255,.06);
}
@media (min-width: 900px) { .trust-strip-inner { grid-template-columns: auto 1fr; gap: 28px; } }

/* ==========================================================================
   Persona cards
   ========================================================================== */
.persona-card { transition: transform .22s ease, box-shadow .22s ease; }
.persona-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.persona-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.persona-card p { color: var(--ink-soft); font-size: .94rem; }

/* ==========================================================================
   Category cards (services)
   ========================================================================== */
.category-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card { display: flex; flex-direction: column; gap: 16px; transition: transform .22s ease, box-shadow .22s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-head { display: flex; align-items: center; gap: 14px; }
.category-num {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--gold-500);
  border: 1.5px solid var(--gold-500); border-radius: 50%; width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.category-head h3 { font-size: 1.25rem; }
.category-list { display: grid; gap: 10px; margin-bottom: 6px; }
.category-list li { display: flex; align-items: center; gap: 12px; font-size: .97rem; color: var(--ink-soft); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-400); flex-shrink: 0; }
.category-card .btn { align-self: flex-start; margin-top: auto; }

/* ==========================================================================
   Feature cards
   ========================================================================== */
.feature-card { display: flex; flex-direction: column; gap: 4px; transition: transform .22s ease, box-shadow .22s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature-card p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 14px; }
.feature-card .text-link { margin-top: auto; }
/* ==========================================================================
   Steps (how it works)
   ========================================================================== */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--gold-500);
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--white);
  border: 1.5px solid var(--gold-500); margin-bottom: 16px;
}
.step h3 { font-size: 1.16rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* ==========================================================================
   Why Sarom
   ========================================================================== */
.why-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.why-card .card-icon { background: rgba(201,162,75,.2); color: var(--gold-300); }
.why-card h3 { color: var(--white); font-size: 1.18rem; margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,.78); font-size: .94rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.testi-quote { color: var(--gold-500); line-height: 0; }
.testi-text { color: var(--ink-soft); font-size: .98rem; flex-grow: 1; }
.testi-meta { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 2px; }
.testi-name { font-style: normal; font-weight: 700; color: var(--ink); font-family: var(--font-sans); }
.testi-role { font-size: .85rem; color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; padding: 20px 24px;
  font-weight: 600; font-size: 1rem; color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--blue-100); color: var(--blue-700);
  font-size: 1.2rem; font-weight: 700; transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--blue-700); color: var(--white); }
.faq-item summary:hover { background: var(--blue-50); }
.faq-item p { padding: 0 24px 22px; color: var(--ink-soft); font-size: .97rem; max-width: 700px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(201,162,75,.16), transparent 55%),
    linear-gradient(160deg, var(--blue-950) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding-block: clamp(52px, 6vw, 72px);
  text-align: center;
}
.cta-inner { display: grid; justify-items: center; gap: 14px; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-sub { color: rgba(255,255,255,.8); max-width: 620px; font-size: 1.05rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 16px; }
/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--blue-950); color: rgba(255,255,255,.78);
  padding-top: clamp(48px, 5vw, 64px);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }

.brand-footer { margin-right: 0; margin-bottom: 18px; }
.brand-footer strong { color: var(--white); }
.brand-footer em { color: rgba(255,255,255,.5); }
.footer-about { font-size: .92rem; color: rgba(255,255,255,.62); margin-bottom: 20px; max-width: 320px; }

.social-links { display: flex; gap: 12px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social-links a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--blue-950); }

.footer-title {
  font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300);
  margin-bottom: 18px;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: .94rem; color: rgba(255,255,255,.72); transition: color .18s ease; }
.footer-links a:hover { color: var(--gold-300); }

.footer-address { display: grid; gap: 14px; font-style: normal; font-size: .94rem; }
.footer-contact-row a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); }
.footer-contact-row a:hover { color: var(--gold-300); }
.footer-hours { display: inline-flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.62); font-size: .9rem; }
.footer-hours svg { flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 22px;
  display: grid; gap: 14px; align-items: center;
}
@media (min-width: 700px) { .footer-bottom { grid-template-columns: 1fr auto; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color .18s ease; }
.footer-legal a:hover { color: var(--gold-300); }
.footer-copy { font-size: .88rem; color: rgba(255,255,255,.5); }
/* ==========================================================================
   Inner-page hero
   ========================================================================== */
.page-hero {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(201,162,75,.16), transparent 55%),
    linear-gradient(160deg, var(--blue-950) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding-block: clamp(56px, 7vw, 88px);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 16px; max-width: 820px; }
.page-lede { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 680px; }

/* ==========================================================================
   Services page blocks
   ========================================================================== */
.service-block { scroll-margin-top: 0; }
.service-block-head { margin-bottom: 32px; }
.service-block-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.service-cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
.service-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  display: grid; gap: 8px; align-content: start;
}
.service-item h3 { font-size: 1.18rem; color: var(--blue-700); }
.service-item p { color: var(--ink-soft); font-size: .94rem; }
/* ==========================================================================
   Featured service cards
   ========================================================================== */
.feature-card { display: grid; gap: 10px; align-content: start; }
.feature-card h3 { font-size: 1.22rem; color: var(--blue-800); }
.feature-card p { color: var(--ink-soft); font-size: .95rem; }
.feature-card .text-link { margin-top: 8px; }

/* ==========================================================================
   Steps — How It Works
   ========================================================================== */
.steps { list-style: none; display: grid; gap: 20px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: grid; gap: 10px; align-content: start;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-700); color: var(--white);
  font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 4px;
}
.step h3 { font-size: 1.08rem; color: var(--blue-800); }
.step p { color: var(--ink-soft); font-size: .93rem; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; } }

.contact-info h2, .contact-form h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 26px;
  color: var(--blue-800);
}
.contact-info h2 { color: var(--ink); }

.contact-block {
  display: flex; gap: 16px; align-items: flex-start;
  padding-block: 20px; border-bottom: 1px solid var(--line);
}
.contact-block:last-of-type { border-bottom: 0; }
.contact-ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-100); color: var(--blue-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-block h3 {
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.contact-block p { font-size: .98rem; color: var(--ink); }
.contact-block p a { color: var(--blue-700); font-weight: 600; overflow-wrap: anywhere; }
.contact-block p a:hover { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Enquiry form
   ========================================================================== */
.contact-form {
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.form-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-field { display: grid; gap: 7px; margin-bottom: 18px; }
.form-field label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.form-field label span[aria-hidden] { color: var(--gold-600); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select { appearance: auto; }

/* Inline validation errors */
.form-field [aria-invalid="true"] { border-color: #b3261e; }
.form-field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.field-error { color: #b3261e; font-size: .88rem; font-weight: 600; }

.form-note { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }

.form-success {
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  padding: 30px;
  display: grid; gap: 14px; justify-items: start;
}
.form-success h3 { color: var(--blue-700); font-size: 1.3rem; }
.form-success p { color: var(--ink-soft); }
.form-success p a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Prose & content pages (About, Privacy, Terms, Refund)
   ========================================================================== */
.container-narrow > h2,
.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--blue-800);
  margin: 38px 0 14px;
}
.container-narrow > h2:first-child,
.prose h2:first-child { margin-top: 0; }
.container-narrow > p,
.prose p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-size: 1.02rem;
}
.prose a,
.container-narrow > p a {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.prose a:hover,
.container-narrow > p a:hover { color: var(--blue-600); }

/* Tick list (About page) */
.tick-list { display: grid; gap: 12px; margin-block: 20px 24px; }
.tick-list li { position: relative; padding-left: 36px; color: var(--ink-soft); font-size: 1rem; }
.tick-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700);
  font-size: .8rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* FAQ full page variant */
.faq-list-full { gap: 16px; }

/* ==========================================================================
   Service detail pages — vertical spacing refinement (second pass)
   ==========================================================================
   Scope: ONLY the seven service detail pages (body.page-service, injected by
   scripts/build.js). The homepage (body.page-home), the services listing page
   and every other page keep their existing spacing.

   Goal: ~20-25% less vertical whitespace per component — tighter hero,
   section rhythm, cards, FAQ and CTA band — while keeping clear separation
   between sections. Palette, typography and layout are untouched; heights
   stay content-driven (no fixed card heights).

   Second pass: inter-section visible gaps (bottom padding of one section +
   top padding of the next) tightened to ~50-75px at every viewport —
   72px @1440 and 52px @360-390 between content sections, 74px/54px for
   Hero → Overview, 74px/56px for Related Services → Final CTA. */

/* Hero: naturally sized around eyebrow + H1 + lede (was clamp(56px, 7vw, 88px)).
   Bottom padding is tighter than the top so the Hero → Overview transition
   stays in the 50–75px inter-section band (74px @1440 / 54px @390). */
body.page-service .page-hero { padding-top: clamp(42px, 5.2vw, 64px); padding-bottom: clamp(28px, 3.2vw, 38px); }
body.page-service .page-hero .eyebrow { margin-bottom: 10px; }
body.page-service .page-hero h1 { margin-bottom: 12px; }

/* Major section rhythm. The VISIBLE gap between two adjacent sections is
   (bottom padding of one) + (top padding of the next): 72px @1440 and
   52px @360–390 — moderate breathing room, sections never touch.
   (Global .section was clamp(48px, 6vw, 80px); first pass clamp(38px, 4.5vw, 60px).) */
body.page-service .section { padding-block: clamp(26px, 3vw, 36px); }

/* Section headings: tighter heading-to-content gap (top margin was 38px) */
body.page-service .container-narrow > h2 { margin: 26px 0 12px; }
body.page-service .container-narrow > h2:first-child { margin-top: 0; }

/* "What Sarom helps with" / "Related services" cards: content-driven height,
   reduced vertical padding (was 26px all round) and tighter grid gap (was 20px) */
body.page-service .service-cards { gap: 16px; }
body.page-service .service-item { padding: 20px 22px; gap: 6px; }

/* Overview / documents checklists (was margin-block 20px 24px, gap 12px) */
body.page-service .tick-list { margin-block: 14px 18px; gap: 10px; }
body.page-service .form-note { margin-bottom: 14px; }

/* Registration process steps (was padding 26px 24px, grid gap 20px) */
body.page-service .steps { gap: 14px; }
body.page-service .step { padding: 20px 20px; gap: 8px; }

/* Timeline section CTA (was margin-top 30px) */
body.page-service .section-cta { margin-top: 22px; }

/* FAQ: compact and scannable (was summary 20px, answer 22px, list gap 14px) */
body.page-service .faq-list { gap: 10px; }
body.page-service .faq-item summary { padding: 14px 20px; }
body.page-service .faq-item p { padding: 0 20px 16px; }

/* Final CTA band: asymmetric padding keeps Related Services → CTA inside the
   50–75px band (74px @1440 / 56px @390) while the band itself keeps its
   visual weight against the footer. */
body.page-service .cta-band { padding-top: clamp(30px, 3vw, 38px); padding-bottom: clamp(34px, 3.4vw, 46px); }
body.page-service .cta-inner { gap: 12px; }
body.page-service .cta-buttons { margin-top: 12px; }

/* ==========================================================================
   Global fixes
   ========================================================================== */
/* Keep anchor targets visible below the sticky header */
html { scroll-padding-top: calc(var(--header-h) + 16px); }

/* Long strings (email addresses) must never force a scrollbar */
.footer-contact-row a,
.footer-copy,
.footer-about { overflow-wrap: anywhere; }

/* Very small screens: keep the header on one line */
@media (max-width: 479.98px) {
  .header-actions { display: none; } /* phone / WhatsApp / consultation live in the mobile menu */
  .brand-name strong { font-size: .95rem; }
  .brand-logo { width: 40px; height: 34px; }
  .header-inner .brand-logo { width: 45px; height: 39px; }
  .header-inner { gap: 12px; }
}

/* Mid-size screens: phone CTA hidden, WhatsApp + consultation visible */
@media (min-width: 480px) and (max-width: 1023.98px) {
  .brand-name em { display: none; }
}

