/* ==========================================================================
   Chatham Epoxy Flooring — Main Stylesheet
   Author: Chatham Epoxy Flooring
   Structure:
     01. Design Tokens (CSS Variables)
     02. Reset & Base
     03. Typography
     04. Layout Helpers
     05. Buttons & CTAs
     06. Header & Navigation
     07. Hero
     08. Breadcrumbs
     09. Content Blocks & Cards
     10. Services Grid
     11. Process Steps
     12. Benefits / Feature Grid
     13. FAQ Accordion
     14. CTA Bands
     15. Contact Form
     16. Footer
     17. Scroll To Top
     18. Accessibility & Focus States
     19. Responsive Breakpoints
     20. Motion & Print Preferences
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS

   Chatham runs a deliberately different system to the rest of this network.
   Grimsby and Sudbury are green with a safety-orange CTA; Sarnia and Welland
   are blue with the same orange; Cape Breton is navy with teal; Caledon is
   navy with burnt orange. All six put a saturated colour in the header, the
   hero and the buttons.

   This one is monochrome first: a graphite that is almost black, a single
   amber drawn from the aisle-marking yellow that shows up in the warehouse
   photographs, and a great deal of white. Colour is a highlight here, not a
   surface. That plus the wider spacing scale is what makes the page read as
   a different site rather than a recolour of the same one.

   Every pair below was computed, not eyeballed. Contrast against white:
     graphite       #22262c  14.94:1
     graphite-dark  #14171b  18.10:1
     graphite-mid   #3a4048  10.34:1
     amber-ink      #8a5e04   5.13:1   (accent text and buttons on white)
     amber-deep     #6e4b03   7.14:1   (hover)
     text           #262a30  14.11:1
     text-muted     #565d67   6.54:1
     heading        #14171b  18.10:1
   Against graphite #22262c:
     white          #ffffff  14.94:1
     hero-quiet     #d9dde3  11.53:1
     amber-bright   #e0a83a   6.60:1
   ========================================================================== */
:root {
  /* Brand — graphite, with amber as the single highlight */
  --color-primary:        #22262c;   /* Graphite — header, footer, buttons */
  --color-primary-dark:   #14171b;   /* Near-black — hover, deep bands */
  --color-primary-light:  #3a4048;   /* Mid graphite — links on white */
  --color-accent:         #8a5e04;   /* Amber ink — accent text, secondary CTA */
  --color-accent-dark:    #6e4b03;   /* Amber hover */
  --color-accent-bright:  #d89614;   /* Amber on dark only — rules, dots, logo */
  /* A lighter amber reserved for hero text sitting over the photo scrim.
     #d89614 measures 4.06:1 against the worst-case scrim composite, which is
     under the 4.5 minimum, so hero text gets this instead: 5.24:1. */
  --color-accent-hero:    #e8b040;
  --color-accent-soft:    #fdf6e7;   /* Warm tint background */
  --color-brand-grey:     #565d67;

  /* Neutrals */
  --color-text:           #262a30;
  --color-text-muted:     #565d67;
  --color-heading:        #14171b;
  --color-white:          #ffffff;
  --color-bg:             #ffffff;
  /* Section stripe. Warm rather than blue-grey, so the neutrals sit with the
     amber instead of fighting it. Kept very close to white on purpose: with
     this much spacing the bands do not need tone to separate them. */
  --color-bg-alt:         #f7f6f3;
  --color-bg-deep:        #f0eeea;   /* Card wells */
  --color-border:         #e7e5e0;
  --color-border-strong:  #cbc7bf;

  /* Feedback */
  --color-success:        #146b45;
  --color-success-bg:     #e6f4ed;
  --color-error:          #a81f18;

  /* Typography
     Larger base and a wider jump between steps than the other sites, so the
     hierarchy carries without headings needing to be loud. */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-xs:   0.8125rem;   /* 13px */
  --fs-sm:   0.9375rem;   /* 15px */
  --fs-base: 1.09375rem;  /* 17.5px */
  --fs-md:   1.25rem;     /* 20px */
  --fs-lg:   1.4375rem;   /* 23px */
  --fs-xl:   1.75rem;     /* 28px */
  --fs-2xl:  2.25rem;     /* 36px */
  --fs-3xl:  2.875rem;    /* 46px */
  --lh-tight: 1.15;
  --lh-body:  1.75;

  /* Spacing scale
     This is where most of the "more whitespace" lives. The small steps are
     untouched - tightening those only hurts legibility - and everything from
     --space-6 up is opened out well past the template. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1.125rem;
  --space-5: 1.75rem;
  --space-6: 2.75rem;
  --space-7: 4.5rem;
  --space-8: 7rem;
  --space-9: 9.5rem;

  /* Structure */
  --container: 1200px;
  --container-narrow: 720px;   /* ~70 characters a line */
  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 10px;           /* squarer than the other sites */
  /* Shadows barely exist here. Separation comes from space and hairlines,
     which is the whole point of the layout. */
  --shadow-sm: 0 1px 2px rgba(20, 23, 27, .04);
  --shadow:    0 2px 10px rgba(20, 23, 27, .05);
  --shadow-lg: 0 12px 40px rgba(20, 23, 27, .10);
  --header-h:  76px;
  --transition: 180ms ease;
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;          /* Smooth scrolling for anchor links */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { padding-left: 1.25rem; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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


/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--color-heading);
  font-weight: 800;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  /* Tighter tracking than the other sites at large sizes and looser at small
     ones, which is what keeps big headings from looking airy next to all the
     surrounding space. */
  letter-spacing: -0.028em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); letter-spacing: -0.018em; }
