/* =============================================================
   Avalon Dental Care, Kalamunda - Phase 4 mockup stylesheet
   Implements 03-design/design-system.md exactly.
   Typography:  Newsreader (display) + Figtree (body)
   Palette:     Kalamunda jarrah-marri hills (forest / jarrah-wood / paper)
   Motif:       The Central Court ridgeline (flat rule + one upward notch)
   Hard rule:   border-radius: 0 on every element.
   ============================================================= */

/* -------------------------------------------------------------
   5. Root token block
   ------------------------------------------------------------- */
:root {
  /* ---- Colour: raw palette ---- */
  --paper:            #F6F1E7;
  --paper-deep:       #EFE7D6;
  --surface:          #FFFFFF;
  --jarrah-canopy:    #1F3A2E;
  --forest-600:       #2E5742;
  --forest-400:       #5A7E6B;
  --jarrah-wood:      #8A4B2F;
  --jarrah-wood-deep: #6E3A23;
  --ink-raw:          #23271F;
  --muted-raw:        #5C5F55;
  --line-raw:         #D9CFBC;
  --line-strong:      #C2B59B;
  --sand:             #E4D7BD;

  /* status */
  --success:          #2E5742;
  --warning:          #9A6B12;
  --error:            #9B2D20;
  --emergency:        #8A4B2F;

  /* ---- Colour: semantic tokens ---- */
  --bg:            var(--paper);
  --bg-alt:        var(--paper-deep);
  --bg-invert:     var(--jarrah-canopy);
  --surface-color: var(--surface);
  --ink:           var(--ink-raw);
  --ink-invert:    var(--paper);
  --heading:       var(--jarrah-canopy);
  --muted:         var(--muted-raw);
  --muted-invert:  var(--forest-400);
  --accent:        var(--forest-600);
  --accent-hover:  var(--jarrah-canopy);
  --accent-warm:   var(--jarrah-wood);
  --accent-warm-pressed: var(--jarrah-wood-deep);
  --line:          var(--line-raw);
  --line-invert:   var(--forest-400);

  /* ---- Type families ---- */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Type scale (fluid, clamped to the breakpoint targets) ---- */
  --fs-display:  clamp(2.375rem, 1.55rem + 3.7vw, 4rem);       /* 38 -> 64 */
  --fs-h1:       clamp(1.9375rem, 1.45rem + 2.2vw, 3rem);      /* 31 -> 48 */
  --fs-h2:       clamp(1.625rem, 1.35rem + 1.25vw, 2.25rem);   /* 26 -> 36 */
  --fs-h3:       clamp(1.3125rem, 1.16rem + 0.7vw, 1.6875rem); /* 21 -> 27 */
  --fs-h4:       clamp(1.1875rem, 1.13rem + 0.25vw, 1.3125rem);/* 19 -> 21 */
  --fs-h5:       1.125rem;   /* 18 */
  --fs-h6:       0.9375rem;  /* 15, used uppercase */
  --fs-lead:     clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); /* 18 -> 21 */
  --fs-body:     clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);  /* 17 -> 18 */
  --fs-small:    0.9375rem;  /* 15 */
  --fs-xs:       0.8125rem;  /* 13 */
  --fs-overline: 0.8125rem;  /* 13, uppercase */

  /* line-heights */
  --lh-display: 1.05;
  --lh-h1: 1.10;  --lh-h2: 1.15;  --lh-h3: 1.25;  --lh-h4: 1.30;
  --lh-lead: 1.55; --lh-body: 1.65; --lh-tight: 1.2;

  /* tracking */
  --ls-display: -0.02em;
  --ls-h1: -0.015em; --ls-h2: -0.01em; --ls-h3: -0.005em;
  --ls-caps: 0.04em; --ls-overline: 0.14em;

  /* weights */
  --w-regular: 400; --w-medium: 500; --w-semibold: 600; --w-bold: 700;

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

  /* ---- Layout ---- */
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: 24px;

  /* ---- Borders / elevation ---- */
  --border-width: 1px;
  --border: 1px solid var(--line);
  --border-strong: 1px solid var(--line-strong);
  --shadow-1: 0 1px 0 0 var(--line);
  --shadow-2: 0 2px 8px rgba(31,58,46,0.08);
  --shadow-focus: 0 0 0 3px rgba(46,87,66,0.35);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 260ms;

  /* ---- Z-index ---- */
  --z-header: 100;
  --z-drawer: 200;
  --z-skiplink: 300;
}

