/* ==========================================================================
   Hush Physiotherapy Pty Ltd — hushphysiotherapytec.site
   Art direction: "Range of Motion"
   Still-water slate-teal + Western Australian clay on a cool mineral ground.
   Soft shape language. The goniometer arc is the recurring signature mark.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — every colour, space, radius and shadow below this block
      must be referenced through a custom property.
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary: #1f3a3d;
  --primary-600: #25464a;
  --primary-500: #2e5457;
  --primary-900: #142729;
  --accent: #c0703f;
  --accent-deep: #8f4e27;
  --accent-light: #e0a176;
  --accent-tint: #f7e9de;

  /* Neutral ramp */
  --bg: #f1f4f2;
  --surface: #ffffff;
  --surface-2: #e4ebe7;
  --border: #d5ded9;
  --border-strong: #bcc9c4;
  --text-dark: #17211f;
  --text-muted: #55635f;
  --text-on-dark: #e9f0ed;
  --text-on-dark-muted: #a9beb9;

  /* Translucent tokens */
  --accent-glow: rgba(192, 112, 63, 0.18);
  --accent-glow-soft: rgba(192, 112, 63, 0.09);
  --primary-glow: rgba(31, 58, 61, 0.09);
  --hairline: rgba(31, 58, 61, 0.09);
  --hairline-dark: rgba(233, 240, 237, 0.15);
  --nav-bg: rgba(241, 244, 242, 0.82);
  --ring: rgba(192, 112, 63, 0.55);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(23, 33, 31, 0.05);
  --shadow-md: 0 1px 2px rgba(23, 33, 31, 0.04), 0 8px 24px rgba(23, 33, 31, 0.07);
  --shadow-lg: 0 22px 56px rgba(23, 33, 31, 0.14);

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --fs-hero: clamp(2.35rem, 5.2vw, 4rem);
  --fs-h2: clamp(1.7rem, 3.2vw, 2.45rem);
  --fs-h3: clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.22rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;

  /* Spacing scale */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --section-y: clamp(3.5rem, 7.5vw, 6.5rem);
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 1.75rem);
  --measure: 66ch;

  /* Shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --speed: 180ms;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

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

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

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

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

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

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

svg {
  display: block;
}

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

.sr-only {
  position: absolute;
  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: var(--s3);
  top: calc(-1 * var(--s7));
  z-index: 60;
  background: var(--primary);
  color: var(--text-on-dark);
  padding: var(--s2) var(--s4);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: top var(--speed) ease;
}

.skip-link:focus {
  top: var(--s3);
  color: var(--text-on-dark);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.section-intro {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s2);
}

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

/* The signature mark: a shallow goniometer arc used as a rule. */
.arc-rule {
  width: 76px;
  height: 22px;
  border-top: 2px solid var(--accent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  margin: 0 0 var(--s4);
}

.arc-rule-light {
  border-top-color: var(--accent-light);
}

.center .arc-rule {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--surface);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  padding: var(--s1) var(--s2);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

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

.nav-links li {
  margin: 0;
}

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

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

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

.nav-link:hover::after {
  transform: scaleX(0.5);
}

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

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   5. 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: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--speed) ease, background-color var(--speed) ease,
    color var(--speed) ease, border-color var(--speed) ease, box-shadow var(--speed) ease;
}

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

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-light {
  background: var(--text-on-dark);
  border-color: var(--text-on-dark);
  color: var(--primary-900);
}

.btn-light:hover {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--primary-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: var(--fs-body);
}

/* --------------------------------------------------------------------------
   6. Hero (homepage) — asymmetric, crafted background, curved bottom edge
   -------------------------------------------------------------------------- */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--surface-2);
  background-image:
    radial-gradient(60% 70% at 82% 12%, var(--accent-glow) 0%, transparent 62%),
    radial-gradient(70% 80% at 8% 96%, var(--primary-glow) 0%, transparent 60%),
    repeating-linear-gradient(115deg, var(--hairline) 0 1px, transparent 1px 26px),
    linear-gradient(168deg, var(--surface) 0%, var(--surface-2) 100%);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -1px;
  height: 72px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: var(--s6);
  min-height: 60vh;
  padding: calc(var(--section-y) + var(--s4)) 0 calc(var(--section-y) + var(--s5));
}

