/* ==========================================================================
   Nextrade Beverages Pty Ltd — nextradebeveragestec.site
   Art direction: "merchant trade house"
   Deep bottle green + burnt amber accent, warm paper neutrals,
   Georgia display over a system sans, sharp shape language (hairline rules).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — every value below this block must come from here
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary: #1d4438;
  --primary-deep: #12281f;
  --primary-soft: #2f6350;
  --primary-tint: #e6ede9;

  /* Accent — used sparingly: eyebrows, marks, rules, one button */
  --accent: #c8752a;
  --accent-ink: #8f4e14;
  --accent-light: #e8b070;
  --accent-tint: #f6ead9;

  /* Neutral ramp (warm paper) */
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efece4;
  --border: #ddd9cf;
  --border-strong: #c6c1b4;

  /* Ink */
  --text-dark: #17201c;
  --text-body: #333c37;
  --text-muted: #505a55;
  --text-light: #ffffff;
  --text-on-dark: #cfdad4;

  /* Spacing scale */
  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;

  /* Shape */
  --radius: 3px;
  --radius-sm: 2px;
  --radius-lg: 5px;
  --hairline: 1px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(18, 40, 31, 0.06);
  --shadow-2: 0 1px 2px rgba(18, 40, 31, 0.05), 0 10px 28px rgba(18, 40, 31, 0.08);
  --shadow-lift: 0 2px 4px rgba(18, 40, 31, 0.06), 0 16px 34px rgba(18, 40, 31, 0.12);

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", Times, serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1.6vw, 1.25rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* Layout */
  --container: 1140px;
  --measure: 66ch;
  --gutter: var(--s4);
  --nav-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);
  --dur: 180ms;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s3); max-width: var(--measure); }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }

ul, ol { margin: 0 0 var(--s3); padding-left: var(--s4); max-width: var(--measure); }
li { margin-bottom: var(--s1); }

strong { color: var(--text-dark); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--primary-deep);
  color: var(--text-light);
  padding: var(--s2) var(--s3);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--text-light); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s4);
  padding-right: var(--s4);
}

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

/* --------------------------------------------------------------------------
   3. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--hairline) solid var(--border);
}

.navbar { width: 100%; }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s4);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  color: var(--text-dark);
  padding: var(--s1) 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.brand-sub {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.nav-menu li { margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--s2) 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover { color: var(--text-dark); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link.active { color: var(--text-dark); font-weight: 600; }
.nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: var(--primary);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav-cta:hover {
  background: var(--primary-deep);
  color: var(--text-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 0;
  border: var(--hairline) solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: var(--hairline) solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: var(--text-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  color: var(--primary-deep);
  border-color: var(--primary);
  background: var(--primary-tint);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
  border-color: var(--accent);
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--text-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn-ghost-light {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-light);
  color: var(--text-light);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. Shared section furniture
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  margin: 0 0 var(--s2);
  max-width: none;
}

.eyebrow-light { color: var(--accent-light); }

.section { padding: var(--s7) 0; }
.section-tight { padding: var(--s6) 0; }
.section-alt { background: var(--surface); border-top: var(--hairline) solid var(--border); border-bottom: var(--hairline) solid var(--border); }

.section-dark {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(200, 117, 42, 0.16), transparent 62%),
    linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--text-on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--text-light); }

.section-head { max-width: var(--measure); margin-bottom: var(--s5); }
.section-head h2 { margin-bottom: var(--s2); }
.section-intro { color: var(--text-muted); font-size: var(--fs-lead); margin-bottom: 0; }
.section-dark .section-intro { color: var(--text-on-dark); }

.rule {
  border: 0;
  border-top: var(--hairline) solid var(--border);
  margin: var(--s5) 0;
  max-width: none;
}

.lead { font-size: var(--fs-lead); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   6. Hero (home) — asymmetric two-column, crafted background
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--s7) 0 calc(var(--s7) + var(--s4));
  min-height: 60vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 540px at 80% -12%, rgba(200, 117, 42, 0.18), transparent 60%),
    radial-gradient(820px 420px at 0% 108%, rgba(47, 99, 80, 0.16), transparent 66%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 42px), 0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(29, 68, 56, 0.055) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(90deg, rgba(29, 68, 56, 0.055) 0 1px, transparent 1px 68px);
  -webkit-mask-image: radial-gradient(760px 460px at 22% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(760px 460px at 22% 40%, #000 0%, transparent 78%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s6);
  align-items: center;
  width: 100%;
}

.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--s3);
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
  box-shadow: inset 0 -0.14em 0 var(--accent-tint);
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: var(--s4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin: 0;
  max-width: none;
}
.hero-note svg { flex: 0 0 18px; color: var(--primary-soft); }

/* Visual anchor: CSS/SVG-drawn merchant case */
.hero-visual {
  position: relative;
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: var(--s4);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 62%;
  height: 62%;
  z-index: -1;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.hero-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-bottom: var(--s2);
  border-bottom: var(--hairline) solid var(--border);
  margin-bottom: var(--s3);
}