@media (min-width: 768px) {
  :root { --gutter: 48px; }
}

/* -------------------------------------------------------------
   6. Base / reset layer
   ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;   /* HARD CONSTRAINT: sharp corners everywhere */
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--w-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-color: var(--accent-warm); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-family: var(--font-display); font-optical-sizing: auto; color: var(--heading); margin: 0 0 var(--space-4); }
h4, h5, h6 { font-family: var(--font-body); color: var(--heading); margin: 0 0 var(--space-3); }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--w-medium); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: var(--w-medium); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--w-medium); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: var(--w-semibold); }
h5 { font-size: var(--fs-h5); line-height: 1.35; font-weight: var(--w-semibold); }
h6 { font-size: var(--fs-h6); line-height: 1.4; font-weight: var(--w-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); }
p  { margin: 0 0 var(--space-5); max-width: 68ch; }
ul, ol { line-height: var(--lh-body); }
strong, b { font-weight: var(--w-semibold); }

.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink); }
.small { font-size: var(--fs-small); }
.xs { font-size: var(--fs-xs); }
.muted { color: var(--muted); }
.overline {
  display: inline-block; font-size: var(--fs-overline); font-weight: var(--w-bold);
  text-transform: uppercase; letter-spacing: var(--ls-overline); color: var(--accent-warm);
  margin-bottom: var(--space-3);
}
.display { font-family: var(--font-display); font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: var(--w-semibold); color: var(--heading); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--space-8); }
@media (min-width: 768px) { .section { padding-block: var(--space-9); } }
.section--alt { background: var(--bg-alt); }
.section--invert { background: var(--bg-invert); color: var(--ink-invert); }
.section--invert h1, .section--invert h2, .section--invert h3 { color: var(--ink-invert); }
.section--invert p { color: var(--ink-invert); }
.section--invert .lead { color: var(--ink-invert); }
.section--invert .muted { color: var(--muted-invert); }
.section--invert a { color: var(--paper); }

.section__head { max-width: 64ch; margin-bottom: var(--space-7); }
.text-narrow { max-width: 62ch; }

/* simple utility grid for two-up bands */
.split { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-9); } }

/* -------------------------------------------------------------
   6.1 Accessibility primitives - HARD CONSTRAINT
   ------------------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--space-4); top: -120px;
  z-index: var(--z-skiplink);
  background: var(--jarrah-canopy); color: var(--paper);
  padding: var(--space-3) var(--space-5);
  font-weight: var(--w-semibold);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------
   3. Signature motif - the Central Court ridgeline
   ------------------------------------------------------------- */
.divider {
  position: relative;
  height: 1px;
  background: var(--line);
  border: 0;
  margin: var(--space-9) 0;
}
.divider::before {
  content: "";
  position: absolute;
  left: 8%;
  bottom: 0;
  width: 28px;
  height: 10px;
  border-left: 2px solid var(--accent-warm);
  border-top: 2px solid var(--accent-warm);
  border-right: 2px solid var(--accent-warm);
  background: transparent;
}

.heading-mark {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--line-strong);
  position: relative;
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
}
.heading-mark::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 0;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--accent-warm);
  border-top: 2px solid var(--accent-warm);
  border-right: 2px solid var(--accent-warm);
}
.section--invert .heading-mark { background: var(--line-invert); }
.section--invert .heading-mark::after { border-color: var(--sand); }