h4 { font-size: var(--fs-lg); letter-spacing: -0.012em; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary-light);   /* #3a4048 — 10.34:1 on white */
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent-dark); }

strong { color: var(--color-heading); }

/* Section intro heading block */
/* Section intros are centred by default on this site, not left-aligned.
   The centred hero would look like an accident if every band under it ran
   hard left, so the axis is consistent all the way down the page. */
.section-head {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-head.is-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* Eyebrow: small caps over a short amber rule. The rule is the only place
   the bright amber appears on a white background, and it is decoration, so
   it carries no contrast requirement. */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent-bright);
}
.lead {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: 1.65;
}


/* ==========================================================================
   04. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  /* Wider gutters than the template. On a 1200px container at 1440px this
     leaves the content well clear of the viewport edge, which is most of
     what makes a page feel unhurried. */
  padding-inline: var(--space-6);
}
.container--narrow { max-width: var(--container-narrow); }

/* Sections are the other half of "more whitespace". --space-8 is 7rem here
   against the template's 4rem, and consecutive bands no longer collapse
   their padding into each other. */
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--alt { background: var(--color-bg-alt); }
.section--deep {
  background: var(--color-primary);
  color: #d9dde3;                     /* 11.53:1 on #22262c */
}
.section--deep h2,
.section--deep h3 { color: var(--color-white); }

/* Two white sections in a row used to run together with no seam. Rather than
   add a rule between them, let the first one keep its own bottom space and
   drop the second one's top space, so the break reads as air. */
.section + .section:not(.section--alt):not(.section--deep) { padding-top: 0; }

.grid { display: grid; gap: var(--space-6); }
/* Card grids get more air between them than the template's 2rem. */
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }


/* ==========================================================================
   05. BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}

/* Primary action — graphite.
   Every other site in this network puts a bright orange button here. On a
   page with this much white the dark button is the strongest thing on the
   screen without needing a saturated colour, and white on #22262c is
   14.94:1 rather than the ~5:1 an orange button scrapes.
   Buttons also do not lift on hover here - the whole design sits flat on
   the page - so the hover state is a colour and a border change only. */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* Secondary action — amber. The one place a saturated fill is used. */
.btn--secondary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--secondary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
}

/* Outline action */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn--outline:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Outline on dark backgrounds */
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--lg { padding: 1.1rem 2.4rem; font-size: var(--fs-base); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.btn-row.is-centered { justify-content: center; }


/* ==========================================================================
   06. HEADER & NAVIGATION
   ========================================================================== */
/* Top utility bar */
.topbar {
  background: var(--color-primary-dark);
  color: #c3c8cf;                     /* 10.63:1 on #14171b */
  font-size: var(--fs-sm);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.topbar a { color: var(--color-white); text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--color-accent-bright); text-decoration: underline; }

/* Sticky header */
/* Header is a hairline on white with no shadow. Combined with the graphite
   hero directly beneath it, the top of the page reads as one clean edge
   rather than the stacked bar-on-bar of the other sites. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

/* Logo placeholder */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-primary);
  flex-shrink: 0;
}
.logo img { width: 44px; height: 44px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}
.logo__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--color-accent);          /* #8a5e04 — 5.13:1 on white */
}

