/* ================================================================
   DESIGN SYSTEM
   ================================================================ */

/* ################################################################
   ██████╗ ██████╗ ██████╗ ██████╗
   ██╔════╝██╔═══██╗██╔══██╗██╔════╝
   ██║     ██║   ██║██████╔╝███████╗
   ██║     ██║   ██║██╔══██╗╚════██║
   ╚██████╗╚██████╔╝██║  ██║██████╔╝
    ╚═════╝ ╚═════╝ ╚═╝  ╚═╝╚═════╝

   ══════════════════════════════════════════════════════════════
   SITE COLOUR SCHEME — AI: EDIT ONLY THIS BLOCK TO REBRAND
   ══════════════════════════════════════════════════════════════
   These CSS custom properties are the SINGLE SOURCE OF TRUTH for
   every colour on the site. Changing a value here automatically
   updates the hero, footer, buttons, cards, icons, borders, and
   all hover states. Nothing else in this file needs to change.

   VARIABLE GUIDE:
   ┌─────────────────────┬────────────────────────────────────────┐
   │ --color-ink         │ Dark background: hero, footer, headings│
   │ --color-ink-dark    │ Darker shade: footer bg, dark hovers   │
   │ --color-ink-tint    │ Mid-dark: nav hover, header scroll bg  │
   │ --color-accent      │ Brand colour: buttons, icons, badges   │
   │ --color-accent-dark │ Darker accent: hover states            │
   │ --color-base        │ Page background (near-white)           │
   │ --color-surface     │ Card / input background                │
   │ --color-border      │ Card borders, dividers                 │
   │ --color-text        │ Main body text                         │
   │ --color-text-muted  │ Subtitles, captions, placeholder text  │
   │ --color-star        │ Review star gold (keep yellowish)      │
   └─────────────────────┴────────────────────────────────────────┘

   EXAMPLE REBRANDS (just swap the hex values below):
     Navy + green (current) → ink: #0F2337, accent: #0E9F6E
     Charcoal + orange      → ink: #1C1F22, accent: #C2410C
     Dark slate + blue      → ink: #1E293B, accent: #2563EB
     Black + red            → ink: #111111, accent: #DC2626
   ################################################################ */

:root {
  /* ── DARK BACKGROUNDS & TEXT ─────────────────────────────── */
  --color-ink:       #0F2337;   /* hero, footer, headings         */
  --color-ink-dark:  #091828;   /* footer bg, deep shadows        */
  --color-ink-tint:  #1A3550;   /* nav hover, scrolled header     */

  /* ── BRAND / ACCENT COLOUR ───────────────────────────────── */
  --color-accent:      #0E9F6E; /* buttons, badges, top bar strip */
  --color-accent-dark: #057A55; /* hover state for accent         */

  /* ── PAGE CANVAS ─────────────────────────────────────────── */
  --color-base:    #F4F8FC;     /* main page background           */
  --color-surface: #E3EDF7;     /* card / input fill              */
  --color-border:  #C8D9EC;     /* card borders, hr lines         */

  /* ── TEXT ────────────────────────────────────────────────── */
  --color-text:       #0F2337;  /* body copy                      */
  --color-text-muted: #4A6580;  /* captions, subtitles            */
  --color-star:       #D9A02B;  /* review stars (keep gold)       */

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.09);

  --transition: 150ms ease;

  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'SF Mono', Consolas, monospace;

  /* Tactile film-grain texture (pure inline SVG, no image request) used on
     the dark sections below via .has-grain — adds physical depth instead
     of a flat corporate gradient. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Applied to the hero, page-hero, CTA banner and footer — see each rule
   below. Sits behind real content via ::before (not ::after), so it never
   reduces text legibility. */
.has-grain {
  position: relative;
}

.has-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ================================
   RESET
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-base);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-ink);
}

.section-title,
.page-title,
.service-card-title {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero-title,
.cta-title {
  letter-spacing: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--color-accent);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 38px);
  color: var(--color-ink);
}

.section-intro {
  margin-top: 12px;
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 540px;
}

