/* Nexo — shared stylesheet. Colors are tentative (client may change), kept as variables for a one-place swap. */

/* Self-hosted fonts — files in assets/fonts/. Libre Franklin 800 (OFL) for Latin
   headings (heavier classic American Gothic grotesque, client-picked from a
   5-way comparison in font-preview.html on 2026-09-02), General Sans (Fontshare,
   free) for Latin body/UI, Almarai (OFL) for Arabic — 700 for headings, 400 for
   body (swapped from Cairo 2026-09-02, see ar-font-comparison decision log in
   CLAUDE.md — Almarai's rounder terminals read cleaner at body size and are
   widely used across Gulf mobile/government UI). Almarai only ships 400/700
   statically — no 500 or 600 — so Arabic UI text set at those weights (nav,
   buttons, eyebrows, labels) resolves to 700 via normal browser weight
   matching, not synthesis. */
@font-face {
  font-family: 'Libre Franklin';
  src: url('../assets/fonts/libre-franklin-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Almarai';
  src: url('../assets/fonts/almarai-arabic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Almarai';
  src: url('../assets/fonts/almarai-arabic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/general-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/general-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/general-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #F6F4EF;
  --color-surface: #FFFFFF;
  --color-ink: #1B1B18;
  --color-muted: #625F57;
  --color-accent: #1F5C43;
  --color-accent-dark: #143C2C;
  --color-accent-tint: #E4EDE8;
  --color-accent-on-dark: #6FBF9B;
  --color-border: rgba(27, 27, 24, 0.12);

  /* Almarai is in the BASE stacks too, not just the .ar/[dir=rtl] override below —
     so any Arabic character that slips through unwrapped (a button that doesn't
     inherit, a future CMS field, an aria-label) still lands on an Arabic-capable
     font instead of silently falling to the OS's system Arabic font. The Almarai
     files themselves are the Arabic-only subset, so the *-ar stacks route embedded
     Latin punctuation/digits back through our own Latin brand fonts before any
     system font, instead of jumping straight to Tahoma/Arial. */
  --font-sans: 'General Sans', 'Almarai', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-sans-ar: 'Almarai', 'General Sans', Tahoma, Arial, sans-serif;
  --font-display: 'Libre Franklin', 'Almarai', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display-ar: 'Almarai', 'Libre Franklin', Tahoma, Arial, sans-serif;

  --container: 1120px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Form controls don't inherit font-family from the page by default in the
   browser's own UA stylesheet — real <button>/<input>/<select>/<textarea>
   silently drop to the OS system font otherwise, which is exactly how Arabic
   button text (e.g. the submit button) would slip past Almarai unnoticed. */
button, input, select, textarea { font-family: inherit; }
html { scroll-behavior: smooth; }
@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; }
}

/* Lenis smooth scroll requires its own stylesheet — loading the JS alone
   isn't enough, html keeps an explicit pixel height without this (learned
   on almundhir-website). js/main.js only initializes Lenis when JS is on
   and prefers-reduced-motion is off, so these rules are inert otherwise. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:lang(ar), [dir="rtl"] body { font-family: var(--font-sans-ar); }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-2); color: var(--color-muted); }
.lede { font-size: 1.125rem; color: var(--color-muted); max-width: 46em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

section { padding-block: var(--space-6); }
section.tight { padding-block: var(--space-5); }

/* Skip link */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { inset-inline-start: 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* no-js guard: content visible by default, only hidden once JS confirms it can animate it back in */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
.js .reveal { animation: reveal-failsafe 0.01s linear 3s forwards; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  gap: var(--space-3);
}
.logotype {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--color-ink);
  white-space: nowrap;
}
.logotype-icon { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 120ms ease-out;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
}
.lang-switch {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.375rem 0.625rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--space-3) var(--space-3);
    display: none;
    opacity: 0;
    transform: translateY(-6px);
    /* display included in the transition (with allow-discrete) so the closed
       state stays display:none — fully out of the tab order and accessibility
       tree, same as before — instead of just visually hidden. Browsers without
       @starting-style support just snap instantly, no worse than pre-animation. */
    transition: opacity 180ms ease-out, transform 180ms ease-out, display 180ms allow-discrete;
  }
  .nav-links.is-open { display: flex; opacity: 1; transform: none; }
  @starting-style {
    .nav-links.is-open { opacity: 0; transform: translateY(-6px); }
  }
  .nav-links a { display: block; padding: var(--space-2) 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-secondary { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-secondary:hover { background: var(--color-ink); color: var(--color-bg); }
.btn-outline-light { background: transparent; color: var(--color-bg); border-color: rgba(246, 244, 239, 0.5); }
.btn-outline-light:hover { background: rgba(246, 244, 239, 0.14); border-color: var(--color-bg); }
.btn-group { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Hero — full-bleed photo, dark scrim, overlaid text */
.hero-inner { max-width: 42em; }

.hero--photo {
  position: relative;
  overflow: hidden;
  color: var(--color-bg);
  padding-block: 6rem 4.5rem;
  min-height: 32rem;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 27, 24, 0.96) 0%, rgba(27, 27, 24, 0.88) 55%, rgba(27, 27, 24, 0.72) 100%);
}
.hero--photo .hero-inner { position: relative; max-width: 34em; }
.hero--photo .eyebrow { color: var(--color-accent-on-dark); }
.hero--photo h1 { color: var(--color-bg); }
.hero--photo .lede { color: rgba(246, 244, 239, 0.85); }
@media (max-width: 640px) {
  .hero--photo { min-height: 28rem; padding-block: 5rem 3.5rem; }
}
.hero--compact { min-height: 22rem; padding-block: 5.5rem 3rem; }
@media (max-width: 640px) {
  .hero--compact { min-height: 18rem; padding-block: 4.5rem 2.5rem; }
}

/* Content section images */
.content-figure { margin: var(--space-4) 0; }
.content-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.content-figure--narrow { max-width: 420px; }
.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}
.content-split img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
@media (max-width: 720px) {
  .content-split { grid-template-columns: minmax(0, 1fr); }
}

/* Numbered list — editorial "what we do" treatment, no cards/icons/boxes.
   Studied from zypsy.com's accordion list and zetta-joule.com's divider-led
   capability list at the client's request, 2026-09-02. */
.numbered-list { margin-top: 2.5rem; }
.numbered-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--color-border);
}
.numbered-list .numbered-row:last-child { border-bottom: 1px solid var(--color-border); }
.numbered-row-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-accent);
  padding-top: 0.25rem;
}
.numbered-row-body h2, .numbered-row-body h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.numbered-row-body p { margin-bottom: 0; max-width: 42em; font-size: 1rem; }
@media (max-width: 640px) {
  .numbered-row { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; padding-block: 1.375rem; }
  .numbered-row-body h2, .numbered-row-body h3 { font-size: 1.1875rem; }
}