/* Desktop navigation */
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav__link:hover,
.nav__link:focus-visible { background: var(--color-bg-alt); color: var(--color-accent-dark); }
.nav__link[aria-current="page"] {
  color: var(--color-accent-dark);          /* #6e4b03 — 7.14:1 on white */
  box-shadow: inset 0 -3px 0 var(--color-accent-bright);
}

/* Dropdown */
.nav__item--has-menu { position: relative; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.nav__toggle::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}
.nav__toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }

.nav__submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 268px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  display: none;
}
.nav__submenu.is-open { display: block; }
.nav__submenu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.nav__submenu a:hover,
.nav__submenu a:focus-visible {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

/* Header phone CTA */
.header-cta { display: flex; align-items: center; gap: var(--space-3); }

/* Mobile menu button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 10px;
  background: var(--color-primary);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ==========================================================================
   07. HERO

   The other sites in this network run a two-column hero: copy hard left,
   estimate form in a 420px card on the right, business name spanning the top.
   This one is a single centred column with the form moved out into its own
   band below, which is what buys the space around the headline.
   ========================================================================== */
.hero {
  position: relative;
  background: var(--color-primary);
  color: #d9dde3;
  padding-block: var(--space-8);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 { color: var(--color-white); margin-bottom: var(--space-5); }
.hero__intro p { color: #d9dde3; font-size: var(--fs-md); }

.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- Home hero: photo background, everything centred on one axis --- */
.hero--home {
  padding-block: var(--space-9);
  text-align: center;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg picture,
.hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Measured scrim, not a text-shadow.
   Sarnia and Welland set white type straight onto the photograph and rely on
   a three-layer text-shadow to keep it readable. WCAG gives text shadows no
   credit, so over the bright part of a garage photo that type is formally
   under 4.5:1 however heavy the shadow is.

   This is a flat graphite wash at 82% instead. Worst case - pure white
   #ffffff showing through the photo underneath - the compositor still lands
   on #4a4d52, and white on #4a4d52 is 8.03:1. So every figure quoted for
   hero text is a real one, with no photograph able to break it. */
.hero--home .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 23, 27, .82);
}

.hero--home .hero__inner {
  max-width: 860px;
  margin-inline: auto;
}

/* Business name, centred, as the masthead */
.hero__brand {
  margin: 0 0 var(--space-3);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--color-white);
}

/* City and region directly beneath the name, centred on the same axis.
   Amber, letterspaced, small - it labels the business without competing
   with the h1 for the eye. #e8b040 against the worst-case scrim is 5.24:1;
   the standard #d89614 measured 4.06 here and was not good enough. */
.hero__place {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent-hero);
}
.hero__place::before,
.hero__place::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  margin-bottom: .3em;
  background: currentColor;
  opacity: .55;
}
.hero__place::before { margin-right: var(--space-3); }
.hero__place::after  { margin-left:  var(--space-3); }

.hero--home .hero__intro { max-width: 720px; margin-inline: auto; }
.hero--home .hero__intro h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; }
.hero--home .hero__intro p  { margin-inline: auto; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #d9dde3;
}
.hero__badges li { display: flex; align-items: center; gap: 9px; }
.hero__badges li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent-bright);
  flex-shrink: 0;
}
.hero--home .btn-row { justify-content: center; margin-top: var(--space-6); }

/* --- Intro band: the opening copy, lifted out of the hero ---
   Sits between the hero's calls to action and the estimate form. White
   background, centred on the same axis as everything above it, and set a
   step larger than body copy so it reads as an opening rather than as the
   first of many sections. */
.intro-band {
  background: var(--color-white);
  padding-block: var(--space-7);
}
.intro-band__inner {
  max-width: 720px;
  text-align: center;
}
.intro-band p {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.intro-band p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
}
/* Subheadings inside the intro band. Smaller than a full section h2 because
   they sit close under the h1 and the band is a 720px reading column, not a
   full-width section. The first one needs no top space; later ones are
   separated from the paragraph above them. */
