/* ============================================================
   Farsley Scaffolding Ltd — Homepage Prototype
   Static stylesheet. No build step, no dependencies.
   One cohesive dark industrial theme per BRAND-DIRECTION.md.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Core dark surfaces (subtle steps, never white) */
  --charcoal: #111111;      /* page base / deepest sections */
  --graphite: #1c1c1c;      /* raised section tone */
  --graphite-2: #222222;    /* card / panel surface */
  --graphite-3: #2a2a2a;    /* hover / border lift */
  --hairline: #303030;      /* subtle borders on dark */

  /* Accents */
  --red: #c1121f;
  --red-dark: #9c0e18;
  --gold: #d4a017;
  --gold-soft: #e0a800;

  /* Text on dark */
  --off-white: #f5f2ea;
  --muted-grey: #b8b8b8;
  --dim-grey: #8a8a8a;

  /* Layout */
  --maxw: 1200px;
  --radius: 10px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3rem, 7vw, 5.5rem);

  /* Type */
  --font-head: "Oswald", "Archivo Narrow", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--off-white);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.5px; color: var(--off-white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); background: var(--charcoal); color: var(--off-white); }
/* Subtle one-step lift for rhythm — still dark, never white */
.section--raised { background: var(--graphite); }
/* Kept aliases so markup stays stable, but they now render dark */
.section--dark { background: var(--charcoal); color: var(--off-white); }
.section--light { background: var(--graphite); color: var(--off-white); }
.section--grey { background: var(--charcoal); color: var(--off-white); }
.section--red { background: var(--red); color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.section__head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.section__head p { margin-top: 0.75rem; font-size: 1.05rem; color: var(--muted-grey); }
.section__head--center { margin-inline: auto; text-align: center; }
.gold-rule { display: block; width: 64px; height: 4px; background: var(--gold); border: 0; margin: 1rem 0; }
.section__head--center .gold-rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 0.85rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--outline { background: transparent; color: var(--off-white); border-color: var(--off-white); }
.btn--outline:hover { background: var(--off-white); color: var(--charcoal); }
.btn--lg { font-size: 1.1rem; padding: 1rem 1.85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--gold); color: var(--charcoal); padding: 0.6rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--charcoal); color: var(--off-white);
  border-bottom: 3px solid var(--red);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.75rem;
}

/* Stacked wordmark */
.wordmark {
  display: flex; flex-direction: column; line-height: 0.92;
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
}
.wordmark__top { font-size: 1.65rem; letter-spacing: 1px; color: var(--off-white); }
.wordmark__bottom { font-size: 0.95rem; letter-spacing: 3px; color: var(--gold); }

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul { display: flex; gap: 1.25rem; }
.main-nav a {
  color: var(--off-white); font-family: var(--font-head); font-weight: 500;
  font-size: 0.95rem; letter-spacing: 0.6px; text-transform: uppercase;
}
.main-nav a:hover { color: var(--gold); text-decoration: none; }
.header__phone { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Mobile toggle */
.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  padding: 0.4rem; color: var(--off-white);
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--off-white);
  margin: 5px 0; transition: transform .2s ease, opacity .2s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: var(--off-white);
  background: var(--charcoal);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background: url("images/hero.jpeg") center center / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,0.92) 0%, rgba(17,17,17,0.72) 45%, rgba(17,17,17,0.35) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 640px;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.02;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero h1 .accent { color: var(--gold); }
.hero__sub {
  margin-top: 1.1rem; font-size: 1.15rem; max-width: 540px; color: #e8e5dd;
}
.hero__cta { margin-top: 1.8rem; }
.hero__trust {
  margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.92rem; color: var(--muted-grey);
}
.hero__trust li { display: flex; align-items: center; gap: 0.45rem; }
.hero__trust li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--graphite-2); border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--graphite-3); }
.service-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--off-white); }
.service-card__body p { font-size: 0.97rem; color: var(--muted-grey); }
.service-card__link {
  margin-top: auto; padding-top: 1rem; font-family: var(--font-head); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.6px; text-transform: uppercase; color: var(--gold);
}
.service-card__link::after { content: " →"; }

/* ============================================================
   AREAS STRIP
   ============================================================ */
.areas-strip { text-align: center; }
.areas-strip h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.areas-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin: 1.5rem 0;
}
.areas-chips li {
  background: var(--graphite-2); color: var(--off-white); border: 1px solid var(--hairline);
  padding: 0.45rem 1rem; border-radius: 999px; font-family: var(--font-head);
  font-weight: 500; letter-spacing: 0.5px; font-size: 0.92rem;
}
.areas-note { color: var(--muted-grey); margin-bottom: 1.5rem; }

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.why-item { padding: 1.25rem; background: var(--graphite-2); border-left: 4px solid var(--red); border-radius: 6px; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--off-white); }
.why-item p { font-size: 0.95rem; color: var(--muted-grey); }
.why-lead { max-width: 760px; font-size: 1.1rem; margin-bottom: 2rem; color: var(--off-white); }

