/* =========================================================
   Chris Ward Carpets & Flooring — Archscale-style restyle
   Warm cream, floating dark pill nav, italic serif accents
   ========================================================= */

:root {
  /* Palette */
  --color-bg: #ffffff;            /* page background — white */
  --color-bg-alt: #f4f4f4;        /* unified subtle grey */
  --color-surface: #f4f4f4;       /* cards / containers on a white background */
  --color-cream: #f4f4f4;
  --color-light-brown: #f4f4f4;
  --color-ink: #111111;
  --color-ink-soft: #413936;
  --color-muted: #7a7367;
  --color-line: #dcd8d5;

  --color-dark: #111;
  --color-dark-2: #1b1b1b;
  --color-brown: #413936;

  /* Primary brand accent — blue (terracotta moved to a secondary supporting tone) */
  --color-accent: #2b48d6;
  --color-accent-ink: #1d3aa6;
  --color-success: #2f7a3a;

  /* Blue family — primary */
  --color-blue: #2b48d6;
  --color-blue-dark: #1d3aa6;
  --color-blue-light: #dde5ff;
  --color-blue-lighter: #eef1ff;

  /* Secondary tones — formerly warm (red/yellow), remapped to blue variants */
  --color-terracotta: #2b48d6;        /* was red — now primary blue */
  --color-terracotta-dark: #1d3aa6;
  --color-terracotta-light: #dde5ff;
  --color-sage: #8ba088;
  --color-sage-light: #d6ddd0;
  --color-sage-lighter: #e7ece2;
  --color-ochre: #4361ee;             /* was yellow — now lighter blue */
  --color-ochre-light: #c8d3ff;
  --color-ochre-lighter: #eef1ff;
  --color-peach: #a4b8ff;              /* was peach — now pale steel-blue */
  --color-peach-light: #e6ebff;
  --color-plum: #1d3aa6;                /* was warm plum — now deep blue */
  --color-plum-light: #dde5ff;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04), 0 1px 1px rgba(17,17,17,0.03);
  --shadow-md: 0 14px 30px -18px rgba(17, 17, 17, 0.20), 0 4px 10px -4px rgba(17,17,17,0.06);
  --shadow-lg: 0 40px 80px -36px rgba(17, 17, 17, 0.45);

  /* Radius */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --radius-xl: 44px;

  --container: 1320px;
  --container-narrow: 880px;

  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-script: "Allura", "Lora", "Brush Script MT", cursive; /* flowing brush-script for heading highlights, echoes the logo */

  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { opacity: 0.7; }
button { font: inherit; cursor: pointer; }

/* Heading highlight: <em> inside a heading becomes serif italic (Lora) at +100 weight. */
h1 em, h2 em, h3 em, h4 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0 0 0.5em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 4.5vw + 1rem, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 2.2vw + 1rem, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, .6vw + 1rem, 1.35rem); font-weight: 500; }
h4 { font-size: 1rem; font-weight: 500; }

em, .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
.lede { font-size: 1.1rem; color: var(--color-ink-soft); }

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

