/* Layout: a private document. Ivory paper, forest green ink, a narrow labelled
   left margin on wide screens, hairline rules between sections, nothing loud.
   Brand colours only: #125238 and #F8F1DD. Tints below are those two colours
   at reduced opacity, never a third colour. */
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --green: #125238;
  --ivory: #F8F1DD;
  --ink: #125238;
  --ink-soft: rgba(18, 82, 56, 0.78);
  --rule: rgba(18, 82, 56, 0.22);
  --rule-strong: rgba(18, 82, 56, 0.5);
  --ivory-soft: rgba(248, 241, 221, 0.8);
  --ivory-rule: rgba(248, 241, 221, 0.28);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --label-col: 220px;
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--green); color: var(--ivory); padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* Eyebrow label, used once per section */
.label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: clamp(18px, 2.6vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 16px; }
.nav-links a:hover { text-decoration: underline; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--ink); cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
}
.nav-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ivory);
  padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mobile-menu a { display: block; font-size: 32px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--rule); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding-block: calc(150px + env(safe-area-inset-top, 0px)) clamp(56px, 8vw, 104px); }
.hero h1 {
  font-size: clamp(46px, 8.4vw, 116px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 11ch;
}
.hero-sub { margin-top: clamp(24px, 3vw, 36px); max-width: 34ch; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--ink-soft); }
.hero-actions { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--green);
  font: 500 16px/1 var(--serif); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn-solid { background: var(--green); color: var(--ivory); }
.btn-solid:hover { background: transparent; color: var(--green); }
.btn-line { background: transparent; color: var(--green); }
.btn-line:hover { background: var(--green); color: var(--ivory); }
.btn:disabled { opacity: .6; cursor: wait; }

/* Three photos, quiet strip under the hero */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.photo-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-strip img:nth-child(2) { object-position: 30% center; }
@media (max-width: 640px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section-grid { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.section-grid > .label { padding-top: 10px; }
@media (max-width: 900px) {
  .section-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section-grid > .label { padding-top: 0; }
}
.section h2 { font-size: clamp(32px, 4.4vw, 56px); }
.section .label, .doc .label { font-size: 13px; line-height: 1.4; font-weight: 500; letter-spacing: 0.16em; }

/* Green sections */
.on-green { background: var(--green); color: var(--ivory); }
.on-green .label { color: var(--ivory-soft); }
.on-green a { color: var(--ivory); }

/* Who I work with */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px); }
.audience h3 { font-size: clamp(30px, 3.4vw, 44px); padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--ivory-rule); }
.audience p { font-size: 19px; color: var(--ivory-soft); max-width: 42ch; }
@media (max-width: 760px) { .audiences { grid-template-columns: minmax(0, 1fr); } }

