/* Eco-Renovation UK — shared stylesheet */

:root {
  /* ground: lime plaster. tints: clay and cork. accent: the leaf from the logo. */
  --ground: #F3F1EA;
  --paper: #FAF8F2;
  --paper-veil: rgba(250, 248, 242, 0.62);
  --tint-green: #E7E3D6;   /* clay */
  --tint-stone: #E8DCC7;   /* cork */
  --ink: #241F19;
  --ink-soft: #5E564B;
  --ink-faint: #6F6659;
  --rule: #DED7C9;
  --rule-strong: #C3BAA8;
  --accent: #3E6B4E;
  --accent-ink: #325940;
  --accent-pale: #E2E7DA;
  --flint: #6B6155;
  --btn-text: #FAF8F2;
  --f-head: "Petrona", Georgia, "Times New Roman", serif;
  --f-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* material textures, drawn rather than photographed — see note in the reply */
  --tex-lime: url("img/tex/cork.jpg");
  --tex-woodfibre: url("img/tex/fibre.jpg");
  --tex-strawlime: url("img/tex/straw.jpg");

  --page-texture: var(--tex-lime);
  --texture-opacity: 0.25;
  --texture-blend: normal;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #17150F;
    --paper: #1E1B14;
    --paper-veil: rgba(30, 27, 20, 0.66);
    --tint-green: #262219;
    --tint-stone: #2B2418;
    --ink: #EDE8DC;
    --ink-soft: #ABA290;
    --ink-faint: #8B8272;
    --rule: #332E23;
    --rule-strong: #463F31;
    --accent: #8FBE9C;
    --accent-ink: #A9D2B3;
    --accent-pale: #22281D;
    --flint: #A0947F;
    --btn-text: #14120C;
    --texture-opacity: 0.05;
    --texture-blend: screen;
  }
}

:root[data-theme="dark"] {
  --ground: #17150F;
  --paper: #1E1B14;
  --paper-veil: rgba(30, 27, 20, 0.66);
  --tint-green: #262219;
  --tint-stone: #2B2418;
  --ink: #EDE8DC;
  --ink-soft: #ABA290;
  --ink-faint: #8B8272;
  --rule: #332E23;
  --rule-strong: #463F31;
  --accent: #8FBE9C;
  --accent-ink: #A9D2B3;
  --accent-pale: #22281D;
  --flint: #A0947F;
  --btn-text: #14120C;
  --texture-opacity: 0.05;
  --texture-blend: screen;
}

* { box-sizing: border-box; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.66;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--page-texture);
  background-repeat: repeat;
  background-repeat: repeat;
  opacity: var(--texture-opacity);
  mix-blend-mode: var(--texture-blend);
  pointer-events: none;
}

.wrap { max-width: 1060px; margin-inline: auto; padding-inline: 20px; }

/* "narrow" caps the reading measure, it does NOT move the section inwards.
   The box stays the full width so every section on the site shares one left
   edge; only the contents are capped, and they stay hard against it. */
.wrap.narrow { max-width: 1060px; }
.wrap.narrow > * { max-width: 680px; margin-left: 0; margin-right: auto; }
.narrow { max-width: 680px; }

/* ---------- material texture ----------
   Each page sets --page-texture to lime plaster, wood fibre or straw-lime.
   Applied as a faint overlay, never behind body text at full strength. */

.textured { position: relative; isolation: isolate; }
.textured > * { position: relative; z-index: 1; }
.textured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--page-texture);
  background-repeat: repeat;
  opacity: var(--texture-opacity);
  mix-blend-mode: var(--texture-blend);
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.005em;
}
p { margin: 0; }

.eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent);
}

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

/* ---------- site chrome ---------- */

/* ---------- brand bar + menu bar ---------- */

.brandbar { background: var(--paper-veil); border-bottom: 1px solid var(--rule-strong); }
.brandbar .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 28px; padding-block: 11px;
}

.brand { display: flex; flex-direction: row; align-items: center; gap: 13px; margin-right: auto; text-decoration: none; color: inherit; }
.brand .words { display: flex; flex-direction: column; }
.brand .name { font-family: var(--f-head); font-weight: 700; font-size: 1.62rem; letter-spacing: -0.015em; line-height: 1.05; }
.brand .desc { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; }
.brand img.mark { height: 50px; width: auto; display: block; }
@media (max-width: 560px) {
  .brand { gap: 10px; }
  .brand img.mark { height: 46px; }
  .brand .name { font-size: 1.28rem; }
  .brand .desc { font-size: 0.66rem; }
}