.skip-link {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
  background: var(--color-ink); color: #fff; border-radius: 6px;
  z-index: 1000;
}
.skip-link:focus {
  position: absolute; top: 8px; left: 8px;
  width: auto; height: auto; padding: 8px 14px; margin: 0;
  clip: auto; overflow: visible; color: #fff;
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 7vw, 112px) 0; }
.section--tight { padding: clamp(32px, 5vw, 64px) 0; }
.section--alt { background: #f4f4f4; }
.section--dark { background: var(--color-dark-2); color: #e8e4df; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--color-cream); }

/* ----- Coloured "breakout" sections that punctuate the white/grey rhythm ----- */

/* Soft pale-blue band — light enough that text stays dark */
.section--blue { background: var(--color-blue-lighter); }

/* Deep brand-blue band — full colour with white text and white containers.
   Uses the darkest blue so it sits one step below the brighter marquee USP band. */
.section--deep {
  background: #0f0b32;
  color: #e9eeff;
}
.section--deep h1,
.section--deep h2,
.section--deep h3 { color: #ffffff; }
.section--deep p { color: #c8d3ff; }
.section--deep a:not(.btn) { color: #ffffff; }
.section--deep .eyebrow {
  background: rgba(255,255,255,0.12);
  color: #f0f4ff;
  border-color: rgba(255,255,255,0.18);
}
.section--deep .eyebrow::before { background: #ffffff; }
.section--deep .btn--primary { background: #fff; color: var(--color-blue-dark); border-color: #fff; }
.section--deep .btn--primary:hover { opacity: .9; }
.section--deep .btn--dark { background: #ffffff; color: var(--color-blue-dark); border-color: #ffffff; }
.section--deep .btn--dark:hover { opacity: .9; }
.section--deep ul li,
.section--deep .split ul li { color: #d8e0ff; }
.section--deep ul li::before,
.section--deep .split ul li::before { color: #ffffff; }
.section--deep strong { color: #ffffff; }

/* Cards / service-rows that sit on a deep-blue section keep their normal
   dark-on-white text — they are white surfaces, not the blue. */
.section--deep .service-row,
.section--deep .service-row h2,
.section--deep .service-row h3,
.section--deep .service-row h4,
.section--deep .card,
.section--deep .card h2,
.section--deep .card h3,
.section--deep .card h4 { color: var(--color-ink); }
.section--deep .service-row p,
.section--deep .card p,
.section--deep .testimonial p,
.section--deep .testimonial { color: var(--color-ink-soft); }
.section--deep .testimonial__quote { color: var(--color-ink); }
.section--deep .testimonial__name { color: var(--color-ink); }
.section--deep .service-row a:not(.btn),
.section--deep .card a:not(.btn) { color: var(--color-ink); }
/* Service-card image tiles inside a deep blue services section keep their
   normal dark text and the arrow stays blue-on-white. */
.section--deep .service-card,
.section--deep .service-card * { color: var(--color-ink); }
.section--deep .service-card .service-card__arrow { background: var(--color-blue); color: #ffffff; }
.section--deep .service-row__link { color: var(--color-ink); }
.section--deep .service-row ul li,
.section--deep .card ul li { color: var(--color-ink-soft); }
.section--deep .service-row ul li::before,
.section--deep .card ul li::before { color: var(--color-ink); }
/* Containers nested in --blue or --deep stay white so they stand out */
.section--blue,
.section--deep {
  --color-surface: #ffffff;
}

/* Split background variant — top half deep blue, bottom half subtle grey,
   with the split running behind the centre of the tiles inside. */
.section--split {
  position: relative;
  background: #f4f4f4;       /* bottom half */
  isolation: isolate;
}
.section--split > * { position: relative; }
.section--split::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  /* Leave roughly the bottom half of a tile + section padding showing grey */
  bottom: clamp(200px, 20vw, 320px);
  background: #0f0b32;       /* top half */
  z-index: 0;
}

/* Coloured section variants */
/* Previously warm-colour section variants — now flattened to the same
   subtle grey. Colours live on only as eyebrow/icon/button accents. */
.section--peach,
.section--ochre { background: #f4f4f4; }
/* Any container that normally uses the grey surface colour should sit on
   WHITE when it's inside a coloured / grey section so it stands out. */
.section--alt,
.section--peach,
.section--ochre,
.section--terracotta,
.section--plum,
.section--blue,
.section--deep {
  --color-surface: #ffffff;
}
/* --terracotta and --plum were full-colour dark sections; now also flattened
   to the subtle grey with default ink text. The accent colour only lives on
   the eyebrow / button / icon-box inside. */
.section--terracotta,
.section--plum { background: #f4f4f4; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-blue-dark);
  margin-bottom: 18px;
  padding: 6px 14px;
  background: var(--color-blue-light);
  border: 1px solid var(--color-blue-light);
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-blue);
}
/* Optional eyebrow variants — colour-rotate where useful */
.eyebrow--ochre { color: var(--color-ochre); background: var(--color-ochre-lighter); border-color: var(--color-ochre-lighter); }
.eyebrow--ochre::before { background: var(--color-ochre); }
.eyebrow--terracotta { color: var(--color-terracotta-dark); background: var(--color-terracotta-light); border-color: var(--color-terracotta-light); }
.eyebrow--terracotta::before { background: var(--color-terracotta); }
.eyebrow--plum { color: var(--color-plum); background: var(--color-plum-light); border-color: var(--color-plum-light); }
.eyebrow--plum::before { background: var(--color-plum); }
.section--dark .eyebrow {
  background: rgba(255,255,255,.08);
  color: #ddd6cb;
  border-color: rgba(255,255,255,.12);
}
.section--dark .eyebrow::before { background: #ddd6cb; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { opacity: 1; }

/* Primary: cream pill on dark bg (Archscale main CTA) */
.btn--primary {
  background: var(--color-cream);
  color: var(--color-ink);
  border-color: var(--color-cream);
}
.btn--primary:hover { background: #fff; border-color: #fff; }

/* Dark: black/ink pill on cream bg */
.btn--dark {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
.btn--dark:hover { background: #000; border-color: #000; color: #fff; }

/* Secondary: outlined */
.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--secondary:hover { background: var(--color-ink); color: #fff; }

/* Ghost: on cream */
.btn--ghost {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn--ghost:hover { border-color: var(--color-ink); }

/* On-dark secondary */
.section--dark .btn--secondary { color: #fff; border-color: #fff; }
.section--dark .btn--secondary:hover { background: #fff; color: var(--color-ink); }

.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }
.btn .icon { width: 14px; height: 14px; }

/* Tiny caret in CTA */
.btn--cta-arrow::after {
  content: "→";
  margin-left: 4px;
  font-size: 1rem;
  transition: transform .15s ease;
}
.btn--cta-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header: full-width, transparent -> white on scroll ----------
   Default state (non-home pages): solid white header with dark text.
   Home page adds body.transparent-header → starts transparent with white
   text, overlaying the hero. On scroll, body.is-scrolled → solid.
---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  color: var(--color-ink);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
  box-shadow: 0 1px 0 rgba(17,17,17,0.06);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 28px;
}

/* Default body padding to clear the fixed header */
body { padding-top: var(--header-h); }

/* --- Transparent variant (home) --- */
body.transparent-header { padding-top: 0; }
body.transparent-header .site-header {
  background: transparent;
  color: #fff;
  box-shadow: none;
}
body.transparent-header.is-scrolled .site-header {
  background: #ffffff;
  color: var(--color-ink);
  box-shadow: 0 2px 20px -10px rgba(17,17,17,.14);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { opacity: 1; }
.brand__logo { height: 53px; width: auto; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: inherit;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  transition: color .15s ease, background .15s ease, opacity .15s ease;
}
.nav__link:hover { opacity: .75; }
.nav__link[aria-current="page"] {
  background: rgba(17,17,17,0.06);
}
body.transparent-header:not(.is-scrolled) .nav__link[aria-current="page"] {
  background: rgba(255,255,255,0.14);
}

/* Nav CTA button (stays a dark pill with white text across all states) */
.nav__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  color: #fff;
  background: var(--color-ink);
  padding: 11px 20px;
  border-radius: 999px;
  margin-left: 8px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav__call:hover { background: #000; opacity: 1; color: #fff; }
.nav__call .icon {
  width: 14px; height: 14px;
  color: #fff;
  flex-shrink: 0;
}
/* On transparent header: invert CTA so it pops on dark imagery */
body.transparent-header:not(.is-scrolled) .nav__call {
  background: #fff;
  color: var(--color-ink);
}
body.transparent-header:not(.is-scrolled) .nav__call:hover { background: #fff; opacity: .9; }
body.transparent-header:not(.is-scrolled) .nav__call .icon { color: var(--color-ink); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  color: inherit;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-block; }

/* Header actions wrapper — transparent on desktop so children (hidden on
   desktop) don't affect layout; becomes a flex group on mobile. */
.header-actions { display: contents; }
.mobile-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 999px;
  background: var(--color-ink);
  color: #fff;
  border: 1px solid var(--color-ink);
  white-space: nowrap;
  transition: opacity .15s ease;
}
.mobile-cta:hover { opacity: .85; color: #fff; }
/* On a transparent header (over a dark hero) switch the mobile CTA to brand
   blue so the dark pill doesn't disappear into the navy. */
body.transparent-header:not(.is-scrolled) .mobile-cta {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #ffffff;
}
body.transparent-header:not(.is-scrolled) .nav-toggle { color: #ffffff; }

/* Desktop: nav__actions is a pass-through wrapper so the nav__call still
   sits inline with .nav__list. Quote CTA is hidden on desktop (the header
   already has a quote button via .mobile-cta's sibling slot on wide screens
   the main CTA lives in the page header / hero). */
.nav__actions { display: contents; }
.nav__cta-quote { display: none; }

@media (max-width: 960px) {
  .site-header__inner { padding: 10px 20px; }
  .brand__logo { height: 46px; }
  .header-actions { display: inline-flex; align-items: center; gap: 6px; }
  .mobile-cta { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px; right: 16px;
    background: #ffffff;
    color: var(--color-ink);
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-line);
  }
  .nav.is-open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
    align-items: stretch;
  }
  .nav__link {
    display: block;
    text-align: left;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 14px;
    color: var(--color-ink);
  }
  .nav__link:hover { background: var(--color-cream); opacity: 1; }
  .nav__link[aria-current="page"] {
    background: var(--color-cream);
    color: var(--color-ink);
  }

  /* Two actions docked at the bottom of the dropdown, side by side */
  .nav__actions {
    display: flex;
    gap: 8px;
    margin: 12px 4px 4px;
  }
  .nav__actions > a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
  }
  .nav__cta-quote {
    background: var(--color-terracotta);
    color: #fff;
    border: 1px solid var(--color-terracotta);
  }
  .nav__cta-quote:hover { opacity: .9; color: #fff; }
  .nav__cta-quote .icon { width: 16px; height: 16px; color: #fff; }
  .nav__call {
    background: var(--color-ink);
    color: #fff;
    border: 1px solid var(--color-ink);
    padding: 14px 16px;       /* override the desktop pill padding */
    margin: 0;
  }
  .nav__call:hover { opacity: .9; color: #fff; }
  .nav__call .icon { width: 16px; height: 16px; color: #fff; }
}

/* ---------- Hero (full-width dark image with overlay) ---------- */
.hero {
  padding: 0;
  margin: 0;
}
.hero__wrap {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #1c1612;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 28px 64px;
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,.35) 0%, rgba(17,17,17,.55) 60%, rgba(17,17,17,.75) 100%);
  z-index: -1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,.1);
  color: #f1ece3;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ddd;
}

.hero h1 {
  color: #fff;
  font-weight: 400;
  max-width: 15ch;
  margin: 0 auto 28px;
  font-size: clamp(2.6rem, 4.6vw + 1rem, 4.8rem);
  line-height: 1.04;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.hero__ctas {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Floating badge in hero */
.hero__badge {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: rgba(255,255,255,.08);
  color: #f1ece3;
  padding: 14px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  text-align: left;
  max-width: 240px;
  font-size: 0.9rem;
}
.hero__badge strong {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .hero__badge { display: none; }
  .hero__wrap { padding: 64px 20px 44px; min-height: 640px; }
}

/* ---------- Logo / accreditation row ---------- */
.logo-row {
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin: 32px 0 0;
}
.logo-row__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.logo-row__item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--color-ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.logo-row__item sup { font-size: 0.55em; margin-left: 2px; opacity: .7; }
@media (max-width: 720px) {
  .logo-row__list { justify-content: center; gap: 14px 22px; }
  .logo-row__item { font-size: 1.05rem; }
}

/* ---------- Intro card (warm peach card) ---------- */
.intro-card {
  background: var(--color-peach-light);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 92px) 32px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  border: 1px solid rgba(215, 165, 100, .18);
}
.intro-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--color-plum);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  border: 1px solid rgba(107, 61, 58, .12);
  font-weight: 500;
}
.intro-card__tag::before {
  content: "✳";
  color: var(--color-terracotta);
}
.intro-card p {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--color-ink);
  max-width: 60ch;
  margin: 0 auto 28px;
}
.intro-card p em { font-family: var(--font-serif); font-style: italic; }

/* ---------- Stats (terracotta banner) ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.18);   /* thin white dividers on the deep blue */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat {
  background: var(--color-blue-dark);
  text-align: center;
  padding: 44px 16px;
  color: #e9eeff;
}
.stat__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.4rem, 3.5vw + 1rem, 3.6rem);
  line-height: 1;
  color: #ffffff;
  font-weight: 400;
}
.stat__label {
  margin-top: 10px;
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  letter-spacing: .02em;
}
@media (max-width: 720px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Section heads ---------- */
.section-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-hdr__title {
  max-width: 720px;
}
.section-hdr__title h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}
.section-hdr__side {
  max-width: 320px;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
}
.section-hdr__side p { margin: 0 0 14px; }

/* ---------- Service rows (Effective Showcase list) ---------- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 40px;
  align-items: stretch;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Left column: content top, learn-more pinned bottom */
.service-row__body {
  display: flex;
  flex-direction: column;
  padding: 16px 0 12px 16px;
}
.service-row__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-cream);
  color: var(--color-ink);
  margin-bottom: 14px;
}
.service-row__icon svg { width: 22px; height: 22px; }

/* Alternate service-row icons — blue (primary) & yellow ochre. */
.service-row:nth-child(odd) .service-row__icon {
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
}
.service-row:nth-child(even) .service-row__icon {
  background: var(--color-ochre-light);
  color: var(--color-blue-dark);
}
.service-row h3 { margin: 0 0 8px; font-weight: 500; font-size: 1.35rem; }
.service-row p { color: var(--color-ink-soft); margin: 0 0 14px; max-width: 60ch; }
.service-row__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.92rem;
  color: var(--color-ink);
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-ink);
  margin-top: auto;
  align-self: flex-start;
}
.service-row__link:hover { opacity: .7; }

.service-row__media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-light-brown);
  align-self: stretch;
}
.service-row__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 960px) {
  .service-row { grid-template-columns: 1fr 380px; gap: 28px; }
}
@media (max-width: 820px) {
  .service-row { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .service-row__body { padding: 4px 4px 8px; }
  .service-row__media { aspect-ratio: 16/10; order: -1; }
}

/* ---------- Projects grid (asymmetric) ---------- */
.projects {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
}
.projects__tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-light-brown);
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  /* Stretch to match the tallest tile in each grid row (aspect-ratio stays as
     the intrinsic sizer; width/height:100% defers to the grid track dimensions
     so tiles never overflow). */
  width: 100%;
  height: 100%;
}
.projects__tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.projects__tile:hover img { transform: scale(1.04); }
.projects__tile:hover { opacity: 1; }
.projects__tile--wide { aspect-ratio: 2.1/1; }
.projects__tile--full { grid-column: 1 / -1; aspect-ratio: 2.8/1; }
.projects__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  font-size: calc(0.92rem + 6px);
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  /* Sit above the hover-overlay pseudo-element so the caption stays white on hover */
  z-index: 2;
}
.projects__caption::after {
  content: "→";
  font-size: calc(1.1rem + 6px);
  color: #fff;
  opacity: .9;
}
.projects__tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 55%);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 1;
}
.projects__tile:hover::after { opacity: 1; }
@media (max-width: 820px) {
  .projects { grid-template-columns: 1fr; }
  .projects__tile--wide, .projects__tile--full { grid-column: auto; aspect-ratio: 4/3; }
}

/* ---------- Dark intro block (warm plum) ---------- */
.dark-block {
  background: var(--color-plum);
  color: #f3e7e4;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.dark-block__left {
  display: inline-flex;
  flex-direction: column;
}
.dark-block__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,.08);
  color: #e0dbd2;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 20px;
  align-self: flex-start;
}
.dark-block__tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ddd;
}
.dark-block p { color: #d7d1c5; max-width: 50ch; }
.dark-block p em { font-family: var(--font-serif); font-style: italic; color: #f2ede4; }
.dark-block__right { color: #cfc8bb; font-size: 0.95rem; }
.dark-block__right p { color: #cfc8bb; }
@media (max-width: 820px) {
  .dark-block { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Testimonials (light cards) ---------- */
.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial__stars {
  display: inline-flex; gap: 2px; color: var(--color-blue); margin-bottom: 14px;
}
.testimonial__stars svg { width: 16px; height: 16px; }
.testimonial__quote {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink);
  margin: 0 0 20px;
}
.testimonial__quote em { font-family: var(--font-serif); font-style: italic; }
.testimonial__attrib {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}
.testimonial__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; color: var(--color-ink);
  font-size: 0.8rem;
}
/* Rotate testimonial avatar colours */
.testimonial:nth-child(3n+1) .testimonial__avatar {
  background: var(--color-terracotta-light);
  color: var(--color-terracotta-dark);
}
.testimonial:nth-child(3n+2) .testimonial__avatar {
  background: var(--color-sage-light);
  color: var(--color-blue-dark);
}
.testimonial:nth-child(3n+3) .testimonial__avatar {
  background: var(--color-ochre-light);
  color: var(--color-blue-dark);
}
.testimonial__name { color: var(--color-ink); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }

.faq { max-width: 100%; }
.faq details {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 0 22px;
  margin-bottom: 10px;
}
.faq summary {
  list-style: none;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--color-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-ink);
  transition: transform .2s ease;
  font-weight: 300;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--color-ink-soft); padding: 0 0 18px; margin: 0; }

/* ---------- CTA band (rounded-square, contained, with bg image) ---------- */
/* Strip vertical padding off the wrapping .section / .container when they
   contain a full-bleed .cta-band so the photo sits flush against the previous
   section and the footer below — no awkward white gutter. */
.section:has(> .container > .cta-band) { padding-top: 0; padding-bottom: 0; }
.section:has(> .container > .cta-band) > .container { padding-left: 0; padding-right: 0; }

.cta-band {
  position: relative;
  /* Break out of the parent .container so the band fills the viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  overflow: hidden;
  background-color: #1c1612;
  background-image: var(--bg-image, none);
  background-size: cover;
  background-position: center;
  color: #fff;
  /* Vertical padding stays generous; horizontal padding is just a safety
     gutter on small viewports — the inner children are capped via max-width
     below so their text stays inside the container box. */
  padding: clamp(72px, 9vw, 140px) clamp(20px, 4vw, 32px);
  text-align: center;
  isolation: isolate;
}
/* Keep all direct children inside the standard container width */
.cta-band > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,.45), rgba(17,17,17,.78));
  z-index: -1;
}
.cta-band__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,.08);
  color: #e8e4df;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 22px;
}
.cta-band__tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ccc;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 auto 22px;
  max-width: 18ch;
}
.cta-band h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.cta-band p { color: #d7d1c5; max-width: 54ch; margin: 0 auto 28px; }
.cta-band__actions {
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.cta-band .btn--secondary {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: transparent;
}
.cta-band .btn--secondary:hover {
  background: #fff;
  color: var(--color-ink);
  border-color: #fff;
}

/* ===========================================================
   Homepage modules — trust badge, marquee, service cards,
   features split, project rows, gallery thumbs, cta-with-image
   =========================================================== */

/* Hero trust badge (avatars + stars + label) */
.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 18px 6px 6px;
  margin: 0 auto 28px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__avatars {
  list-style: none; margin: 0; padding: 0;
  display: inline-flex;
}
.hero__avatars li { margin-left: -10px; }
.hero__avatars li:first-child { margin-left: 0; }
.hero__avatars li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 0.7rem;
  font-weight: 600;
}
.hero__trust-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.92);
}
.hero__stars {
  display: inline-flex; gap: 1px; color: #ffc857;
}
.hero__stars svg { width: 14px; height: 14px; }
.hero__trust-label { font-weight: 500; }