/* Process flow — "How it works", Home only. A connected step-flow (line +
   circle badges), not another vertical numbered list — Home already has
   .numbered-list, Services has ghost-numeral chapters, About has dividers;
   this is a fourth, genuinely different device on purpose. The line is one
   full-width pseudo-element on the container, not per-step, so circles
   (opaque background) simply sit on top and "cut" it into segments —
   avoids a gappy/misaligned line across the grid's gutters. */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  position: relative;
}
.process-flow::before {
  content: '';
  position: absolute;
  top: 1.375rem;
  inset-inline: 1.375rem;
  height: 1px;
  background: var(--color-border);
}
.process-step-num {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  background: var(--color-bg);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.process-step h3 { font-size: 1.0625rem; margin-bottom: 0.375rem; }
.process-step p { font-size: 0.9375rem; margin-bottom: 0; }
@media (max-width: 780px) {
  .process-flow { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .process-flow::before {
    top: 0;
    bottom: 0;
    inset-inline: auto;
    inset-inline-start: 1.375rem;
    width: 1px;
    height: auto;
  }
}

/* Activity list — Services page only. The raw 18 licensed activities behind
   the 5 grouped chapters above, deliberately the plainest device on the
   site: no numbers, just a small accent dot. This section is a reference/
   receipts moment, not a marketing beat, so it's styled to read that way. */
.activity-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  columns: 3;
  column-gap: 2rem;
}
.activity-list li {
  break-inside: avoid;
  position: relative;
  padding-inline-start: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-ink);
}
.activity-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
@media (max-width: 780px) {
  .activity-list { columns: 1; }
}
@media (min-width: 781px) and (max-width: 980px) {
  .activity-list { columns: 2; }
}

/* Pricing stats — Services page, Tiling & Marble detail section only.
   Reuses the About page's stat-numeral device (.about-intro-stat-num: big
   accent numeral, font-display 800) instead of a plain label/value row, so
   pricing reads as an extension of a pattern already on the site rather
   than a separate, plainer component. Scaled down from About's 3.5rem
   single stat since this repeats six times in a list. */
.pricing-stats { margin-top: 1.5rem; }
.pricing-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.pricing-stats .pricing-stat-row:last-child { border-bottom: 1px solid var(--color-border); }
.pricing-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pricing-stat-unit { font-size: 0.875rem; font-weight: 600; margin-inline-start: 0.25rem; }
.pricing-stat-label { font-size: 0.9375rem; color: var(--color-ink); }
@media (max-width: 640px) {
  .pricing-stat-row { grid-template-columns: minmax(0, 1fr); gap: 0.375rem; padding-block: 1rem; }
  .pricing-stat-num { font-size: 1.75rem; }
}
.pricing-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  font-style: italic;
}

