/* Deeside Joinery Services
   One stylesheet for the whole site. Tokens, then furniture, then sections.
   Colours are sampled from the logo and van livery: slate, gold, white. */

/* ---------- Montserrat, self-hosted ----------
   Served from this origin rather than Google Fonts, so no visitor's IP address
   is handed to a third party on page load. Google's own CSS pointed all three
   weights at ONE woff2 per subset: Montserrat ships as a variable font, so the
   two files below cover 600, 700 and 800 between them.

   The weight RANGE matters. The font's default instance is Thin (100), so a
   single `font-weight: 700` here would leave the browser rendering the default
   master and every heading would come out hairline. Declaring 100-900 tells it
   to set the wght axis to whatever the element asks for.

   unicode-range keeps latin-ext (68KB, mostly accented glyphs this site never
   uses) from being fetched at all unless a page actually contains one. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* #59646e is the base grey; the deeper tones carry the header, footer and
     headings, and the light end is warm cream rather than cool white, so the
     greys read blue against it. Every pairing below is checked for AA contrast. */
  --slate:        #59646e;   /* the base grey */
  --slate-dark:   #47545e;
  --slate-deep:   #3b4b55;   /* header, footer, CTA band */
  --gold:         #deae6a;   /* button fill */
  --gold-light:   #eccfa2;   /* glyphs and eyebrows on a dark ground */
  --gold-ink:     #946422;   /* gold text and links (4.8:1 on cream) */
  --gold-display: #a9752b;   /* the bronze accent, large display text only */

  /* Neutrals */
  --ink:          #2c3b43;
  --body:         #5b6a72;
  --muted:        #616d75;
  --paper:        #faf7f2;   /* warm cream page */
  --card:         #ffffff;   /* cards and inputs, to lift off the cream */
  --mist:         #f3ede4;
  --line:         #e3dbcf;

  --measure: 72rem;
  --narrow: 44rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;

  --head: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --shadow: 0 1px 2px rgba(34, 40, 46, 0.04), 0 8px 24px rgba(34, 40, 46, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: 0; }
h4 { font-size: 1rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
a { color: var(--gold-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--ink); font-weight: 700; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--narrow); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.eyebrow {
  font-family: var(--head);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1rem;
}
.on-dark .eyebrow, .site-head .eyebrow { color: var(--gold-light); }

/* ---------- Development banner. Remove at launch. ---------- */
/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: var(--slate-deep);
  border-bottom: 3px solid var(--gold);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  padding-top: 1.35rem; padding-bottom: 1.35rem;
}

/* The supplied artwork is a horizontal lockup, so the header uses it directly.
   logo-header.png is the same lockup with the tagline removed - at this size the
   tagline would be too small to read. */
.site-head .logo { display: flex; align-items: center; text-decoration: none; }
.site-head .logo img { width: auto; height: 4.25rem; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--head); font-weight: 600; font-size: 0.9rem;
  color: #fff; text-decoration: none; padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--gold-light); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #fff; }
.nav .nav-cta {
  background: var(--gold); color: var(--slate-deep);
  padding: 0.6rem 1.1rem; border-radius: var(--radius);
  border-bottom: 0; font-weight: 700;
  white-space: nowrap;            /* never break the phone number across lines */
}
.nav .nav-cta:hover { background: var(--gold-light); color: var(--slate-deep); }

