/* Kestrel Test Roofing
   Direction: classic and established. Deep heritage green, a sharp terracotta accent
   taken from half-round ridge tiles, Libre Caslon Text with Libre Franklin.
   Signature: a row of ridge tiles caps the hero and recurs as a ridge line through the site. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --primary:      #1f3a2e;   /* heritage green, dominant */
  --primary-mid:  #2d5242;
  --primary-dark: #142a20;
  --accent:       #b5502f;   /* ridge tile terracotta, the one sharp accent */
  --accent-mid:   #cf6a45;
  --accent-dark:  #8e3b20;

  /* Neutrals */
  --bg:         #e8ebe5;     /* limestone, faintly green */
  --surface:    #ffffff;
  --border:     #c9cfc7;
  --text:       #1d2a24;
  --text-soft:  #46524b;
  --text-muted: #5f6a63;
  --on-dark:    #eef1ea;
  --on-dark-soft: #c3cec6;
  --mortar:     #8c8f86;

  /* Typography */
  --font-display: 'Libre Caslon Text', Georgia, serif;
  --font-body:    'Libre Franklin', 'Helvetica Neue', sans-serif;

  /* Spacing and shape */
  --section-pad: clamp(60px, 8vw, 120px);
  --container:   1200px;
  --radius:      3px;
  --radius-lg:   6px;

  /* base.css hooks */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-text: var(--text);
  --color-muted: var(--text-soft);
  --color-accent: var(--accent);
  --color-accent-text: #ffffff;
  --color-line: var(--border);
  --focus: var(--primary-dark);

  /* Ridge tile drawn once, reused as a repeating ridge line */
  --ridge-line: radial-gradient(circle at 50% 100%, #d27650 0 6px, var(--accent) 6.5px 9.5px, var(--accent-dark) 10px 11px, transparent 11.5px);
}

/* ---------- Base type ---------- */
body { font-family: var(--font-body); color: var(--text); background: var(--bg); }
p { line-height: 1.7; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}
h1, h2 { font-weight: 400; }
h3 { font-weight: 700; font-size: var(--step-1); }
a { color: inherit; }
.container { padding-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--on-dark); }
.on-dark .btn-outline { color: var(--on-dark); border-color: var(--on-dark-soft); }
.on-dark .btn-outline:hover { background: var(--on-dark); color: var(--primary); border-color: var(--on-dark); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark { --focus: #f3d9a2; }

/* ---------- Header ---------- */
.skip-link { background: var(--surface); color: var(--text); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--primary-dark);
  color: var(--on-dark);
  border-bottom: 1px solid #0d1d15;
  --focus: #f3d9a2;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--on-dark);
  min-width: 0;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand:hover { color: #fff; }

.nav-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  background: transparent;
  color: var(--on-dark);
  border: 1px solid #4b6a5b;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.nav-toggle:hover { background: var(--primary-mid); border-color: var(--on-dark-soft); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-links {
  list-style: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  background-color: var(--primary-dark);
  border-top: 1px solid #0d1d15;
  border-bottom: 3px solid var(--accent);
  padding: 0.5rem var(--gutter) 1rem;
}
.nav-links a {
  display: block;
  padding: 0.85rem 0.25rem;
  text-decoration: none;
  color: var(--on-dark);
  font-weight: 500;
  border-bottom: 1px solid #2b4538;
  transition: color 0.2s;
}
.nav-links li:last-child a { border-bottom: 0; }
.nav-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.3em; }
.nav-links a[aria-current="page"] { color: #fff; font-weight: 700; }
.nav-links a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 14px; height: 7px;
  margin-right: 0.6rem;
  vertical-align: 0.2em;
  border-radius: 7px 7px 0 0;
  background: var(--accent-mid);
}

@media (min-width: 768px) {
  .brand { font-size: 1.15rem; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    border: 0;
    background: none;
    gap: clamp(0.75rem, 2vw, 1.75rem);
  }
  .nav-links a { border: 0; padding: 0.5rem 0.1rem; position: relative; font-size: 0.97rem; }
  .nav-links a[aria-current="page"]::before { display: none; }
  .nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.35rem;
    width: 16px; height: 8px;
    transform: translateX(-50%);
    border-radius: 8px 8px 0 0;
    background: var(--accent-mid);
  }
}