/* Price teaser strip — Home only. Three representative Tiling & Marble
   starting prices, not the full six-row breakdown (only one of five
   services has fixed pricing yet) — a glance that links through to
   Services, not a duplicate reference table. Deliberately unlike
   .pricing-stats so Home doesn't read as a shrunken copy of Services. */
.price-teaser-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-block: 2rem;
  border-block: 1px solid var(--color-border);
  text-align: center;
}
.price-teaser-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.price-teaser-label {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}
@media (max-width: 640px) {
  .price-teaser-strip { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; text-align: start; }
}

/* Service gallery — a plain, uniform square-crop grid (no borders, shadows,
   or hover-zoom gimmicks), closer to a portfolio contact sheet than a card
   wall. object-fit does the cropping live, so the source images only need
   to be capped at a max dimension, not pre-cropped. */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.service-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.service-gallery-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
@media (max-width: 640px) {
  .service-gallery { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; }
}

/* Technical proof strip — Tiling & Marble detail section. Four specific,
   named capabilities, each backed by one real photo. Label scrim reuses the
   hero's own contrast-verified gradient recipe (css/style.css .hero-bg::after)
   rather than a second gradient formula. */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.proof-card { margin: 0; }
.proof-card-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.proof-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 27, 24, 0.9) 0%, rgba(27, 27, 24, 0.35) 45%, rgba(27, 27, 24, 0) 70%);
}
.proof-card-label {
  position: absolute;
  inset-inline: 0.875rem;
  bottom: 0.75rem;
  color: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.proof-card-caption { margin-top: 0.625rem; font-size: 0.8125rem; color: var(--color-muted); }

/* Featured gallery tier — curated highlights, bigger cells than the plain
   archive grid below, with a restrained hover/focus scale using .btn's own
   160ms-family timing (css/style.css .btn), not a new arbitrary duration.
   The archive tier intentionally keeps the original plain, un-hovered grid —
   it's 96 placeholder-quality photos behind a disclosure, not a showcase. */
.service-gallery--featured { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery-thumb { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-thumb img { transition: transform 200ms ease-out; }
.gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(1.03); }

/* Full gallery archive — native <details>, zero new JS/library. This site's
   "no framework, no build step" convention (see CLAUDE.md) already rules out
   a lightbox for a placeholder-quality photo set; a real viewer is a later
   upgrade once real project photography replaces this set (see
   docs/GALLERY-SOURCING.md). */
.gallery-archive { margin-top: 2.5rem; }
.gallery-archive > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-accent);
  padding: 0.875rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.gallery-archive[open] > summary { border-bottom: none; }
.gallery-archive .service-gallery { margin-top: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--color-border); }

/* Contact band — Home's closing CTA. Accent-tint background gives it a
   third distinct section treatment (plain / solid-accent .strip / tint),
   not a copy of either. Channels are full-block links, not tiny buttons —
   bigger, more honest tap targets than the single CTA this replaced. */
.contact-band { background: var(--color-accent-tint); }
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
  text-align: start;
}
.contact-channel {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-channel:hover { border-color: var(--color-accent); background: var(--color-surface); }
.contact-channel-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.625rem;
}
.contact-channel-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.375rem;
}
.contact-channel-desc { display: block; font-size: 0.875rem; color: var(--color-muted); }
@media (max-width: 720px) {
  .contact-channels { grid-template-columns: minmax(0, 1fr); }
}

/* Service chapters — Services page only. Distinct from the homepage's compact
   numbered-list: large ghost numerals, wider two-column split, more air.
   Deliberately not reused elsewhere so pages don't feel copy-pasted. */
.service-chapters { margin-top: 1rem; }
.service-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
  padding-block: 3rem;
  border-top: 1px solid var(--color-border);
}
.service-chapters .service-chapter:last-child { border-bottom: 1px solid var(--color-border); }
.service-chapter-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--color-accent-tint);
}
.service-chapter-body h2 { font-size: 1.625rem; margin-bottom: 0.625rem; }
.service-chapter-body p { margin-bottom: 0; max-width: 42em; font-size: 1rem; }
@media (max-width: 720px) {
  .service-chapter { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding-block: 2rem; }
  .service-chapter-num { font-size: 3rem; }
}

/* Chapters with a real photo (currently 01/02/03) let the numeral recede —
   the photo carries the visual weight instead — while keeping the same
   two-column grid and DOM shape as every other chapter, so the Arabic mirror
   and the 720px stack rule above need no separate override. */