.hero-visual-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
}

.hero-visual-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-tint);
  border-radius: var(--radius-sm);
  padding: var(--s0) var(--s1);
}

.hero-art { display: block; width: 100%; height: auto; color: var(--primary-soft); }

.hero-visual-foot {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: var(--hairline) solid var(--border);
}

.hero-visual-foot div { flex: 1 1 0; }

.hero-visual-foot dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.hero-visual-foot dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   7. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--s6) 0 var(--s5);
  background:
    radial-gradient(760px 340px at 88% -30%, rgba(200, 117, 42, 0.16), transparent 62%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: var(--hairline) solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(90deg, rgba(29, 68, 56, 0.06) 0 1px, transparent 1px 68px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 62%);
}

.page-hero-inner { max-width: 62ch; }
.page-hero h1 { margin-bottom: var(--s2); }
.page-hero p { color: var(--text-muted); font-size: var(--fs-lead); margin-bottom: 0; }

.breadcrumb {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin: 0 0 var(--s3);
  max-width: none;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   8. Icon tiles & cards
   -------------------------------------------------------------------------- */
.icon-tile {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: var(--s3);
}

.icon-tile-accent { background: var(--accent-tint); color: var(--accent-ink); }

.icon-tile-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}

.value-card {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
}

.section-dark .value-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.card-title { margin-bottom: var(--s1); }
.card-text { color: var(--text-muted); font-size: var(--fs-small); margin: 0; max-width: none; }
.section-dark .card-text { color: var(--text-on-dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}

.services-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-card {
  position: relative;
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}

.service-index {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--border-strong);
  letter-spacing: 0.06em;
}

.service-card p { color: var(--text-muted); font-size: var(--fs-small); max-width: none; }
.service-card p:last-child { margin-bottom: 0; }

.list-check { list-style: none; padding: 0; margin: var(--s2) 0 0; max-width: none; }
.list-check li {
  position: relative;
  padding-left: var(--s4);
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--s1);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Dark-band overrides — these components are reused inside .section-dark
   and must keep WCAG AA contrast against the deep green background. */
.section-dark .list-check li { color: var(--text-on-dark); }
.section-dark .list-check li::before {
  border-left-color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}
.section-dark .hero-visual-label { color: var(--accent-light); }
.section-dark .hero-visual-head { border-bottom-color: rgba(255, 255, 255, 0.18); }
.section-dark .hero-visual-tag {
  color: var(--text-dark);
  background: var(--accent-light);
}
.section-dark .contact-item { border-bottom-color: rgba(255, 255, 255, 0.18); }
.section-dark .contact-item-label { color: var(--accent-light); }
.section-dark .contact-item-value { color: var(--text-light); }
.section-dark .contact-item-note { color: var(--text-on-dark); }
.section-dark .rule { border-top-color: rgba(255, 255, 255, 0.18); }
.section-dark .lead { color: var(--text-on-dark); }

/* --------------------------------------------------------------------------
   9. Split band (breaks the single-column stack)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
  align-items: center;
}

.split-reverse .split-copy { order: 2; }

.split-copy p { color: var(--text-muted); }
.section-dark .split-copy p { color: var(--text-on-dark); }

.split-media {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  box-shadow: var(--shadow-1);
}

.section-dark .split-media {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.flow { list-style: none; margin: 0; padding: 0; max-width: none; }

.flow-step {
  position: relative;
  display: flex;
  gap: var(--s3);
  padding: var(--s2) 0 var(--s4) 0;
  margin: 0;
}

.flow-step:last-child { padding-bottom: 0; }

.flow-step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.flow-step:last-child::before { display: none; }
.section-dark .flow-step::before { background: rgba(255, 255, 255, 0.2); }

.flow-num {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
}

.section-dark .flow-num { background: var(--accent); color: var(--text-dark); }

.flow-label { display: block; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.section-dark .flow-label { color: var(--text-light); }

.flow-body { font-size: var(--fs-small); color: var(--text-muted); margin: 0; max-width: none; }
.section-dark .flow-body { color: var(--text-on-dark); }

/* --------------------------------------------------------------------------
   10. Credentials strip (factual only)
   -------------------------------------------------------------------------- */
.creds { background: var(--surface-2); border-top: var(--hairline) solid var(--border); border-bottom: var(--hairline) solid var(--border); padding: var(--s5) 0; }

.creds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
}

.cred { border-left: 2px solid var(--accent); padding-left: var(--s3); }

.cred-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--s0);
}