/* ---------- Ridge tiles ---------- */
/* Static ridge line, used to cap panels, sections and the footer */
.ridge {
  height: 14px;
  background: var(--ridge-line) 0 100% / 22px 11px repeat-x;
  border-bottom: 3px solid var(--mortar);
  box-sizing: content-box;
}
.ridge-short {
  display: block;
  width: 110px;
  height: 11px;
  margin: 1rem auto 0;
  background: var(--ridge-line) 0 100% / 22px 11px repeat-x;
  border-bottom: 2px solid var(--mortar);
  box-sizing: content-box;
}

/* Animated row on the home hero, one tile per span */
.ridge-row {
  display: flex;
  align-items: flex-end;
  height: clamp(20px, 3vw, 34px);
  border-bottom: 4px solid var(--mortar);
  box-sizing: content-box;
  overflow: hidden;
  padding-top: 2px;
}
.tile {
  flex: 1 1 0;
  height: 100%;
  margin-left: -2px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, #db7f58 0%, var(--accent) 45%, var(--accent-dark) 100%);
  box-shadow: inset 3px 0 0 rgba(60, 20, 8, 0.28), inset -1px 2px 0 rgba(255, 210, 180, 0.35);
  animation: tile-drop 0.48s cubic-bezier(0.25, 1.35, 0.5, 1) both;
  animation-delay: calc(0.05s + var(--i, 0) * 0.038s);
}
.tile:first-child { margin-left: 0; }
.tile:nth-child(n+13) { display: none; }
@media (min-width: 768px) { .tile:nth-child(n+13) { display: block; } }

@keyframes tile-drop {
  from { transform: translateY(-140%); }
  to   { transform: translateY(0); }
}

/* Entrance for hero content: movement only, always fully opaque */
.anim { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: var(--d, 0s); }
@keyframes rise {
  from { transform: translateY(1.1em); }
  to   { transform: none; }
}

/* Hero house outline draws itself on load; final state is the complete outline */
.crest .draw { animation: draw-line 1.3s ease-out 0.15s backwards; }
.crest .draw.d2 { animation-delay: 0.7s; }
@keyframes draw-line {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to   { stroke-dasharray: 1; stroke-dashoffset: 0; }
}

/* ---------- Home hero ---------- */
.hero {
  background-color: var(--primary);
  background-image:
    linear-gradient(180deg, rgba(20, 42, 32, 0) 60%, rgba(20, 42, 32, 0.55) 100%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.025) 46px 47px);
  color: var(--on-dark);
  text-align: center;
}
.hero-inner {
  padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2.75rem, 7vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.crest { width: clamp(84px, 14vw, 118px); height: auto; margin-bottom: 1.25rem; }
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; font-weight: 400; }
.wordmark .wm-main {
  font-size: clamp(2.5rem, 1.5rem + 5vw, 5.4rem);
  line-height: 1.15;
  color: #fff;
}
.wordmark .wm-sub {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  font-style: italic;
  color: var(--on-dark-soft);
  line-height: 1.3;
}
.wordmark .wm-sub::before, .wordmark .wm-sub::after {
  content: "";
  width: clamp(2rem, 6vw, 4.5rem);
  height: 1px;
  background: var(--on-dark-soft);
}
.hero-actions .btn { min-width: min(100%, 15.5rem); }
.hero-lede {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--on-dark);
}
.hero-actions { justify-content: center; margin-top: 2rem; gap: 0.75rem; }
.hero-area { margin-top: 1.25rem; font-size: var(--step--1); color: var(--on-dark-soft); }

/* Framed image band beneath the hero */
.feature-band { background: var(--primary); padding-bottom: 0; }
.feature-band .frame { position: relative; transform: translateY(0); }
/* Roof-pitch frame: same gable shape as the service cards */
.frame, .drawing {
  --frame-pitch: clamp(1.75rem, 6vw, 3.25rem);
  border: solid var(--surface);
  border-width: 0 6px 6px;
  padding-top: var(--frame-pitch);
  background-color: var(--surface);
  clip-path: polygon(50% 0, 100% var(--frame-pitch), 100% 100%, 0 100%, 0 var(--frame-pitch));
}
.frame img { width: 100%; height: clamp(200px, 42vw, 460px); max-height: 55vh; object-position: center 55%; }
/* Home photo: crop in on the slates and roofline, trees pushed out of frame */
.band-split .frame { overflow: hidden; }
.band-split .frame img { height: clamp(15rem, 46vw, 460px); object-position: 50% 100%; transform: scale(1.3); transform-origin: 50% 100%; }
.band-split { background: linear-gradient(180deg, var(--primary) 50%, var(--bg) 50%); }