.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin: 0 auto 28px;
  max-width: 56ch;
  text-align: center;
}

/* Marquee strip — full-width primary blue USP band, looped carousel */
.marquee {
  background: var(--color-blue);
  color: #fff;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  width: 100%;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}
.marquee__list {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__list li {
  display: inline-flex; align-items: center;
  padding: 0 36px;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.32);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* Contact page — form column + sidebar; collapses on mobile */
.contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Our partners — brand logo cards in a row, each links to the brand site */
.partners-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}
.partners-grid li { display: flex; }
.partners-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  padding: 22px 18px;
  background: var(--color-surface);
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease;
}
.partners-grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}
.partners-grid img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 1100px) { .partners-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .partners-grid img { max-height: 48px; } }

/* Hero trust-label as a link */
.hero__trust-label { font-weight: 500; }
.hero__trust-label[href] { color: rgba(255,255,255,0.92); transition: opacity .15s ease; }
.hero__trust-label[href]:hover { opacity: 0.8; color: #ffffff; }

/* Services index grid — 3 columns of image cards (used on /services.html) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-grid { grid-template-columns: 1fr; } }
.services-grid .service-card { flex: none; scroll-snap-align: none; }
.services-grid .service-card__title { padding: 18px 22px; font-size: 1.05rem; }

/* Service-cards prev/next arrows — solid blue circles aligned to the
   container's left edge (the box-model edge). Sit on the grey lower half of
   the split section so they need solid colour rather than translucent. */
.service-cards__nav {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin: 32px 0 0;
}
.service-cards__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-blue);
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 6px 18px -8px rgba(15, 11, 50, 0.4);
}
.service-cards__arrow:hover { opacity: .9; transform: translateY(-1px); }
.service-cards__arrow:disabled {
  background: rgba(15, 11, 50, 0.22);
  cursor: default;
  box-shadow: none;
  transform: none;
  opacity: 1;
}
.service-cards__arrow svg { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .service-cards__nav { margin-top: 24px; }
  .service-cards__arrow { width: 48px; height: 48px; }
}