/* -------------------------------------------------------------
   7.1 Header / navigation
   ------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  transition: min-height var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); min-height: 72px;
  transition: min-height var(--dur) var(--ease);
}
.header.is-condensed .header__bar { min-height: 60px; }
.header.is-condensed { box-shadow: 0 2px 8px rgba(31,58,46,0.10); }
.header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.header__logo img { height: 40px; width: auto; transition: height var(--dur) var(--ease); }
.header.is-condensed .header__logo img { height: 34px; }

.nav { display: none; }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: var(--space-5); }
}
.nav__link {
  font-weight: var(--w-medium); color: var(--ink); text-decoration: none;
  padding: var(--space-3) var(--space-2);
  min-height: 44px; display: inline-flex; align-items: center;
  position: relative;
}
.nav__link[aria-current="page"]::after,
.nav__link:hover::after,
.nav__group:hover .nav__group-trigger::after,
.nav__group:focus-within .nav__group-trigger::after {
  content: ""; position: absolute; left: var(--space-2); right: var(--space-2);
  bottom: 6px; height: 2px; background: var(--accent-warm);
}

.nav__group { position: relative; }
.nav__group-trigger {
  display: inline-flex; align-items: center; gap: var(--space-1);
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem;
}
.nav__group-trigger svg { width: 12px; height: 12px; }
.nav__panel {
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: var(--surface-color); border: var(--border);
  box-shadow: var(--shadow-2);
  display: none; padding: var(--space-3);
}
.nav__group:hover .nav__panel,
.nav__group:focus-within .nav__panel { display: block; }
.nav__panel a {
  display: block; padding: var(--space-3) var(--space-4);
  min-height: 44px; color: var(--ink); text-decoration: none;
  font-weight: var(--w-medium);
}
.nav__panel a:hover { background: var(--bg-alt); color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: var(--space-4); }
.header__phone {
  font-weight: var(--w-semibold); color: var(--accent); white-space: nowrap;
  min-height: 44px; display: none; align-items: center; gap: var(--space-2);
  text-decoration: none;
}
@media (min-width: 600px) { .header__phone { display: inline-flex; } }
.header__phone svg { width: 18px; height: 18px; }
.header__book { display: none; }
@media (min-width: 1080px) { .header__book { display: inline-flex; } }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: var(--border-strong);
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
@media (min-width: 1080px) { .nav-toggle { display: none; } }

/* -------------------------------------------------------------
   Mobile drawer + scrim
   ------------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; background: rgba(31,58,46,0.42);
  z-index: var(--z-drawer); opacity: 0; visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
}
.scrim[data-open="true"] { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px);
  background: var(--paper); z-index: var(--z-drawer);
  border-left: var(--border-strong);
  transform: translateX(100%); transition: transform var(--dur-slow) var(--ease);
  padding: var(--space-6); overflow-y: auto;
}
.drawer[data-open="true"] { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.drawer__close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: var(--border-strong); cursor: pointer; color: var(--ink);
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer a {
  display: block; padding: var(--space-4) 0; min-height: 44px;
  border-bottom: var(--border); font-size: 1.0625rem; color: var(--ink);
  text-decoration: none; font-weight: var(--w-medium);
}
.drawer a[aria-current="page"] { color: var(--accent); }
.drawer__sub { padding-left: var(--space-4); }
.drawer__sub a { font-size: 1rem; font-weight: var(--w-regular); }
.drawer__label {
  display: block; padding-top: var(--space-4); font-size: var(--fs-h6);
  text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--muted);
}
.drawer__cta { margin-top: var(--space-6); display: grid; gap: var(--space-3); }

/* Sticky mobile call/book bar */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper); border-top: var(--border-strong);
}
.mobile-cta > a {
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  gap: var(--space-2); font-weight: var(--w-semibold); text-decoration: none;
}
.mobile-cta > a:first-child { color: var(--accent); border-right: var(--border); }
.mobile-cta > a:last-child { background: var(--accent); color: #fff; }
.mobile-cta svg { width: 18px; height: 18px; }
@media (min-width: 1080px) { .mobile-cta { display: none; } }
/* keep page content clear of the sticky bar on mobile */
@media (max-width: 1079px) { body { padding-bottom: 48px; } }

/* -------------------------------------------------------------
   7.2 Hero
   ------------------------------------------------------------- */
.hero { background: var(--bg); padding-block: var(--space-9) var(--space-8); }
.hero__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 768px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-9); } }
.hero h1 {
  font-size: var(--fs-display); line-height: var(--lh-display);
  letter-spacing: var(--ls-display); font-weight: var(--w-semibold);
  margin-bottom: var(--space-2);
}
.hero__sub { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink); margin-block: var(--space-5) var(--space-6); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero__media { position: relative; border: var(--border-strong); }
.hero__media img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
.hero__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(31,58,46,0.86); color: var(--paper);
  font-size: var(--fs-xs); padding: var(--space-2) var(--space-3);
}

