/* ==========================================================================
   RIVERSIDE CONTRACTORS — Design Tokens & Components
   ========================================================================== */

/* ---- Type scale ---- */
:root {
  /* Theme-invariant brand navy — always Riverside Navy regardless of light/dark theme, for large solid-fill sections (footer, CTA bands, stat band) that must stay on-brand and keep white text legible in both themes. */
  --color-navy: #12293f;
  --color-navy-deep: #0a1c2e;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.3vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.7vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --text-2xl: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.3rem, 1.2rem + 3.6vw, 4.4rem);
  --text-hero: clamp(2.6rem, 1rem + 5.2vw, 5.6rem);

  /* ---- Spacing (4px system) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Radius ---- */
  --radius-sm: 0.25rem;
  --radius-md: 0.4rem;
  --radius-lg: 0.6rem;
  --radius-xl: 0.9rem;
  --radius-full: 9999px;

  /* ---- Motion ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1280px;
  --content-full: 100%;

  /* ---- Fonts ---- */
  --font-display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

/* ---- Color: Riverside brand palette (navy / steel gray / river green) ---- */
:root,
[data-theme='light'] {
  --color-bg: #f6f6f4;
  --color-surface: #ffffff;
  --color-surface-2: #fbfbf9;
  --color-surface-offset: #eef0ee;
  --color-surface-offset-2: #e6e9e6;
  --color-divider: #dfe2e0;
  --color-border: #d5d9d6;

  --color-text: #131c26;
  --color-text-muted: #56636d;
  --color-text-faint: #939c9f;
  --color-text-inverse: #f6f7f5;

  /* Primary — Riverside Navy */
  --color-primary: #12293f;
  --color-primary-hover: #0a1c2e;
  --color-primary-active: #061422;
  --color-primary-highlight: #d7dee5;

  /* Secondary — Steel Gray (bridge) */
  --color-secondary: #5b6670;
  --color-secondary-hover: #47505a;

  /* Accent — River Green */
  --color-accent: #2f7a5c;
  --color-accent-hover: #256249;
  --color-accent-active: #1c4c39;
  --color-accent-highlight: #d3e6dc;

  /* Utility */
  --color-success: #2f7a5c;
  --color-warning: #a15a1c;
  --color-error: #a5334a;

  --shadow-sm: 0 1px 2px oklch(0.15 0.02 240 / 0.08);
  --shadow-md: 0 6px 18px oklch(0.15 0.02 240 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.15 0.02 240 / 0.16);
}

[data-theme='dark'] {
  --color-bg: #0b1520;
  --color-surface: #101c29;
  --color-surface-2: #13202e;
  --color-surface-offset: #16232f;
  --color-surface-offset-2: #1b2a38;
  --color-divider: #223140;
  --color-border: #2a3a49;

  --color-text: #dfe4e8;
  --color-text-muted: #8fa0ac;
  --color-text-faint: #5c6d78;
  --color-text-inverse: #101c29;

  --color-primary: #6f97b8;
  --color-primary-hover: #8bacc7;
  --color-primary-active: #a3bfd6;
  --color-primary-highlight: #22384c;

  --color-secondary: #94a2ab;
  --color-secondary-hover: #aeb9c0;

  --color-accent: #49a17b;
  --color-accent-hover: #5fb891;
  --color-accent-active: #7bcaa6;
  --color-accent-highlight: #1c3a2d;

  --color-success: #49a17b;
  --color-warning: #d08a4e;
  --color-error: #d4718a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b1520;
    --color-surface: #101c29;
    --color-surface-2: #13202e;
    --color-surface-offset: #16232f;
    --color-surface-offset-2: #1b2a38;
    --color-divider: #223140;
    --color-border: #2a3a49;
    --color-text: #dfe4e8;
    --color-text-muted: #8fa0ac;
    --color-text-faint: #5c6d78;
    --color-text-inverse: #101c29;
    --color-primary: #6f97b8;
    --color-primary-hover: #8bacc7;
    --color-primary-active: #a3bfd6;
    --color-primary-highlight: #22384c;
    --color-secondary: #94a2ab;
    --color-secondary-hover: #aeb9c0;
    --color-accent: #49a17b;
    --color-accent-hover: #5fb891;
    --color-accent-active: #7bcaa6;
    --color-accent-highlight: #1c3a2d;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 18px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
  }
}

/* ==========================================================================
   Base typography
   ========================================================================== */
body {
  font-family: var(--font-body);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}
p.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}
.muted {
  color: var(--color-text-muted);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
main {
  display: block;
}
section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
section.tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-10);
}
.section-head h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-3);
}
.grain {
  position: relative;
}

