/* Gritstone Planning - site styles. Style E Contour.
   Colours and type follow 02 Brand Guidelines. Fonts are self-hosted (SIL OFL). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  --green: #1F3330;
  --green-line: #2F4844;
  --green-mid: #4D6B65;
  --green-deep: #16201E;
  --orange: #B4531C;
  --orange-dark: #9A4516;
  --orange-darker: #7A3610;
  --orange-light: #F0A36B;
  --ink: #1E2422;
  --text: #333B38;
  --muted: #56605C;
  --pale: #EEF1EE;
  --rule: #D8DDD8;
  --page: #FBFAF7;
  --on-green: #E4EAE7;
  --on-green-soft: #C9D3CF;
  --display: "Archivo", "Arial Black", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pad: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }

a { color: var(--orange-dark); }
a:hover { color: var(--orange-darker); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.on-green :focus-visible, .site-header :focus-visible, .site-footer :focus-visible,
.hero :focus-visible, .profile-hero :focus-visible, .contact-text :focus-visible, .contact-box :focus-visible { outline-color: var(--orange-light); }

[id] { scroll-margin-top: 16px; }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: #FFFFFF; color: var(--ink); padding: 12px 16px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.display { font-family: var(--display); font-weight: 800; }

.eyebrow {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange-light);
}
.label {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange-dark);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; font: inherit; font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn-solid { background: var(--orange); color: #FFFFFF; }
.btn-solid:hover { background: var(--orange-dark); color: #FFFFFF; }
.btn-ghost { border: 1px solid var(--on-green-soft); color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.btn-small { min-height: 44px; padding: 0 22px; font-size: 0.9375rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Header */
.site-header { background: var(--green); color: #FFFFFF; }
.site-header .wrap {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; min-height: 48px; text-decoration: none; }
.brand img { display: block; width: 204px; height: 48px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 26px; font-weight: 500; font-size: 0.9375rem; }
.site-nav a {
  color: #FFFFFF; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { color: var(--orange-light); text-decoration: underline; }

/* Hero (home) */
.hero { background: var(--green); color: #FFFFFF; border-top: 1px solid var(--green-line); overflow: hidden; }
.hero .wrap {
  padding-top: 96px; padding-bottom: 104px;
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.hero-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.375rem, 1.3rem + 4.4vw, 4rem); line-height: 1.04; letter-spacing: -0.015em;
}
.lede { font-size: 1.25rem; color: var(--on-green-soft); max-width: 34em; }
.contour { flex: 1 1 320px; width: 320px; max-width: 460px; height: auto; }

/* Director band */
.band { background: var(--orange); color: #FFFFFF; }
.band .wrap {
  padding-top: 30px; padding-bottom: 30px;
  display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: center; justify-content: space-between;
}
.band-lead { font-family: var(--display); font-weight: 800; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.625rem); line-height: 1.2; }
.band-lead span { display: block; }
.band-note { font-size: 1rem; max-width: 34em; }

/* Sections */
.section .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 48px; }
.section-pale { background: var(--pale); }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; justify-content: space-between; }
.section-head h2, .h2 {
  font-family: var(--display); font-weight: 800; color: var(--ink);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.05;
}
.section-head p { font-size: 1.1875rem; max-width: 26em; }
.section-head p.small { font-size: 1.0625rem; max-width: 28em; }

/* What we offer. Four strands: two by two on desktop, one column below about 900px. */
.strands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 40px; }
.strand { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.strand-no { font-family: var(--display); font-weight: 800; font-size: 4rem; line-height: 1; color: var(--orange); }
.strand h3 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.625rem; line-height: 1.15; }
.strand ul { font-size: 1rem; border-top: 1px solid var(--rule); }
.strand li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.scope-line { font-weight: 600; color: var(--ink); }
.offer-note { border-left: 4px solid var(--orange); padding: 4px 0 4px 24px; display: flex; flex-direction: column; gap: 8px; max-width: 48em; }
.offer-note h3 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.25rem; line-height: 1.25; }