.service-chapter-num--small { font-size: 1.5rem; color: var(--color-accent); }
@media (max-width: 720px) {
  .service-chapter-num--small { font-size: 1.25rem; }
}

/* Reuses .content-split (defined above, previously built but unused on any
   page) for the chapter's own image+text split, nested inside the existing
   two-column chapter grid rather than replacing it. */
.service-chapter-photo { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 721px) {
  .content-split--flip > *:first-child { order: 2; }
  .content-split--flip > *:last-child { order: 1; }
}

/* Chapters with no photography yet (currently 04/05 — MEP, Renovation) get
   more air and a larger numeral instead of a missing photo, so the asymmetry
   reads as a deliberate typographic choice, not an empty slot. */
.service-chapter--wide { padding-block: var(--space-5); }
/* The sitewide ghost-numeral tint (--color-accent-tint) measures ~1.1:1
   against the page background — fine as pure background texture behind
   chapters 01-03's own small, fully-legible tag, but these two chapters
   have no photo and rely on the numeral to carry real visual weight, so it
   needs to actually be visible. #608A77 measures 3.54:1 (verified by
   script) — clears WCAG AA's 3:1 threshold for large text while staying a
   quiet, muted tone rather than full-strength --color-accent. */
.service-chapter--wide .service-chapter-num { color: #608A77; }
@media (max-width: 720px) {
  .service-chapter--wide { padding-block: 2.5rem; }
}

/* Activity chips — real CR-sourced activity names (see .activity-list),
   giving text-only chapters concrete texture without inventing imagery.
   Flat rectangular tags, not pills — matches this project's card/shape
   conventions rather than a generic pill-badge look. */
.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chip {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.375rem 0.75rem;
}

/* Services page — Tiling & Marble detail section. Top margin matches the
   section-to-section separation used elsewhere on this page (e.g. the "18
   licensed activities" heading's own margin-top: 3rem is close but this is
   a bigger structural break, same weight as section.tight's own padding
   token), not the tighter spacing used between items inside a single list. */
.service-detail { margin-top: var(--space-5); }

/* About intro — stat sidebar + flowing text. Reuses the real, already-
   verified "18 licensed scopes" figure (also used in Home's strip) as a
   visual anchor for the one section on the site that had no eyebrow/heading
   at all. A fifth distinct numbered/fact device on purpose: accent border +
   large colored numeral, not a circle, ghost numeral, or divided column. */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.about-intro-stat {
  border-inline-start: 2px solid var(--color-accent);
  padding-inline-start: 1.5rem;
}
.about-intro-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-accent);
}
.about-intro-stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 14em;
}
.about-intro-body p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

/* Pillars — About page's "how we work" only. Vertical dividers, single row,
   no numbers: a different device again so About doesn't echo Home or Services. */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
  border-block: 1px solid var(--color-border);
}
.pillar {
  padding: 2rem 1.75rem;
  border-inline-start: 1px solid var(--color-border);
}
.pillar:first-child { border-inline-start: none; }
.pillar h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.pillar p { font-size: 0.9375rem; margin-bottom: 0; }
@media (max-width: 720px) {
  .pillars { grid-template-columns: minmax(0, 1fr); border-block: none; }
  .pillar { border-inline-start: none; border-top: 1px solid var(--color-border); padding: 1.5rem 0; }
  .pillar:first-child { border-top: none; }
}

/* Strip / stat row */
.strip {
  background: var(--color-accent);
  color: var(--color-bg);
}
.strip .eyebrow, .strip h2 { color: var(--color-bg); }
.strip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}
.strip-list li { padding-inline-start: var(--space-2); border-inline-start: 2px solid rgba(246, 244, 239, 0.4); }

/* Contact page two-column layout */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--space-4);
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Forms */
.form-grid { display: grid; gap: var(--space-2); max-width: 32em; }
label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.375rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
  min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: var(--space-2); }
.honeypot { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-4);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.footer-grid h3 { font-size: 0.875rem; color: var(--color-ink); margin-bottom: var(--space-1); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.375rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-legal {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

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

/* Print — nav/buttons/toggles are meaningless on paper, and the hero's text
   is styled light-on-dark for a photo overlay that browsers typically don't
   print by default (background images/colors are usually stripped unless
   the visitor explicitly enables them), which would otherwise leave white
   text on a white page. */
@media print {
  .site-header, .nav-toggle, .lang-switch, .skip-link, .btn, .contact-channels, .service-gallery, .proof-grid, .gallery-archive {
    display: none;
  }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .hero--photo { min-height: 0; padding-block: 1rem; }
  .hero--photo .eyebrow, .hero--photo h1, .hero--photo .lede {
    color: #000;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  section { padding-block: var(--space-3); }
}
