/* ==========================================================================
   Lali Movers — site stylesheet
   Structure:
     1. Theme tokens (light + dark)
     2. Base / reset
     3. Layout helpers
     4. Buttons & links
     5. Header & navigation
     6. Hero
     7. Sections (services, process, why, area, work, reviews, faq, cta)
     8. Footer, mobile action bar, back-to-top
     9. Lightbox
    10. Quote page & form
    11. Utilities, motion
   ========================================================================== */

/* 1. THEME TOKENS ---------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --bg-alt: #e9ebef;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --text: #111318;
  --text-muted: #4a505a;
  --border: #d6d9df;
  --border-strong: #b9bec7;
  --brand: #044c92;          /* Lali blue (from logo) */
  --brand-hover: #033a70;
  --brand-text: #044c92;     /* brand colour used as text on --bg */
  --brand-soft: #e3edf8;
  --on-brand: #ffffff;
  --steel: #8b919a;          /* anchor silver */
  --success: #146c43;
  --success-soft: #e2f3ea;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --header-bg: rgba(255, 255, 255, 0.88);
  --shadow-sm: 0 1px 2px rgba(17, 19, 24, 0.06), 0 1px 3px rgba(17, 19, 24, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 19, 24, 0.10);
  --shadow-lg: 0 20px 48px rgba(17, 19, 24, 0.16);
  --focus: #044c92;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 72px;
  --container: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark is the brand's original look: matte black-blue with steel + Lali blue */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f11;
  --bg-alt: #131316;
  --surface: #17181b;
  --surface-2: #1d1e22;
  --text: #eeeeef;
  --text-muted: #a7a8ab;
  --border: #2a2c31;
  --border-strong: #3a3d44;
  --brand: #0557a8;
  --brand-hover: #0a66c2;
  --brand-text: #6aa9ec;
  --brand-soft: #102236;
  --on-brand: #ffffff;
  --steel: #9aa0a8;
  --success: #4cc38a;
  --success-soft: #10261b;
  --danger: #ff8a7a;
  --danger-soft: #2c1513;
  --header-bg: rgba(15, 15, 17, 0.86);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
  --focus: #6aa9ec;
}

/* No-JS fallback: follow the OS preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0f0f11; --bg-alt: #131316; --surface: #17181b; --surface-2: #1d1e22;
    --text: #eeeeef; --text-muted: #a7a8ab; --border: #2a2c31; --border-strong: #3a3d44;
    --brand: #0557a8; --brand-hover: #0a66c2; --brand-text: #6aa9ec; --brand-soft: #102236;
    --steel: #9aa0a8; --success: #4cc38a; --success-soft: #10261b; --danger: #ff8a7a; --danger-soft: #2c1513;
    --header-bg: rgba(15, 15, 17, 0.86); --focus: #6aa9ec;
  }
}

/* Smooth theme change only while toggling (class added by JS) */
.theme-transition, .theme-transition *, .theme-transition *::before, .theme-transition *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, fill 0.3s ease !important;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

img, svg, video { display: block; max-width: 100%; }

/* Stroke icons from the inline sprite */
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brand); color: var(--on-brand); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 3. LAYOUT ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 72px; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: 48px; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-text);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}

.section-title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  text-transform: uppercase;
}
.section-lead {
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .section { padding-block: 96px; }
}

/* 4. BUTTONS --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: 1.075rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.btn:hover { --btn-bg: var(--brand-hover); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
}
.btn--outline:hover { --btn-bg: var(--surface-2); --btn-border: var(--text); }

/* Light-on-dark outline, used over the hero photo in both themes */
.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #ffffff;
  --btn-border: rgba(255, 255, 255, 0.55);
}
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.16); --btn-border: #ffffff; }

.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.2rem; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-text);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* 5. HEADER & NAV ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 3px solid var(--brand);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: var(--text);
}
.brand img { height: 52px; width: auto; }
/* Same logo in both themes. In light mode a soft dark outline keeps the silver lettering legible on white */
:root[data-theme="light"] .site-header .brand img {
  filter: drop-shadow(0 0 0.4px rgba(0, 0, 0, 0.75));
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .site-header .brand img { filter: drop-shadow(0 0 0.4px rgba(0, 0, 0, 0.75)); }
}

.primary-nav { display: none; }