/* ---------- Inner page heroes ---------- */
.page-hero {
  background-color: var(--primary);
  color: var(--on-dark);
  text-align: center;
}
.page-hero .container { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.75rem, 6vw, 4.75rem); }
.page-hero h1 { color: #fff; font-size: var(--step-5); }
.page-hero p { margin: 1rem auto 0; color: var(--on-dark); font-size: var(--step-1); max-width: 38rem; line-height: 1.6; }
.page-hero .ridge-short { margin-bottom: 1.25rem; margin-top: 0; }

/* ---------- Section frame ---------- */
.section { padding-block: var(--section-pad); }
.section-tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section-head { text-align: center; max-width: 44rem; margin-inline: auto; }
.section-head h2 { font-size: var(--step-4); }
.section-head p { margin: 1rem auto 0; color: var(--text-soft); }
.surface { background: var(--surface); }

/* ---------- Terrace of gables (home services) ---------- */
.terrace {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}
.gable {
  --pitch: 4.25rem;
  position: relative;
  background: var(--surface);
  clip-path: polygon(50% 0, 100% var(--pitch), 100% 100%, 0 100%, 0 var(--pitch));
  padding: calc(var(--pitch) + 2.75rem) clamp(1.25rem, 3vw, 2rem) 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gable::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--primary);
}
.gable-icon {
  position: absolute;
  top: calc(var(--pitch) - 1.25rem);
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
}
.gable h3 { font-size: var(--step-2); font-weight: 400; }
.gable p { margin-top: 0.75rem; color: var(--text-soft); }
.gable a {
  margin-top: auto;
  padding-top: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.gable a:hover { color: var(--accent-dark); }
@media (min-width: 900px) {
  .terrace { grid-template-columns: 1fr 1.08fr 1fr; gap: 0.75rem; }
  .gable { min-height: 23rem; }
  .gable.centre { --pitch: 5.5rem; min-height: 26rem; }
}

/* ---------- Statement (home) ---------- */
.statement { background: var(--primary-dark); color: var(--on-dark); text-align: center; }
.statement blockquote, .statement .big {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.45;
  max-width: 46rem;
  margin-inline: auto;
  color: #fff;
}
.statement .small-print { margin: 1.5rem auto 0; color: var(--on-dark-soft); max-width: 36rem; }
.statement .text-link { color: #fff; font-weight: 600; text-decoration-color: var(--accent-mid); text-decoration-thickness: 2px; }

/* ---------- Tile bullet lists ---------- */
.tile-list { list-style: none; display: grid; gap: 0.25rem; }
.tile-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.1rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.tile-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 18px;
  height: 9px;
  border-radius: 9px 9px 0 0;
  background: var(--accent);
  box-shadow: 0 2px 0 var(--mortar);
}

/* Symmetrical two-column list with a central axis */
.signs { margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 768px) {
  .signs { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
}
.signs-note { text-align: center; margin: 2rem auto 0; color: var(--on-dark); }

/* Slate board behind the warning signs, same texture as the About panel */
.slate-board {
  margin-top: clamp(2rem, 4vw, 3rem);
  background-color: #3c4852;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.14)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='44'%3E%3Crect width='48' height='44' fill='%233c4852'/%3E%3Crect x='1' y='1' width='22' height='20' fill='%2345525d'/%3E%3Crect x='25' y='1' width='22' height='20' fill='%23404c57'/%3E%3Crect x='-11' y='23' width='22' height='20' fill='%23414e59'/%3E%3Crect x='13' y='23' width='22' height='20' fill='%2347545f'/%3E%3Crect x='37' y='23' width='22' height='20' fill='%233f4b56'/%3E%3C/svg%3E");
  color: #fff;
}
.slate-board-inner { padding: clamp(0.5rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.75rem); }
.slate-board .signs { margin-top: 0; }
.slate-board .tile-list li { border-bottom-color: rgba(238, 241, 234, 0.22); color: #fff; }
.slate-board .tile-list li::before { box-shadow: 0 2px 0 #1d2a24; }
.slate-board .signs-note { max-width: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: var(--on-dark); text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--step-4); }
.cta-band p { margin: 1rem auto 0; color: var(--on-dark); }
.cta-band .cluster { justify-content: center; margin-top: 1.75rem; }
.cta-band .ridge { margin-top: 0; }

/* ---------- Services page ---------- */
.service-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  list-style: none;
}
.service-index a { color: var(--on-dark); font-weight: 600; text-decoration-color: var(--accent-mid); text-decoration-thickness: 2px; }
.service-index a:hover { color: #fff; }

.service {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  scroll-margin-top: 5rem;
}
.service + .service { margin-top: var(--section-pad); }
.service h2 { font-size: var(--step-4); }
.service .copy > p { margin-top: 1rem; color: var(--text-soft); }
.service .copy h3 { margin-top: 1.75rem; font-size: var(--step-1); }
.service .tile-list { margin-top: 0.5rem; }
.service figure img { width: 100%; height: clamp(220px, 50vw, 420px); max-height: 55vh; }
@media (min-width: 900px) {
  .service { grid-template-columns: 1fr 1fr; }
  .service.flip .media { order: 2; }
}

/* Gutter drawing panel */
.drawing {
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--bg) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 var(--frame-pitch);
  background-clip: padding-box;
  display: grid;
  place-items: center;
  height: clamp(220px, 50vw, 420px);
  max-height: 55vh;
}
.drawing svg { width: 88%; height: 88%; }

/* ---------- About page ---------- */
.about-intro { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-intro h2 { font-size: var(--step-4); }
.about-intro .copy p { margin-top: 1rem; color: var(--text-soft); }
.about-intro .copy p.lead { color: var(--text); font-size: var(--step-1); line-height: 1.6; }
.slate-panel {
  background-color: #3c4852;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.12)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='44'%3E%3Crect width='48' height='44' fill='%233c4852'/%3E%3Crect x='1' y='1' width='22' height='20' fill='%2345525d'/%3E%3Crect x='25' y='1' width='22' height='20' fill='%23404c57'/%3E%3Crect x='-11' y='23' width='22' height='20' fill='%23414e59'/%3E%3Crect x='13' y='23' width='22' height='20' fill='%2347545f'/%3E%3Crect x='37' y='23' width='22' height='20' fill='%233f4b56'/%3E%3C/svg%3E");
  display: grid;
  place-items: center;
  min-height: clamp(240px, 42vw, 400px);
  position: relative;
}
.slate-panel .ridge { position: absolute; top: 0; left: 0; right: 0; }
.slate-panel .plaque {
  background: var(--primary);
  color: var(--on-dark);
  padding: 1.75rem 2rem;
  text-align: center;
  border: 1px solid #4b6a5b;
  outline: 6px solid var(--primary);
  margin: 2.5rem 1rem 1.5rem;
}
.slate-panel .plaque svg { width: 70px; margin: 0 auto 0.75rem; }
.slate-panel .plaque p { font-family: var(--font-display); font-size: var(--step-1); color: #fff; line-height: 1.4; }
.slate-panel .plaque p + p { font-family: var(--font-body); font-size: var(--step--1); color: var(--on-dark-soft); margin-top: 0.4rem; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1.1fr 1fr; } }

.pillars { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.pillar h3 { font-size: var(--step-2); font-weight: 400; }
.pillar p { margin: 0.75rem auto 0; color: var(--text-soft); max-width: 30rem; }
.pillar-divider { display: none; }
@media (min-width: 768px) {
  .pillars { grid-template-columns: 1fr auto 1fr; align-items: start; }
  .pillar-divider { display: block; width: 1px; align-self: stretch; background: var(--border); position: relative; }
  .pillar-divider::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 20px; height: 10px; border-radius: 10px 10px 0 0; background: var(--accent);
  }
}

.service-links { list-style: none; display: grid; gap: 0; margin: clamp(2rem, 4vw, 3rem) auto 0; max-width: 46rem; }
.service-links li { border-top: 1px solid var(--border); }
.service-links li:last-child { border-bottom: 1px solid var(--border); }
.service-links a {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s;
}
.service-links a:hover { background: var(--bg); }
.service-links a { padding-inline: 0.75rem; }
.service-links span { line-height: 1.6; }
.service-links strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.25; color: var(--primary); }
.service-links span { color: var(--text-soft); }
@media (min-width: 768px) {
  .service-links a { grid-template-columns: 16rem 1fr; align-items: baseline; gap: 2rem; padding-inline: 1rem; }
}

/* ---------- Gallery page ---------- */
.example-photo { position: relative; }
.example-photo img { width: 100%; height: clamp(220px, 45vw, 440px); max-height: 55vh; }
.example-label {
  position: absolute;
  left: 1rem;
  top: calc(var(--frame-pitch) + 0.75rem);
  background: var(--primary-dark);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
}
.example-photo figcaption { background: var(--surface); padding: 0.9rem 0.25rem 0.25rem; color: var(--text-soft); font-size: var(--step--1); }

.board-head { margin-top: clamp(3rem, 6vw, 5rem); }
.board {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--primary);
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--primary-dark);
  outline: 8px solid var(--primary-dark);
  outline-offset: -8px;
}
.board-grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); grid-template-columns: 1fr; }
@media (min-width: 600px) { .board-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }
.specimen { margin: 0; display: flex; flex-direction: column; }
.swatch {
  height: clamp(150px, 30vw, 200px);
  border: 4px solid #e9e4d8;
  box-shadow: 0 6px 0 rgba(10, 25, 18, 0.45);
  position: relative;
  overflow: hidden;
}
.specimen figcaption {
  margin-top: 1.1rem;
  background: var(--surface);
  padding: 1rem 1.1rem 1.1rem;
  border-top: 3px solid var(--accent);
  flex: 1;
}
.specimen h3 { font-size: var(--step-1); font-weight: 400; }
.specimen p { margin-top: 0.4rem; color: var(--text-soft); font-size: 0.97rem; line-height: 1.65; }