/* How I work: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.steps li { counter-increment: step; padding: 28px clamp(16px, 2vw, 28px) 8px 0; }
.steps li + li { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 14px; letter-spacing: 0.12em; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-bottom: 40px; }
.steps h3 { font-size: 26px; margin-bottom: 14px; }
.steps p { font-size: 17px; color: var(--ink-soft); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 24px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { border-left: 0; padding-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); margin-top: 16px; }
  .steps li::before { margin-bottom: 16px; }
}

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.service { padding: clamp(28px, 3.4vw, 44px) clamp(20px, 3vw, 40px) clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--rule); }
.service:nth-child(even) { padding-left: clamp(20px, 3vw, 40px); padding-right: 0; border-left: 1px solid var(--rule); }
.service h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 14px; }
.service p { font-size: 17px; color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 760px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .service, .service:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.founder-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; }
.founder h2 { font-size: clamp(36px, 4.6vw, 60px); }
.founder-role { margin-top: 10px; font-style: italic; color: var(--ivory-soft); font-size: 18px; }
.founder-story { margin-top: clamp(28px, 3vw, 40px); display: grid; gap: 20px; max-width: 62ch; }
.founder-story p { color: var(--ivory-soft); }
.founder-story p:first-child { color: var(--ivory); font-size: 21px; line-height: 1.55; }
.founder-story .values-line { color: var(--ivory); font-style: italic; font-size: 21px; padding-top: 20px; border-top: 1px solid var(--ivory-rule); }
@media (max-width: 860px) { .founder { grid-template-columns: minmax(0, 1fr); } .founder-photo { max-width: 420px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-intro p { margin-top: 22px; color: var(--ink-soft); max-width: 40ch; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.enquiry-form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-group { display: grid; gap: 8px; min-width: 0; }
.form-group label { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-width: 0; font: 400 17px/1.4 var(--serif); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  padding: 10px 0; appearance: none; -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23125238' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; cursor: pointer;
}
.form-group textarea { min-height: 128px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(18, 82, 56, 0.45); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-bottom-color: var(--green); box-shadow: 0 1px 0 0 var(--green); }
.conditional-fields { display: grid; gap: 22px; padding: 22px 0 6px 20px; border-left: 1px solid var(--rule-strong); }
.conditional-fields[hidden] { display: none; }
.form-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.form-consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); }
.captcha { min-height: 78px; }
.form-status { padding: 16px 18px; border: 1px solid var(--green); font-size: 16px; }
.form-status.is-success { background: var(--green); color: var(--ivory); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: var(--ivory); padding-block: clamp(64px, 8vw, 104px) 0; }
.footer-values { font-size: clamp(32px, 5.4vw, 72px); font-style: italic; font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; }
.footer-meta { margin-top: clamp(48px, 6vw, 80px); padding-block: 28px; border-top: 1px solid var(--ivory-rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.footer-logo img { height: 30px; width: auto; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; }
.footer-links a, .footer-links button { color: var(--ivory); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.footer-company { grid-column: 1 / -1; font-size: 14px; line-height: 1.6; color: var(--ivory-soft); display: grid; gap: 6px; }
@media (max-width: 700px) { .footer-meta { grid-template-columns: minmax(0, 1fr); } }

/* Compliance panel: always the last thing on the page. Regulator marks are shown
   exactly as supplied, on ivory, never recoloured. */
.compliance { background: var(--ivory); color: var(--ink); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); }
.compliance-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; align-items: center; font-size: 14px; line-height: 1.5; }
.compliance-list li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.compliance-list img.tpo { height: 44px; width: auto; border-radius: 6px; flex: none; }
.compliance-list img.ico { height: 56px; width: 56px; flex: none; }
@media (max-width: 1000px) { .compliance-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .compliance-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  max-width: 560px; margin-left: auto;
  background: var(--green); color: var(--ivory); padding: 22px 24px;
  box-shadow: 0 12px 40px rgba(18, 82, 56, 0.25);
}
.cookie-banner p { font-size: 15px; line-height: 1.55; }
.cookie-banner a { color: var(--ivory); }
.cookie-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 44px; padding: 0 22px; font-size: 15px; border-color: var(--ivory); }
.cookie-actions .btn-solid { background: var(--ivory); color: var(--green); }
.cookie-actions .btn-solid:hover { background: transparent; color: var(--ivory); }
.cookie-actions .btn-line { color: var(--ivory); }
.cookie-actions .btn-line:hover { background: var(--ivory); color: var(--green); }

/* ---------- Privacy page ---------- */
.doc { padding-block: calc(140px + env(safe-area-inset-top, 0px)) clamp(72px, 9vw, 120px); }
.doc-inner { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 6vw, 72px); }
.doc .updated { margin-top: 14px; color: var(--ink-soft); font-style: italic; }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
.doc p, .doc li { font-size: 17px; }
.doc p + p, .doc h2 + p, .doc h2 + ul, .doc p + ul, .doc ul + p, .doc .table-scroll + p, .doc p + .table-scroll, .doc h2 + .table-scroll { margin-top: 16px; }
.doc ul { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }
.table-scroll { overflow-x: auto; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.doc th { font-weight: 600; border-bottom-color: var(--rule-strong); }
.todo { background: var(--green); color: var(--ivory); padding: 0 6px; }
.inline-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