.intro-band__heading {
  font-size: var(--fs-xl);
  letter-spacing: -0.018em;
  margin: 0 0 var(--space-4);
}
.intro-band p + .intro-band__heading {
  margin-top: var(--space-6);
}

/* --- Quote band: the estimate form, lifted out of the hero --- */
.quote-band {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-7);
}
.quote-band__inner { max-width: 900px; }

/* Estimate card. Squarer and flatter than the template's floating panel -
   with this much space around it, it does not need to lift off the page. */
.hero-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent-bright);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}
.hero-form__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
  text-align: center;
}
.hero-form__sub {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  text-align: center;
}
/* Two columns of fields: the form is in a 900px band now, not a 420px
   sidebar, so it has the width for it. */
.hero-form .form-grid {
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-form .field label { font-size: var(--fs-xs); }
.hero-form .field input,
.hero-form .field select,
.hero-form .field textarea {
  padding: 0.7rem 0.85rem;
  font-size: var(--fs-sm);
}
.hero-form .field--full { grid-column: 1 / -1; }
.hero-form .field textarea { min-height: 92px; }
.hero-form .form-note { margin-top: var(--space-3); text-align: center; }

/* --- Compact hero for interior pages, centred to match the home page --- */
.hero--page {
  padding-block: var(--space-8);
  text-align: center;
}
.hero--page .hero__inner { max-width: 780px; margin-inline: auto; }
.hero--page .btn-row { justify-content: center; }

/* Interior hero carrying a photo alongside the copy. Left-aligned on
   purpose: a centred column beside an image reads as a mistake. */
.hero--split { text-align: left; }
.hero--split .hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
  max-width: none;
}
.hero--split .btn-row { justify-content: flex-start; }

/* <picture> is inline by default — force it to fill its container so the
   reserved aspect-ratio box is respected and no layout shift occurs */
.hero__media picture,
.service-card__media picture { display: block; width: 100%; height: 100%; }

/* Trust strip: a light rail on white here rather than a dark band, so the
   graphite hero reads as one solid block and the page opens up straight
   after it instead of stacking two dark stripes. */
.trust-strip {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding-block: var(--space-5);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
  list-style: none;
  margin: 0; padding: 0;
  text-align: center;
}
/* Each service is a link through to its page */
.trust-strip a {
  display: block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);        /* #565d67 — 6.54:1 on white */
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.trust-strip a:hover,
.trust-strip a:focus-visible {
  background: var(--color-bg-alt);
  color: var(--color-heading);
}

/* Current page gets a marker so visitors know where they are */
.trust-strip a[aria-current="page"] {
  color: var(--color-heading);
  box-shadow: inset 0 -3px 0 var(--color-accent-bright);
}


/* ==========================================================================
   08. BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0; padding: var(--space-3) 0;
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--color-border-strong); }
.breadcrumbs a { color: var(--color-primary-light); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }


/* ==========================================================================
   09. CONTENT BLOCKS & CARDS
   ========================================================================== */
/* Shorter measure than the template's 78ch. With the larger base size this
   lands around 68 characters a line, which is the readable band. */
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--space-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-6); }

/* Content block: one markdown H2 section */
.content-block {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--color-border);
}
.content-block:first-of-type { border-top: 0; padding-top: 0; }
.content-block h2 { margin-bottom: var(--space-4); }

/* Two column layout with sticky sidebar */
.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--space-7);
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

/* Generic card */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Cards do not lift. Nothing on this site does - the separation is space
   and a hairline, so a hover that pops the card off the page fights it. */
.card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow);
}
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.card p { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Highlighted info panel */
.panel {
  background: var(--color-accent-soft);
  border-left: 3px solid var(--color-accent-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-6);
}
.panel h3 { margin-bottom: var(--space-3); }


/* ==========================================================================
   10. SERVICES GRID
   ========================================================================== */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow);
}
.service-card__media { background: var(--color-bg-deep); aspect-ratio: 16 / 10; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.service-card__body p { font-size: var(--fs-sm); color: var(--color-text-muted); flex: 1; }
.service-card__link {
  margin-top: var(--space-5);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--color-accent-dark);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card__link::after { content: "\2192"; transition: transform var(--transition); }
.service-card:hover .service-card__link::after { transform: translateX(4px); }


/* ==========================================================================
   11. PROCESS STEPS
   ========================================================================== */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  counter-increment: step;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5) var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::before {
  content: counter(step);
  position: absolute;
  top: calc(-1 * var(--space-4));
  left: var(--space-5);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 900;
  font-size: var(--fs-md);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.step h3 { font-size: var(--fs-md); margin: var(--space-3) 0 var(--space-2); }
.step p { font-size: var(--fs-sm); color: var(--color-text-muted); }


/* ==========================================================================
   12. BENEFITS / FEATURE GRID
   ========================================================================== */
.feature {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--color-border-strong); }
.feature__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  border-radius: var(--radius);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: var(--space-4);
}
.feature h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.feature p { font-size: var(--fs-sm); color: var(--color-text-muted); }