.hero-title {
  font-size: var(--fs-hero);
  margin-bottom: var(--s4);
  max-width: 15ch;
}

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

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin: 0;
}

.hero-meta li::before {
  content: "";
  width: 14px;
  height: 7px;
  flex: none;
  border-top: 1.5px solid var(--accent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Hero visual anchor: nested range-of-motion arcs on a soft panel. */
.hero-figure {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: -18% -14% -22% -16%;
  background: radial-gradient(closest-side, var(--accent-glow-soft), transparent 78%);
  border-radius: 50%;
  z-index: -1;
}

.arc-svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke-linecap: round;
}

.arc-ring {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 7;
}

.arc-base {
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.arc-a {
  stroke: var(--surface-2);
  stroke-width: 7;
}

.arc-b {
  stroke: var(--primary-500);
  stroke-width: 7;
}

.arc-c {
  stroke: var(--primary);
  stroke-width: 7;
}

.arc-d {
  stroke: var(--accent);
  stroke-width: 7;
}

.arc-pivot {
  fill: var(--primary);
  stroke: none;
}

.arc-cap {
  fill: var(--accent);
  stroke: none;
}

.hero-figure figcaption {
  margin: var(--s3) 0 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  max-width: none;
}

/* Compact hero for inner pages */
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--section-y) * 0.72) 0 calc(var(--section-y) * 0.85);
}

.page-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: var(--s3);
  max-width: 18ch;
}

.page-lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. Dark band + course-of-care dials (the signature sequence)
   -------------------------------------------------------------------------- */
.band-dark {
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
  background-image:
    radial-gradient(55% 75% at 88% 4%, var(--accent-glow) 0%, transparent 60%),
    linear-gradient(160deg, var(--primary-600) 0%, var(--primary-900) 100%);
  color: var(--text-on-dark);
  padding: var(--section-y) 0;
}

.band-dark h2,
.band-dark h3 {
  color: var(--text-on-dark);
}

.band-dark p {
  color: var(--text-on-dark-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  margin: 0;
  max-width: none;
  padding: var(--s4);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  background: var(--hairline-dark);
}

.step-dial {
  width: 64px;
  height: 54px;
  margin-bottom: var(--s3);
  fill: none;
  stroke-linecap: round;
}

.dial-base {
  stroke: var(--text-on-dark-muted);
  stroke-width: 1.25;
  stroke-dasharray: 2 4;
}

.dial-arc {
  stroke: var(--accent-light);
  stroke-width: 4;
}

.dial-pivot {
  fill: var(--text-on-dark);
  stroke: none;
}

.step-num {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--s1);
}

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

.step-text {
  font-size: var(--fs-sm);
  margin-bottom: 0;
  max-width: none;
}

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s4);
}

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

.service-card {
  display: block;
  padding: var(--s5) var(--s4) var(--s4);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}

a.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.icon-tile {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent-deep);
  margin-bottom: var(--s3);
}

.icon-tile svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.service-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: none;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s4);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Detailed service rows (services.html) */
.service-row-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
}

.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s5);
  margin: 0;
  max-width: none;
  padding: var(--s5);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.service-row-head .service-title {
  margin-bottom: 0;
}

.service-row-body p {
  color: var(--text-muted);
}

.service-row-body p:last-child {
  margin-bottom: 0;
}

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s1);
}

.tick-list li {
  position: relative;
  padding-left: var(--s4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  max-width: none;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 7px;
  border-top: 1.5px solid var(--accent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* --------------------------------------------------------------------------
   9. Two-column split band + practice card
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--s6);
}

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

.split-figure {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
  padding: var(--s4) var(--s4) var(--s5);
}

.panel-back {
  position: absolute;
  inset: 0 var(--s5) var(--s6) 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transform: rotate(-3deg);
}

.card-practice {
  position: relative;
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.monogram {
  width: 62px;
  height: 62px;
  margin: 0 auto var(--s3);
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s1);
  max-width: none;
}

.card-meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0 0 var(--s3);
  max-width: none;
}