/* ================================
   BUTTONS — flat colour, no shadow, no lift
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--color-ink);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-ink-dark);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-outline-dark {
  background-color: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline-dark:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-lg {
  padding: 17px 30px;
  font-size: 16px;
}

/* ================================
   SCROLL REVEAL (kept minimal — fade only)
   ================================ */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* A small, real craft detail rather than the browser default. */
::selection {
  background-color: var(--color-accent);
  color: #fff;
}

/* ================================
   HEADER
   ================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-base);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Shown automatically (via onerror in sections.js / inline onerror in the
   static pages) only if no logo image file exists yet at BUSINESS_LOGO. */
.logo-text-fallback {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0;
  transition: color var(--transition), letter-spacing var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.phone-link .icon {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background-color: var(--color-ink);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger {
  top: 15px;
}

.hamburger::before {
  content: '';
  top: -8px;
}

.hamburger::after {
  content: '';
  top: 8px;
}

.nav-toggle.is-active .hamburger {
  opacity: 0;
}

.nav-toggle.is-active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-call-bar {
  display: none;
}

/* ================================
   HERO — Classic tradesman banner
   Full-width dark background with a
   bold diagonal accent stripe, large
   phone number, and a prominent CTA.
   Feels like a work van side panel or
   a hoarding board, not a tech startup.
   ================================ */

/* ================================
   HERO — curved bottom, photo background
   ================================ */

.hero {
  position: relative;
  background-color: var(--color-ink); /* fallback if photo fails to load */

  /* ################################################################
     HERO BACKGROUND PHOTO — AI: CHANGE THIS URL TO SWAP THE IMAGE
     ══════════════════════════════════════════════════════════════
     Replace the URL inside url('...') with any image path or link.

     USING A LOCAL FILE:
       background-image: url('/images/hero-photo.jpg');

     USING A FREE UNSPLASH PHOTO (free for commercial use):
       background-image: url('https://images.unsplash.com/photo-XXXXXXXXXXXXXXXXXX?auto=format&fit=crop&w=1600&q=80');
       Replace XXXXXXXXXXXXXXXXXX with the photo ID from the URL on
       unsplash.com — e.g. photo-1558618666-fcd25c85cd64

     CURRENT PHOTO:
       Plumber working — Unsplash (free commercial licence)
       https://unsplash.com/photos/NfG4rXmceFM
     ################################################################ */
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1600&q=80');

  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
  padding: 140px 0 180px;
  margin-bottom: -2px;
}

/* Dark navy overlay so text stays readable over the photo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(9, 24, 40, 0.60) 0%,
    rgba(9, 24, 40, 0.42) 55%,
    rgba(9, 24, 40, 0.18) 100%
  );
  z-index: 0;
}

/* Curved white scoop at the bottom — SVG ellipse approach for
   a smooth curve with no gap or sliver artefacts */
.hero-curve {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 2;
  line-height: 0;
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Thin accent top-rail */
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--color-accent);
  z-index: 3;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 68px);
  color: #fff;
  line-height: 1.0;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero-title-accent {
  color: var(--color-accent);
  display: block;
}

.hero-subtext {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  margin: 20px 0 34px;
  max-width: 480px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Phone block */
.hero-phone-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #fff;
  padding: 32px 40px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  min-width: 210px;
  text-decoration: none;
  transition: background-color var(--transition);
  box-shadow: 0 8px 32px rgba(14, 159, 110, 0.35);
}

.hero-phone-block:hover {
  background-color: var(--color-accent-dark);
}

.hero-phone-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.hero-phone-number {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}

/* Legacy stubs */
.hero-grid { display: contents; }
.hero-panel { display: contents; }
.hero-panel-inner { display: contents; }
.hero-media { display: none; }
.hero-media-pattern { display: none; }
.hero-media-icon { display: none; }
.hero-media-photo { display: none; }


/* ================================
   TRUST STRIP
   Renders nothing if TRUST_BADGES is empty. Plain rectangular tags —
   a certification stamp, not a soft pill.
   ================================ */

.trust-bar {
  padding: 32px 24px 0;
  background-color: var(--color-base);
}

.trust-bar-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1140px;
  margin: 0 auto;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  background-color: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  white-space: nowrap;
}

.trust-bar-item .icon {
  width: 15px;
  height: 15px;
  color: var(--color-accent);
}