/* Service cards — horizontal carousel that bleeds off the right of the page.
   Bigger tiles, all displayed, last tile is half-visible on the right edge to
   hint at more content (swipe/scroll to reveal). */
.service-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  /* Break out of the container on both sides:
     - left edge starts 25px from the viewport left
     - right edge bleeds past the viewport so the last tile is half-visible. */
  margin-left: calc(50% - 50vw + 25px);
  margin-right: calc(50% - 50vw);
  padding-right: 24px;
  /* Top/bottom padding so any hover transform doesn't get clipped */
  padding-top: 4px;
  padding-bottom: 4px;
}
.service-cards::-webkit-scrollbar { display: none; }
.service-card {
  flex: 0 0 clamp(280px, 32vw, 420px);
  scroll-snap-align: start;
  display: block;
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--color-ink);
}
@media (max-width: 600px) {
  .service-card { flex-basis: 78vw; }
}
.service-card:hover { opacity: 1; }
.service-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__title {
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500; font-size: 1rem;
}
.service-card__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-size: 0.95rem;
  transition: transform .15s ease;
}
.service-card:hover .service-card__arrow { transform: translateX(2px); }

/* Features split — 50/50 with checkmark list */
.features-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.features-split__content h2 {
  margin: 6px 0 16px;
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  line-height: 1.08;
}
.features-split__content p {
  color: var(--color-ink-soft);
  margin: 0 0 24px;
  max-width: 56ch;
}
.features-split__media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Dual-image stack — primary image with a smaller secondary image overlapping
   the bottom-left corner (collage style). */
