/* ==========================================================================
   AI for Bolton | Growth for Bolton Businesses
   An initiative led by CVP Group

   Brand colours come from the supplied CVP PowerPoint template (see README).
   Contrast notes (checked against WCAG 2.2):
   - Navy on white 14.3:1, blue on white 6.1:1, white on blue 6.1:1
   - Navy on amber 6.7:1, amber on navy 6.7:1
   - Green (2.6:1) and coral (3.0:1) on white are NOT used for text.
   ========================================================================== */

/* Montserrat, self-hosted (SIL Open Font License, see assets/fonts). */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* Metric-matched fallback so text does not jump when the web font arrives. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  size-adjust: 112.8%;
  ascent-override: 85.8%;
  descent-override: 22.3%;
  line-gap-override: 0%;
}

:root {
  /* CVP brand */
  --navy: #252552;
  --blue: #3561ab;
  --blue-dark: #2a4f8e;
  --amber: #f59e00;
  --amber-dark: #e08e00;
  --green: #1ab78a;
  --coral: #f26b43;
  --white: #ffffff;

  /* Supporting neutrals */
  --text: #2e2e4d;
  --muted: #56566f;
  --line: #dcdfe9;
  --control: #7d829c;
  --tint: #f3f5fa;
  --tint-strong: #e7ecf6;
  --amber-tint: #fff4dc;
  --error: #b42318;
  --error-tint: #fdeceb;
  --bar-muted: #b7bcd1;

  --font: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2rem);
  --container: 75rem;
  --header-h: 4rem;
  --radius: 4px;
  --section-space: clamp(4rem, 2.75rem + 4.5vw, 7rem);
}

@media (min-width: 40em) {
  :root { --header-h: 4.5rem; }
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0 0 1rem;
  color: var(--navy);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.75rem + 3.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; color: var(--white); }

/* ---------- Shared components ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Right-pointing triangle, echoing the arrow in the CVP logo. */
.eyebrow::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.75rem;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.eyebrow--on-dark { color: var(--amber); }
.eyebrow--on-dark::before { background: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--amber-dark); color: var(--navy); }

.btn--secondary { background: var(--blue); color: var(--white); }
.btn--secondary:hover { background: var(--blue-dark); color: var(--white); }

.btn--small {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}

.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease, transform 0.15s ease; }
  .btn:hover { transform: translateY(-1px); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.link-arrow::after {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.6rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.link-arrow--small { min-height: 0; font-size: 0.9375rem; }

.section { padding-block: var(--section-space); }
.section--tint { background: var(--tint); }

.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); }
.photo figcaption,
.hero__caption {
  font-size: 0.8125rem;
  line-height: 1.4;
}
.photo figcaption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--muted);
}
.photo figcaption::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.55rem;
  background: var(--green);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding-block: 0.5rem;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover { color: var(--navy); }

.brand__logo { flex: none; width: 96px; height: auto; }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 0.6rem;
  border-left: 1px solid var(--line);
  line-height: 1.2;
}

.brand__name {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__tagline {
  max-width: 9rem;
  text-wrap: balance;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
}

@media (min-width: 30em) {
  .brand__tagline { max-width: none; }
}

@media (min-width: 40em) {
  .brand { gap: 0.75rem; }
  .brand__text { padding-left: 0.75rem; }
  .brand__logo { width: 128px; }
  .brand__name { font-size: 1.0625rem; }
  .brand__tagline { font-size: 0.75rem; }
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--amber); }

.nav-toggle { display: none; }

