/* ==========================================================================
   Silver Wren Supports Pty Ltd — silverwrensupportstec.site
   Art direction: warm regional care. Deep eucalypt green + terracotta accent,
   sand neutrals, Georgia display stack, soft shape language.
   All values below the token block reference custom properties.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand + neutral ramp */
  --primary: #1f4a42;
  --primary-deep: #16302a;
  --primary-mid: #2c6459;
  --primary-wash: #e6efeb;
  --accent: #c0653a;
  --accent-ink: #9e4a22;
  --accent-soft: #f6e7de;
  --accent-light: #e39b6e;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f0e9;
  --surface-3: #eae5da;
  --border: #e2ded5;
  --border-strong: #cfc9bb;

  --text-dark: #1b2320;
  --text-body: #35403b;
  --text-light: #55625c;
  --text-invert: #dce5e0;
  --text-invert-muted: #a8bcb3;

  /* Translucent layers */
  --tint-primary: rgba(31, 74, 66, 0.07);
  --tint-primary-strong: rgba(44, 100, 89, 0.16);
  --tint-accent: rgba(192, 101, 58, 0.14);
  --tint-dot: rgba(31, 74, 66, 0.10);
  --nav-bg: rgba(251, 250, 247, 0.82);
  --hairline-invert: rgba(220, 229, 224, 0.16);
  --surface-invert: rgba(255, 255, 255, 0.05);
  --overlay-top: rgba(255, 255, 255, 0.6);

  /* Composite backgrounds */
  --grad-hero:
    radial-gradient(58rem 38rem at 88% -12%, var(--tint-primary-strong), transparent 62%),
    radial-gradient(40rem 30rem at 4% 108%, var(--tint-accent), transparent 58%),
    linear-gradient(178deg, var(--surface-2), var(--bg) 72%);
  --grad-band: linear-gradient(155deg, var(--primary), var(--primary-deep) 78%);
  --grad-panel: linear-gradient(150deg, var(--primary-wash), var(--accent-soft));
  --pattern-dots: radial-gradient(var(--tint-dot) 1px, transparent 1px);
  --dot-gap: 22px;

  /* Type scale */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-h1: clamp(2rem, 4.2vw, 3.1rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.12rem, 1.5vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.78rem;
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-body: 1.65;
  --track-tight: -0.02em;
  --track-wide: 0.12em;
  --measure: 66ch;
  --measure-narrow: 54ch;

  /* Spacing */
  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --section-y: clamp(3rem, 7vw, 6.5rem);
  --section-y-sm: clamp(2.5rem, 5vw, 4rem);
  --gutter: 1.375rem;
  --container: 1140px;
  --container-narrow: 820px;

  /* Shape */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-band: 2.5rem;
  --radius-pill: 999px;
  --hairline: 1px;
  --rule: 2px;
  --focus-w: 3px;
  --lift: -2px;

  /* Depth + motion */
  --shadow-sm: 0 1px 2px rgba(22, 48, 42, 0.05);
  --shadow-md: 0 1px 2px rgba(22, 48, 42, 0.05), 0 10px 26px rgba(22, 48, 42, 0.07);
  --shadow-lg: 0 18px 46px rgba(22, 48, 42, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 180ms;
}

/* --------------------------------------------------------------------------
   2. 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: var(--lh-body);
  overflow-x: hidden;
}

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

h3 { line-height: var(--lh-snug); }

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

a { color: var(--accent-ink); }

ul { margin: 0 0 var(--s3); padding-left: var(--s4); }

li { margin-bottom: var(--s1); }

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

svg { display: block; }

:focus-visible {
  outline: var(--focus-w) solid var(--accent-ink);
  outline-offset: var(--s0);
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: 0;
  transform: translateY(-150%);
  z-index: 60;
  background: var(--primary-deep);
  color: var(--text-invert);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--fs-sm);
}

.skip-link:focus { transform: translateY(var(--s3)); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0 0 var(--s2);
}

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

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--hairline) solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--s6);
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--s5);
  height: var(--s5);
  border-radius: var(--radius-sm);
  background: var(--grad-band);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--track-tight);
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-tight);
}

.brand-name em {
  font-style: normal;
  color: var(--primary-mid);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--s0);
  width: var(--s5);
  height: var(--s5);
  padding: 0 var(--s2);
  background: var(--surface);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: var(--hairline);
  border-top: var(--rule) solid var(--primary);
  border-radius: var(--radius-pill);
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

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

.nav-menu li { margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--text-dark);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--speed) var(--ease);
}

.nav-link:hover { color: var(--primary-mid); }

.nav-link.active {
  color: var(--primary);
  border-bottom: var(--rule) solid var(--accent);
}

.nav-cta { margin-left: var(--s1); }

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

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(var(--lift));
}

.btn-accent {
  background: var(--accent-ink);
  color: var(--surface);
}

.btn-accent:hover {
  background: var(--accent);
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-md);
}

.btn-invert {
  background: var(--surface);
  color: var(--primary-deep);
}

.btn-invert:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lg);
}

.btn-ghost-invert {
  background: transparent;
  color: var(--text-invert);
  border-color: var(--hairline-invert);
}

.btn-ghost-invert:hover {
  border-color: var(--text-invert);
  transform: translateY(var(--lift));
}

.btn-sm { padding: var(--s1) var(--s3); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background-image: var(--grad-hero);
  border-bottom-left-radius: var(--radius-band);
  border-bottom-right-radius: var(--radius-band);
  padding: var(--section-y) 0 calc(var(--section-y) + var(--s4));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-dots);
  background-size: var(--dot-gap) var(--dot-gap);
  opacity: 0.55;
  pointer-events: none;
}

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

.hero-title {
  font-size: var(--fs-hero);
  margin-bottom: var(--s3);
  max-width: var(--measure-narrow);
}

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

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

.hero-note {
  font-size: var(--fs-sm);
  color: var(--text-light);
  margin: 0;
  max-width: var(--measure-narrow);
}

/* Hero visual anchor: overlapping panels */
.hero-figure { position: relative; }

.figure-panel {
  position: absolute;
  inset: var(--s4) calc(var(--s4) * -1) calc(var(--s4) * -1) var(--s4);
  background: var(--grad-panel);
  border-radius: var(--radius-lg);
  transform: rotate(3deg);
}

.figure-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: var(--hairline) solid var(--border);
  box-shadow: var(--shadow-md);
  padding: var(--s4);
}