.bcontact { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.bcontact a { text-decoration: none; color: var(--ink-soft); font-size: 0.88rem; }
.bcontact a:hover { color: var(--accent-ink); }
.bcontact a.tel {
  font-family: var(--f-head); font-weight: 700; font-size: 1.38rem;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.15;
}
@media (max-width: 560px) {
  .brandbar .wrap { gap: 10px; }
  .bcontact { align-items: flex-start; text-align: left; }
  .bcontact a.tel { font-size: 1.2rem; }
}

header.site {
  background: var(--accent);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 24px; padding-block: 0;
}

nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-right: auto; }
nav.main a {
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(250,248,242,0.86); text-decoration: none;
  padding-block: 15px; display: inline-block;
}
nav.main a:hover { color: #fff; }
nav.main a[aria-current="page"] { color: #fff; font-weight: 600; box-shadow: inset 0 -3px 0 rgba(255,255,255,0.75); }

.navcta {
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  color: #fff; border: 1px solid rgba(255,255,255,0.55);
  padding: 8px 15px; border-radius: 3px; white-space: nowrap;
}
.navcta:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
@media (max-width: 1100px) {
  nav.main { gap: 0 16px; }
  nav.main a { font-size: 0.81rem; }
}

.btn {
  font-size: 0.84rem; font-weight: 600;
  background: var(--accent); color: var(--btn-text);
  padding: 10px 17px; border-radius: 2px;
  text-decoration: none; white-space: nowrap;
  display: inline-block; border: 1px solid var(--accent);
  cursor: pointer; font-family: var(--f-body);
}
.btn:hover { opacity: 0.9; }
.btn.ghost { background: transparent; color: var(--accent-ink); }
.btn.big { font-size: 0.92rem; padding: 13px 22px; }

.crumb { font-size: 0.76rem; color: var(--ink-faint); padding-block: 18px 0; }
.crumb a { color: var(--ink-faint); text-decoration: none; }
.crumb a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- page intro ---------- */

.intro { padding-block: 24px 0; max-width: 700px; }
.intro h1 { font-size: clamp(1.85rem, 2.5vw, 2.75rem); line-height: 1.1; font-weight: 700; margin-top: 11px; }
.intro .blurb { font-size: 1.1rem; color: var(--ink-soft); margin-top: 18px; line-height: 1.6; }
.intro .blurb + .blurb { margin-top: 11px; }

.creds {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--ink-faint); max-width: 74ch;
}

/* trust strip — sits high on the page, never below the fold */
.trust .val b { color: var(--ink); font-weight: 600; }

/* ---------- photo placeholders ---------- */

.photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 20px 16px;
  background: var(--tint-green); color: var(--accent-ink); max-width: 100%;
}
.photo.stone { background: var(--tint-stone); color: var(--ink-soft); }
.photo .pn { font-size: 0.59rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.62; }
.photo .pc { font-family: var(--f-head); font-size: 0.88rem; font-style: italic; max-width: 24ch; line-height: 1.35; }
.photo.lead { aspect-ratio: 16 / 7; margin-top: 34px; }
.photo.lead .pc { font-size: 1rem; max-width: 30ch; }
.photo.tall { min-height: 300px; height: 100%; }
/* The photo fills its half of the block, so the two columns stay a clean
   rectangle. That means its HEIGHT comes from the text beside it: measured
   13 Oct, 300px to 746px on the same page. Giving the photo a fixed ratio
   and centring it was tried and looked worse - it leaves the photo floating
   in a gap beside a full-height text panel. The real fix is evening up the
   text, not the CSS. A floor and a ceiling keep the worst of it in check. */
.block .photo.tall { max-height: 560px; }
.photo.four3 { aspect-ratio: 4 / 3; }
.photo.shot { position: relative; overflow: hidden; }
.photo.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 420ms ease; }
.pcard:hover .photo.shot img { transform: scale(1.035); }

/* ---------- section rhythm ---------- */