/* ==========================================================================
   12b. PROJECT GALLERY & LIGHTBOX
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery__item { display: block; }

/* The whole tile is the button, so it is keyboard reachable by default */
.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.gallery__btn:hover,
.gallery__btn:focus-visible {
  box-shadow: var(--shadow);
  border-color: var(--color-primary);
}
.gallery__btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery__btn:hover img { transform: scale(1.04); }

/* Caption sits over the foot of the tile */
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-5) var(--space-3) var(--space-3);
  background: linear-gradient(to top, rgba(20, 23, 27, .92) 30%, rgba(20, 23, 27, 0));
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.35;
}

/* --- Lightbox overlay --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(8, 15, 26, .94);
}
.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  max-width: min(1000px, 92vw);
  text-align: center;
}
.lightbox__img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--color-primary-dark);
}
.lightbox__caption {
  margin-top: var(--space-4);
  color: #e2e5e9;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.lightbox__close,
.lightbox__nav {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, .12);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}
.lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 2.1rem;
}


/* ==========================================================================
   13. FAQ ACCORDION
   ========================================================================== */
.faq { max-width: 900px; margin-inline: auto; }
.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq__item:hover { border-color: var(--color-border-strong); }
.faq__item.is-open { border-color: var(--color-primary); box-shadow: var(--shadow); }

.faq__question { margin: 0; }
.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: none;
  border: 0;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--color-heading);
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.faq__trigger:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); }
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px; height: 24px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--color-accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--transition), opacity var(--transition);
}
.faq__icon::before { width: 16px; height: 3px; }
.faq__icon::after  { width: 3px; height: 16px; }
.faq__trigger[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq__panel {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-muted);
}
.faq__panel.is-open { display: block; }


/* ==========================================================================
   14. CTA BANDS
   ========================================================================== */
/* Flat graphite, no gradient. The gradient is the single most recognisable
   thing carried across the other sites in this network, so it is gone here. */
.cta-band {
  background: var(--color-primary);
  color: #d9dde3;                     /* 11.53:1 on #22262c */
  padding-block: var(--space-8);
  text-align: center;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { max-width: 640px; margin-inline: auto; font-size: var(--fs-md); }

/* Inline mid-content CTA */
.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  background: var(--color-accent-soft);
  border: 1px solid #efe0bd;
  border-left: 3px solid var(--color-accent-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-6);
  margin: var(--space-7) 0;
}
.cta-inline p { margin: 0; font-weight: 700; color: var(--color-heading); }
.cta-inline .btn-row { margin: 0; }

/* Sticky mobile call bar */
.call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--color-primary-dark);
  border-top: 2px solid var(--color-accent-bright);
  padding: var(--space-2) var(--space-3);
  gap: var(--space-2);
}
.call-bar .btn { flex: 1; padding: 0.8rem 0.5rem; font-size: var(--fs-sm); }


/* ==========================================================================
   15. CONTACT FORM
   ========================================================================== */
.form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}
.form-wrap h2 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.form-wrap .form-intro { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-heading);
}
.field .req { color: var(--color-error); }
.field__optional {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: var(--fs-xs);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(216, 150, 20, .28);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--color-error);
  background: #fdf4f3;
}
.field__error {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-error);
  min-height: 1em;
}

.form-note { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: var(--space-3); }

/* Success message */
.form-success {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-success-bg);
  border: 1px solid #b7ddc9;
  border-left: 5px solid var(--color-success);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  color: #12513a;
}
.form-success.is-visible { display: flex; }
.form-success strong { display: block; color: var(--color-success); margin-bottom: 4px; }