.nav-list { list-style: none; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--brand-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-active { color: var(--text); text-decoration: none; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone { display: none; }
.header-cta { display: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn svg { width: 22px; height: 22px; }

/* Theme toggle shows the icon for the theme you'd switch TO */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.menu-toggle .bars { position: relative; width: 22px; height: 16px; }
.menu-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease, top 0.3s var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 7px; }
.menu-toggle .bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s;
}
.mobile-menu .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.mobile-menu .nav-link {
  padding: 16px 4px;
  font-size: 1.5rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu .nav-link::after { display: none; }
.mobile-menu .nav-link[aria-current="page"] { color: var(--brand-text); }
.mobile-menu-actions { display: grid; gap: 12px; margin-top: 28px; }
.mobile-menu-contact { margin-top: 24px; color: var(--text-muted); font-size: 0.95rem; }
.mobile-menu-contact a { color: var(--text); font-weight: 600; }

body.menu-open { overflow: hidden; }

@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 1100px) {
  :root { --header-h: 84px; }
  .brand img { height: 60px; }
  .primary-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
}

@media (min-width: 1280px) {
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
  }
  .header-phone svg { width: 18px; height: 18px; color: var(--brand-text); }
  .header-phone:hover { color: var(--brand-text); }
}

/* 6. HERO ------------------------------------------------------------------ */
/* The hero sits on a photo, so it uses fixed light-on-dark colours in both themes */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(88vh, 760px);
  padding-block: 64px 72px;
  color: #ffffff;
  background: #0f0f11;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 11, 14, 0.94) 0%, rgba(10, 11, 14, 0.82) 45%, rgba(10, 11, 14, 0.45) 100%),
    linear-gradient(0deg, rgba(10, 11, 14, 0.6) 0%, rgba(10, 11, 14, 0) 40%);
}
.hero-content { max-width: 680px; }
.hero .eyebrow { color: #8fc0f5; }
.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero h1 .accent { color: #8fc0f5; }
.hero-lead {
  margin-top: 20px;
  max-width: 580px;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.86);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn { flex: 1 1 220px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; color: #8fc0f5; flex: none; }

@media (min-width: 640px) {
  .hero-ctas .btn { flex: 0 0 auto; }
}

/* Page hero (inner pages) */
.page-hero {
  padding-block: 56px 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); text-transform: uppercase; }
.page-hero--compact { padding-block: 32px 28px; }
.page-hero--compact + .section--tight { padding-top: 28px; }
.page-hero p:not(.eyebrow) { margin-top: 12px; max-width: 640px; font-size: 1.15rem; color: var(--text-muted); }

/* 7. SECTIONS -------------------------------------------------------------- */

/* Services */
.service-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:focus-within { box-shadow: var(--shadow-lg); }
.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-text);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.6rem; text-transform: uppercase; }
.service-card p { margin-top: 10px; color: var(--text-muted); flex: 1; }
.service-card .link-arrow { margin-top: 20px; }

/* Process steps */
.steps { display: grid; gap: 16px; list-style: none; padding: 0; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
}
.step h3 { font-size: 1.45rem; text-transform: uppercase; }
.step p { margin-top: 8px; color: var(--text-muted); }

/* Why choose / features */
.why-layout { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .why-layout { grid-template-columns: 5fr 6fr; gap: 64px; } }
.why-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  background: var(--surface-2);
}
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-media::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 6px;
  background: var(--brand);
}
@media (max-width: 999px) { .why-media { aspect-ratio: 16 / 10; } }

.feature-list { display: grid; gap: 20px; margin-top: 32px; list-style: none; padding: 0; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; } }
.feature { display: flex; gap: 14px; }
.feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-text);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.3rem; text-transform: uppercase; }
.feature p { margin-top: 4px; color: var(--text-muted); font-size: 1rem; }

/* Service area */
.area-card {
  display: grid;
  gap: 32px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--brand);
  border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .area-card { grid-template-columns: 3fr 2fr; align-items: center; padding: 48px; } }
.area-card h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); text-transform: uppercase; }
.area-card p { margin-top: 12px; color: var(--text-muted); }
.area-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.area-pills li {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.area-aside {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.area-aside p { margin: 0; color: var(--text); font-weight: 600; }

/* Gallery / Our work */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  gap: 10px;
}
.gallery-item:first-child { grid-column: span 2; }
@media (min-width: 768px) {
  .gallery { grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 2; }
}
.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
}
.gallery-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Reviews (hidden until real reviews exist — see CLIENT-TODO.md) */
.review-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.review {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.review blockquote { font-size: 1.05rem; }
.review figcaption { margin-top: 16px; font-weight: 700; }
.review figcaption span { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.92rem; }

/* FAQ accordion */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; } }
.faq-layout .section-head { margin-bottom: 0; }
@media (min-width: 1000px) { .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }

.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item h3 { font-family: var(--font-body); font-size: inherit; font-weight: inherit; }
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 4px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.accordion-trigger:hover { color: var(--brand-text); }
.accordion-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.accordion-icon::after { transform: rotate(90deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: rotate(0deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { border-color: var(--brand-text); color: var(--brand-text); }

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.accordion-panel > div { overflow: hidden; }
.accordion-panel .panel-body { padding: 0 4px 22px; color: var(--text-muted); }
.accordion-panel .panel-body p + p { margin-top: 10px; }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
/* Without JS every answer is visible */
html:not(.js) .accordion-panel { grid-template-rows: 1fr; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  background: #0b2c52;
  color: #ffffff;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(4, 76, 146, 0.95), rgba(8, 30, 56, 0.95)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 14px);
  z-index: 0;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); text-transform: uppercase; }
.cta-band p { margin-top: 12px; max-width: 560px; color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-band .btn--light { --btn-bg: #ffffff; --btn-fg: #06305c; --btn-border: #ffffff; }
.cta-band .btn--light:hover { --btn-bg: #e8f0fa; --btn-border: #e8f0fa; }
.cta-band .cta-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding: 0; list-style: none; }
.cta-band .cta-contact a { color: #ffffff; font-weight: 600; }
@media (min-width: 900px) {
  .cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 56px; }
  .cta-band .cta-actions { margin-top: 0; justify-content: flex-end; }
}

/* Contact cards */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.contact-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
a.contact-card:hover { border-color: var(--brand-text); transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.contact-card .feature-icon { width: 48px; height: 48px; }
.contact-card strong { display: block; font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.contact-card div { min-width: 0; }
.contact-card div > span { display: block; margin-top: 2px; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 420px) { .contact-card { padding: 20px 16px; gap: 14px; } }

/* About page */
.prose { max-width: 720px; }
.prose p { font-size: 1.125rem; color: var(--text-muted); }
.prose p + p { margin-top: 16px; }
.prose p strong { color: var(--text); }
.about-layout { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .about-layout { grid-template-columns: 7fr 5fr; gap: 64px; } }
.values-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.value-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.value-card h3 { margin-top: 14px; font-size: 1.35rem; text-transform: uppercase; }
.value-card p { margin-top: 6px; color: var(--text-muted); font-size: 1rem; }

/* 8. FOOTER ---------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding-block: 64px 24px;
  background: #0a0a0c;
  color: #c9cacd;
  border-top: 5px solid var(--brand);
}
.site-footer a { color: #e6e7e9; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; } }
.footer-brand img { height: 72px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 340px; font-size: 1rem; }
.footer-tags { margin-top: 12px; font-family: var(--font-head); letter-spacing: 0.12em; color: #8c8f95; font-size: 0.95rem; }
.footer-col h2 {
  margin-bottom: 14px;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col li { display: flex; align-items: center; gap: 10px; }
.footer-col svg { width: 18px; height: 18px; color: #6aa9ec; flex: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #222428;
  font-size: 0.92rem;
  color: #8c8f95;
}

/* Mobile sticky action bar */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { min-height: 48px; padding-inline: 12px; }
body.has-action-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
body.menu-open .action-bar { transform: translateY(110%); }
@media (min-width: 768px) {
  .action-bar { display: none; }
  body.has-action-bar { padding-bottom: 0; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(80px + env(safe-area-inset-bottom));
  z-index: 800;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.25s var(--ease); }
.back-to-top svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .back-to-top { right: 24px; bottom: 24px; } }

/* 9. LIGHTBOX -------------------------------------------------------------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 6, 8, 0.94);
  color: #fff;
}
.lightbox::backdrop { background: rgba(5, 6, 8, 0.94); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lightbox-counter { font-weight: 600; color: #c9cacd; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 12px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-caption { padding: 14px 16px 20px; text-align: center; color: #e6e7e9; }
.lightbox .icon-btn { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 640px) {
  .lightbox-nav { top: auto; bottom: -56px; transform: none; }
}

/* 10. QUOTE PAGE ----------------------------------------------------------- */
.quote-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .quote-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quote-card-body { padding: 24px 18px 28px; }
@media (min-width: 640px) { .quote-card-body { padding: 36px 40px 40px; } }

/* Progress */
.progress { padding: 20px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
@media (min-width: 640px) { .progress { padding: 22px 40px; } }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; }
.progress-step { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.progress-step::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  transition: background-color 0.3s ease;
}
.progress-step.is-complete::before, .progress-step.is-current::before { background: var(--brand-text); }
.progress-step.is-current { color: var(--text); }
.progress-step .label-short { display: inline; }
.progress-step .label-long { display: none; }
@media (min-width: 560px) {
  .progress-step .label-short { display: none; }
  .progress-step .label-long { display: inline; }
}
.progress-status { margin-top: 10px; font-size: 0.92rem; color: var(--text-muted); }

/* Steps: without JS everything is visible as one long form */
.js .form-step { display: none; }
.js .form-step.is-active { display: block; animation: stepIn 0.35s var(--ease); }
html:not(.js) .progress, html:not(.js) .step-nav [data-prev], html:not(.js) .step-nav [data-next], html:not(.js) .review-step { display: none; }
.form-step + .form-step { margin-top: 0; }
html:not(.js) .form-step + .form-step { margin-top: 32px; }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.step-title { font-size: 1.85rem; text-transform: uppercase; }
.step-intro { margin-top: 6px; margin-bottom: 24px; color: var(--text-muted); }

.field-grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .field-grid--2 { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field label, .field legend, .fieldset-legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--danger); margin-left: 2px; }
.optional { font-weight: 400; color: var(--text-muted); font-size: 0.92rem; }
.hint { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.92rem; }

.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem; /* >= 16px avoids iOS zoom */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b919a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: 0.75; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-text) 25%, transparent);
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 600;
}
.field-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 800;
}
.field.has-error .field-error { display: flex; }

fieldset { border: 0; padding: 0; min-width: 0; }

/* Service choice cards */
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.choice-card svg { width: 26px; height: 26px; flex: none; color: var(--brand-text); }
.choice:hover .choice-card { border-color: var(--text-muted); }
.choice input:checked + .choice-card {
  border-color: var(--brand-text);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand-text);
}
.choice input:focus-visible + .choice-card { outline: 3px solid var(--focus); outline-offset: 2px; }
.field.has-error .choice-card { border-color: var(--danger); }