/* ================================
   SERVICES SECTION
   Even grid, sharp corners, square icon tag straddling the photo
   seam. Every photo slot has an icon watermark sitting underneath
   it, so a missing/placeholder photo still reads as a finished tile
   instead of a blank box.
   ================================ */

.services-section {
  padding: 100px 0 96px;
}

/* ################################################################
   HOMEPAGE "WHAT WE DO" — CORE SERVICES COUNT
   ══════════════════════════════════════════════════════════════
   These are the CORE services shown on the homepage.
   They should represent the main things the business does —
   not every service offered (that lives on the Services page).

   ⚠️  ONLY USE 3 OR 6 — other numbers break the grid layout:
        3 = one clean row of three  (recommended for most trades)
        6 = two rows of three       (use if you have more core services)

   To change: update --homepage-services-count below.
   ################################################################ */
:root {
  --homepage-services-count: 3; /* ← CHANGE THIS: 3 or 6 only */
}

/* Homepage grid — shows exactly --homepage-services-count cards.
   Any extra cards rendered by sections.js are hidden. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(var(--homepage-services-count), 1fr);
  gap: 28px;
}

/* Hide cards beyond the chosen count.
   ⚠️  UPDATE BOTH LINES TOGETHER when switching between 3 and 6:

   CURRENTLY SET TO 3:
   — grid has 3 columns (see --homepage-services-count above)
   — hide card 4 and above with :nth-child(n+4)

   TO SWITCH TO 6: change --homepage-services-count to 6 above,
   then change :nth-child(n+4) to :nth-child(n+7) below. */
.services-grid .service-card:nth-child(n+4) {
  display: none;
}

/* ── SERVICES PAGE grid ────────────────────────────────────────
   No limit here — show every service row.
   The services page uses .service-row elements, not .service-card,
   so this grid rule only applies to the homepage .services-grid.
   ────────────────────────────────────────────────────────────── */

.service-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.service-card-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  opacity: 0.22;
}

.service-card-photo-fallback .icon {
  width: 56px;
  height: 56px;
}

.service-card-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 24px;
  position: relative;
  z-index: 2;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon .icon {
  width: 22px;
  height: 22px;
}

.service-card-body {
  padding: 18px 26px 28px;
}

.service-card-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.service-card-title {
  font-size: 19px;
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 15px;
  color: var(--color-text-muted);
}

.services-cta {
  margin-top: 40px;
}


/* ================================
   SERVICES PAGE — simple row layout
   Name, description, photo, CTA.
   No prices, no stats, no complexity.
   ================================ */

.service-row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-row:last-child {
  border-bottom: none;
}

/* Alternate: even rows flip photo to the left */
.service-row:nth-child(even) {
  grid-template-columns: 380px 1fr;
}

.service-row:nth-child(even) .service-row-photo {
  order: -1;
}

.service-row-title {
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--color-ink);
  margin-bottom: 14px;
}

.service-row-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.service-row-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
}

.service-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .service-row:nth-child(even) .service-row-photo {
    order: 0;
  }
  .service-row-photo {
    aspect-ratio: 16 / 9;
  }
}

/* ================================
   GALLERY TEASER / GALLERY PAGE
   ================================ */

.gallery-teaser {
  padding: 88px 0 100px;
  background-color: var(--color-base);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-header .section-title {
  margin: 0;
}

.section-link {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  white-space: nowrap;
}

.gallery-scroll {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  mask-image: linear-gradient(to right, black 0%, black 94%, transparent 100%);
}

.gallery-grid {
  display: flex;
  gap: 18px;
  width: max-content;
}

.gallery-grid .gallery-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition);
}

.gallery-card:hover {
  border-color: var(--color-accent);
}

.gallery-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--color-surface);
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-image {
  transform: scale(1.04);
}

.gallery-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 14px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 19, 21, 0) 0%, rgba(17, 19, 21, 0.82) 100%);
}

/* ================================
   REVIEWS SECTION
   Styled to evoke the familiar Google review card — white surface,
   coloured initial avatar, gold stars — without reproducing Google's
   logo or mark.
   ================================ */

.reviews-section {
  padding: 92px 0 96px;
  background-color: var(--color-base);
}