/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #c3c8cf;                     /* 10.63:1 on #14171b */
  padding-top: var(--space-8);
  font-size: var(--fs-sm);
}
.site-footer h3 {
  color: var(--color-white);
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: var(--space-2); }
.site-footer a { color: #d3d8de; text-decoration: none; }   /* 12.45:1 */
.site-footer a:hover { color: var(--color-accent-bright); text-decoration: underline; }
.footer-brand .logo__name { color: var(--color-white); }
.footer-brand p { margin-top: var(--space-4); }

/* Reversed wordmark in the footer — the full lockup reads well at this size
   against the graphite, where the standard dark version would vanish */
.footer-logo { display: inline-block; max-width: 230px; }
.footer-logo img { width: 100%; height: auto; }
.footer-phone {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--fs-lg);
  font-weight: 900;
  color: var(--color-white) !important;
}
/* Service area map.
   The Google embed carries width="600" height="450" so the box is reserved
   before it loads; this overrides the rendered size to fill the footer
   column. Kept fairly short, because it is a supporting detail at the very
   bottom of the page rather than something anyone came for. */
.footer-map {
  padding-block: var(--space-6) var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.footer-map h3 { margin-bottom: var(--space-4); }
.footer-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius);
  /* The satellite tiles are brighter than everything around them, so this
     knocks them back just enough to sit in a graphite footer without
     losing legibility. */
  filter: grayscale(18%) brightness(92%);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-xs);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }


/* ==========================================================================
   17. SCROLL TO TOP
   ========================================================================== */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--color-accent-dark); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }


/* ==========================================================================
   18. ACCESSIBILITY & FOCUS STATES
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.section--deep :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  /* Same value as the eyebrow on the dark bands: 4.76:1 against the lightest
     point of the hero gradient, where #ffb37a only reached 3.61:1. */
  outline-color: #ffd8bb;
}


/* ==========================================================================
   19. RESPONSIVE BREAKPOINTS (mobile-first adjustments)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Only the split hero is a grid on this site - the home and interior
     heroes are single centred columns at every width. */
  .hero--split .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero--split .btn-row { justify-content: center; }
  .hero__media { order: -1; max-width: 560px; margin-inline: auto; }
  .layout-split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --fs-3xl: 2.2rem; --fs-2xl: 1.8rem; --fs-xl: 1.45rem; --fs-md: 1.1875rem; }
  .hero-form .form-grid { grid-template-columns: 1fr; }

  /* Mobile navigation panel */
  .nav-burger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 0.85rem 0.5rem; font-size: var(--fs-base); border-bottom: 1px solid var(--color-border); }
  .nav__item--has-menu { position: static; }
  .nav__toggle { width: 100%; justify-content: space-between; }
  .nav__submenu {
    position: static;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    padding: var(--space-2) 0 var(--space-3) var(--space-4);
  }
  .header-cta .btn { display: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: var(--space-3); gap: var(--space-2); }
  .lightbox__close, .lightbox__nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .call-bar { display: flex; }
  body { padding-bottom: 68px; }   /* room for sticky call bar */
  .to-top { bottom: 76px; }
}

@media (max-width: 620px) {
  /* The generous desktop scale is wrong on a phone - it turns into scrolling
     past empty screens. These are still wider than the template's mobile
     values, just not 7rem wide. */
  :root { --space-7: 3rem; --space-8: 3.75rem; --space-9: 4.25rem; }
  .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-form .form-grid { grid-template-columns: 1fr; }
  .hero-form { padding: var(--space-5); }
  .hero__place { letter-spacing: .14em; font-size: var(--fs-xs); }
  .hero__place::before, .hero__place::after { width: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; text-align: center; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .call-bar .btn { width: auto; }
  .header-cta .btn { width: auto; }
  .logo__tag { display: none; }
  .form-wrap { padding: var(--space-5) var(--space-4); }
  .cta-inline { flex-direction: column; align-items: stretch; }
  .footer-map iframe { height: 220px; }
}


/* ==========================================================================
   20. MOTION & PRINT PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover, .service-card:hover, .step:hover, .feature:hover, .btn:hover,
  .gallery__btn:hover, .gallery__btn:hover img { transform: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .call-bar, .cta-band, .cta-inline, .form-wrap, .topbar { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .faq__panel { display: block !important; }
}