.figure-mark {
  width: var(--s6);
  height: var(--s6);
  color: var(--primary-mid);
  margin-bottom: var(--s3);
}

.figure-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s2);
}

.figure-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.figure-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s2) 0;
  border-top: var(--hairline) solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-light);
  margin: 0;
}

.figure-item svg {
  flex: none;
  width: var(--s4);
  height: var(--s4);
  color: var(--accent-ink);
  margin-top: var(--s0);
}

/* Compact hero for inner pages */
.page-hero {
  position: relative;
  overflow: hidden;
  background-image: var(--grad-hero);
  border-bottom-left-radius: var(--radius-band);
  border-bottom-right-radius: var(--radius-band);
  padding: var(--section-y-sm) 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-dots);
  background-size: var(--dot-gap) var(--dot-gap);
  opacity: 0.5;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: var(--container-narrow);
}

.page-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--s2);
}

.page-lead {
  font-size: var(--fs-lead);
  color: var(--text-light);
  margin: 0;
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }

.section-sm { padding: var(--section-y-sm) 0; }

.section-alt { background: var(--surface-2); }

.section-head {
  max-width: var(--measure);
  margin-bottom: var(--s5);
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--s2);
}

.section-intro {
  color: var(--text-light);
  margin: 0;
}

/* Value props */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}

.value { margin: 0; }

.value-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s1);
}

.value p {
  margin: 0;
  color: var(--text-light);
  font-size: var(--fs-sm);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: var(--s5);
  height: var(--s5);
  margin-bottom: var(--s3);
  border-radius: var(--radius-sm);
  background: var(--primary-wash);
  color: var(--primary);
}

.icon-tile svg {
  width: var(--s4);
  height: var(--s4);
}

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

/* --------------------------------------------------------------------------
   7. Services
   -------------------------------------------------------------------------- */
.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 {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--s4);
  box-shadow: var(--shadow-md);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.service-card:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lg);
}

.service-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s1);
}

.service-desc {
  margin: 0;
  color: var(--text-light);
  font-size: var(--fs-sm);
}

.service-points {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: 0;
}

.service-points li {
  position: relative;
  padding-left: var(--s3);
  font-size: var(--fs-sm);
  color: var(--text-light);
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--s2);
  width: var(--s1);
  height: var(--s1);
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   8. Two-column split band
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--s6);
}

.split-reverse .split-media { order: -1; }

.split-copy p { color: var(--text-light); }

.check-list {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  max-width: var(--measure);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  margin-bottom: var(--s2);
  font-size: var(--fs-sm);
}

.check-item svg {
  flex: none;
  width: var(--s4);
  height: var(--s4);
  color: var(--primary-mid);
  margin-top: var(--s0);
}

.step-stack {
  display: grid;
  gap: var(--s2);
  background: var(--grad-panel);
  border-radius: var(--radius-lg);
  padding: var(--s4);
}

.step {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--s3);
  box-shadow: var(--shadow-sm);
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--s5);
  height: var(--s5);
  border-radius: var(--radius-pill);
  background: var(--primary-wash);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
}

.step-num svg {
  width: var(--s4);
  height: var(--s4);
}

.step-title {
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 var(--s0);
}

.step p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   9. Dark band + credentials
   -------------------------------------------------------------------------- */
.band {
  background-image: var(--grad-band);
  color: var(--text-invert);
  padding: var(--section-y-sm) 0;
}

.band h2,
.band h3 { color: var(--surface); }

.band-lead {
  color: var(--text-invert-muted);
  margin: 0;
  max-width: var(--measure);
}

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