/* ============================================================
   GALLERY — scrollable filmstrip for many thumbnails
   ============================================================ */
.fw-thumbs--scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  grid-template-columns: none;
}
.fw-thumbs--scroll::-webkit-scrollbar { height: 8px; }
.fw-thumbs--scroll::-webkit-scrollbar-track { background: var(--graphite); border-radius: 4px; }
.fw-thumbs--scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.fw-thumbs--scroll .fw-thumb {
  flex: 0 0 auto;
  width: clamp(110px, 16vw, 160px);
}
@media (max-width: 560px) {
  .fw-thumbs--scroll .fw-thumb { width: clamp(90px, 30vw, 130px); }
}

/* ============================================================
   FEATURED WORK CAROUSEL (split feature: image + info panel)
   ============================================================ */
.featured-work {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0;
  background: var(--graphite-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---- Stage: holds the large active image + arrow controls ---- */
.featured-work__stage {
  position: relative;
  background: #0b0b0b;
  min-height: clamp(280px, 42vw, 460px);
}
.featured-work__slides {
  list-style: none;
  margin: 0; padding: 0;
  position: absolute; inset: 0;
}
.featured-work__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.featured-work__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.featured-work__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---- Arrow controls ---- */
.fw-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(17,17,17,0.82);
  border: 2px solid var(--hairline);
  color: var(--off-white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
  backdrop-filter: blur(4px);
}
.fw-arrow:hover { background: var(--red); border-color: var(--red); }
.fw-arrow:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.fw-arrow svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.fw-arrow--prev { left: 14px; }
.fw-arrow--next { right: 14px; }

/* ---- Info panel ---- */
.featured-work__panel {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex; flex-direction: column;
  justify-content: center;
  background: var(--graphite-2);
  border-left: 1px solid var(--hairline);
}
.fw-panel__tag {
  align-self: flex-start;
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--red); color: #fff;
  padding: 0.28rem 0.7rem; border-radius: 4px;
  margin-bottom: 1rem;
}
.fw-panel__title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.1; color: var(--off-white);
  text-transform: none; letter-spacing: 0.2px;
}
.fw-panel__desc {
  margin-top: 0.85rem;
  font-size: 1rem; color: var(--muted-grey);
}
.fw-panel__meta {
  margin: 1.4rem 0 0; padding: 0;
  display: grid; gap: 0.65rem;
}
.fw-panel__meta > div {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline);
}
.fw-panel__meta dt {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--dim-grey); width: 88px; flex-shrink: 0;
}
.fw-panel__meta dd { margin: 0; font-size: 1rem; color: var(--off-white); }
.fw-panel__foot {
  margin-top: 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.85rem;
}
.fw-panel__count {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 1px; color: var(--gold);
}

/* ---- Thumbnail strip ---- */
.fw-thumbs {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}
.fw-thumb {
  position: relative;
  padding: 0; border: 0; background: transparent;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease;
}
.fw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fw-thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.fw-thumb.is-active {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--gold);
}
.fw-thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .featured-work { grid-template-columns: 1fr; }
  .featured-work__panel {
    border-left: 0; border-top: 1px solid var(--hairline);
  }
  .featured-work__stage { min-height: clamp(240px, 56vw, 360px); }
  .fw-thumbs { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 560px) {
  .fw-thumbs { grid-template-columns: repeat(3, 1fr); }
  .fw-arrow { width: 42px; height: 42px; }
  .fw-arrow--prev { left: 8px; }
  .fw-arrow--next { right: 8px; }
}

/* ============================================================
   SAFETY
   ============================================================ */
.safety { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.safety__img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline); }
.safety__img img { width: 100%; height: 100%; object-fit: cover; }
.safety__points { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.safety__points li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--off-white); }
.safety__points li::before { content: "✓"; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--graphite-2); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.25rem; font-family: var(--font-head); font-weight: 600;
  font-size: 1.05rem; letter-spacing: 0.3px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--off-white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); font-weight: 700; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.25rem 1.25rem; color: var(--muted-grey); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
.final-cta p { max-width: 620px; margin: 1rem auto 0; color: var(--off-white); font-size: 1.1rem; }
.final-cta .btn-row { justify-content: center; margin-top: 2rem; }
.final-cta__phone {
  display: block; margin-top: 1.5rem; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); color: var(--gold); letter-spacing: 1px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--charcoal); color: var(--muted-grey); padding-block: 3rem 1.5rem; border-top: 3px solid var(--red); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.footer-grid h3 { color: var(--off-white); font-size: 1rem; margin-bottom: 0.85rem; letter-spacing: 1px; }