/* ==========================================================================
   Skip link
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: var(--space-2);
  z-index: 200;
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.skip-link:focus {
  left: var(--space-2);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand-mark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.brand-mark--dark {
  display: none;
}
[data-theme='dark'] .brand-mark--light {
  display: none;
}
[data-theme='dark'] .brand-mark--dark {
  display: block;
}
.footer-brand .brand-mark {
  height: 40px;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-word strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
[data-theme='dark'] .brand-word strong {
  color: var(--color-text);
}
.brand-word span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  gap: var(--space-6);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--color-text);
}
.nav-links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.nav-phone svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100dvh - 64px);
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8) var(--space-6);
    gap: var(--space-5);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    overflow-y: auto;
    z-index: 90;
  }
  .nav-links.is-open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: var(--text-lg);
  }
  .nav-mobile-only {
    display: block;
    width: 100%;
    margin-top: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-divider);
  }
  .nav-mobile-only + .nav-mobile-only {
    margin-top: var(--space-4);
    padding-top: 0;
    border-top: none;
  }
  .nav-mobile-only a {
    font-size: var(--text-base) !important;
    color: var(--color-text);
  }
  .nav-mobile-only .btn.btn-primary {
    color: #fdfefc;
  }
  .nav-mobile-only .btn {
    width: 100%;
    justify-content: center;
  }
  .nav-actions .nav-phone,
  .nav-actions > a.btn-primary {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}
@media (min-width: 861px) {
  .nav-mobile-only {
    display: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary {
  background: var(--color-accent);
  color: #fdfefc;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.22);
}
.btn-secondary:hover {
  background: var(--color-surface-offset);
  border-color: oklch(from var(--color-text) l c h / 0.35);
}
.btn-inverse {
  background: #fdfefc;
  color: var(--color-navy);
}
.btn-inverse:hover {
  background: color-mix(in oklab, #fdfefc 90%, var(--color-accent) 10%);
}
.btn-ghost-inverse {
  background: transparent;
  color: #fdfefc;
  border: 1px solid oklch(1 0 0 / 0.35);
}
.btn-ghost-inverse:hover {
  background: oklch(1 0 0 / 0.1);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fdfefc;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    oklch(0.12 0.03 250 / 0.92) 0%,
    oklch(0.14 0.03 250 / 0.72) 42%,
    oklch(0.16 0.03 250 / 0.32) 75%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-24) var(--space-16);
}
.hero-content .eyebrow {
  color: #bfe0cf;
}
.hero-content .eyebrow::before {
  background: #bfe0cf;
}
.hero h1 {
  font-size: var(--text-hero);
  margin-top: var(--space-4);
  max-width: 16ch;
  color: #fdfefc;
}
.hero p.lede {
  color: oklch(0.96 0.01 200 / 0.86);
  margin-top: var(--space-5);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid oklch(1 0 0 / 0.18);
}
.hero-trust div strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
}
.hero-trust div span {
  font-size: var(--text-xs);
  color: oklch(0.9 0.01 200 / 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Page header (non-home hero) */
.page-header {
  position: relative;
  color: #fdfefc;
  padding-block: clamp(var(--space-24), 16vw, var(--space-32)) var(--space-16);
  overflow: hidden;
}
.page-header-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-header-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-header-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    oklch(0.12 0.03 250 / 0.9) 0%,
    oklch(0.15 0.03 250 / 0.68) 60%
  );
}
.page-header-content {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-size: var(--text-3xl);
  margin-top: var(--space-3);
  max-width: 22ch;
  color: #fdfefc;
}
.page-header p.lede {
  color: oklch(0.95 0.01 200 / 0.85);
  margin-top: var(--space-4);
}
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: oklch(0.9 0.01 200 / 0.7);
  margin-bottom: var(--space-4);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fdfefc;
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip {
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-divider);
}
.trust-strip .container--wide {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
  padding-block: var(--space-5);
  align-items: center;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Service cards (asymmetric — avoid the 3-col AI grid)
   ========================================================================== */
.service-list {
  display: grid;
  gap: var(--space-6);
}
.service-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding-block: var(--space-10);
  border-top: 1px solid var(--color-divider);
}
.service-row:first-child {
  border-top: none;
}
.service-row:nth-child(even) .service-row-media {
  order: -1;
}
.service-row-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  letter-spacing: 0.05em;
}
.service-row h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-2);
}
.service-row p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  max-width: 44ch;
}
.service-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.service-row-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.1;
  box-shadow: var(--shadow-md);
}
.service-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-row a.btn {
  margin-top: var(--space-6);
}

@media (max-width: 860px) {
  .service-row {
    grid-template-columns: 1fr;
  }
  .service-row:nth-child(even) .service-row-media {
    order: 0;
  }
}

/* ==========================================================================
   Feature grid (why us) — 2+1 asymmetric
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
.why-list {
  display: grid;
  gap: var(--space-8);
}
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
}
.why-item .num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
}
.why-item h3 {
  font-size: var(--text-lg);
}
.why-item p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}
.why-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-media {
    order: -1;
  }
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
.process-step {
  position: relative;
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-divider);
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.85em;
  left: 0;
  background: var(--color-bg);
  padding-right: var(--space-3);
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: var(--text-sm);
}
.process-step h3 {
  font-size: var(--text-base);
  font-weight: 700;
}
.process-step p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (max-width: 860px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .process {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Divisions strip / stat band
   ========================================================================== */
