/* =========================================================================
   Co-Solution Ltd. — corporate website
   Vanilla CSS. No framework, no build step.
   Order: tokens → reset → base type → utilities → components →
          per-section styles → responsive → reduced-motion
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colour — "Deep Teal & Amber" */
  --c-teal:         #0F5C5A;   /* primary brand */
  --c-teal-dark:    #0B4A48;   /* hover / gradient stop */
  --c-teal-light:   #2E8B87;   /* secondary teal, used in graphics/icons */
  --c-amber:        #D9A21B;   /* accent — sparingly */
  --c-eyebrow:      #86620A;   /* deepened amber for small uppercase text — darkened slightly
                                   further than the nominal #9A6F0B so it also clears 4.5:1 on
                                   --c-surface (not just white); see contrast note in README */
  --c-amber-light:  #F0C868;   /* light amber for eyebrow text on the dark Approach section —
                                   same role the old light-purple eyebrow token played */
  --c-ink:          #14262B;
  --c-slate:        #1C2E33;
  --c-text:         #4F5B5E;
  --c-border:       #E1E7E6;
  --c-surface:      #EDF3F2;
  --c-bg:           #F5F8F7;
  --c-white:        #FFFFFF;
  --c-teal-tint:    #E3F0EE;   /* icon chips, hero gradient end */
  --c-amber-tint:   #FBF0DA;   /* training badges */

  /* Type */
  --f-head: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --section-pad: clamp(56px, 8vw, 112px);
  --header-h: 72px;

  /* Radius */
  --r-card: 12px;
  --r-btn: 8px;
  --r-chip: 999px;

  /* Shadow */
  --shadow: 0 4px 20px rgba(0, 0, 0, .06);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, .10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

a { color: var(--c-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid rgba(15, 92, 90, .55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Base typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--c-ink);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--c-teal);
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

p { max-width: 68ch; }

small, .small { font-size: .875rem; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--surface { background: var(--c-surface); }
.section--white   { background: var(--c-white); }
.section--ink     { background: var(--c-ink); }
.section--bg      { background: var(--c-bg); } /* page background — used where two surface sections would otherwise sit back-to-back */

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--c-teal);
  color: var(--c-white);
  padding: 10px 18px;
  border-radius: var(--r-btn);
  font-family: var(--f-head);
  font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* Section head: eyebrow + H2 + amber bar */
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center p { margin-inline: auto; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8125rem;
  color: var(--c-eyebrow);
  margin-bottom: 1rem;
}

.section-head h2 { margin-bottom: .75rem; }

.section-head h2::after,
.h2-bar::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--c-amber);
  border-radius: 2px;
  margin-top: 1rem;
}
.section-head--center h2::after { margin-inline: auto; }

.section-head .lead-in {
  margin-top: 1.25rem;
  max-width: 60ch;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--r-btn);
  border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 92, 90, .35);
}

.btn--primary {
  background: var(--c-teal);
  color: var(--c-white);
  border-color: var(--c-teal);
}
.btn--primary:hover { background: var(--c-teal-dark); border-color: var(--c-teal-dark); }

.btn--secondary {
  background: transparent;
  color: var(--c-teal);
  border-color: var(--c-teal);
}
.btn--secondary:hover { background: var(--c-teal-tint); }

.btn--inverse {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-white);
}
.btn--inverse:hover { background: var(--c-white); color: var(--c-teal); }
.btn--inverse:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }

.btn--block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-teal);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--c-amber);
}
.card h3 { margin-bottom: .5rem; }
.card > p { margin-bottom: 1rem; }

/* Icon chip */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--c-teal-tint);
  color: var(--c-teal);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.icon-chip svg { width: 28px; height: 28px; }

/* Feature list with green check-circle bullets */
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .6rem;
  font-size: 1rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: 1.15rem;
  height: 1.15rem;
  background-color: var(--c-teal);
  -webkit-mask: var(--check-circle) center / contain no-repeat;
  mask: var(--check-circle) center / contain no-repeat;
}
:root {
  --check-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.801 10A10 10 0 1 1 17 3.335'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
}

/* Certification chips */
.chip {
  display: inline-block;
  background: var(--c-amber-tint);
  color: var(--c-eyebrow);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .875rem;
  padding: .5rem 1rem;
  border-radius: var(--r-chip);
}