.features-split__media--stack {
  position: relative;
  aspect-ratio: 1/1;
  isolation: isolate;
}
.features-split__media--stack .features-split__media-main {
  width: 78%;
  aspect-ratio: 4/5;
  margin-left: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}
.features-split__media--stack .features-split__media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  border: 8px solid #ffffff;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
@media (max-width: 600px) {
  .features-split__media--stack { aspect-ratio: 5/4; }
  .features-split__media--stack .features-split__media-main { width: 86%; }
  .features-split__media--stack .features-split__media-overlay { width: 60%; }
}
.feature-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px;
}
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--color-ink);
  font-size: 0.96rem;
}
.feature-list__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
  font-weight: 700; font-size: 0.78rem;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .features-split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* Project / pricing rows */
.project-rows {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.project-row {
  display: grid;
  grid-template-columns: 56px minmax(160px, 1.1fr) 2fr minmax(110px, auto) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  background: var(--color-surface);
  border-radius: var(--radius);
}
.project-row__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
}
.project-row__icon svg { width: 20px; height: 20px; }
.project-row__name { font-weight: 500; font-size: 1rem; color: var(--color-ink); }
.project-row__desc { color: var(--color-ink-soft); font-size: 0.95rem; }
.project-row__price { font-weight: 600; color: var(--color-ink); white-space: nowrap; }
.project-row__cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px;
  background: var(--color-ink);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 500;
  white-space: nowrap;
}
.project-row__cta:hover { opacity: .9; color: #fff; }
@media (max-width: 820px) {
  .project-row {
    grid-template-columns: 44px 1fr auto;
    gap: 12px 16px;
  }
  .project-row__desc  { grid-column: 2 / 4; color: var(--color-ink-soft); }
  .project-row__price { grid-column: 2 / 3; font-size: 0.92rem; }
  .project-row__cta   { grid-column: 3 / 4; grid-row: 3 / 4; }
}

/* Gallery thumbs — full-bleed looping carousel that fades at the edges */
.gallery-thumbs {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.gallery-thumbs__track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: gallery-scroll 45s linear infinite;
}
.gallery-thumbs:hover .gallery-thumbs__track { animation-play-state: paused; }
.gallery-thumbs__track > a {
  flex: 0 0 clamp(220px, 22vw, 320px);
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
}
.gallery-thumbs__track > a:hover { opacity: 1; }
.gallery-thumbs__track img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-thumbs__track > a:hover img { transform: scale(1.04); }
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-thumbs__track { animation: none; }
}