.stat-band {
  background: var(--color-navy);
  color: #fdfefc;
}
.stat-band .container--wide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.stat-band .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
}
.stat-band .stat span {
  font-size: var(--text-sm);
  color: oklch(0.9 0.01 200 / 0.72);
}
@media (max-width: 760px) {
  .stat-band .container--wide {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-8);
  }
}

/* ==========================================================================
   Gallery / project grid
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.filter-btn {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}
.filter-btn.is-active {
  background: var(--color-navy);
  color: #fdfefc;
  border-color: var(--color-navy);
}
[data-theme='dark'] .filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0b1520;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.gallery-grid .card--wide {
  grid-column: span 2;
}
.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive);
}
.gallery-card:hover {
  box-shadow: var(--shadow-lg);
}
.gallery-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.gallery-card:hover .gallery-card-media img {
  transform: scale(1.04);
}
.gallery-card-body {
  padding: var(--space-5);
}
.gallery-card-body .tag {
  margin-bottom: var(--space-3);
}
.gallery-card-body h3 {
  font-size: var(--text-base);
}
.gallery-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.gallery-item[hidden] {
  display: none;
}
@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid .card--wide {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid .card--wide {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Values / cards (about)
   ========================================================================== */
.value-list {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(3, 1fr);
}
.value-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.value-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
}
.value-card p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (max-width: 860px) {
  .value-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .value-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  background: var(--color-navy);
  color: #fdfefc;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, oklch(0.55 0.1 165 / 0.28), transparent 60%);
}
.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.cta-inner h2 {
  font-size: var(--text-2xl);
  max-width: 20ch;
  color: #fdfefc;
}
.cta-inner p {
  margin-top: var(--space-3);
  color: oklch(0.92 0.01 200 / 0.78);
  max-width: 42ch;
}
.cta-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-12);
  align-items: start;
}
.contact-info-list {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.contact-info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.contact-info-item:last-child {
  border-bottom: none;
}
.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  margin-top: 2px;
}
.contact-info-item strong {
  display: block;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}
.contact-info-item a,
.contact-info-item p {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-base);
}
.contact-info-item a:hover {
  color: var(--color-accent);
}
.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-row.two-col {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-row label {
  font-size: var(--text-sm);
  font-weight: 600;
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: var(--text-base);
  color: var(--color-text);
  min-height: 44px;
}
.form-row textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}
.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-accent-highlight);
  color: var(--color-accent-active);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--space-4);
}
.form-success.is-visible {
  display: flex;
}
.form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
}
.form-section-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin: var(--space-9) 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.form-section-title:first-of-type {
  margin-top: 0;
}
.form-section-title span {
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}
.checkbox-item input {
  width: auto;
  min-height: auto;
  accent-color: var(--color-accent);
}
.form-row input[type="file"] {
  padding: var(--space-2);
  min-height: auto;
  cursor: pointer;
  font-size: var(--text-sm);
}
.form-row input[type="file"]::file-selector-button {
  margin-right: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  border: none;
  background: var(--color-accent);
  color: #fdfefc;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
}
.form-row input[type="file"]::file-selector-button:hover {
  background: var(--color-accent-hover);
}
.file-hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}
.form-required-flag {
  color: var(--color-accent);
  font-weight: 700;
}
.form-upload-summary {
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row.two-col,
  .form-row.three-col {
    grid-template-columns: 1fr;
  }
  .form-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-navy);
  color: oklch(0.92 0.01 200 / 0.85);
}
[data-theme='dark'] .footer {
  background: #081019;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--space-10);
  padding-block: var(--space-16) var(--space-10);
}
.footer-brand .brand {
  color: #fdfefc;
}
.footer-brand .brand-word strong {
  color: #fdfefc;
}
.footer-brand .brand-word span {
  color: oklch(0.9 0.01 200 / 0.6);
}
.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  max-width: 32ch;
  color: oklch(0.9 0.01 200 / 0.68);
}
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid oklch(1 0 0 / 0.18);
  color: #fdfefc;
}
.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.footer-social svg {
  width: 17px;
  height: 17px;
}
.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.9 0.01 200 / 0.55);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: grid;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: oklch(0.94 0.01 200 / 0.85);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
[data-theme='dark'] .footer-col a:hover {
  color: var(--color-accent);
}
.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 0.14);
  padding-block: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: oklch(0.9 0.01 200 / 0.55);
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #fdfefc;
}
@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ==========================================================================
   Reveal-on-scroll (opacity/translate only, respects reduced motion)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.mt-0 {
  margin-top: 0 !important;
}
.text-center {
  text-align: center;
  margin-inline: auto;
}