/* sections.js renders this heading as "Testimonials" — override to "Reviews".
   The original text is hidden; the ::after pseudo-element shows "Reviews" instead. */
.reviews-section .section-title {
  visibility: hidden;
  position: relative;
}

.reviews-section .section-title::after {
  content: 'Reviews';
  visibility: visible;
  position: absolute;
  left: 0;
  top: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

/* Used instead of .reviews-grid once there are 4+ reviews — see the
   REVIEWS.length check in renderReviews() in sections.js. */
.reviews-scroll {
  overflow-x: auto;
  margin: 0 -24px 8px;
  padding: 0 24px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  mask-image: linear-gradient(to right, black 0%, black 94%, transparent 100%);
}

.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.reviews-track .review-card {
  flex: 0 0 320px;
}

.review-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  transition: border-color var(--transition);
}

.review-card:hover {
  border-color: var(--color-accent);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.review-meta {
  min-width: 0;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
}

.review-time {
  display: none; /* Date hidden — "a few weeks ago" etc. removed */
}

.review-stars {
  display: flex;
  gap: 2px;
  color: var(--color-star);
  margin-bottom: 10px;
}

.star {
  width: 16px;
  height: 16px;
}

.review-text {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.65;
}

.reviews-cta {
  margin-top: 32px;
}

/* ================================
   CTA SECTION
   A full-bleed, solid site-orange band — ink-coloured text and a
   dark button sit on top of it for contrast, like text printed
   directly on a hoarding board. No gradient, no glow.
   ================================ */

.cta-banner {
  background-color: var(--color-accent);
  padding: 72px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-copy {
  max-width: 520px;
}

.cta-title {
  color: var(--color-ink);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.cta-text {
  color: rgba(28, 31, 34, 0.78);
  font-size: 16px;
  font-weight: 500;
}

/* ================================
   FOOTER
   ================================ */

/* ================================
   FOOTER — compact, low-prominence.
   Uses a slightly lighter tone than
   the page-hero ink so it reads as
   a quiet end to the page, not a
   second hero competing for attention.
   ================================ */

.site-footer {
  background-color: var(--color-ink);
  border-top: 3px solid var(--color-accent);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  align-items: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
}

.footer-logo .logo-img-sm {
  height: 24px;
}

.footer-logo .logo-text-fallback {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* Also used when there's no .footer-logo wrapper (about/contact pages) */
.footer-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-link .icon {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  opacity: 0.7;
}

.footer-area-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 5px;
}

.footer-area-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  text-align: center;
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ================================
   PAGE HERO (inner pages)
   ================================ */

.page-hero {
  background-color: var(--color-ink);
  padding: 150px 24px 56px;
}

/* Plain wayfinding text (e.g. "Home / Gallery") — deliberately not the
   solid .eyebrow chip, since this is navigation, not a content category. */
.breadcrumb {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.page-title {
  font-size: clamp(28px, 4vw, 44px);
  color: #fff;
  margin: 0;
}

.page-hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
  max-width: 560px;
}

.page-content {
  padding: 88px 0;
}

/* ================================
   ABOUT PAGE
   ================================ */

.about-section {
  padding: 88px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr minmax(180px, 240px);
  gap: 48px;
  align-items: start;
}

/* Third column — qualifications / trust panel */
.about-trust-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.about-photo-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background-color: var(--color-surface);
}

.about-bio {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.about-bio p + p {
  margin-top: 16px;
}

.about-trust {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.about-trust-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.about-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.trust-badge .icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ================================
   CONTACT PAGE
   ================================ */

.contact-section {
  padding: 88px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: #fff;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  font-family: inherit;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background-color: var(--color-base);
  padding: 22px 24px;
}

.contact-card-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contact-card-text {
  font-size: 16px;
  color: var(--color-text);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* Nav is always display:flex but slides off-screen to the right.
     This avoids the display:none → display:flex flicker that
     breaks the CSS transform animation. */
  .main-nav {
    display: flex;
    position: fixed;
    top: 77px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-base);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 250ms ease;
    overflow-y: auto;
    z-index: 999;
    visibility: hidden;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .main-nav .nav-link {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-ink);
  }

  /* Remove pseudo-element underline on mobile — conflicts with border-bottom */
  .main-nav .nav-link::after {
    display: none;
  }

  .main-nav .nav-link.active {
    color: var(--color-accent);
  }

  .main-nav .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background-color: var(--color-accent);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 15px;
    padding: 14px;
  }

  body {
    padding-bottom: 52px;
  }

  .hero {
    padding: 100px 0 130px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding: 0 20px;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 48px);
  }

  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-phone-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 20px 24px;
    flex-direction: row;
    gap: 12px;
    border-radius: var(--radius);
  }

  .hero-phone-label {
    margin-bottom: 0;
    white-space: nowrap;
  }

  .hero-phone-number {
    font-size: 22px;
  }



  .cta-banner-inner {
    text-align: center;
    justify-content: center;
  }

  .cta-copy {
    max-width: none;
  }

  .page-hero {
    padding: 100px 20px 36px;
  }
}