/* CTA section with image (text + badges left, photo right) */
.cta-with-image {
  background: #0f0b32;
  color: #fff;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-with-image__content { padding: clamp(40px, 5vw, 72px); }
.cta-with-image__content h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 18px;
  max-width: 20ch;
}
.cta-with-image__content h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: #ffffff;
}
.cta-with-image__content p {
  color: rgba(255,255,255,0.82);
  max-width: 50ch;
  margin: 0 0 24px;
}
.cta-with-image__badges {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.cta-with-image__badges li {
  padding: 8px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #f0f4ff;
}
.cta-with-image .btn--primary {
  background: #ffffff;
  color: #0f0b32;
  border-color: #ffffff;
}
.cta-with-image__media {
  position: relative;
  min-height: 340px;
}
.cta-with-image__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .cta-with-image { grid-template-columns: 1fr; }
  .cta-with-image__media { min-height: 260px; order: -1; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #222222;
  color: #ffffff;
  padding: 64px 0 28px;
  font-size: 0.95rem;
}
.site-footer h4 {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #ffffff; opacity: 1; }

/* ---- Footer / newsletter row ---- */
.site-footer__newsletter {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__news-text h4 {
  color: #ffffff;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.2vw + 0.6rem, 1.4rem);
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 18px;
  max-width: 38ch;
}
/* "Call us directly" CTA button (replaces newsletter form) */
.site-footer__call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--color-blue);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: opacity .15s ease;
}
.site-footer__call:hover { opacity: .9; color: #ffffff; }
.site-footer__call .icon { width: 18px; height: 18px; flex-shrink: 0; }

.site-footer__form {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 4px 4px 4px 22px;
  width: 100%;
  max-width: 460px;
}
.site-footer__form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  padding: 12px 0;
  min-width: 0;
}
.site-footer__form input::placeholder { color: rgba(255,255,255,0.55); }
.site-footer__form button {
  flex-shrink: 0;
  background: var(--color-blue);
  color: #fff;
  border: 0;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity .15s ease;
}
.site-footer__form button:hover { opacity: .9; }
.site-footer__news-side p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  max-width: 42ch;
  margin: 0 0 18px;
}
.site-footer__socials {
  list-style: none; padding: 0; margin: 0;
  display: inline-flex; gap: 10px;
}
.site-footer__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  transition: background-color .15s ease, color .15s ease;
}
.site-footer__socials a:hover {
  background: #ffffff;
  color: #222222;
}
.site-footer__socials svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .site-footer__newsletter { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- Footer / big banner ---- */
.site-footer__banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 64px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__banner-headline h3 {
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw + 1rem, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 18ch;
}
.site-footer__banner-headline h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}
.site-footer__banner-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 14px 26px;
  background: var(--color-blue);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity .15s ease;
}
.site-footer__banner-cta:hover { opacity: .9; color: #ffffff; }
.site-footer__banner-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-self: start;
  padding-top: 8px;
}
.site-footer__banner-links ul {
  list-style: none; padding: 0; margin: 0;
}
.site-footer__banner-links li { margin-bottom: 10px; }
.site-footer__banner-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}
.site-footer__banner-links a:hover { color: #ffffff; }
@media (max-width: 900px) {
  .site-footer__banner { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
}

/* (legacy) site-footer__grid kept for any other pages still using it */
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__brand img {
  height: 46px;
  width: auto;
  margin-bottom: 14px;
}
.site-footer__brand p { max-width: 42ch; color: rgba(255, 255, 255, 0.78); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* ---------- Page-hero (for non-home pages) ---------- */
.page-hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 72px);
}
.page-hero h1 { max-width: 20ch; }
.page-hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.page-hero .lede { max-width: 62ch; color: var(--color-ink-soft); }

/* Dark variant — deep navy bg, white text. Extra top padding so the
   transparent header sits cleanly over it without colliding with the
   breadcrumb/eyebrow. Supports an optional background-image (set via
   inline style) for service pages — a dark gradient overlay keeps text
   readable. */
.page-hero--deep {
  background-color: #0f0b32;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-top: clamp(120px, 11vw, 160px);
  padding-bottom: clamp(56px, 8vw, 120px);
  position: relative;
  isolation: isolate;
}
.page-hero--deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,11,50,0.55), rgba(15,11,50,0.92));
  z-index: -1;
}
.page-hero--deep h1,
.page-hero--deep h2,
.page-hero--deep h3 { color: #ffffff; }
.page-hero--deep .lede { color: rgba(255,255,255,0.78); }
.page-hero--deep .breadcrumb { color: rgba(255,255,255,0.6); }
.page-hero--deep .breadcrumb a { color: rgba(255,255,255,0.78); }
.page-hero--deep .breadcrumb a:hover { color: #ffffff; }
.page-hero--deep .eyebrow {
  background: rgba(255,255,255,0.12);
  color: #f0f4ff;
  border-color: rgba(255,255,255,0.18);
}
.page-hero--deep .eyebrow::before { background: #ffffff; }
.breadcrumb {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--color-ink); }

/* ---------- Existing components carried over ---------- */

/* Cards (legacy) */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-ink-soft); margin-bottom: 18px; }
.card .card__more {
  margin-top: auto;
  font-weight: 500;
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-ink);
  align-self: flex-start;
}