section.band { padding-block: 54px; }
section.band.tight { padding-block: 40px; }
section.band.paper {
  background: var(--paper);
  border-block: 1px solid var(--rule);
  position: relative; isolation: isolate;
}
section.band.paper > * { position: relative; z-index: 1; }
section.band.paper::before /* disabled */ {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: none;
  opacity: 0;
  mix-blend-mode: var(--texture-blend);
  pointer-events: none;
}
.band h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.16; font-weight: 700; }
.band .sub { margin-top: 12px; color: var(--ink-soft); max-width: 60ch; }
.prose { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.prose p { max-width: 62ch; color: var(--ink-soft); }
.prose p.big { font-size: 1.08rem; color: var(--ink); }
.prose p strong { color: var(--ink); }

/* ---------- alternating photo/text block ---------- */

.block { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; margin-top: 28px; }
.block .side {
  padding: 34px 38px; background: var(--paper);
  display: flex; flex-direction: column; gap: 13px; justify-content: center;
}
.block.rev .side { order: 2; }
.block.rev .photo { order: 1; }
.block h3 { font-size: 1.45rem; line-height: 1.16; font-weight: 700; }
.block p { color: var(--ink-soft); max-width: 42ch; }
.block ul { margin: 2px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: 0.94rem; }
.block li { max-width: 40ch; }
.block a.more { font-size: 0.87rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; margin-top: 4px; }
.block a.more:hover { text-decoration: underline; }

@media (max-width: 780px) {
  .block { grid-template-columns: 1fr; }
  .block.rev .side, .block.rev .photo { order: 0; }
  .block .side { padding: 28px 24px; }
  .block .photo.tall { min-height: 220px; }
}

/* ---------- two doors ---------- */

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: 28px; }
.door {
  border: 1px solid var(--rule-strong); background: var(--paper-veil);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
}
.door h3 { font-size: 1.28rem; font-weight: 700; line-height: 1.2; }
.door p { font-size: 0.95rem; color: var(--ink-soft); }
.door .btn { align-self: flex-start; margin-top: 4px; }
.door .fine { font-size: 0.82rem; color: var(--ink-faint); }

/* ---------- plain lists ---------- */

.points { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; }
.points li { padding: 16px 0; border-top: 1px solid var(--rule); max-width: 66ch; }
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points b { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; display: block; margin-bottom: 3px; }
.points span { color: var(--ink-soft); font-size: 0.95rem; }

.steps { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; counter-reset: st; }
.steps li {
  counter-increment: st; padding: 18px 0 18px 46px; border-top: 1px solid var(--rule);
  position: relative; max-width: 64ch;
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 18px;
  font-family: var(--f-head); font-size: 1.1rem; font-weight: 600; color: var(--flint);
}
.steps b { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; display: block; margin-bottom: 3px; }
.steps span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- materials ---------- */

.materials { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.materials dl { margin: 0; }
.materials dt { font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; margin-top: 14px; }
.materials dt:first-child { margin-top: 0; }
.materials dd { margin: 2px 0 0; font-size: 0.92rem; color: var(--ink-soft); max-width: 42ch; }
.notused { background: var(--paper); border: 1px solid var(--rule); padding: 22px 24px; }
.notused h3 { font-size: 1.05rem; margin-bottom: 8px; }
.notused p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- gallery plates ---------- */

.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px 24px; margin-top: 26px; }
.plate { display: flex; flex-direction: column; gap: 9px; }
.plate .photo { aspect-ratio: 4 / 3; }
.plate .cap { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.plate .cap b { color: var(--ink); font-weight: 600; }

/* ---------- project cards ---------- */

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin-top: 26px; }
/* An author rule like .pcard{display:flex} beats the browser's built-in
   [hidden]{display:none}, so hiding a card in JS did nothing and the Our
   Work filters silently failed. Found 13 Oct. */
[hidden] { display: none !important; }

.pcard { display: flex; flex-direction: column; gap: 9px; text-decoration: none; color: inherit; }
.pcard .photo { aspect-ratio: 4 / 3; }
.pcard .ptitle { font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; line-height: 1.26; }
.pcard .pmeta { font-size: 0.75rem; color: var(--ink-faint); }
.pcard:hover .ptitle { color: var(--accent-ink); }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.filters button {
  font-family: var(--f-body); font-size: 0.83rem; font-weight: 500;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--rule-strong); padding: 8px 15px; border-radius: 2px; cursor: pointer;
}
.filters button:hover { border-color: var(--accent); color: var(--accent-ink); }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--btn-text); border-color: var(--accent); }
.count { margin-top: 18px; font-size: 0.83rem; color: var(--ink-faint); }

/* ---------- FAQ ---------- */

.faq { margin-top: 24px; max-width: 72ch; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; padding: 16px 30px 16px 0; position: relative; list-style: none;
  font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-family: var(--f-body); font-size: 1.15rem; color: var(--accent); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 30px 18px 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 62ch; }