.nav-toggle {
  margin-left: auto; display: none;
  background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff;
  border-radius: var(--radius); padding: 0.55rem 0.8rem; cursor: pointer;
  font: 700 0.8125rem/1 var(--head); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--head); font-weight: 700; font-size: 0.9375rem;
  padding: 0.9rem 1.7rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent;
}
/* --ink rather than --slate-deep: on this gold, slate-deep lands at 4.46:1, just
   under the 4.5 AA threshold for 15px bold. --ink is 5.72:1 and the gold is
   unchanged, so the button looks the same and the text is a shade darker. */
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-light); color: var(--ink); }
.btn-outline { border-color: var(--line); color: var(--ink); background: none; }
.btn-outline:hover { background: var(--mist); color: var(--ink); }
/* Anywhere the background is slate, the outline button has to invert too. */
.on-dark .btn-outline,
.hero .btn-outline,
.cta-band .btn-outline { border-color: rgba(255,255,255,0.45); color: #fff; background: none; }
.on-dark .btn-outline:hover,
.hero .btn-outline:hover,
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 1.8rem; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.tinted { background: var(--mist); }
.on-dark { background: var(--slate); color: #e7eaec; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a { color: var(--gold-light); }

.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head p:last-child { margin-bottom: 0; }
.section-head p { color: var(--muted); font-size: 1.0625rem; }
.on-dark .section-head p { color: #c3cace; }

/* ---------- Hero ---------- */
.hero { background: var(--slate); color: #e7eaec; padding: clamp(3.5rem, 9vw, 6.5rem) 0; }

/* Photographic hero: the image sits behind, with a gradient heavy on the left so the
   copy stays readable, fading out to the right to leave the van and Richard clear. */
.hero-photo {
  position: relative;
  min-height: min(38rem, 78vh);
  display: flex;
  align-items: center;
  background: var(--slate-deep) url("/assets/img/Richie-Kewley-Deeside-Joinery-Services-Aberdeen.jpg")
              center right / cover no-repeat;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(28, 38, 44, 0.95) 0%,
    rgba(28, 38, 44, 0.90) 34%,
    rgba(28, 38, 44, 0.50) 50%,
    rgba(28, 38, 44, 0.12) 61%,
    rgba(28, 38, 44, 0) 68%
  );
  /* Past 68% the gradient holds at zero, so the right-hand third of the
     photograph - Richard and the livery - is completely untouched. */
}
.hero-photo > .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 36rem; }
.hero-photo h1 { text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35); }

/* Narrow screens: there is no room for the copy to sit clear of the image, so the
   left-to-right fade is replaced by an even wash and the photo is pulled to the right
   to keep Richard and the livery in frame. */
@media (max-width: 62rem) {
  .hero-photo { background-position: 72% center; min-height: 32rem; }
  .hero-photo::before {
    background: linear-gradient(
      180deg,
      rgba(28, 38, 44, 0.93) 0%,
      rgba(28, 38, 44, 0.86) 55%,
      rgba(28, 38, 44, 0.9) 100%
    );
  }
}
.hero h1 { color: #fff; }
.hero .lede { font-size: clamp(1.0625rem, 1.9vw, 1.25rem); color: #cfd5d9; max-width: 36rem; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; }
.hero-tagline {
  font-family: var(--head); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); font-size: 0.8125rem; margin-bottom: 1rem;
}

/* Trust strip, lifted from the business card */
.trust {
  background: var(--slate-deep); color: #fff;
  font-family: var(--head); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem;
}
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.trust span { display: flex; align-items: center; gap: 2rem; }
.trust span::after { content: ""; width: 1px; height: 0.9rem; background: var(--gold); }
.trust span:last-child::after { display: none; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 0; }

/* A service card is a card that is entirely a link */
a.card { text-decoration: none; display: block; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); }
a.card h3 { color: var(--ink); display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
a.card h3::after { content: "\2192"; color: var(--gold); font-weight: 400; }

/* Gold on slate, the way the brand's own services artwork has it. */
.card-icon {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--slate); color: var(--gold-light);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.card-icon img { width: 1.85rem; height: 1.85rem; display: block; }

/* ---------- Placeholder blocks, until the client's photographs arrive ---------- */
.placeholder {
  display: grid; place-items: center; text-align: center;
  min-height: 13rem; padding: 1.5rem;
  background: repeating-linear-gradient(45deg, var(--mist), var(--mist) 12px, #e9edef 12px, #e9edef 24px);
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted);
  font: 700 0.75rem/1.5 var(--head); letter-spacing: 0.1em; text-transform: uppercase;
}
.placeholder-tall { min-height: 20rem; }

/* A photograph filling one of those slots. The gold rule ties it to the livery. */
.photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--gold);
}
.hero .photo { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28); }
/* The About portrait is tall and narrow; stop it towering over the text beside it. */
.photo-portrait { max-width: 22rem; margin-inline: auto; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.7rem; height: 0.35rem;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { margin: 0; }
.chips a, .chips span {
  display: inline-block; padding: 0.4rem 0.85rem;
  background: var(--mist); border: 1px solid var(--line); border-radius: 2rem;
  font-size: 0.875rem; color: var(--body); text-decoration: none;
}
.chips a:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- Breadcrumbs ---------- */
/* padding-top only: the breadcrumb also carries .wrap, and a padding shorthand
   here would wipe out .wrap's side gutter and pull it out of line with the page. */
.crumbs { font-size: 0.8125rem; color: var(--muted); padding-top: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-ink); }