.service-card { padding: 0; }
.service-card__media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }

.icon-box {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
}
.icon-box svg { width: 22px; height: 22px; }
/* Rotate icon-box tints across sibling cards — blue stays primary on 4n+1 */
.grid > *:nth-child(4n+2) .icon-box { background: var(--color-peach-light); color: var(--color-plum); }
.grid > *:nth-child(4n+3) .icon-box { background: var(--color-ochre-lighter); color: var(--color-ochre); }
.grid > *:nth-child(4n+4) .icon-box { background: var(--color-terracotta-light); color: var(--color-terracotta-dark); }

/* Split (for About page etc.) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  border-radius: var(--radius);
  aspect-ratio: 5/4;
  object-fit: cover;
  width: 100%;
}
.split h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.split ul { padding-left: 0; list-style: none; margin: 0; }
.split ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--color-ink-soft);
}
.split ul li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: var(--color-ink);
}
/* Extra breathing room before the section CTA on services-style splits */
.split__cta { margin-top: 36px; margin-bottom: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
}

/* Gallery (for Our Work page) */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.gallery-filter {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  font-weight: 400;
  font-size: 0.92rem;
  transition: all .15s ease;
}
.gallery-filter:hover { border-color: var(--color-ink); }
.gallery-filter.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/5;
  cursor: zoom-in;
  background: var(--color-light-brown);
  border: 0;
  padding: 0;
  display: block;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery__item:hover { opacity: 1; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%);
  opacity: 0; transition: opacity .2s ease;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__caption {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  color: #fff;
  font-weight: 400;
  font-size: 0.92rem;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.gallery__item:hover .gallery__caption { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,10,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__caption {
  position: absolute; bottom: 20px; left: 0; right: 0;
  color: #fff; text-align: center; font-size: 0.95rem; opacity: .85;
}

/* Forms */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}
.form-row { margin-bottom: 20px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-row label,
.form-grid label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--color-ink);
}
.form-row label .req,
.form-grid label .req { color: var(--color-accent); }