/* Without JavaScript the navigation simply wraps below the brand. */
@media (max-width: 65.99em) {
  .site-nav { flex-basis: 100%; padding-bottom: 0.75rem; }

  /* The wrapped no-JavaScript header is too tall to keep pinned on small screens. */
  html:not(.js) .site-header { position: relative; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -16px rgba(37, 37, 82, 0.35);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-header__inner { flex-wrap: nowrap; }

  .js .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .site-nav a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }

  .js .site-nav .btn { width: 100%; margin-top: 1.25rem; min-height: 3rem; font-size: 1rem; }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
  }
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 22.5em) {
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (min-width: 66em) {
  .site-header__inner { flex-wrap: nowrap; }
  .site-nav__list { gap: 1.9rem; }
}

/* ---------- A. Hero ----------
   The whole front-on Town Hall photograph, never cropped, on CVP navy.
   Desktop: copy on a navy panel to the left, photo at full hero height on the right.
   Tablet and mobile: photo at full width above the copy, never cropped. */

.hero {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: #e3e5f1;
}

.hero h1 { color: var(--white); }
.hero :focus-visible { outline-color: var(--amber); }

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  order: -1;
  margin: 0;
  background: var(--navy);
}

.hero__media img {
  width: 100%;
  height: auto;
}

.hero__caption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  padding: 0.35rem 0.6rem;
  background: rgba(37, 37, 82, 0.9);
  color: var(--white);
  font-weight: 500;
  border-radius: 2px;
}

.hero__content {
  width: min(100% - 2 * var(--gutter), 40rem);
  margin-inline: auto;
  padding-block: 2.5rem 3.5rem;
}

.hero__strap {
  margin-bottom: 1.5rem;
  color: var(--amber);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 650;
  line-height: 1.35;
}

.hero__intro .hero__strap:last-child { margin-bottom: 1.5rem; }

.hero .link-arrow { color: var(--white); }
.hero .link-arrow:hover { color: var(--amber); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}