@media (max-width: 600px) {
  .header-container {
    height: 62px;
  }

  .main-nav {
    top: 62px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cta-banner-inner .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-phone-block {
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
  }

  .hero-phone-label {
    margin-bottom: 4px;
  }
}

/* ================================
   MOBILE SECTION SPACING — tighten
   all the large vertical padding on
   small screens so sections feel
   dense and considered, not padded
   ================================ */

@media (max-width: 900px) {
  .services-section {
    padding: 56px 0 60px;
  }

  /* Force services grid to single column on mobile */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .gallery-teaser {
    padding: 52px 0 60px;
  }

  .reviews-section {
    padding: 52px 0 60px;
  }

  .cta-banner {
    padding: 48px 0;
  }

  .about-section,
  .contact-section,
  .page-content {
    padding: 40px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* About page: stack photo full width then bio */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo-frame {
    max-width: 220px;
    margin: 0 auto;
  }

  /* Footer stack */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ================================
   SCROLL-REACTIVE HEADER
   JS adds .is-scrolled to <header>
   once the user scrolls > 40px.
   The header shrinks slightly and
   picks up a backdrop blur — a clean
   2025-era "glass" treatment without
   going frosted-glass-corporate.
   ================================ */

.site-header {
  transition: height var(--transition), background-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
  will-change: background-color;
}

.site-header.is-scrolled {
  background-color: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  border-bottom-color: transparent;
}

.site-header.is-scrolled .header-container {
  height: 64px;
}

/* ================================
   SAFE-AREA AWARE MOBILE CALL BAR
   On iPhone with a home indicator,
   the bar was clipped. env() padding
   handles that properly.
   ================================ */

@media (max-width: 900px) {
  .mobile-call-bar {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }
}

/* ================================
   CARD LIFT — service cards get a
   more decisive shadow on hover, not
   just a border colour change.
   ================================ */

.service-card {
  transition: border-color var(--transition), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
  transform: translateY(-5px);
}

/* ================================
   FOCUS RING — keep visible but
   use the accent colour as an offset
   glow, not a harsh outline
   ================================ */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ================================
   GALLERY CARD — image zoom on hover
   is kept; add a caption slide-up
   ================================ */

.gallery-card-caption {
  transform: translateY(4px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-caption {
  transform: translateY(0);
}

/* ================================
   HERO — subtle text shimmer on the
   accent eyebrow chip only, so the
   page has one moment of life without
   feeling like a landing-page factory
   ================================ */

.hero .eyebrow {
  position: relative;
  overflow: hidden;
}

.hero .eyebrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  animation: shimmer 3.2s ease-in-out 1.4s infinite;
}

@keyframes shimmer {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow::after {
    display: none;
  }
}

/* ================================
   BTN — spring easing on active
   ================================ */

.btn {
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 150ms ease;
}

.btn:active {
  transform: scale(0.95);
}

/* ================================
   REVIEW CARD — slight lift on hover
   ================================ */

.review-card {
  transition: border-color var(--transition), transform 0.22s ease, box-shadow 0.22s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ================================
   NAV LINK — underline draw on hover
   (replaces the letter-spacing nudge
   which can cause layout shift)
   ================================ */

.nav-link {
  position: relative;
  letter-spacing: 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--color-accent);
  letter-spacing: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-accent);
}
