/* ==========================================================================
   Tristar Enterprises — site.css
   1. Tokens          5. Hero + slider      9. Cross-link / CTA
   2. Base            6. Feature block     10. Footer
   3. Layout          7. Chips / specs     11. Forms
   4. Header / nav    8. Cards / grids     12. Utilities + motion
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* colour */
  --ink:            #0B1B2B;
  --ink-deep:       #07131E;
  --ink-raise:      #12293D;
  --ink-muted:      #33465A;
  --ink-soft:       #5B6E82;
  --surface:        #FFFFFF;
  --surface-alt:    #F2F0EC;
  --line:           rgba(11, 27, 43, 0.10);
  --line-strong:    rgba(11, 27, 43, 0.22);
  --line-dark:      rgba(255, 255, 255, 0.14);
  --accent:         #C8862A;   /* fills, borders, marks — never small text on white */
  --accent-lift:    #DFA24A;   /* primary button hover fill                          */
  --accent-hover:   #6E460C;   /* hover for accent-coloured text on light surfaces   */
  --accent-ink:     #8A5A12;   /* accent used as text on light surfaces (AA 5.9:1)   */
  --accent-on-dark: #E0A64B;   /* accent used as text on ink surfaces (AA 8.1:1)     */
  --on-dark:        #FFFFFF;
  --on-dark-muted:  rgba(255, 255, 255, 0.72);

  /* type */
  --font-sans: "Inter", "Poppins", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --fs-h1:      clamp(2.5rem, 5vw, 4rem);
  --fs-h2:      clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3:      1.25rem;
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-eyebrow: 0.8125rem;
  --fs-index:   0.875rem;

  /* space scale — 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 / 140 */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 140px;

  /* structure */
  --container:  1280px;
  --gutter:     clamp(20px, 5vw, 64px);
  --section-y:  clamp(64px, 10vw, 140px);
  --header-h:   76px;
  --tabs-h:     60px;
  --radius:     2px;
  --radius-lg:  4px;
  --shadow:     0 18px 40px rgba(7, 19, 30, 0.10);
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast:     200ms;
  --t-base:     250ms;
  --t-slow:     600ms;
}

@media (min-width: 1024px) { :root { --header-h: 88px; } }

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; color: inherit; }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p  { margin: 0 0 var(--s-4); max-width: 68ch; }
p:last-child { margin-bottom: 0; }
ul, ol, dl { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
/* Inline links only inside running text — never in chrome (header, footer, nav). */
.prose a, .form__note a, .form__status a, .section__head p a, .block__body p a {
  color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px;
}
.prose a:hover, .form__note a:hover, .form__status a:hover,
.section__head p a:hover, .block__body p a:hover { color: var(--accent-hover); }
.section--ink .section__head p a, .section--ink .block__body p a { color: var(--accent-on-dark); }
strong { font-weight: 600; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
::selection { background: var(--accent); color: #fff; }

/* 3. LAYOUT ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt  { background: var(--surface-alt); }
.section--ink  { background: var(--ink); color: var(--on-dark); }
.section--ink h2, .section--ink h3 { color: var(--on-dark); }
.section--tight-top { padding-block-start: 0; }

.section__head { max-width: 62ch; margin-bottom: var(--s-7); }
.section__head p { color: var(--ink-muted); margin-top: var(--s-4); }
.section--ink .section__head p { color: var(--on-dark-muted); }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}
.section--ink .eyebrow, .hero .eyebrow { color: var(--accent-on-dark); }

.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--ink-muted); max-width: 60ch; }
.muted { color: var(--ink-muted); }
.section--ink .muted { color: var(--on-dark-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 14px var(--s-5);
  font: inherit; font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-lift); }
.btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Text link with rule */
.link {
  display: inline-block;
  font-weight: 600; font-size: var(--fs-small);
  color: var(--accent-ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.section--ink .link, .hero .link { color: var(--accent-on-dark); }
.section--ink .link:hover, .hero .link:hover { color: #fff; border-color: #fff; }

/* Skip link */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4);
  border-radius: var(--radius); font-size: var(--fs-small); font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

/* 4. HEADER / NAV -------------------------------------------------------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s-6); width: 100%; }
.site-header.is-top { background: transparent; }
.site-header.is-solid { background: var(--ink-deep); border-bottom-color: var(--line-dark); }

.site-header__logo { display: block; flex: 0 0 auto; }
.site-header__logo img { width: 190px; height: 40px; }
/* The solid bar is the ink token, so both header states are dark grounds and
   both carry the light lockup. The standard dark lockup ships for light
   contexts (documents, print, a white-header theme variant). */
.site-header__logo .logo--dark { display: none; }
.site-header__logo .logo--light { display: block; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s-6); }
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: var(--s-2);
  font-size: var(--fs-small); font-weight: 500; color: #fff;
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--accent-on-dark); }
.nav__link.is-active { color: var(--accent-on-dark); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }

.nav__item--has-panel { position: relative; }
.nav__parent { display: inline-flex; align-items: center; gap: var(--s-2); background: none; border: 0; font: inherit; cursor: pointer; }
.nav__caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--t-fast) var(--ease); }
.nav__item--has-panel.is-open .nav__caret { transform: translateY(1px) rotate(-135deg); }