/* Figures */
.figures { background: var(--green); color: #FFFFFF; }
.figures .wrap { padding-top: 72px; padding-bottom: 72px; }
.figures dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
/* Numbers sit on one top line whatever the label length (column-reverse, so flex-end is the top). */
.figure { border-left: 1px solid var(--green-mid); padding-left: 24px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.figure dd { font-family: var(--display); font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--orange-light); }
.figure dt { color: var(--on-green); }

/* Stages */
.stages-wrap.wrap { gap: 64px; }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 56px 0; }
.stage { border-top: 3px solid var(--ink); padding: 18px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.stage-no {
  width: 40px; height: 40px; border-radius: 50%; margin-top: -40px;
  background: var(--orange); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 1.125rem;
}
.stage:last-child .stage-no { background: var(--ink); }
.stage h3 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.1875rem; line-height: 1.3; }
.stage p { font-size: 0.9375rem; }

/* Work cards. Four cards: two by two on desktop, one column below about 900px. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.card { background: #FFFFFF; border-top: 4px solid var(--orange); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.375rem; line-height: 1.2; }
.card dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 12px; font-size: 0.9375rem; }
.card dt { color: var(--muted); }
.quote { margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.quote blockquote { margin: 0; font-size: 1.0625rem; color: var(--ink); }
.quote figcaption { font-size: 0.875rem; color: var(--muted); }
.crests { border-top: 1px solid #C2CAC5; padding-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.crests-title { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.25rem; line-height: 1.25; }
.crests-gap { font-size: 0.9375rem; color: var(--muted); }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; }
.person { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.person-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.person h3 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.75rem; line-height: 1.15; }
.text-link { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }

.headshot {
  flex: 0 0 180px; width: 180px; height: 225px; background: var(--rule); color: var(--muted);
  display: flex; align-items: flex-end; padding: 12px; font-size: 0.8125rem;
  object-fit: cover;
}
.headshot-large {
  flex: 1 1 260px; width: auto; max-width: 320px; height: auto; aspect-ratio: 4 / 5;
  background: var(--green-line); color: var(--on-green-soft); padding: 16px;
}

/* Scoping call */
.scope .wrap { padding-top: 96px; padding-bottom: 96px; flex-direction: row; flex-wrap: wrap; }
.scope-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.scope-text p { font-size: 1.1875rem; }
.h2-small { font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem); line-height: 1.08; }
.steps { flex: 1 1 460px; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.steps li { padding: 20px 0; border-bottom: 1px solid #C2CAC5; display: flex; gap: 20px; align-items: flex-start; }
.step-no { flex: 0 0 auto; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--orange); }
.steps strong { color: var(--ink); }

/* Contact */
.contact { background: var(--green); color: #FFFFFF; }
.contact .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-text h2 { font-family: var(--display); font-weight: 800; color: #FFFFFF; }
.contact-text p { color: var(--on-green); }
.contact-text .soft { color: var(--on-green-soft); }
.contact a, .contact-box a { color: var(--orange-light); }
.contact a:hover, .contact-box a:hover { color: #FFFFFF; }
.contact-email { font-weight: 600; font-size: 1.25rem; min-height: 44px; display: inline-flex; align-items: center; color: var(--orange-light); overflow-wrap: anywhere; }
.contact-phone { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: center; }
.contact-phone a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.enquiry { flex: 1 1 440px; min-width: 0; background: var(--page); color: var(--text); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.enquiry a { color: var(--orange-dark); }
.enquiry a:hover { color: var(--orange-darker); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; font-weight: 600; }
.field input, .field textarea {
  min-height: 44px; width: 100%; border: 1px solid #808A86; border-radius: 0; background: #FFFFFF;
  padding: 0 12px; font: inherit; font-weight: 400; font-size: 1rem; color: var(--text);
}
.field textarea { padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.875rem; color: #4A524F; }
.form-status { font-size: 0.9375rem; font-weight: 600; color: var(--ink); border-left: 4px solid var(--orange); padding-left: 12px; }
.form-status:empty { display: none; }
.enquiry .btn { align-self: flex-start; min-height: 48px; padding: 0 28px; }

/* Footer */
.site-footer { background: var(--green-deep); color: var(--on-green-soft); font-size: 0.875rem; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #FFFFFF; display: inline-block; padding: 12px 0; }
.site-footer p { align-self: center; }

/* Profile pages */
.profile-hero { background: var(--green); color: #FFFFFF; border-top: 1px solid var(--green-line); }
.profile-hero .wrap { padding-top: 24px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.crumbs { font-size: 0.875rem; color: var(--on-green-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.crumbs li + li::before { content: "/"; }
.crumbs a { color: var(--on-green-soft); min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: #FFFFFF; }
.profile-top { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.profile-intro { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.profile-hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.75rem, 1.6rem + 5vw, 4.5rem); line-height: 1; letter-spacing: -0.015em;
}
.profile-intro .lede { max-width: 32em; }

.profile-body .wrap { padding-top: 96px; padding-bottom: 96px; flex-direction: row; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.profile-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.block { display: flex; flex-direction: column; gap: 16px; border-top: 2px solid var(--ink); padding-top: 24px; }
.block h2 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: clamp(1.75rem, 1.5rem + 1vw, 2.125rem); line-height: 1.15; }
.block .lead { font-size: 1.1875rem; }
.timeline { display: flex; flex-direction: column; border-left: 3px solid var(--ink); margin: 4px 0 0 8px; }
.timeline li { position: relative; padding: 4px 0 22px 28px; display: flex; flex-direction: column; gap: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: -10px; top: 8px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--orange);
}
.timeline li:last-child::before { background: var(--ink); }
.timeline li:last-child { padding-bottom: 4px; }
.timeline h3 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.1875rem; line-height: 1.3; }

.profile-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.quals { background: #FFFFFF; border-top: 4px solid var(--orange); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.quals h2, .contact-box h2 { font-family: var(--display); font-weight: 800; font-size: 1.375rem; line-height: 1.2; }
.quals h2 { color: var(--ink); }
.quals li { font-size: 0.9375rem; }
.quals ul { display: flex; flex-direction: column; gap: 12px; }
.contact-box { background: var(--green); color: #FFFFFF; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.contact-box h2 { margin-bottom: 4px; }
.contact-box a, .contact-box .contact-email { font-weight: 600; font-size: 0.9375rem; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; overflow-wrap: anywhere; }
.contact-box a.plain { color: #FFFFFF; font-weight: 400; }

/* Plain page (privacy notice) */
.plain-page .wrap { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; max-width: 800px; }
.plain-page h1 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.05; }
.plain-page h2 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.2; margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--ink); }
.plain-page h3 { font-weight: 600; color: var(--ink); font-size: 1.0625rem; line-height: 1.4; margin-top: 4px; }
.plain-page ul { list-style: disc; padding-left: 1.25em; display: flex; flex-direction: column; gap: 10px; }
.plain-page li::marker { color: var(--orange); }
.plain-page .updated { color: var(--muted); font-size: 0.9375rem; }
.plain-page a { overflow-wrap: anywhere; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Phone and small tablet */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 6px; }
  .site-nav { flex: 1 0 100%; order: 3; }
  .site-nav ul { gap: 0 18px; font-size: 0.875rem; justify-content: space-between; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .hero-text { gap: 22px; }
  .lede { font-size: 1.125rem; }
  .contour { display: none; }
  .section .wrap { padding-top: 64px; padding-bottom: 64px; gap: 36px; }
  .stages-wrap.wrap { gap: 56px; }
  .figures .wrap { padding-top: 56px; padding-bottom: 56px; }
  .figure dd { font-size: 2.75rem; }
  .scope .wrap { padding-top: 64px; padding-bottom: 64px; }
  .contact .wrap { padding-top: 64px; padding-bottom: 64px; }
  .card, .enquiry, .quals, .contact-box { padding: 24px; }
  .profile-hero .wrap { padding-top: 12px; padding-bottom: 56px; gap: 24px; }
  .profile-top { gap: 32px; }
  .profile-body .wrap { padding-top: 56px; padding-bottom: 64px; gap: 48px; }
  .profile-main { gap: 48px; }
  .headshot-large { max-width: 240px; flex: 0 0 240px; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .site-header .wrap { gap: 8px 8px; }
  .site-header .btn-small { padding: 0 12px; }
  .brand img { width: 160px; height: 38px; }
  .site-nav ul { gap: 0 12px; }
  .headshot { flex-basis: 140px; width: 140px; height: 175px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-nav, .skip-link, .enquiry, .btn { display: none; }
  body { background: #FFFFFF; }
}