/* Generic grid helpers */
.grid { display: grid; gap: clamp(24px, 4vw, 40px); }
.grid--split { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .grid--7-5 { grid-template-columns: 7fr 5fr; }
  .grid--6-6 { grid-template-columns: 1fr 1fr; }
  .grid--5-7 { grid-template-columns: 5fr 7fr; }
}

/* =========================================================================
   Header / navigation
   ========================================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--c-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  transition: box-shadow .2s ease;
}
#site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, .09); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-logo img { height: 44px; width: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem; /* trimmed from 1.75rem to fit the added Challenges link at 1025–1280px */
}
.primary-nav a {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--c-ink);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { text-decoration: none; color: var(--c-teal); }
.primary-nav a.is-active {
  color: var(--c-teal);
  border-bottom-color: var(--c-teal);
}

/* The consultation button inside the nav list is for the mobile drawer only */
.primary-nav > ul > li:last-child { display: none; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 110; /* stay above the open drawer panel (z-index 95) */
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35, 31, 32, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 90;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .primary-nav > ul > li:last-child { display: block; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 82vw);
    background: var(--c-white);
    box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 95;
    padding: calc(var(--header-h) + 24px) 28px 32px;
    overflow-y: auto;
  }
  body.nav-open .primary-nav { transform: translateX(0); }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
  }
  .primary-nav a {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 1.0625rem;
  }
  .primary-nav a.is-active { border-bottom-color: var(--c-teal); }

  .primary-nav .btn {
    display: inline-flex;
    margin-top: 1.5rem;
    width: 100%;
  }
}

/* =========================================================================
   1. Hero
   ========================================================================= */
#hero {
  background: linear-gradient(135deg, var(--c-white), var(--c-teal-tint));
  min-height: max(640px, calc(100vh - var(--header-h)));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160%;
  max-width: none;
  opacity: .10;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-copy .eyebrow { color: var(--c-eyebrow); }
.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-lead {
  font-size: 1.1875rem;
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.hero-micro {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  font-size: .875rem;
  color: var(--c-text);
}
.hero-micro span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.hero-micro svg { width: 16px; height: 16px; color: var(--c-teal); flex-shrink: 0; }

.hero-visual { display: none; position: relative; }
.hero-visual .hero-fg { width: 100%; max-width: 480px; margin-inline: auto; position: relative; z-index: 1; }

@media (min-width: 768px) {
  .hero-visual { display: block; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
}

/* =========================================================================
   2. Credibility bar
   ========================================================================= */
#credibility {
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding-block: clamp(40px, 6vw, 64px);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.stat {
  text-align: center;
  padding: 1.25rem 1rem;
}
.stat + .stat { border-left: 1px solid var(--c-border); }
.stats .stat:nth-child(3) { border-top: 1px solid var(--c-border); }
.stats .stat:nth-child(4) { border-top: 1px solid var(--c-border); }
.stat-figure {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--c-teal);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label {
  font-size: .9375rem;
  color: var(--c-text);
  max-width: 24ch;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats .stat:nth-child(3),
  .stats .stat:nth-child(4) { border-top: 0; }
}

/* =========================================================================
   3. About
   ========================================================================= */
#about .about-text p + p { margin-top: 1.25rem; }
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
}
.pillar {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow);
}
.pillar .icon-chip { width: 48px; height: 48px; margin-bottom: 1rem; }
.pillar .icon-chip svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.125rem; margin-bottom: .35rem; }
.pillar p { font-size: .9375rem; }

/* =========================================================================
   4. Services / 6. Sectors / 8. Why-us card grids
   ========================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 28px);
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card h3 { margin-bottom: .5rem; }
.service-card .feature-list { margin-top: 1rem; }

/* Amber outline pulse used to highlight a service card reached via "How we help →" */
@keyframes svc-highlight-fade {
  from { outline-color: var(--c-amber); }
  to   { outline-color: rgba(217, 162, 27, 0); }
}
.svc-highlight {
  outline: 3px solid var(--c-amber);
  outline-offset: 3px;
  border-radius: var(--r-card);
  animation: svc-highlight-fade 1.5s ease forwards;
}

/* =========================================================================
   4b. Challenges — "Sound familiar?" tabs / accordion
   ========================================================================= */