.cred-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   11. CTA strip
   -------------------------------------------------------------------------- */
.cta-strip {
  background:
    radial-gradient(700px 320px at 15% 110%, rgba(200, 117, 42, 0.2), transparent 64%),
    linear-gradient(120deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: var(--text-on-dark);
  padding: var(--s6) 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}

.cta-copy { flex: 1 1 420px; }
.cta-title { color: var(--text-light); margin-bottom: var(--s1); }
.cta-text { color: var(--text-on-dark); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* --------------------------------------------------------------------------
   12. Prose / legal pages
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: var(--hairline) solid var(--border);
}
.prose h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: var(--s4); }
.prose li { color: var(--text-body); }

.legal-meta {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s5);
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 72ch;
}
.legal-meta p { margin: 0; font-size: var(--fs-small); max-width: none; }
.legal-meta p + p { margin-top: var(--s1); }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--s6);
  align-items: start;
}

.contact-panel {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-1);
}

.contact-list { list-style: none; margin: 0; padding: 0; max-width: none; }

.contact-item {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: var(--hairline) solid var(--border);
  margin: 0;
}
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item .icon-tile { margin-bottom: 0; flex: 0 0 44px; }

.contact-item-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-value { display: block; color: var(--text-dark); font-weight: 600; word-break: break-word; }
.contact-item-value a { font-weight: 600; }
.contact-item-note { display: block; font-size: var(--fs-small); color: var(--text-muted); margin-top: 2px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field-full { grid-column: 1 / -1; }

.field label { font-size: var(--fs-small); font-weight: 600; color: var(--text-dark); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.65rem var(--s2);
  width: 100%;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--primary-soft); }

.field input:focus,
.field select:focus,
.field textarea:focus { background: var(--surface); border-color: var(--primary); }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 1; }

.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: var(--fs-small); color: var(--text-muted); margin: var(--s3) 0 0; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-deep);
  color: var(--text-on-dark);
  border-top: 3px solid var(--accent);
}

.footer-top { padding: var(--s6) 0 var(--s5); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--s5);
}

.footer-col { min-width: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  margin-bottom: var(--s3);
}

.footer-brand .brand-mark { background: var(--accent); color: var(--text-dark); }
.footer-brand .brand-name { color: var(--text-light); }
.footer-brand .brand-sub { color: var(--accent-light); }

.footer-blurb { font-size: var(--fs-small); color: var(--text-on-dark); max-width: 42ch; }

.footer-id {
  font-size: var(--fs-small);
  color: var(--text-on-dark);
  margin: 0;
  max-width: none;
  line-height: 1.7;
}

.footer-head {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-light);
  margin: 0 0 var(--s3);
  padding-bottom: var(--s1);
  border-bottom: var(--hairline) solid rgba(255, 255, 255, 0.14);
}

.footer-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.footer-list li { margin-bottom: var(--s1); }

.footer-link {
  color: var(--text-on-dark);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  word-break: break-word;
}
.footer-link:hover { color: var(--accent-light); text-decoration: underline; }

.footer-bottom {
  background: rgba(255, 255, 255, 0.05);
  border-top: var(--hairline) solid rgba(255, 255, 255, 0.14);
  padding: var(--s3) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}

.footer-copy { font-size: var(--fs-small); color: var(--text-on-dark); margin: 0; max-width: none; }

.footer-legal { display: flex; gap: var(--s3); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; max-width: none; }
.footer-legal li { margin: 0; }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .value-grid,
  .services-grid,
  .services-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
  .hero-inner { gap: var(--s5); }
  .split, .contact-grid { gap: var(--s5); }
}

@media (max-width: 768px) {
  :root { --s7: 3.5rem; --s6: 3rem; }

  .nav-toggle { display: flex; }

  .navbar { position: relative; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--s4) var(--s4);
    background: var(--surface);
    border-bottom: var(--hairline) solid var(--border);
    box-shadow: var(--shadow-2);
  }

  .nav-menu.open { display: flex; }

  .nav-menu li { width: 100%; }

  .nav-link {
    display: block;
    width: 100%;
    padding: var(--s2) 0;
    border-bottom: var(--hairline) solid var(--border);
  }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--accent-ink); }

  .nav-cta { display: block; text-align: center; margin-top: var(--s3); }

  .hero {
    padding: var(--s6) 0;
    min-height: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
  }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { display: none; }

  .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-copy { order: 0; }

  .value-grid,
  .services-grid,
  .services-grid-2,
  .creds-grid,
  .footer-grid,
  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .contact-panel { padding: var(--s4); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: var(--s4); }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero-actions, .cta-actions { width: 100%; }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:hover, .nav-cta:hover, .service-card:hover { transform: none; }
}

@media print {
  .site-header, .cta-strip, .hero-visual { display: none; }
  body { background: #fff; }
}