/* Small pills (checkbox / radio chips) */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.chip input:checked + span { border-color: var(--brand-text); background: var(--brand); color: var(--on-brand); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }

/* Step navigation */
.step-nav {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.step-nav .btn { flex: 1 1 160px; }
@media (min-width: 640px) { .step-nav .btn { flex: 0 0 auto; } .step-nav .btn:only-child, .step-nav [data-next]:first-child { margin-left: auto; } }

/* Review summary */
.review-list { display: grid; gap: 14px; }
.review-group {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.review-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-group-head h3 { font-size: 1.25rem; text-transform: uppercase; }
.review-edit { padding: 6px 10px; border: 0; background: none; color: var(--brand-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.review-group dl { display: grid; gap: 6px 16px; }
@media (min-width: 560px) { .review-group dl { grid-template-columns: 170px 1fr; } }
.review-group dt { color: var(--text-muted); font-size: 0.95rem; }
.review-group dd { margin: 0; font-weight: 600; word-break: break-word; white-space: pre-line; }
@media (max-width: 559px) { .review-group dd { margin-bottom: 8px; } }

/* Alerts */
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid;
  font-weight: 500;
}
.alert[hidden] { display: none; }
.alert svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.alert--error { background: var(--danger-soft); border-color: var(--danger); color: var(--text); }
.alert--error svg { color: var(--danger); }
.alert a { font-weight: 700; }

/* Spinner inside submit button */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success screen */
.success { text-align: center; padding: 16px 0 8px; }
.success:focus { outline: none; }
.success-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}
.success-icon svg { width: 44px; height: 44px; }
.success-icon .check { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s 0.15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); text-transform: uppercase; }
.success > p { max-width: 520px; margin: 12px auto 0; color: var(--text-muted); font-size: 1.1rem; }
.next-steps {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  counter-reset: next;
}
.next-steps li {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.next-steps li::before {
  counter-increment: next;
  content: counter(next);
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-head);
  font-weight: 700;
}
.next-steps strong { display: block; }
.next-steps span { color: var(--text-muted); font-size: 0.97rem; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.success-ref { margin-top: 20px; font-size: 0.92rem; color: var(--text-muted); }

/* Quote sidebar */
.quote-aside { display: grid; gap: 16px; }
@media (min-width: 1000px) { .quote-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.aside-card h2 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 12px; }
.aside-card p { color: var(--text-muted); font-size: 1rem; }
.aside-card .btn { margin-top: 16px; }
.aside-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.aside-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.aside-list svg { width: 20px; height: 20px; color: var(--brand-text); flex: none; margin-top: 3px; }
.aside-list a { color: var(--text); font-weight: 700; word-break: break-word; }

/* Honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 11. MOTION --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* 404 */
.not-found { text-align: center; padding-block: 120px; }
.not-found .big { font-family: var(--font-head); font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 700; line-height: 1; color: var(--brand-text); }
.not-found h1 { margin-top: 8px; font-size: 2rem; text-transform: uppercase; }
.not-found p { margin: 12px auto 28px; max-width: 460px; color: var(--text-muted); }