/* ---------- Contact ---------- */
.contact-rows { list-style: none; padding: 0; margin: 0; }
.contact-rows li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-rows .card-icon { margin: 0; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; }
.contact-rows dt, .contact-rows .label {
  font: 700 0.6875rem/1.4 var(--head); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.contact-rows > li > div { min-width: 0; }   /* lets the email wrap instead of overflowing */
.contact-rows .value { font-size: 1.125rem; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact-rows .value a { color: var(--ink); text-decoration: none; }
.contact-rows .value a:hover { color: var(--gold-ink); }

/* ---------- Editorial two-column prose ----------
   A single narrow column leaves a lot of dead space on a wide screen, but simply
   widening it makes the lines too long to read. Instead the heading moves into a
   left rail and the copy sits beside it, which uses the width and keeps the
   measure sensible. Collapses to stacked headings on narrow screens. */
.prose-split { display: grid; gap: clamp(2rem, 4vw, 2.75rem); }
.prose-row {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
}
.prose-row + .prose-row {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}
.prose-row > h2 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.prose-row > div > :last-child { margin-bottom: 0; }
@media (max-width: 52rem) {
  .prose-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .prose-row + .prose-row { padding-top: 1.75rem; }
}

/* ---------- Gallery of service images ---------- */
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.gallery a {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.gallery a:hover { border-color: var(--gold); transform: translateY(-2px); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.gallery span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  padding: 0.8rem 1rem;
  font: 700 0.9375rem/1.3 var(--head); color: var(--ink);
}
.gallery span::after { content: "\2192"; color: var(--gold-ink); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .gallery a { transition: none; } }

/* ---------- Area page: body copy beside a photograph ---------- */
.area-body {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
}
.area-body > div > h2:first-child { margin-top: 0; }
/* The text column sets the height; the photograph crops to fill it. */
.area-body img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
@media (max-width: 52rem) {
  .area-body { grid-template-columns: 1fr; }
  .area-body img { height: auto; aspect-ratio: 3 / 2; }
}

/* ---------- Area page: the photo and a word from Richard ---------- */
.area-intro { margin: 2.25rem 0 0; }
.area-intro img {
  width: 100%;
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.area-intro figcaption {
  margin-top: 1.25rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--gold);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
}
.area-intro .signoff {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Enquiry form ---------- */
.enquiry {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.tinted .enquiry, .on-dark .enquiry { background: var(--card); }
.enquiry h2, .enquiry h3 { margin-bottom: 0.35rem; }
.enquiry > p.intro { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.4rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block; margin-bottom: 0.35rem;
  font: 700 0.75rem/1.4 var(--head); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.field .opt { font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.field input, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 168, 104, 0.25);
}
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 30rem) { .field-row { grid-template-columns: 1fr; } }

.enquiry button { width: 100%; cursor: pointer; font-size: 1rem; }
.enquiry button[disabled] { opacity: 0.6; cursor: progress; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: 1rem 0 0; font-size: 0.9375rem; min-height: 1.4em; }
.form-note:empty { margin: 0; min-height: 0; }
.form-note.is-error { color: #a4332c; }
.form-note.is-ok { color: #1f6b4a; }
.form-smallprint { margin: 1rem 0 0; font-size: 0.8125rem; color: var(--muted); }

.form-done {
  border-left: 3px solid var(--gold);
  background: var(--mist);
  padding: 1.25rem 1.5rem;
}
.form-done h3 { margin-bottom: 0.4rem; }
.form-done p:last-child { margin-bottom: 0; }

/* ---------- Call to action band ---------- */
/* The base grey here, so the call to action separates from the darker footer
   instead of merging into one slab. */
.cta-band { background: var(--slate); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3cace; max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta-band .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-foot { background: var(--slate-deep); color: #aeb7bf; font-size: 0.9375rem; padding: 3.5rem 0 2rem; }
.site-foot a { color: #d7dde1; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot h4 {
  color: #fff; font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 0.55rem; }
.site-foot .logo img { height: 5.25rem; width: auto; margin-bottom: 1rem; }
.foot-base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between;
  /* Was #8b949c, which is 2.93:1 on the footer slate - under AA for 13px text.
     This is 5.40:1 and reads as the same quiet grey. */
  font-size: 0.8125rem; color: #c3c9cd;
}
.foot-base p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 56rem) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--slate-deep); border-bottom: 3px solid var(--gold);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,0.12); color: var(--gold-light); }
  .nav .nav-cta { margin-top: 0.9rem; text-align: center; border-bottom: 0; }
  .nav-toggle { display: block; }
  .site-head .wrap { position: relative; }
  /* Big, but not so big it crowds out the menu button. */
  .site-head .wrap { padding-top: 1rem; padding-bottom: 1rem; }
  .site-head .logo img { height: 2.75rem; }
  .trust span { gap: 1rem; }
}

/* ---------- Cookie consent ---------- */
/* Fixed to the bottom rather than a full-screen modal: the page stays readable and
   keyboard focus is not trapped. Analytics is denied by default, so nothing is
   stored while this sits there unanswered. */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: var(--slate-deep); color: #fff;
  border-top: 3px solid var(--gold);
  box-shadow: 0 -8px 24px rgba(34, 40, 46, 0.22);
  animation: consent-in 0.28s ease-out;
}
@keyframes consent-in { from { transform: translateY(100%); } to { transform: none; } }

.consent-inner {
  max-width: var(--measure); margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
}
.consent-text h2 { font-size: 1.0625rem; margin: 0 0 0.3rem; color: #fff; }
.consent-text p { margin: 0; font-size: 0.9375rem; color: #e4e7e9; max-width: 60ch; }
.consent-text a { color: var(--gold-light); }
.consent h2:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Equal prominence. Identical size, weight and position, so refusing is no harder
   than agreeing - which is the part of the ICO guidance most banners get wrong. */
.consent-actions { display: flex; gap: 0.75rem; }
.consent-actions .btn {
  cursor: pointer; font-size: 0.9375rem; padding: 0.8rem 1.5rem;
  min-width: 7.5rem; text-align: center;
}
.consent-yes { background: var(--gold); color: var(--ink); }
.consent-yes:hover { background: var(--gold-light); color: var(--ink); }
.consent-no { background: var(--paper); color: var(--ink); }
.consent-no:hover { background: #fff; color: var(--ink); }

@media (max-width: 46rem) {
  .consent-inner { grid-template-columns: 1fr; }
  .consent-actions .btn { flex: 1 1 0; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card { transition: none; }
  .consent { animation: none; }
}