.footer-grid a { color: var(--muted-grey); }
.footer-grid a:hover { color: var(--gold); }
.footer-grid ul { display: grid; gap: 0.4rem; font-size: 0.95rem; }
.footer-grid p { font-size: 0.95rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #333;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  font-size: 0.85rem; color: var(--dim-grey);
}
.footer-wordmark .wordmark__top { font-size: 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .safety { grid-template-columns: 1fr; }
  .safety__img { order: -1; max-height: 320px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: var(--graphite); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 5rem 1.5rem 2rem; transform: translateX(100%);
    transition: transform .25s ease; border-left: 3px solid var(--red);
  }
  .main-nav[data-open="true"] { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav li { width: 100%; border-bottom: 1px solid #333; }
  .main-nav a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
  .main-nav .header__phone { margin-top: 1.25rem; width: 100%; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 480px) {
  .hero__cta .btn, .final-cta .btn { width: 100%; }
  .hero__cta .btn-row, .final-cta .btn-row { width: 100%; }
}

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

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 2.5rem; align-items: start;
}
.contact-aside {
  background: var(--graphite-2); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 1.75rem;
  border-left: 4px solid var(--red);
}
.contact-aside h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.contact-aside__label { color: var(--gold); font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 0.5rem; }
.contact-aside p { color: var(--muted-grey); font-size: 0.97rem; }
.contact-aside a { color: var(--gold); }
.hours-list { display: grid; gap: 0.3rem; margin-top: 0.5rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted-grey); font-size: 0.95rem; border-bottom: 1px solid var(--hairline); padding-block: 0.3rem; }
.hours-list li span:first-child { color: var(--off-white); }

.contact-form-wrap h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.form-note { color: var(--muted-grey); font-size: 0.95rem; margin-bottom: 1.5rem; }
.quote-form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.35rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-form label { font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.5px; text-transform: uppercase; color: var(--off-white); }
.quote-form label span { color: var(--red); }
.quote-form input, .quote-form select, .quote-form textarea {
  background: var(--charcoal); color: var(--off-white); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 0.7rem 0.85rem; font-family: var(--font-body); font-size: 1rem; width: 100%;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.quote-form textarea { resize: vertical; }
.quote-form button { justify-self: start; margin-top: 0.5rem; }
#form-status { color: var(--gold); min-height: 1.2em; }

/* Job location fieldset + postcode validation */
.form-fieldset {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.25rem; margin: 0.5rem 0;
  background: var(--graphite);
}
.form-legend {
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--gold);
  padding: 0 0.5rem;
}
.postcode-input-row { display: flex; gap: 0.6rem; align-items: stretch; }
.postcode-input { flex: 1 1 auto; }
.postcode-input-row .btn { flex: 0 0 auto; white-space: nowrap; }
.postcode-status { font-size: 0.9rem; margin: 0; min-height: 1.2em; }
.postcode-status[data-state="valid"]  { color: #6bd17b; }
.postcode-status[data-state="error"]  { color: var(--red); }
.postcode-status[data-state="warn"]   { color: var(--gold); }
.postcode-status[data-state="loading"]{ color: var(--muted-grey); }
.btn--sm { font-size: 0.88rem; padding: 0.6rem 1rem; }

@media (max-width: 880px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .postcode-input-row { flex-direction: column; }
  .postcode-input-row .btn { width: 100%; }
}

/* ---------- Contact form: field statuses & invalid states ---------- */
.field-status {
  font-size: 0.85rem; margin: 0; min-height: 1.1em;
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
}
.field-status[data-state="error"]   { color: var(--red); }
.field-status[data-state="valid"]   { color: #6bd17b; }
.quote-form input[aria-invalid="true"],
.quote-form textarea[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.25);
}
#form-status[data-state="error"]   { color: var(--red); }
#form-status[data-state="loading"] { color: var(--muted-grey); }

/* ---------- Success modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
  backdrop-filter: blur(2px);
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--graphite);
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  max-width: 460px; width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.modal__icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700;
}
.modal__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.4rem; color: var(--off-white);
  margin-bottom: 0.75rem;
}
.modal__body { text-align: left; margin-bottom: 1.5rem; }
.modal__body p { color: var(--muted-grey); font-size: 0.97rem; margin-bottom: 0.75rem; }
.modal__body a { color: var(--gold); }
.modal .btn { width: 100%; }

@media (max-width: 480px) {
  .modal { padding: 1.5rem; }
  .modal__title { font-size: 1.2rem; }
}

/* ============================================================
   AREAS PAGE
   ============================================================ */
.areas-chip-lg {
  display: inline-block; background: var(--graphite-2); color: var(--off-white);
  border: 1px solid var(--hairline); border-left: 3px solid var(--red);
  padding: 0.7rem 1.4rem; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.5px;
  margin: 0.35rem;
}
.areas-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem;
}
.areas-grid ul { display: grid; gap: 0.5rem; }
.areas-grid li {
  color: var(--off-white); padding: 0.5rem 0.85rem; background: var(--graphite-2);
  border: 1px solid var(--hairline); border-radius: 6px; font-size: 0.98rem;
}