.hero__note {
  margin-top: 1rem;
  color: #c9cce0;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero__facts {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0.75rem;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.hero__facts li:nth-child(2) { border-left-color: #6f95d6; }
.hero__facts li:nth-child(3) { border-left-color: var(--green); }

.hero__facts strong {
  display: block;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 800;
}

.hero__facts span { color: #c9cce0; }

@media (min-width: 36em) {
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.hero__small {
  color: #c9cce0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (min-width: 60em) {
  .hero {
    display: grid;
    /* Photo column: half the width, or narrower so the whole building fits the screen height. */
    grid-template-columns: minmax(0, 1fr) min(50%, calc((100svh - var(--header-h)) * 1600 / 1918));
    align-items: center;
  }

  .hero__media {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    display: block;
  }

  .hero__media img {
    width: 100%;
    height: auto;
    max-width: none;
  }

  .hero__caption { right: 1rem; bottom: 1rem; }

  .hero__content {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    margin: 0;
    /* Centre the copy within the navy panel so it balances the photo on wide screens. */
    justify-self: center;
    max-width: calc(44rem + 2 * clamp(2rem, 4vw, 4.5rem));
    padding: 2.5rem clamp(2rem, 4vw, 4.5rem);
  }

  .hero h1 { font-size: clamp(3rem, 1.4rem + 2.4vw, 3.75rem); margin-bottom: 0.75rem; }
  .hero__intro .hero__strap:last-child { margin-bottom: 1.1rem; }
  .hero__detail p { margin-bottom: 0.75rem; }
  .hero__actions { margin-top: 1.1rem; }
  .hero__note { margin-top: 0.75rem; }
  .hero__facts { margin: 1.25rem 0 0.5rem; gap: 0.5rem; }
  .hero__facts li { padding: 0.55rem 0.75rem; }
  .hero__facts strong { font-size: 1rem; }
}

/* ---------- B. Why Bolton ---------- */

.why__intro {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.why__text { max-width: 38rem; }

@media (min-width: 60em) {
  .why__intro {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .photo--park {
    position: relative;
    isolation: isolate;
  }

  /* Offset tint block behind the park photograph. */
  .photo--park::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: -1.5rem;
    width: 60%;
    height: 70%;
    z-index: -1;
    background: var(--tint-strong);
    border-radius: var(--radius);
  }
}

.stats {
  display: grid;
  gap: 1.25rem;
  margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 58em) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
}

.stat__title {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.stat__headline {
  margin: 0 0 1.25rem;
  line-height: 1;
}

.stat__value {
  display: block;
  color: var(--navy);
  font-size: clamp(2.5rem, 2.1rem + 1.2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stat__area {
  display: block;
  margin-top: 0.5rem;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 700;
}

.stat__compare {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.stat__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label value";
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.3;
}

.js .stat__row {
  grid-template-columns: 7.25rem minmax(0, 1fr) 4.4rem;
  grid-template-areas: "label bar value";
}

.stat__row dt { grid-area: label; color: var(--muted); }
.stat__row dd {
  grid-area: value;
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stat__row--focus dt,
.stat__row--focus dd { color: var(--navy); font-weight: 750; }

.stat__bar { display: none; grid-area: bar; height: 0.5rem; }
.js .stat__bar { display: block; }

.stat__bar > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--bar-muted);
  border-radius: 0 4px 4px 0;
}

.stat__row--focus .stat__bar > span { background: var(--blue); }

.stat__meta {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.stat__meta div + div { margin-top: 0.3rem; }
.stat__meta dt { display: inline; color: var(--navy); font-weight: 700; }
.stat__meta dt::after { content: ": "; }
.stat__meta dd { display: inline; margin: 0; }

@media (min-width: 36em) and (max-width: 57.99em) {
  .stat {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "headline compare"
      "meta meta";
    column-gap: 2rem;
    align-items: end;
  }
  .stat__title { grid-area: title; }
  .stat__headline { grid-area: headline; }
  .stat__compare { grid-area: compare; }
  .stat__meta { grid-area: meta; }
}

.stats__note {
  display: grid;
  gap: 0.75rem;
  max-width: 62rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---------- C. Hypothesis ---------- */

.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #e3e5f1;
}

.section--dark h2 { color: var(--white); }

.section--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--amber); }

.hypothesis__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.hypothesis__question {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--amber);
  color: var(--white);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
}

/* Two restrained arrow shapes, echoing the CVP logo. Decorative only. */
.hypothesis::before,
.hypothesis::after {
  content: "";
  position: absolute;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  pointer-events: none;
}

.hypothesis::before {
  right: -8rem;
  bottom: -10rem;
  width: 20rem;
  height: 24rem;
  background: var(--blue);
  opacity: 0.3;
}

.hypothesis::after {
  right: 9rem;
  bottom: 2.5rem;
  width: 2.25rem;
  height: 2.75rem;
  background: var(--green);
}

@media (max-width: 59.99em) {
  .hypothesis::before { right: -12rem; bottom: -14rem; }
  .hypothesis::after { right: 1.5rem; bottom: 1.5rem; width: 1.5rem; height: 1.85rem; }
}

@media (min-width: 60em) {
  .hypothesis__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: start;
  }
  .hypothesis__heading h2 { margin-bottom: 0; }
  .hypothesis__body { padding-top: 2.4rem; }
}

/* ---------- D. Programme ---------- */

.programme__intro {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.programme__text { max-width: 40rem; }

.photo--market img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
}

@media (min-width: 60em) {
  .programme__intro {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  .photo--market { max-width: 30rem; justify-self: end; }
}

.stages {
  display: grid;
  gap: 2.25rem;
  margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 42em) {
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}

@media (min-width: 66em) {
  .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stage {
  position: relative;
  padding-top: 1.5rem;
  border-top: 3px solid var(--blue);
}

.stage:nth-child(2) { border-top-color: var(--green); }
.stage:nth-child(3) { border-top-color: var(--amber); }
.stage:nth-child(4) { border-top-color: var(--coral); }

.stage__num {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stage__title { margin-bottom: 0.5rem; }
.stage p { font-size: 0.9688rem; }

.projects {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--tint);
  border-radius: 6px;
}

.projects__lead {
  color: var(--navy);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}

.projects__text .btn { margin-top: 0.75rem; }

@media (min-width: 56em) {
  .projects .placeholder { aspect-ratio: 4 / 3; }

  .projects {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}

/* ---------- Photo placeholders (replace before launch) ---------- */

.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 15rem;
  padding: 2.25rem 1.5rem;
  background: var(--white);
  border: 2px dashed #a3aac6;
  border-radius: var(--radius);
  text-align: center;
}

.section--tint .placeholder,
.cvp .placeholder { background: var(--tint); }
.projects .placeholder { background: var(--white); }

.placeholder::before,
.placeholder::after {
  content: "";
  position: absolute;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0.9;
}
.placeholder::before { top: 0; left: 0; width: 2rem; height: 2.75rem; background: var(--amber); }
.placeholder::after { right: 0; bottom: 0; width: 1.25rem; height: 1.75rem; background: var(--green); clip-path: polygon(100% 0, 100% 100%, 0 50%); }

.placeholder__inner { position: relative; max-width: 22rem; }

.placeholder__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.placeholder__tag {
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.placeholder__title {
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.placeholder__note {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ---------- E. Measuring progress ---------- */

.measuring {
  display: grid;
  gap: 2.5rem;
}

.measuring__intro { max-width: 36rem; }

.measures {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

@media (min-width: 40em) {
  .measures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.measure {
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  background: var(--white);
}

.measure__icon {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.measure h3 { margin: 1rem 0 0.4rem; }
.measure p { font-size: 0.9688rem; }

.measuring__close {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.reassure {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.5;
}

.reassure__icon {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 62em) {
  .measuring {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "intro measures"
      "close close";
    column-gap: clamp(3rem, 5vw, 5rem);
    row-gap: 3rem;
    align-items: start;
  }
  .measuring__intro { grid-area: intro; }
  .measures { grid-area: measures; }
  .measuring__close {
    grid-area: close;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

/* ---------- F. Led by CVP Group ---------- */

.cvp {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.cvp .placeholder,
.photo--cvp { order: 2; }

.cvp__text { max-width: 40rem; }

@media (min-width: 60em) {
  .cvp {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  .cvp .placeholder { order: 0; aspect-ratio: 4 / 5; }
  .photo--cvp { order: 0; }
}

/* ---------- G. Get involved, FAQs and form ---------- */

.get-involved__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 62em) {
  .get-involved__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }
}

.commitment {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--amber-tint);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy);
}

.faqs { margin-top: 2.5rem; }
.faqs__title { margin-bottom: 0.75rem; }

.faq { border-bottom: 1px solid #cdd1df; }
.faq:first-of-type { border-top: 1px solid #cdd1df; }

.faq summary {
  position: relative;
  display: block;
  padding: 1rem 2.5rem 1rem 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
}

.faq[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform 0.2s ease; }
}

.faq__body { padding: 0 0 1.25rem; font-size: 0.9688rem; }

.eoi-form {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--white);
  border-top: 4px solid var(--amber);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(37, 37, 82, 0.06), 0 16px 40px -20px rgba(37, 37, 82, 0.3);
}

.form-honeypot { display: none; }

.form-hint {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-group {
  min-width: 0;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.form-group legend {
  margin-bottom: 1rem;
  padding: 0;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 750;
}

.form-grid {
  display: grid;
  gap: 1.15rem 1.25rem;
}

@media (min-width: 40em) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

.field { min-width: 0; }
.eoi-form > .field { margin-bottom: 1.5rem; }

/* Keep controls in a row aligned when one label wraps onto two lines. */
.form-grid .field { display: flex; flex-direction: column; }
.form-grid .field label { flex-grow: 1; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.4;
}

.optional { color: var(--muted); font-weight: 500; }

.field__help {
  margin: -0.15rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.eoi-form input[type="text"],
.eoi-form input[type="email"],
.eoi-form input[type="tel"],
.eoi-form select,
.eoi-form textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  background-color: var(--white);
  color: var(--text);
  border: 1.5px solid var(--control);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.eoi-form select {
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23252552' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.8rem;
  text-overflow: ellipsis;
}

.eoi-form textarea { min-height: 7rem; resize: vertical; }

.eoi-form input:focus-visible,
.eoi-form select:focus-visible,
.eoi-form textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.eoi-form [aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.field__error {
  display: flex;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.field__error::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.05rem;
  background: var(--error);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
}

.field__error[hidden] { display: none; }

.field__count {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: right;
}

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.field--check input {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  accent-color: var(--blue);
}

.field--check label {
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
}

.form-privacy {
  margin-bottom: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.btn--submit { width: 100%; min-height: 3.25rem; font-size: 1.0625rem; }

@media (min-width: 40em) {
  .btn--submit { width: auto; min-width: 14rem; }
}

.form-status {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--error-tint);
  border-left: 4px solid var(--error);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #6f1a12;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-status strong { display: block; margin-bottom: 0.25rem; color: #6f1a12; }
.form-status ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.form-status a { color: #6f1a12; font-weight: 600; }

.partner {
  margin-top: 2rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 0;
}

.partner h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.partner p { font-size: 0.9688rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  background: var(--navy);
  color: #d3d6e8;
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.55);
}
.site-footer a:hover { color: var(--white); text-decoration-color: var(--amber); }

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer__brand img { width: 150px; margin-bottom: 1rem; }
.footer__brand p { color: var(--white); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a { display: inline-block; padding-block: 0.35rem; }

.footer__sources {
  max-width: 60rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer__sources h2,
.credits summary {
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
}

.sources-list { margin: 1.25rem 0; }
.sources-list div + div { margin-top: 0.9rem; }
.sources-list dt { color: var(--white); font-weight: 700; }
.sources-list dd { margin: 0.15rem 0 0; }

.sources-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credits {
  max-width: 60rem;
  padding: 1.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.credits summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  cursor: pointer;
  list-style: none;
}
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: translateY(-25%) rotate(45deg);
}
.credits[open] summary::after { transform: translateY(20%) rotate(-135deg); }

.credits__list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

/* ---------- Print ---------- */

@media print {
  .site-header, .nav-toggle, .hero__media, .eoi-form, .partner { display: none; }
  .section--dark { background: none; color: #000; }
  .section--dark h2 { color: #000; }
}

/* ---------- Thank-you page ---------- */

.thanks {
  display: grid;
  align-items: center;
  min-height: 60vh;
  padding-block: var(--section-space);
  background: var(--tint);
}

.thanks__inner {
  width: min(100% - 2 * var(--gutter), 44rem);
  margin-inline: auto;
}

.thanks h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.25rem); }

.thanks__lead {
  margin-bottom: 1.5rem;
  color: var(--navy);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}

/* Wider layout when the page includes the booking calendar. */
.thanks--book { align-items: start; }
.thanks--book .thanks__inner { width: min(100% - 2 * var(--gutter), var(--container)); }

.thanks__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 62em) {
  .thanks__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }
}

.next-steps {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.next-steps li {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}

.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--navy);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 800;
}

.next-steps h2 {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.next-steps p { font-size: 0.9688rem; }

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.booking {
  overflow: hidden;
  background: var(--white);
  border-top: 4px solid var(--amber);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(37, 37, 82, 0.06), 0 16px 40px -20px rgba(37, 37, 82, 0.3);
}

.booking__title {
  margin: 0;
  padding: 1rem 1.25rem 0;
  font-size: 1.125rem;
}

.booking iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}

.booking__fallback {
  margin: 0;
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer--compact { padding-block: 2.5rem; }
.site-footer--compact .footer__top { padding-bottom: 0; border-bottom: 0; }