/* compact page hero (interior pages) */
.page-hero { background: var(--bg-alt); border-bottom: var(--border); padding-block: var(--space-7) var(--space-8); }
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: var(--space-3); }
.page-hero p { max-width: 62ch; }

/* -------------------------------------------------------------
   7.3 Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  font-family: var(--font-body); font-size: 1rem; font-weight: var(--w-semibold);
  line-height: 1; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--primary:active { background: var(--jarrah-canopy); }

.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--accent); color: #fff; }

.btn--warm { background: var(--accent-warm); color: #fff; border-color: var(--accent-warm); }
.btn--warm:hover { background: var(--accent-warm-pressed); border-color: var(--accent-warm-pressed); color: #fff; }

.section--invert .btn--secondary { color: var(--paper); border-color: var(--forest-400); }
.section--invert .btn--secondary:hover { background: var(--paper); color: var(--jarrah-canopy); }

.btn--block { width: 100%; }
.btn--lg { min-height: 52px; padding: 0 var(--space-7); font-size: 1.0625rem; }

/* -------------------------------------------------------------
   7.4 Service cards
   ------------------------------------------------------------- */
.card {
  background: var(--surface-color); border: var(--border);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); transform: translateY(-2px); }
.card__icon { width: 48px; height: 48px; }
.card__icon img { width: 100%; height: 100%; object-fit: contain; }
.card__title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--heading); margin: 0; }
.card__body { color: var(--ink); margin: 0; }
.card__link {
  margin-top: auto; align-self: flex-start;
  font-weight: var(--w-semibold); color: var(--accent); text-decoration: none;
  padding-top: var(--space-3); position: relative; min-height: 28px;
  display: inline-flex; align-items: center;
}
.card__link::after {
  content: ""; position: absolute; left: 0; bottom: 4px; width: 0; height: 2px;
  background: var(--accent-warm); transition: width var(--dur) var(--ease);
}
.card:hover .card__link::after,
.card__link:focus-visible::after { width: 100%; }

.cards-grid { display: grid; gap: var(--space-5); }
@media (min-width: 480px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* -------------------------------------------------------------
   7.5 Category cards (services hub)
   ------------------------------------------------------------- */
.cat-card { background: var(--surface-color); border: var(--border); display: flex; flex-direction: column; transition: box-shadow var(--dur) var(--ease); }
.cat-card:hover { box-shadow: var(--shadow-2); }
.cat-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--border); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.03); }
/* icon-only media variant (custom Group icons centred on a band) */
.cat-card__media--icon { background: var(--jarrah-canopy); }
.cat-card__media--icon img { width: 76px; height: 76px; object-fit: contain; }
.cat-card:hover .cat-card__media--icon img { transform: none; }
.cat-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.cat-card__title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--heading); margin: 0; }
.cat-card__body p { margin: 0; }
.cat-card__link {
  margin-top: auto; align-self: flex-start; font-weight: var(--w-semibold);
  color: var(--accent); text-decoration: none; min-height: 28px;
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.cat-card__link:hover { gap: var(--space-3); }
.cat-grid { display: grid; gap: var(--space-5); }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1080px) { .cat-grid { grid-template-columns: repeat(3,1fr); } }

/* -------------------------------------------------------------
   7.7 Testimonials / reviews   (no fabricated quotes - see REMAINING-ITEMS)
   ------------------------------------------------------------- */
.quote {
  background: var(--surface-color); border: var(--border);
  border-left: 4px solid var(--accent-warm);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.quote__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--line-strong); height: 1.4rem; }
.quote__text { font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.45; color: var(--ink); font-weight: var(--w-regular); }
.quote__cite { display: flex; align-items: baseline; gap: var(--space-2); font-style: normal; }
.quote__name { font-weight: var(--w-semibold); color: var(--heading); }
.quote__source { font-size: var(--fs-small); color: var(--muted); }
.quotes-grid { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .quotes-grid { grid-template-columns: repeat(2,1fr); } }

/* Honest "reviews coming" panel for the mockup */
.review-pending {
  background: var(--surface-color); border: var(--border-strong);
  border-left: 4px solid var(--accent); padding: var(--space-6);
}
.review-pending h3 { margin-bottom: var(--space-3); }