.challenges-tablist {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-border);
}
.challenges-tab {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: 1rem .25rem;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text);
  text-align: left;
  font-family: var(--f-head);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.challenges-tab svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--c-teal); }
.challenges-tab-text { display: flex; flex-direction: column; gap: .1rem; }
.challenges-tab-title { font-weight: 600; font-size: .9375rem; }
.challenges-tab-sub { font-weight: 400; font-family: var(--f-body); font-size: .8125rem; color: var(--c-text); }
.challenges-tab:hover { background: var(--c-teal-tint); }
.challenges-tab.is-active,
.challenges-tab.is-active .challenges-tab-title { color: var(--c-teal); }

.challenges-panel { padding: 1.25rem 0 .5rem; }
.challenges-panel:focus-visible { outline: none; }

.challenges-quote {
  font-style: italic;
  color: var(--c-ink);
  border-left: 4px solid var(--c-amber);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.question-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 28px);
}

.question-card .icon-chip { margin-bottom: 1rem; }
.question-card .question {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--c-ink);
  margin-bottom: .6rem;
}
.question-card .answer { color: var(--c-text); font-size: .9375rem; margin-bottom: 0; }

.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
}
.question-link {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .875rem;
  color: var(--c-teal);
}
.sector-tile-link {
  display: block;
  margin-top: .75rem;
  font-size: .8125rem;
}

.challenges-show-all { margin-top: 1.75rem; }

.challenges-cta {
  text-align: center;
  margin-top: clamp(32px, 5vw, 56px);
}

@media (min-width: 768px) {
  .challenges-tablist {
    flex-direction: row;
    flex-wrap: wrap;
    border-top: 0;
    border-bottom: 1px solid var(--c-border);
    gap: .25rem;
  }
  .challenges-tab {
    flex: 1 1 130px;
    width: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: .85rem .5rem 1rem;
    border-bottom: 3px solid transparent;
    border-radius: var(--r-btn) var(--r-btn) 0 0;
  }
  .challenges-tab-text { align-items: center; }
  .challenges-tab-title { text-wrap: balance; }
  .challenges-tab.is-active { border-bottom-color: var(--c-amber); }
  .challenges-panels { margin-top: 2rem; }
  .challenges-panel { padding: 0; }
}

@media (min-width: 1024px) {
  .question-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   5. Approach — dark timeline
   ========================================================================= */
#approach { background: var(--c-ink); }
#approach .eyebrow { color: var(--c-amber-light); }
#approach h2 { color: var(--c-white); }
#approach .section-head p,
#approach .lead-in { color: var(--c-border); }

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}
.timeline li {
  position: relative;
  padding-left: 4.75rem;
}
.timeline li::before { /* number circle */
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-teal);
  color: var(--c-white);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline li::after { /* vertical connector */
  content: "";
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: -2rem;
  width: 2px;
  background: rgba(255, 255, 255, .18);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { color: var(--c-white); font-size: 1.125rem; margin-bottom: .35rem; }
.timeline p { color: var(--c-border); font-size: .9375rem; }

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
  .timeline li { padding-left: 0; padding-top: 4.75rem; }
  .timeline li::after {
    left: 60px;
    right: -1.5rem;
    top: 27px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

/* =========================================================================
   6. Sectors
   ========================================================================= */
.sector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 480px)  { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sector-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sector-tile {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 24px;
  min-width: 0;
  transition: background-color .18s ease, transform .18s ease;
}
.sector-tile:hover { background: var(--c-teal-tint); transform: translateY(-3px); }
.sector-tile h3 { font-size: 1.125rem; margin-bottom: .25rem; overflow-wrap: break-word; }
.sector-tile p { font-size: .8125rem; }

/* =========================================================================
   7. Training
   ========================================================================= */
.training-grid { align-items: start; }
.training-text .btn { margin-top: 1.5rem; }
.training-legal { margin-top: 1.5rem; color: var(--c-text); }
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* =========================================================================
   8. Why us
   ========================================================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 600px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-item { display: flex; gap: 1rem; }
.why-item svg {
  width: 28px; height: 28px;
  color: var(--c-teal);
  flex-shrink: 0;
  margin-top: .15rem;
}
.why-item h3 { font-size: 1.125rem; margin-bottom: .35rem; }
.why-item p { font-size: .9375rem; }

.client-logos { margin-top: 2rem; }

/* =========================================================================
   9. CTA band
   ========================================================================= */
#cta {
  background: linear-gradient(90deg, var(--c-teal), var(--c-teal-dark));
  text-align: center;
  color: var(--c-white);
}
#cta h2 { color: var(--c-white); }
#cta h2::after { display: none; }
#cta p {
  color: rgba(255, 255, 255, .9); /* the deeper teal keeps this ≥4.5:1 across the gradient */
  margin: 1rem auto 2rem;
  max-width: 52ch;
  font-size: 1.125rem;
}