/* ---------- quotes / reviews ---------- */

/* the client's own words on their own project page, between the lead
   photograph and the gallery. Deliberately quieter than a pull quote -
   it is evidence, not a banner. */
.jobquote { margin: 34px 0 0; padding: 26px 0 0; border-top: 1px solid var(--rule-strong); }
.jobquote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.72; color: var(--ink-soft);
  text-align: justify; hyphens: auto; }
.jobquote blockquote::before { content: "\201C"; }
.jobquote blockquote::after { content: "\201D"; }
.jobquote figcaption { margin-top: 14px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink); }
.jobquote figcaption span { display: block; margin-top: 3px; font-weight: 400;
  letter-spacing: 0.02em; color: var(--ink-faint); }
@media (max-width: 560px) {
  .jobquote blockquote { text-align: left; hyphens: manual; font-size: 0.97rem; }
}

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; margin-top: 26px; }
.review blockquote { margin: 0; font-size: 0.97rem; color: var(--ink-soft); line-height: 1.6; }
.review .who { display: block; margin-top: 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.review .where { display: block; font-size: 0.74rem; color: var(--ink-faint); margin-top: 2px; }

.pullquote { margin-top: 36px; padding-block: 32px; border-block: 2px solid var(--accent); }
.pullquote blockquote {
  margin: 0; font-family: var(--f-head); font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 1.35vw, 1.1875rem); line-height: 1.52; max-width: 60ch;
}
.pullquote .who { display: block; margin-top: 14px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-style: normal; font-family: var(--f-body); }

/* ---------- closing CTA ---------- */

.close { background: var(--paper); border-block: 1px solid var(--rule); }
.close .wrap { padding-block: 52px; }
.close h2 { font-size: clamp(1.55rem, 4vw, 2.05rem); font-weight: 700; line-height: 1.14; max-width: 22ch; }
.close p.lead { margin-top: 14px; color: var(--ink-soft); max-width: 54ch; }
.close .buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.close .fine { margin-top: 14px; font-size: 0.83rem; color: var(--ink-faint); }

/* ---------- form ---------- */