.card-abn {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  max-width: none;
}

/* --------------------------------------------------------------------------
   10. Factual credentials strip
   -------------------------------------------------------------------------- */
.credentials {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow-sm);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.cred-item {
  margin: 0;
  max-width: none;
  padding: 0 var(--s3);
  border-left: 1px solid var(--border);
}

.cred-item:first-child {
  border-left: 0;
}

.cred-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s1);
}

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

/* --------------------------------------------------------------------------
   11. CTA strip
   -------------------------------------------------------------------------- */
.cta-band {
  background-color: var(--surface-2);
  background-image: radial-gradient(60% 120% at 50% 0%, var(--accent-glow-soft), transparent 70%);
  border-top: 1px solid var(--border);
  padding: var(--section-y) 0;
}

.cta-inner {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
}

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

.cta-text {
  color: var(--text-muted);
  margin: 0 auto var(--s5);
  font-size: var(--fs-lead);
}

/* --------------------------------------------------------------------------
   12. Legal pages
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s6);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--s6) + var(--s3));
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s2);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s1);
}

.toc-list li {
  margin: 0;
  max-width: none;
}

.toc-list a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  scroll-margin-top: var(--s7);
}

.prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

.prose p,
.prose li {
  color: var(--text-muted);
}

.updated {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-tint);
  padding: var(--s1) var(--s3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--s5);
}

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

.contact-card {
  padding: var(--s5) var(--s4);
  background: var(--primary);
  background-image: radial-gradient(70% 90% at 90% 0%, var(--accent-glow), transparent 62%);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-card h2 {
  color: var(--text-on-dark);
  font-size: var(--fs-h3);
}

.contact-card p {
  color: var(--text-on-dark-muted);
  font-size: var(--fs-sm);
}

.contact-item {
  padding-top: var(--s3);
  margin-top: var(--s3);
  border-top: 1px solid var(--hairline-dark);
}

.contact-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--s1);
}

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

a.contact-value:hover {
  color: var(--accent-light);
}

.form {
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.field {
  display: grid;
  gap: var(--s1);
  margin-bottom: var(--s4);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}

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

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

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

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

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

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--primary-900);
  background-image: linear-gradient(180deg, var(--primary) 0%, var(--primary-900) 100%);
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--hairline-dark);
  font-size: var(--fs-sm);
}

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

.footer-col .brand {
  color: var(--text-on-dark);
  margin-bottom: var(--s3);
}

.footer-title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--s3);
}

.footer-blurb {
  color: var(--text-on-dark-muted);
  margin-bottom: var(--s3);
  max-width: 40ch;
}

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

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}

.footer-links li {
  margin: 0;
  max-width: none;
}

.footer-links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color var(--speed) ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  background: var(--primary-900);
}

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

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

.footer-legal li {
  margin: 0;
  max-width: none;
}

.footer-legal a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .cred-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s5) var(--s4);
  }

  .cred-item:nth-child(odd) {
    border-left: 0;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .toc {
    position: static;
  }

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

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

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    padding: var(--s3) 0 var(--s2);
    border-top: 1px solid var(--hairline);
    margin-top: var(--s2);
  }

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

  .nav-inner.open .icon-menu {
    display: none;
  }

  .nav-inner.open .icon-close {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .nav-link::after {
    bottom: 0;
    right: auto;
    width: 28px;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .hero-inner,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-title,
  .page-title {
    max-width: none;
  }

  .hero-figure,
  .split-figure {
    max-width: 340px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: var(--s3);
    padding: var(--s4);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s5);
    padding-top: var(--s5);
  }

  .footer-bottom .container {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .cred-grid {
    grid-template-columns: 1fr;
  }

  .cred-item {
    border-left: 0;
    padding: 0;
  }

  .btn {
    width: 100%;
  }

  .nav-cta.btn {
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   16. Motion preferences
   -------------------------------------------------------------------------- */
@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,
  a.service-card:hover {
    transform: none;
  }
}

@media print {
  .navbar,
  .cta-band,
  .hero-figure,
  .split-figure {
    display: none;
  }
}