/* -------------------------------------------------------------
   7.8 Forms
   ------------------------------------------------------------- */
.form { max-width: 640px; }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-weight: var(--w-medium); color: var(--heading); font-size: var(--fs-small); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  min-height: 48px; padding: var(--space-3) var(--space-4);
  background: var(--surface-color); border: 1px solid var(--line-strong);
  width: 100%;
}
.field textarea { min-height: 132px; padding: var(--space-4); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field--error input, .field--error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--fs-small); }
.field__hint { color: var(--muted); font-size: var(--fs-small); }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
fieldset { border: var(--border); padding: var(--space-5); margin: 0 0 var(--space-6); }
legend { font-weight: var(--w-semibold); color: var(--heading); padding-inline: var(--space-2); }

/* -------------------------------------------------------------
   7.9 Footer
   ------------------------------------------------------------- */
.footer { background: var(--bg-invert); color: var(--ink-invert); padding-block: var(--space-9) var(--space-6); }
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--sand); }
.footer__grid { display: grid; gap: var(--space-7); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__logo img { height: 44px; width: auto; margin-bottom: var(--space-4); }
.footer__brandline { color: var(--muted-invert); max-width: 32ch; margin-bottom: var(--space-4); }
.footer__contact { display: grid; gap: var(--space-2); font-size: var(--fs-small); }
.footer__contact a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__col h2 { font-family: var(--font-body); font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--sand); margin-bottom: var(--space-4); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.footer__col li a { min-height: 28px; display: inline-flex; align-items: center; }
.footer__funds { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.footer__fund-tag { font-size: var(--fs-xs); font-weight: var(--w-medium); color: var(--jarrah-canopy); background: var(--sand); padding: var(--space-1) var(--space-3); min-height: 28px; display: inline-flex; align-items: center; }
.footer__hours { font-size: var(--fs-small); color: var(--muted-invert); display: grid; gap: var(--space-1); margin-top: var(--space-3); }
.footer__hours span { color: var(--paper); }
.footer__social { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); min-height: 44px; }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom {
  border-top: 1px solid var(--line-invert); margin-top: var(--space-8); padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-size: var(--fs-small); color: var(--muted-invert);
}
.footer__ack { max-width: 62ch; margin-bottom: var(--space-4); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* -------------------------------------------------------------
   7.10 Trust strip
   ------------------------------------------------------------- */
.trust-strip { background: var(--bg-alt); border-block: var(--border); }
.trust-strip ul { list-style: none; margin: 0; padding: var(--space-4) 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: center; }
.trust-strip li { font-size: var(--fs-small); font-weight: var(--w-medium); color: var(--muted); display: inline-flex; align-items: center; gap: var(--space-2); }
.trust-strip li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* -------------------------------------------------------------
   7.11 Emergency callout
   ------------------------------------------------------------- */
.emergency { background: var(--accent-warm); color: #fff; }
.emergency .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-7); }
.emergency h2 { color: #fff; margin: 0 0 var(--space-2); }
.emergency p { color: #fff; margin: 0; max-width: 52ch; }
.emergency__text { flex: 1 1 380px; }
.emergency .btn--secondary { color: #fff; border-color: #fff; }
.emergency .btn--secondary:hover { background: #fff; color: var(--accent-warm-pressed); }

/* -------------------------------------------------------------
   7.12 Hours table
   ------------------------------------------------------------- */
.hours { width: 100%; border-collapse: collapse; max-width: 480px; }
.hours caption { text-align: left; font-weight: var(--w-semibold); color: var(--heading); margin-bottom: var(--space-3); }
.hours th, .hours td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: var(--border); }
.hours th { font-weight: var(--w-medium); color: var(--heading); }
.hours td { text-align: right; }
.hours tr:last-child td, .hours tr:last-child th { border-bottom: 0; }
.hours .closed { color: var(--muted); }

/* -------------------------------------------------------------
   7.13 Breadcrumbs
   ------------------------------------------------------------- */
.breadcrumb { font-size: var(--fs-xs); color: var(--muted); padding-block: var(--space-4); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumb li::after { content: "/"; color: var(--line-strong); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* -------------------------------------------------------------
   7.14 Tags / badges
   ------------------------------------------------------------- */
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: var(--space-1) var(--space-3); background: var(--sand); color: var(--jarrah-canopy); font-size: var(--fs-xs); font-weight: var(--w-medium); }

/* -------------------------------------------------------------
   Content helpers: lists, info cards, contact panel, map
   ------------------------------------------------------------- */
.prose h2 { margin-top: var(--space-8); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: var(--space-5); margin: 0 0 var(--space-5); }
.prose li { margin-bottom: var(--space-3); max-width: 66ch; }

.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; max-width: 64ch; }
.check-list li::before {
  content: ""; flex: none; margin-top: 0.45em;
  width: 14px; height: 7px; border-left: 2px solid var(--accent-warm);
  border-top: 2px solid var(--accent-warm); border-right: 2px solid var(--accent-warm);
}

.info-card { background: var(--surface-color); border: var(--border); padding: var(--space-6); }
.info-card h3 { margin-top: 0; }
.info-grid { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-panel { background: var(--surface-color); border: var(--border); padding: var(--space-6); display: grid; gap: var(--space-4); }
.contact-panel dl { margin: 0; display: grid; gap: var(--space-3); }
.contact-panel dt { font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--muted); }
.contact-panel dd { margin: 0; font-weight: var(--w-medium); }
.contact-panel dd a { font-weight: var(--w-semibold); }

/* Map: a CSS-only schematic carrying the ridgeline location marker (no third-party embed in the mockup) */
.map {
  position: relative; border: var(--border-strong); background: var(--paper-deep);
  aspect-ratio: 16 / 10; overflow: hidden;
  background-image:
    linear-gradient(0deg, var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map__band { position: absolute; left: 0; right: 0; height: 14%; background: var(--forest-400); opacity: 0.35; }
.map__band--road { top: 46%; height: 7%; background: var(--line-strong); opacity: 0.9; }
.map__band--road2 { top: 0; bottom: 0; left: 38%; right: auto; width: 7%; height: 100%; background: var(--line-strong); opacity: 0.9; }
.map__pin { position: absolute; left: 41.5%; top: 49.5%; transform: translate(-50%, -100%); text-align: center; }
.map__pin-mark { width: 18px; height: 10px; border-left: 3px solid var(--accent-warm); border-top: 3px solid var(--accent-warm); border-right: 3px solid var(--accent-warm); margin: 0 auto; }
.map__pin-dot { width: 6px; height: 6px; background: var(--accent); margin: 2px auto 0; }
.map__label { position: absolute; left: var(--space-4); bottom: var(--space-4); background: var(--surface-color); border: var(--border); padding: var(--space-2) var(--space-3); font-size: var(--fs-xs); font-weight: var(--w-medium); max-width: 70%; }

/* Team feature block */
.team-feature { display: grid; gap: var(--space-7); }
@media (min-width: 768px) { .team-feature { grid-template-columns: 280px 1fr; align-items: start; gap: var(--space-9); } }
.team-feature__photo { border: var(--border-strong); background: var(--bg-alt); }
.team-feature__photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.team-feature__role { color: var(--accent); font-weight: var(--w-semibold); margin-bottom: var(--space-4); }

/* CTA band */
.cta-band { background: var(--bg-alt); border-block: var(--border); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-8); }
.cta-band__text { flex: 1 1 360px; }
.cta-band h2 { margin-bottom: var(--space-2); }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Confirm flag (mockup-only, marks copy needing client sign-off) */
.confirm-flag {
  display: inline-block; font-size: var(--fs-xs); font-weight: var(--w-bold);
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--warning); border: 1px solid var(--warning);
  padding: 1px var(--space-2); margin-left: var(--space-2); vertical-align: middle;
}

/* -------------------------------------------------------------
   Scroll-reveal (single, user-load-triggered, motion-safe)
   ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* If JS is off, never leave content hidden */
.no-js .reveal { opacity: 1; transform: none; }

/* -------------------------------------------------------------
   10. Print stylesheet
   ------------------------------------------------------------- */
@media print {
  .header, .footer, .mobile-cta, .nav-toggle, .drawer, .scrim, .hero__media, .emergency, .cta-band { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; padding-bottom: 0; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .section { padding-block: 12pt; }
}