.nav__panel {
  position: absolute; top: calc(100% + var(--s-3)); left: -20px; min-width: 248px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: var(--s-2); border-radius: var(--radius-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
}
.nav__item--has-panel.is-open .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel a {
  display: block; padding: var(--s-3) var(--s-4);
  font-size: var(--fs-small); color: var(--ink); border-radius: var(--radius);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__panel a:hover, .nav__panel a.is-active { background: var(--surface-alt); color: var(--accent-ink); }

.header-cta { flex: 0 0 auto; }
.nav-toggle {
  display: none; flex: 0 0 auto; margin-inline-start: auto;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin-block: 5px; transition: background-color var(--t-base) var(--ease); }

/* Mobile overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120;
  background: var(--ink-deep); color: #fff;
  transform: translateX(100%);
  transition: transform 300ms var(--ease);
  display: flex; flex-direction: column;
  padding: var(--s-5) var(--gutter) var(--s-8);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.mobile-nav__close { width: 44px; height: 44px; background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.mobile-nav__list { margin-block: var(--s-8) var(--s-6); display: grid; gap: var(--s-5); }
.mobile-nav__list a { color: #fff; font-size: 1.5rem; font-weight: 500; }
.mobile-nav__list a.is-active { color: var(--accent-on-dark); }
.mobile-nav__meta { margin-top: auto; color: var(--on-dark-muted); font-size: var(--fs-small); display: grid; gap: var(--s-2); }
.mobile-nav__meta a { color: var(--on-dark-muted); }
.mobile-nav__meta a:hover { color: var(--accent-on-dark); }

@media (max-width: 1023px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header__logo img { width: 160px; height: 34px; }
}
@media (min-width: 1024px) { .mobile-nav { display: none; } }

/* 5. HERO + SLIDER ------------------------------------------------------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(460px, 68vh, 720px);
  padding-block: calc(var(--header-h) + var(--s-8)) var(--s-9);
  color: #fff; background: var(--ink); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,19,30,0.72) 0%, rgba(7,19,30,0.42) 40%, rgba(7,19,30,0.88) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__index {
  font-size: var(--fs-index); font-variant-numeric: tabular-nums;
  color: var(--accent-on-dark); letter-spacing: 0.08em; margin-bottom: var(--s-5);
}
.hero h1 { max-width: 20ch; }
.hero__h2 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.02em; max-width: 20ch; color: #fff; }
.hero__deck { margin-top: var(--s-5); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--on-dark-muted); max-width: 58ch; }
.hero__actions { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-4); }

.breadcrumb { margin-bottom: var(--s-5); font-size: var(--fs-small); color: var(--on-dark-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: var(--s-3); color: rgba(255,255,255,0.4); }
.breadcrumb a { color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--accent-on-dark); }
.breadcrumb [aria-current] { color: #fff; }

/* Home slider */
.hero--slider { min-height: 100vh; min-height: 100svh; align-items: center; }
.slider__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow);
}
.slider__slide.is-active { opacity: 1; visibility: visible; }
.slider__slide img, .slider__slide video { width: 100%; height: 100%; object-fit: cover; }
.slider__content { position: relative; z-index: 3; width: 100%; }
.slider__panel { display: none; }
.slider__panel.is-active { display: block; }
.slider__controls {
  position: absolute; z-index: 4; bottom: var(--s-8); right: var(--gutter);
  display: flex; align-items: center; gap: var(--s-5);
}
.slider__count { font-size: var(--fs-index); font-variant-numeric: tabular-nums; color: #fff; letter-spacing: 0.1em; }
.slider__dots { display: flex; gap: var(--s-3); }
.slider__dot {
  width: 40px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.35);
  transition: background-color var(--t-fast) var(--ease);
}
.slider__dot.is-active { background: var(--accent); }
.slider__dot:focus-visible { outline-offset: 6px; }
@media (max-width: 700px) { .slider__controls { left: var(--gutter); right: auto; bottom: var(--s-7); } }