.form-control {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:hover { border-color: #bab2a1; }
.form-control:focus {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: 0 0 0 3px rgba(17,17,17,.1);
}
textarea.form-control { min-height: 140px; resize: vertical; }

.radio-group, .check-group {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px;
}
.radio-group label, .check-group label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--color-line); border-radius: 999px;
  cursor: pointer; font-weight: 400; background: var(--color-bg);
}
.radio-group label:hover, .check-group label:hover { border-color: var(--color-ink); }
.radio-group input, .check-group input { accent-color: var(--color-ink); }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.9rem; color: var(--color-ink-soft); line-height: 1.5;
}
.consent input { margin-top: 4px; }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 500;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #e9f5eb; color: #1f5a2a; border: 1px solid #bcdfc1; }
.form-status--error { background: #fbe9e8; color: #8a1f1b; border: 1px solid #f0c8c5; }

/* Info tiles */
.info-tile {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}
.info-tile h3 { font-size: 1.1rem; font-weight: 500; }
.info-tile p, .info-tile address { margin: 0; color: var(--color-ink-soft); font-style: normal; }
.info-tile a { color: var(--color-ink); font-weight: 500; }
.info-tile dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.info-tile dt { color: var(--color-muted); }
.info-tile dd { margin: 0; color: var(--color-ink); font-weight: 500; }

/* Map */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Mobile sticky call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 80px; }
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-ink-soft);
  font-size: 0.78rem;
  font-weight: 400;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