/* =========================================================================
   10. Contact
   ========================================================================= */
.contact-grid { align-items: start; }

.contact-details { list-style: none; }
.contact-details li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-border);
}
.contact-details li:last-child { border-bottom: 0; }
.contact-details svg {
  width: 22px; height: 22px;
  color: var(--c-teal);
  flex-shrink: 0;
  margin-top: .2rem;
}
.contact-details .cd-label {
  display: block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-ink);
  margin-bottom: .1rem;
}
.contact-details .cd-value { font-size: .9375rem; color: var(--c-text); }

.map-placeholder {
  margin-top: 1.5rem;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--c-border);
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--c-text);
  font-size: .9375rem;
  background: var(--c-surface);
}

/* Form */
.form-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}
.form-row { margin-bottom: 1.25rem; }
.form-row.form-row--split {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 560px) {
  .form-row.form-row--split { grid-template-columns: 1fr 1fr; }
}

.form-card label {
  display: block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .875rem;
  color: var(--c-ink);
  margin-bottom: .4rem;
}
.form-card .req { color: var(--c-amber); }

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  background: var(--c-white);
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(15, 92, 90, .18);
}
.form-card textarea { resize: vertical; min-height: 128px; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.form-consent input {
  width: auto;
  margin-top: .28rem;
  flex-shrink: 0;
}
.form-consent label { margin-bottom: 0; font-weight: 400; font-family: var(--f-body); font-size: .9375rem; color: var(--c-text); }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  display: block;
  color: var(--c-amber);
  font-size: .8125rem;
  font-weight: 600;
  margin-top: .35rem;
  min-height: 1em;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--r-btn);
  font-size: .9375rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
  background: var(--c-teal-tint);
  color: var(--c-teal-dark);
  border: 1px solid var(--c-teal);
}
.form-status.is-error {
  /* deliberately stays red — a universal "danger" convention, independent of the brand accent */
  background: #FDE8E9;
  color: #B21017;
  border: 1px solid #B21017;
}
.form-status.is-info {
  background: var(--c-amber-tint);
  color: var(--c-eyebrow);
  border: 1px solid var(--c-eyebrow);
}

/* =========================================================================
   11. Footer
   ========================================================================= */
#site-footer {
  background: var(--c-ink);
  color: var(--c-border);
  padding-block: clamp(48px, 7vw, 80px) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

#site-footer h2.footer-heading,
.footer-heading {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .9375rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-white);
  margin-bottom: 1.1rem;
}
.footer-logo { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.footer-logo img { height: 40px; width: auto; }
.footer-brand-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-white);
}
.footer-brand .footer-tagline {
  font-family: var(--f-head);
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: .5rem;
}
.footer-brand p { font-size: .9375rem; }

#site-footer ul li { margin-bottom: .6rem; }
#site-footer a { color: var(--c-border); font-size: .9375rem; }
#site-footer a:hover { color: var(--c-white); }

.footer-contact li { display: flex; gap: .6rem; margin-bottom: .8rem; font-size: .9375rem; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .2rem; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
}
.footer-social svg { width: 22px; height: 22px; }

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
}
.footer-bottom .footer-legal { display: flex; gap: 1.25rem; }

/* =========================================================================
   Back to top
   ========================================================================= */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-teal);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .18s ease;
  z-index: 80;
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
#back-to-top:hover { background: var(--c-teal-dark); }
#back-to-top svg { width: 22px; height: 22px; }

/* =========================================================================
   Scroll offset for anchor targets
   ========================================================================= */
:target,
section[id],
.challenges-panel[id],
[id="top"] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