/* 6. FEATURE BLOCK ------------------------------------------------------- */
.block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.block + .block { margin-top: var(--section-y); }
.block__media { position: relative; }
.block__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.block__body h2 { margin-bottom: var(--s-5); }
.block__body p + p { margin-top: var(--s-4); }
.block__body p { color: var(--ink-muted); }
.section--ink .block__body p { color: var(--on-dark-muted); }
.block__actions { margin-top: var(--s-6); }
/* Mirrored variant — single mechanism: order on the media child */
.block--mirror .block__media { order: 2; }
@media (max-width: 899px) {
  .block { grid-template-columns: 1fr; gap: var(--s-6); }
  .block__media, .block--mirror .block__media { order: -1; }
}

/* 7. CHIPS / SPEC PROFILE ------------------------------------------------ */
.chips__list { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.chips__list li {
  display: inline-flex; align-items: center;
  padding: 10px var(--s-4);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: var(--fs-small); color: var(--ink);
}
.section--ink .chips__list li { border-color: var(--line-dark); color: #fff; }
.chips__actions { margin-top: var(--s-6); }

.specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface);
}
.specs__row { padding: var(--s-5); border-bottom: 1px solid var(--line); }
.specs__row:last-child { border-bottom: 0; }
.specs dt { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: var(--s-2); }
.specs dd { margin: 0; color: var(--ink); font-weight: 500; }
.specs__flag { color: var(--accent-ink); font-weight: 600; }

/* Definition list — company facts / contact details */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.facts > div { background: var(--ink); padding: var(--s-5); }
.facts dt { font-size: var(--fs-eyebrow); color: var(--accent-on-dark); letter-spacing: 0.04em; margin-bottom: var(--s-2); }
.facts dd { margin: 0; color: #fff; }

/* Itemised list */
.list-items { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.list-items li { padding-left: var(--s-5); position: relative; color: var(--ink-muted); }
.list-items li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--accent); }
.section--ink .list-items li { color: var(--on-dark-muted); }

/* 8. CARDS / GRIDS ------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-5); }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--s-6);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--ink-muted); font-size: var(--fs-small); }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__arrow { margin-top: var(--s-5); display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); }
.card__arrow svg { transition: transform var(--t-fast) var(--ease); }
.card:hover, .card:focus-within { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover .card__arrow svg, .card:focus-within .card__arrow svg { transform: translateX(4px); }
.card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.card__link:focus-visible { outline: none; }
.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card--media .card__body { padding: var(--s-6); }
.section--ink .card { background: var(--ink-raise); border-color: var(--line-dark); }
.section--ink .card p { color: var(--on-dark-muted); }
.section--ink .card__arrow { color: var(--accent-on-dark); }

/* Tile strip (commodities) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); }
.tile {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-6) var(--s-5); background: var(--surface-alt);
  border: 1px solid transparent; border-radius: var(--radius-lg);
  font-weight: 600;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.tile svg { color: var(--accent); transition: transform var(--t-fast) var(--ease); }
.tile:hover, .tile:focus-visible { border-color: var(--accent); transform: translateY(-4px); background: var(--surface); }
.tile:hover svg, .tile:focus-visible svg { transform: translateX(4px); }

/* Plain feature list (why us / values) */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-7) var(--s-6); }
.points__item h3 { margin-bottom: var(--s-3); }
.points__item p { color: var(--ink-muted); font-size: var(--fs-small); }
.section--ink .points__item p { color: var(--on-dark-muted); }
.points__item { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.section--ink .points__item { border-top-color: var(--line-dark); }

/* Numbered sequence — renewable project delivery ONLY */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-6); counter-reset: step; }
.steps__item { border-top: 2px solid var(--accent); padding-top: var(--s-5); }
.steps__no { display: block; font-size: var(--fs-index); font-variant-numeric: tabular-nums; color: var(--accent-on-dark); margin-bottom: var(--s-3); letter-spacing: 0.08em; }
.steps__item h3 { margin-bottom: var(--s-3); }
.steps__item p { font-size: var(--fs-small); color: var(--on-dark-muted); }

/* 9. CROSS-LINK / CTA ---------------------------------------------------- */
.crosslink__head { margin-bottom: var(--s-7); max-width: 56ch; }
.crosslink__head h2 { margin-block: var(--s-3) var(--s-4); }
.crosslink__head p { color: var(--ink-muted); }