.cred-item {
  padding: var(--s3);
  border-radius: var(--radius);
  background: var(--surface-invert);
  border: var(--hairline) solid var(--hairline-invert);
}

.cred-label {
  display: block;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: var(--s1);
}

.cred-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--surface);
  line-height: var(--lh-snug);
}

/* --------------------------------------------------------------------------
   10. CTA strip
   -------------------------------------------------------------------------- */
.cta-strip {
  padding: var(--section-y-sm) 0;
  background: var(--surface-2);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border-top: var(--rule) solid var(--accent);
  box-shadow: var(--shadow-md);
  padding: var(--s5);
}

.cta-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--s1);
}

.cta-text {
  margin: 0;
  color: var(--text-light);
  max-width: var(--measure);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  flex: none;
}

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

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

.info-list {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
}

.info-item {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s3) 0;
  border-top: var(--hairline) solid var(--border);
}

.info-item svg {
  flex: none;
  width: var(--s4);
  height: var(--s4);
  color: var(--primary-mid);
  margin-top: var(--s0);
}

.info-label {
  display: block;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--s0);
}

.info-value {
  display: block;
  color: var(--text-dark);
  font-size: var(--fs-sm);
  word-break: break-word;
}

a.info-value {
  color: var(--accent-ink);
  text-decoration: underline;
}

a.info-value:hover { color: var(--primary); }

.field { margin-bottom: var(--s3); }

.field-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--s1);
}

.field-input,
.field-textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-dark);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.field-input::placeholder { color: var(--text-light); }

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

.field-input:focus,
.field-textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.field-textarea {
  min-height: var(--s7);
  resize: vertical;
}

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

/* --------------------------------------------------------------------------
   12. Prose (legal + long-form)
   -------------------------------------------------------------------------- */
.prose {
  max-width: var(--measure);
}

.prose h2 {
  font-size: var(--fs-h2);
  margin-top: var(--s5);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: var(--fs-h3);
  margin-top: var(--s4);
  margin-bottom: var(--s1);
}

.prose ul { padding-left: var(--s4); }

.prose li { color: var(--text-body); }

.prose-meta {
  font-size: var(--fs-sm);
  color: var(--text-light);
  padding-bottom: var(--s3);
  border-bottom: var(--hairline) solid var(--border);
  margin-bottom: var(--s5);
  max-width: none;
}

.callout {
  background: var(--surface);
  border-radius: var(--radius);
  border: var(--hairline) solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--s4);
  margin: var(--s4) 0;
}

.callout p:last-child { margin-bottom: 0; }

.callout-title {
  font-size: var(--fs-h3);
  margin-top: 0;
  margin-bottom: var(--s1);
}

/* About / detail cards */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

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

.detail-card p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: var(--fs-sm);
}

.detail-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s1);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-deep);
  color: var(--text-invert-muted);
  border-top: var(--rule) solid var(--accent);
  font-size: var(--fs-sm);
}

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

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

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

.footer-brand .brand-mark {
  background: var(--surface-invert);
  border: var(--hairline) solid var(--hairline-invert);
}

.footer-brand .brand-name em { color: var(--accent-light); }

.footer-blurb {
  color: var(--text-invert-muted);
  margin-bottom: var(--s3);
  max-width: var(--measure-narrow);
}

.footer-reg {
  margin: 0;
  color: var(--text-invert-muted);
  font-size: var(--fs-xs);
}

.footer-head {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--accent-light);
  margin-bottom: var(--s3);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: var(--s2); }

.footer-link {
  color: var(--text-invert);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
  word-break: break-word;
}

.footer-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.footer-bottom {
  border-top: var(--hairline) solid var(--hairline-invert);
  background: var(--surface-invert);
}

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

.footer-copy {
  margin: 0;
  max-width: none;
  font-size: var(--fs-xs);
  color: var(--text-invert-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-xs);
}

.footer-legal li { margin: 0; }

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-inner { position: relative; }

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

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

  .nav-open .nav-toggle-bar:first-child { transform: translateY(var(--s0)) rotate(45deg); }
  .nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-bar:last-child { transform: translateY(calc(var(--s0) * -1)) rotate(-45deg); }

  .nav-link {
    display: block;
    padding: var(--s2) 0;
    border-bottom: var(--hairline) solid var(--border);
  }

  .nav-link.active {
    border-bottom-color: var(--accent);
    border-bottom-width: var(--rule);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--s3);
    width: 100%;
  }

  .hero-inner,
  .split,
  .contact-grid,
  .values-grid,
  .services-grid,
  .services-grid-2,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-reverse .split-media { order: 0; }

  .figure-panel { inset: var(--s3) calc(var(--s3) * -1) calc(var(--s3) * -1) var(--s3); }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s4);
  }

  .contact-card { padding: var(--s4); }

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

@media (max-width: 520px) {
  .cred-grid,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .hero,
  .page-hero {
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
  }

  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .btn:hover,
  .service-card:hover { transform: none; }
}

@media print {
  .site-header,
  .cta-strip { display: none; }
  body { background: var(--surface); }
}