.form { margin-top: 28px; max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 0.95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-strong);
  padding: 11px 13px; border-radius: 2px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 0.78rem; color: var(--ink-faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.formnote { font-size: 0.82rem; color: var(--ink-faint); max-width: 54ch; }

.contactlines { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.contactlines a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.contactlines a:hover { text-decoration: underline; }
.contactlines .lbl { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-faint); display: block; }

/* ---------- footer ---------- */

footer.site { background: var(--ink); color: var(--ground); padding-block: 42px 30px; }
:root[data-theme="dark"] footer.site { background: #0F1211; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer.site { background: #0F1211; } }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 28px; }
footer.site .name { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; }
footer.site .fbrand { display: flex; align-items: center; gap: 12px; }
footer.site img.mark { height: 42px; width: auto; display: block; }
footer.site .desc { font-size: 0.63rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; opacity: 0.6; margin-top: 4px; }
footer.site .blurb { margin-top: 14px; font-size: 0.86rem; opacity: 0.8; max-width: 30ch; }
footer.site h4 { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.55; margin: 0 0 11px; font-family: var(--f-body); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 0.87rem; }
footer.site a { color: var(--ground); text-decoration: none; opacity: 0.85; }
footer.site a:hover { opacity: 1; text-decoration: underline; }
footer.site .fine { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.73rem; opacity: 0.5; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- Drop-down under a menu item (Insulation ▸ Diathonite) ---- */

/* ---- Two buttons, each with a short line explaining who it's for ---- */
.ctapair { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 26px; align-items: flex-start; }
.ctapair > div { display: flex; flex-direction: column; gap: 9px; max-width: 32ch; }
.ctapair p { margin: 0; font-size: 0.87rem; line-height: 1.45; color: var(--ink-faint); }

/* ---- Question list on the survey page ---- */
.qlist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 22px; }
.qlist li { position: relative; padding-left: 20px; color: var(--ink-soft); line-height: 1.45; }
.qlist li::before { content: "?"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--accent-ink); }

.photo.lead.shot { position: relative; overflow: hidden; }
.photo.lead.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.plate .photo.shot .pn, .plate .photo.shot .pc { position: relative; z-index: 0; }

/* ---------- menu toggle (phones) ---------- */

.navtoggle {
  display: none;
  align-items: center; gap: 10px;
  font: inherit; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em;
  background: none; border: 0; cursor: pointer;
  color: #fff; padding: 14px 0; margin-right: auto;
}
.navtoggle .bars { position: relative; width: 20px; height: 2px; background: #fff; display: inline-block; }
.navtoggle .bars::before, .navtoggle .bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff;
  transition: transform 180ms ease, opacity 140ms ease;
}
.navtoggle .bars::before { top: -6px; }
.navtoggle .bars::after { top: 6px; }
header.site.open .navtoggle .bars { background: transparent; }
header.site.open .navtoggle .bars::before { transform: translateY(6px) rotate(45deg); }
header.site.open .navtoggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .navtoggle { display: inline-flex; }
  header.site .wrap { flex-wrap: nowrap; }
  nav.main {
    display: none; order: 3; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid rgba(255,255,255,0.22);
    padding-bottom: 8px;
  }
  header.site.open { flex-wrap: wrap; }
  header.site.open .wrap { flex-wrap: wrap; }
  header.site.open nav.main { display: flex; }
  nav.main a {
    padding: 13px 2px; font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  nav.main a:last-child { border-bottom: 0; }
  nav.main a[aria-current="page"] { box-shadow: none; }
  nav.main a[aria-current="page"]::before { content: "\2013\00a0"; }
  .navcta { margin-block: 9px; }
}

/* ---------- form: honeypot ---------- */

.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- page head: words left, picture right ---------- */

.phead {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: 40px; align-items: center; margin-top: 4px;
}
.phead .intro { max-width: none; margin: 0; }
.phead .photo.lead { aspect-ratio: 4 / 3; margin-top: 0; }
@media (max-width: 900px) {
  .phead { grid-template-columns: 1fr; gap: 26px; }
  .phead .photo.lead { aspect-ratio: 16 / 9; }
}

/* ---------- homepage hero ---------- */

.hero { position: relative; margin-top: 0; }
.heroshot {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 420px;
  max-height: 1200px; max-height: min(1200px, calc(100svh - 150px));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 26px;
  background: var(--flint); color: rgba(255,255,255,0.72);
  overflow: hidden;
}
.heroshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20,17,12,0.78) 0%, rgba(20,17,12,0.30) 48%, rgba(20,17,12,0.06) 100%);
}
.herotext {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding-bottom: clamp(32px, 3.4vw, 58px);
}
.herotext h1 {
  color: #fff; max-width: 20ch; margin: 0;
  font-size: clamp(1.85rem, 2.5vw, 2.75rem); line-height: 1.12; font-weight: 600;
  text-shadow: 0 2px 22px rgba(0,0,0,0.45);
}
.herotext .blurb {
  color: rgba(255,255,255,0.93); margin-top: clamp(12px, 1.4vw, 22px); max-width: 46ch;
  font-size: clamp(1rem, 1.05vw, 1.15rem); text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
@media (max-width: 720px) {
  .heroshot { min-height: 420px; max-height: min(1200px, calc(100svh - 205px)); }
  .herotext { padding-bottom: 32px; }
}

/* ---------- accreditation badges ---------- */

.badges { background: var(--paper-veil); border-block: 1px solid var(--rule); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badges { background: rgba(233,229,217,0.88); border-color: #3B3528; }
}
:root[data-theme="dark"] .badges { background: rgba(233,229,217,0.88); border-color: #3B3528; }
.badges .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 44px; padding-block: 13px;
}
.badge { display: inline-flex; align-items: center; }
.badge img { height: 38px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.badge.tall img { height: 52px; max-width: 120px; }
.badge > span { display: none; }
.badge.nologo > span {
  display: inline; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-faint);
}
@media (max-width: 900px) {
  .badges .wrap { gap: 12px 26px; padding-block: 12px; }
  .badge img { height: 32px; max-width: 120px; }
  .badge.tall img { height: 43px; max-width: 96px; }
}

/* ---------- justified text ----------
   Only on the wide text blocks, and only from tablet up. The narrow
   two-column blocks (.side) run at 38-48 characters a line, where
   justification opens visible gaps, so those stay ragged. */
@media (min-width: 560px) {
  .prose p,
  .intro .blurb,
  .band .sub,
  .pullquote blockquote { text-align: justify; text-justify: inter-word; hyphens: auto; }
}

/* inline links inside body copy - but never buttons, which carry their own
   colour and were being overridden into green-on-green by this rule. */
.prose a:not(.btn):not(.more) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.btn):not(.more):hover { text-decoration: none; }