.sw-slate {
  background-color: #3a4651;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='48'%3E%3Crect width='40' height='48' fill='%23283139'/%3E%3Crect x='1' y='0' width='18' height='23' fill='%23434f5a'/%3E%3Crect x='21' y='0' width='18' height='23' fill='%233b4752'/%3E%3Crect x='-9' y='24' width='18' height='23' fill='%233e4a55'/%3E%3Crect x='11' y='24' width='18' height='23' fill='%23485561'/%3E%3Crect x='31' y='24' width='18' height='23' fill='%23394550'/%3E%3C/svg%3E");
}
.sw-plain {
  background-color: #7a3a22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='36'%3E%3Crect width='32' height='36' fill='%235e2a17'/%3E%3Crect x='1' y='0' width='14' height='17' rx='2' fill='%23a5512f'/%3E%3Crect x='17' y='0' width='14' height='17' rx='2' fill='%2398492a'/%3E%3Crect x='-7' y='18' width='14' height='17' rx='2' fill='%239d4d2c'/%3E%3Crect x='9' y='18' width='14' height='17' rx='2' fill='%23ad5934'/%3E%3Crect x='25' y='18' width='14' height='17' rx='2' fill='%23944628'/%3E%3C/svg%3E");
}
.sw-pantile {
  background-color: #a9532f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='40'%3E%3Crect width='44' height='40' fill='%23b85d36'/%3E%3Cpath d='M0 0 C11 0 11 40 22 40 L22 0 Z' fill='%23d27548'/%3E%3Cpath d='M22 0 C33 0 33 40 44 40 L44 0 Z' fill='%23d27548'/%3E%3Cpath d='M0 38h44v2H0z' fill='%23733016'/%3E%3C/svg%3E");
}
.sw-ridge {
  background-color: #3e4a55;
  background-image:
    radial-gradient(circle at 50% 100%, #db7f58 0 12px, var(--accent) 13px 19px, var(--accent-dark) 20px 22px, transparent 22.5px),
    linear-gradient(180deg, #b9c6cf 0 88px, #8c8f86 88px 93px, #3e4a55 93px);
  background-size: 44px 22px, 100% 100%;
  background-position: 0 66px, 0 0;
  background-repeat: repeat-x, no-repeat;
}
.sw-gutter { background: #dfe5e0; display: grid; place-items: center; }
.sw-chimney { background: linear-gradient(180deg, #c4d0d8, #dfe5e0); display: grid; place-items: end center; }
.sw-gutter svg, .sw-chimney svg { width: 100%; height: 100%; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.35fr; align-items: start; } }
.contact-card {
  background: var(--primary);
  color: var(--on-dark);
  position: relative;
}
.contact-card .inner { padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-card h2 { color: #fff; font-size: var(--step-3); }
.contact-card p { margin-top: 0.75rem; color: var(--on-dark); }
.contact-card dl { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
.contact-card dt { font-size: var(--step--1); color: var(--on-dark-soft); font-weight: 600; }
.contact-card dd { margin: 0.2rem 0 0; font-family: var(--font-display); font-size: var(--step-2); color: #fff; line-height: 1.3; }
.contact-card dd a { text-decoration-color: var(--accent-mid); text-decoration-thickness: 2px; white-space: nowrap; }
.contact-card dd a:hover { color: #f3d9a2; }
.contact-card dd.plain { font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; }

.form-panel { background: var(--surface); padding: clamp(1.5rem, 4vw, 2.75rem); border-top: 4px solid var(--accent); }
.form-panel h2 { font-size: var(--step-3); }
.form-panel > p { margin-top: 0.5rem; color: var(--text-soft); }
.enquiry-form { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
@media (min-width: 600px) {
  .enquiry-form { grid-template-columns: 1fr 1fr; }
  .enquiry-form .full { grid-column: 1 / -1; }
}
.enquiry-form label { font-size: 0.95rem; color: var(--text); }
.enquiry-form .optional { font-weight: 400; color: var(--text-muted); }
.enquiry-form input:not([type="checkbox"]), .enquiry-form textarea {
  background: var(--bg);
  border-color: var(--border);
  transition: border-color 0.2s, background-color 0.2s;
}
.enquiry-form input:hover, .enquiry-form textarea:hover { border-color: var(--text-muted); }
.enquiry-form input:focus-visible, .enquiry-form textarea:focus-visible { background: #fff; outline: 3px solid var(--primary-mid); border-color: var(--primary); }
.enquiry-form .btn { justify-self: start; }
.form-privacy { font-size: var(--step--1); color: var(--text-muted); }
.form-privacy a { color: var(--primary); }
.thank-you {
  margin-top: 1.75rem;
  padding: 1.75rem;
  background: var(--bg);
  border-left: 4px solid var(--primary);
}
.thank-you h3 { font-size: var(--step-2); font-weight: 400; }
.thank-you p { margin-top: 0.5rem; color: var(--text-soft); }
.thank-you[hidden] { display: none; }

/* ---------- Privacy page ---------- */
.prose { max-width: 44rem; margin-inline: auto; }
.prose h2 { font-size: var(--step-2); margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { margin-top: 0.75rem; color: var(--text-soft); line-height: 1.7; }
.prose ul { padding-left: 1.25rem; }
.prose a { color: var(--primary); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: var(--on-dark-soft); text-align: center; --focus: #f3d9a2; }
.site-footer .container { padding-block: clamp(2.75rem, 6vw, 4rem) 2rem; }
.footer-crest { width: 58px; margin: 0 auto 1rem; }
.footer-name { font-family: var(--font-display); font-size: var(--step-2); color: #fff; line-height: 1.25; }
.footer-line { margin: 0.6rem auto 0; max-width: 34rem; }
.footer-phone { display: inline-block; margin-top: 1rem; color: #fff; font-weight: 600; font-size: var(--step-1); text-decoration-color: var(--accent-mid); text-decoration-thickness: 2px; }
.footer-phone:hover { color: #f3d9a2; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid #2b4538; }
.footer-nav a { display: inline-block; padding: 0.4rem 0.1rem; color: var(--on-dark); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--accent-mid); text-decoration-thickness: 2px; }
.footer-small { margin: 1.5rem auto 0; font-size: var(--step--1); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; }
.footer-small p { margin: 0; }
.footer-small a { color: var(--on-dark); }
.footer-small a:hover { color: #fff; }
.footer-ridge { background: var(--bg); }
.footer-ridge.on-surface { background: var(--surface); }

/* ---------- Motion preferences and no-script ---------- */
@media (prefers-reduced-motion: reduce) {
  .tile, .anim { animation: none !important; opacity: 1 !important; transform: none !important; }
  .btn:hover { transform: none; }
}

/* ---------- Mobile navigation: keep last ---------- */
/* Under 768px the links stay hidden until the menu button adds .open */
@media (max-width: 767.98px) {
  .site-header .nav-links { display: none; }
  .site-header .nav-links.open { display: flex; }
}