.cta-band { background: var(--ink); color: #fff; padding-block: var(--section-y); }
.cta-band__inner { display: grid; gap: var(--s-6); justify-items: start; max-width: 62ch; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); }

/* Sticky anchor tabs (catalogue) */
.anchor-tabs {
  position: sticky; top: var(--header-h); z-index: 60;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.anchor-tabs__list { display: flex; gap: var(--s-6); overflow-x: auto; scrollbar-width: none; height: var(--tabs-h); align-items: center; }
.anchor-tabs__list::-webkit-scrollbar { display: none; }
.anchor-tabs a {
  position: relative; white-space: nowrap; font-size: var(--fs-small); font-weight: 500;
  color: var(--ink-muted); padding-block: var(--s-2);
  transition: color var(--t-fast) var(--ease);
}
.anchor-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease); }
.anchor-tabs a:hover { color: var(--ink); }
.anchor-tabs a.is-active { color: var(--accent-ink); }
.anchor-tabs a.is-active::after { transform: scaleX(1); }

.group { scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 24px); }
.group + .group { margin-top: var(--section-y); }
.group__head { display: grid; gap: var(--s-4); max-width: 68ch; margin-bottom: var(--s-6); }
.group__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 899px) { .group__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* 10. FOOTER ------------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); padding-block: var(--s-9) var(--s-6); }
/* Brand block at 1.6fr, then the four link columns the footer spec calls for. */
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s-7) var(--s-6); }
.site-footer__brand img { width: 200px; height: 42px; margin-bottom: var(--s-5); }
.site-footer__brand p { font-size: var(--fs-small); max-width: 34ch; }
.site-footer h3 { font-size: var(--fs-eyebrow); letter-spacing: 0.06em; color: #fff; margin-bottom: var(--s-4); font-weight: 600; }
.site-footer li + li { margin-top: var(--s-3); }
.site-footer a { color: var(--on-dark-muted); font-size: var(--fs-small); transition: color var(--t-fast) var(--ease); }
.site-footer a:hover { color: var(--accent-on-dark); }
.site-footer address { font-style: normal; font-size: var(--fs-small); display: grid; gap: var(--s-3); }
.site-footer__legal {
  margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); justify-content: space-between;
  font-size: 0.875rem;
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.site-footer__legal p { max-width: 70ch; }
@media (max-width: 1199px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 11. FORMS -------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); max-width: 720px; }
.form__note { font-size: var(--fs-small); color: var(--ink-muted); border-left: 2px solid var(--accent); padding-left: var(--s-4); max-width: 60ch; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 699px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field .req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-small); color: var(--ink);
  padding: 13px var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,134,42,0.18); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__error { font-size: 0.875rem; color: #B3261E; min-height: 0; }
.field__error:empty { display: none; }
.form__status { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-alt); }
.form__status h2 { font-size: 1.5rem; margin-bottom: var(--s-3); }

/* Contact details */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-6); }
.contact-card { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.contact-card h3 { font-size: var(--fs-eyebrow); letter-spacing: 0.04em; color: var(--ink-soft); font-weight: 500; margin-bottom: var(--s-3); }
.contact-card a, .contact-card address { font-style: normal; font-size: var(--fs-body); color: var(--ink); }
.contact-card a:hover { color: var(--accent-ink); }

.location { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.location img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.location__overlay {
  position: absolute; left: 0; bottom: 0; padding: var(--s-6);
  background: linear-gradient(0deg, rgba(7,19,30,0.92), rgba(7,19,30,0));
  color: #fff; width: 100%;
}
.location__overlay address { font-style: normal; max-width: 40ch; }
.location__overlay .eyebrow { color: var(--accent-on-dark); }

/* Legal pages */
.prose { max-width: 72ch; }
.prose h2 { margin-block: var(--s-7) var(--s-4); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-muted); }
.prose ul { display: grid; gap: var(--s-3); margin-block: var(--s-4); }
.prose li { padding-left: var(--s-5); position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--accent); }
.page-head { padding-block: calc(var(--header-h) + var(--s-8)) var(--s-7); background: var(--surface-alt); }

/* 12. UTILITIES + MOTION -------------------------------------------------- */
.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;
}
.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .card:hover, .tile:hover { transform: none; }
}
@media print {
  .site-header, .mobile-nav, .cta-band, .hero__media, .anchor-tabs { display: none !important; }
  body { color: #000; }
}
