/* Redesign Launch Test Joinery: site styles, built on base.css
   Direction: a joiner's pattern book. Painted-joinery navy, one brass accent,
   oak grain as the recurring line, mitred oak frames around every image. */

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

:root {
  /* Brand palette */
  --primary:      #1F3442;  /* deep painted-joinery navy, the dominant colour */
  --primary-mid:  #2E4A5C;
  --primary-dark: #15242E;
  --accent:       #C9A04E;  /* brass, as on sash lifts and door furniture */
  --accent-mid:   #E2BF6E;

  /* Oak, used only for grain lines and frames */
  --oak:       #8A6640;
  --oak-dark:  #6B4C2E;
  --oak-line:  #A3845C;

  /* Neutrals */
  --bg:        #EFF1EF;
  --surface:   #F9FAF8;
  --border:    #CBD2D1;
  --text:      #1A2630;
  --text-soft: #46535C;
  --text-muted:#56626A;
  --on-dark:   #EFF1EF;
  --on-dark-soft: #C9D3D8;

  /* Typography */
  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Cabin', 'Trebuchet MS', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --radius:      2px;
  --radius-lg:   4px;

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

body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: 0; text-wrap: balance; color: var(--primary); }
p { line-height: 1.7; }

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

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}
.narrow { max-width: 46rem; margin-inline: auto; }
.centre { text-align: center; }
.centre p { margin-inline: auto; }

.section { padding-block: var(--section-pad); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }

/* Email and phone: break only at the @, never mid-word */
.contact-link { max-width: 100%; overflow-wrap: normal; word-break: normal; white-space: normal; }
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Dark sections: every text element set explicitly ---------- */
.on-dark { background: var(--primary); color: var(--on-dark); --focus: var(--accent-mid); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark p, .on-dark li, .on-dark dt, .on-dark dd, .on-dark span, .on-dark small { color: var(--on-dark); }
.on-dark .soft { color: var(--on-dark-soft); }
.on-dark a:not(.btn) { color: var(--accent-mid); }
.on-dark a:not(.btn):hover { color: #F3D995; }

/* ---------- 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(--primary); color: var(--on-dark); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-brass { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.btn-brass:hover { background: var(--accent-mid); border-color: var(--accent-mid); color: var(--primary-dark); }
.btn-line-light { background: transparent; color: var(--on-dark); border-color: rgba(239, 241, 239, 0.55); }
.btn-line-light:hover { border-color: var(--accent-mid); color: var(--accent-mid); }
.btn-line { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-line:hover { background: var(--primary); color: var(--on-dark); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark .btn.btn-brass, .on-dark .btn.btn-brass span { color: var(--primary-dark); }
.on-dark .btn.btn-line-light { color: var(--on-dark); }
.on-dark .btn.btn-line-light:hover { color: var(--accent-mid); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #EFF1EF;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; padding-block: 0.6rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--primary);
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; line-height: 1.25;
  max-width: 13rem;
}
.brand:hover { color: var(--primary-mid); }
.brand svg { flex: 0 0 auto; width: 40px; height: 40px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0 0.9rem;
  background: var(--primary); color: var(--on-dark);
  border: 0; border-radius: var(--radius); cursor: pointer;
  font-weight: 600; font-size: 0.95rem;
  transition: background-color 0.2s;
}
.nav-toggle:hover { background: var(--primary-mid); }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav { flex-basis: 100%; }
.nav-links { list-style: none; flex-direction: column; padding: 0.25rem 0 0.75rem; }
.nav-links li { border-top: 1px solid var(--border); }
.nav-links a {
  display: block; padding: 0.8rem 0.25rem;
  color: var(--text); text-decoration: none; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-mid); text-decoration: underline; text-decoration-color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.nav-links a[aria-current="page"]::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.6rem; background: var(--accent); transform: rotate(45deg) translateY(-2px); }

@media (min-width: 768px) {
  .site-header { position: static; }
  .header-inner { flex-direction: column; justify-content: center; padding-block: 1rem 0; gap: 0.6rem; }
  .brand { max-width: none; font-size: 1.2rem; }
  .brand svg { width: 46px; height: 46px; }
  .nav-toggle { display: none; }
  .site-nav { border-top: 1px solid var(--border); width: 100%; }
  .site-header .nav-links { display: flex; flex-direction: row; justify-content: center; gap: clamp(1rem, 3vw, 2.75rem); padding: 0; }
  .nav-links li { border: 0; }
  .nav-links a { padding: 0.85rem 0.15rem; position: relative; }
  .nav-links a[aria-current="page"]::before { display: none; }
  .nav-links a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent);
  }
}

/* ---------- Oak grain: shared line styles ---------- */
.grain { display: block; width: 100%; max-width: none; overflow: visible; }
.grain path, .grain ellipse { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Hero grain bands run edge to edge and are wiped in left to right on load (ends fully visible) */
.hero-grain { height: clamp(40px, 6vw, 64px); width: 100%; max-width: none; animation: grain-wipe 1s cubic-bezier(0.55, 0, 0.2, 1) backwards; }
.hero-grain path, .hero-grain ellipse { stroke: var(--accent); stroke-width: 1.1; }
.hero-grain .g-soft { stroke: #9C8A6A; opacity: 0.75; }
.hero-grain .g-knot { stroke: var(--accent-mid); }
.hero-grain.flip { transform: scaleY(-1); animation-delay: 0.15s; }

@keyframes grain-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Section dividers: oak grain with a brass dovetail joint at the centre (static, decoration only) */
.divider { padding-block: clamp(0.25rem, 2vw, 1rem); display: flex; align-items: center; gap: 1rem; }
.divider .grain { height: 26px; flex: 1 1 0; min-width: 0; }
.divider path, .divider ellipse { stroke: var(--oak-line); stroke-width: 1; }
.divider .g-knot { stroke: var(--oak); }
.divider::before {
  content: ""; flex: 0 0 auto; width: 36px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='26' viewBox='0 0 36 26'%3E%3Cpath d='M2 4H10L14 22H22L26 4H34' fill='none' stroke='%23C9A04E' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.on-dark .divider path { stroke: #7F8E97; }

/* ---------- Home hero: the crest ---------- */
.hero { text-align: center; padding-block: clamp(1.5rem, 4vw, 3rem); overflow: hidden; }
.hero-body { padding-block: clamp(1.75rem, 5vw, 3.5rem); }
.crest { width: clamp(64px, 10vw, 92px); height: auto; margin: 0 auto 1.1rem; }
.crest .c-line { stroke: var(--accent); }
.hero-kicker { font-size: var(--step-0); color: var(--on-dark-soft); margin: 0 auto 0.9rem; }
.hero-area { margin: 1.1rem auto 0; font-size: var(--step--1); letter-spacing: 0.06em; color: var(--on-dark-soft); }
.hero-area::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.6rem; background: var(--accent); transform: rotate(45deg) translateY(-1px); }
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-weight: 600; }
.wm-main { display: block; font-size: clamp(2.3rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.15; }
.wm-trade {
  display: flex; align-items: center; justify-content: center; gap: 1rem; width: 100%;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.35rem); font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent-mid);
  padding-left: 0.32em; /* balances the trailing letter space */
}
.on-dark .wm-trade { color: var(--accent-mid); }
.wm-trade::before, .wm-trade::after { content: ""; height: 1px; width: clamp(2rem, 8vw, 5rem); background: var(--accent); }
.hero-lede { font-size: var(--step-1); line-height: 1.6; max-width: 34rem; margin: 1.5rem auto 0; }
.hero .btn-row { margin-top: 1.75rem; }

/* Inner page heroes: same crest structure, smaller */
.page-hero { text-align: center; padding-block: clamp(1rem, 3vw, 2rem); }
.page-hero .hero-body { padding-block: clamp(1.25rem, 4vw, 2.5rem); }
.page-hero h1 { font-size: var(--step-5); }
.page-hero p { font-size: var(--step-1); line-height: 1.6; margin: 1rem auto 0; max-width: 36rem; }
.page-hero .hero-grain { height: clamp(28px, 4vw, 44px); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section-head p { margin: 1rem auto 0; color: var(--text-soft); font-size: var(--step-1); line-height: 1.6; }
.on-dark .section-head p { color: var(--on-dark-soft); }

/* Diamond mark: a brass lozenge between two rules, used as a formal centre point */
.lozenge { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 0 auto 1.25rem; }
.lozenge::before, .lozenge::after { content: ""; width: 3rem; height: 1px; background: var(--accent); }
.lozenge span { width: 0.55rem; height: 0.55rem; background: var(--accent); transform: rotate(45deg); }

/* ---------- Elevation sheet (home) ---------- */
.elevations { display: grid; gap: 3rem; }
.elevation { text-align: center; }
.elevation-draw {
  display: flex; align-items: flex-end; justify-content: center;
  height: clamp(190px, 46vw, 250px);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0;
}
.elevation-draw svg { height: 100%; width: auto; }
.elevation-draw svg * { vector-effect: non-scaling-stroke; }
.elevation h3 { margin-top: 1.25rem; font-size: var(--step-2); }
.elevation p { margin: 0.6rem auto 0; color: var(--text-soft); max-width: 22rem; }
.elevation .more { display: inline-block; margin-top: 0.9rem; font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

@media (min-width: 900px) {
  .elevations { grid-template-columns: 1fr 1.15fr 1fr; gap: 0; position: relative; }
  .elevations::before { content: ""; position: absolute; left: -2rem; right: -2rem; top: 250px; height: 2px; background: var(--accent); }
  .elevation-draw { border-bottom: 0; height: 250px; }
  .elevation { padding-inline: 1.5rem; }
  .elevation + .elevation { border-left: 1px solid var(--border); }
}

/* ---------- Statement band ---------- */
.statement { text-align: center; }
.statement blockquote, .statement .big {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-3); line-height: 1.35; color: var(--primary);
  max-width: 40rem; margin: 0 auto;
}
.statement .sub { margin: 1.25rem auto 0; color: var(--text-soft); max-width: 38rem; }

/* Twin columns, formal and mirrored around a centre rule */
.twin { display: grid; gap: 2.5rem; }
.twin h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.twin p + p { margin-top: 0.8rem; }
@media (min-width: 768px) {
  .twin { grid-template-columns: 1fr 1fr; gap: 0; }
  .twin > :first-child { padding-right: clamp(1.5rem, 4vw, 3.5rem); text-align: right; border-right: 1px solid var(--accent); }
  .twin > :first-child p { margin-left: auto; }
  .twin > :last-child { padding-left: clamp(1.5rem, 4vw, 3.5rem); }
}

/* ---------- Call band ---------- */
.call-band { text-align: center; }
.call-band h2 { font-size: var(--step-4); }
.call-band .phone-big {
  display: inline-block; margin-top: 1.25rem;
  font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); font-weight: 600;
  text-decoration: none; color: var(--accent-mid);
}
.on-dark .call-band .phone-big, .call-band.on-dark .phone-big { color: var(--accent-mid); }
.call-band .phone-big:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.call-band .btn-row { margin-top: 1.5rem; }

/* ---------- Mitred oak frame for every image ---------- */
.frame {
  position: relative; margin: 0;
  border: clamp(8px, 1.2vw, 12px) solid;
  border-color: var(--oak) var(--oak-dark) var(--oak) var(--oak-dark); /* the colour change shows a mitre at each corner */
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--primary);
}
.frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frame .ph { width: 100%; aspect-ratio: 4 / 3; }
.frame-caption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--text-muted); text-align: center; }

/* ---------- Services ---------- */
.service { display: grid; gap: 2rem; align-items: center; }
.service h2 { font-size: var(--step-4); }
.service .lead { font-size: var(--step-1); line-height: 1.6; color: var(--text); margin-top: 1rem; }
.service p + p, .service ul { margin-top: 1rem; }
.service ul { padding-left: 0; list-style: none; }
.service li { position: relative; padding-left: 1.4rem; margin-top: 0.45rem; }
.service li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 0.45rem; height: 0.45rem; background: var(--accent); transform: rotate(45deg); }
.service .btn { margin-top: 1.5rem; }
.service-media { max-width: 36rem; width: 100%; margin-inline: auto; }
@media (min-width: 900px) {
  .service { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); }
  .service.mirror .service-media { order: 2; }
}

.sash-drawing, .wardrobe-drawing { background: var(--surface); }
.wardrobe-drawing svg, .sash-drawing svg { width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* What to mention: a definition list, stacked on phones */
.mention { border-top: 2px solid var(--accent); }
.mention div { border-bottom: 1px solid var(--border); padding-block: 1.1rem; }
.mention dt { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--primary); }
.mention dd { margin-top: 0.35rem; color: var(--text-soft); }
@media (min-width: 768px) {
  .mention div { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; }
  .mention dd { margin-top: 0; }
}

/* ---------- Gallery ---------- */
.gallery-group + .gallery-group { margin-top: clamp(3rem, 6vw, 5rem); }
.gallery-group h2 { text-align: center; font-size: var(--step-3); margin-bottom: 1.5rem; }
.gallery-group h2::after {
  content: ""; display: block; height: 14px; width: 9rem; margin: 0.9rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14' viewBox='0 0 36 14'%3E%3Cpath d='M0 1H6L9 13H15L18 1H24L27 13H33L36 1' fill='none' stroke='%23A3845C' stroke-width='1.3'/%3E%3C/svg%3E") repeat-x center / 36px 14px;
}
.gallery-pair { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .gallery-pair { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.ph { position: relative; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--on-dark); background-color: var(--primary); }
/* dovetail strip along the foot of every placeholder, echoing the About illustration */
.ph::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M0 3H6L9 15H15L18 3H24L27 15H33L36 3' fill='none' stroke='%23C9A04E' stroke-opacity='.6' stroke-width='1.3'/%3E%3C/svg%3E") repeat-x center / 36px 18px;
}
.ph-label { position: relative; z-index: 1; background: var(--primary-dark); color: var(--on-dark); padding: 0.75rem 1.1rem; border: 1px solid var(--accent); max-width: 90%; }
.ph-label strong { display: block; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--on-dark); }
.ph-label span { display: block; font-size: var(--step--1); color: var(--on-dark-soft); margin-top: 0.15rem; }

/* six distinct joinery patterns, one per placeholder */
.ph-doors { background-image:
  linear-gradient(90deg, transparent 49.6%, rgba(201,160,78,.45) 49.6% 50.4%, transparent 50.4%),
  repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(239,241,239,.12) calc(25% - 1px) 25%),
  linear-gradient(transparent 46%, rgba(239,241,239,.1) 46% 47%, transparent 47%); }
.ph-rail { background-image:
  linear-gradient(transparent 22%, rgba(201,160,78,.55) 22% 24%, transparent 24%),
  repeating-linear-gradient(90deg, transparent 0 22px, rgba(239,241,239,.14) 22px 24px); }
.ph-stair { background-image:
  repeating-linear-gradient(135deg, transparent 0 26px, rgba(239,241,239,.12) 26px 28px),
  linear-gradient(45deg, rgba(201,160,78,.18) 25%, transparent 25%); }
.ph-baluster { background-image:
  linear-gradient(170deg, transparent 18%, rgba(201,160,78,.55) 18% 20%, transparent 20%),
  repeating-linear-gradient(90deg, transparent 0 34px, rgba(239,241,239,.16) 34px 38px); }
.ph-sash-a { background-image:
  linear-gradient(transparent 49%, rgba(201,160,78,.5) 49% 51%, transparent 51%),
  repeating-linear-gradient(90deg, transparent 0 calc(33.33% - 2px), rgba(239,241,239,.16) calc(33.33% - 2px) 33.33%),
  repeating-linear-gradient(0deg, transparent 0 calc(25% - 2px), rgba(239,241,239,.12) calc(25% - 2px) 25%); }
.ph-sash-b { background-image:
  repeating-linear-gradient(90deg, transparent 0 calc(50% - 3px), rgba(239,241,239,.2) calc(50% - 3px) 50%),
  repeating-linear-gradient(0deg, transparent 0 calc(50% - 3px), rgba(201,160,78,.35) calc(50% - 3px) 50%); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.prose h2 { font-size: var(--step-3); margin-bottom: 0.9rem; }
.prose h2:not(:first-child) { margin-top: 2.25rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin-top: 0.75rem; padding-left: 1.2rem; }
.prose li { margin-top: 0.4rem; }
.dovetail-plate { background: var(--surface); }
.dovetail-plate svg { width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; } }
.contact-card { padding: clamp(1.5rem, 4vw, 2.25rem); border-top: 4px solid var(--accent); }
.contact-card h2 { font-size: var(--step-3); }
.contact-card dl { margin-top: 1.25rem; }
.contact-card dl div + div { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(239,241,239,.18); }
.contact-card dt { font-size: var(--step--1); color: var(--on-dark-soft); }
.on-dark.contact-card dt { color: var(--on-dark-soft); }
.contact-card dd { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--on-dark); }
.contact-card dd a { color: var(--accent-mid); text-decoration: none; }
.contact-card dd a:hover { text-decoration: underline; }
.contact-card p { margin-top: 1.25rem; color: var(--on-dark-soft); }

.form-panel { background: var(--surface); border: 1px solid var(--border); padding: clamp(1.25rem, 4vw, 2.5rem); }
.form-panel h2 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.form-panel .form-intro { color: var(--text-soft); margin-bottom: 1.5rem; }
.mention-section { background: var(--surface); border-top: 1px solid var(--border); }
.call-band .soft { margin-inline: auto; }
.field { margin-bottom: 1.15rem; }
.field label { color: var(--text); }
.field .hint { font-weight: 400; color: var(--text-muted); font-size: var(--step--1); }
.field-pair { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.form-panel input:not([type="checkbox"]):not([type="radio"]), .form-panel select, .form-panel textarea { background: #fff; border-color: #A9B3B4; border-radius: var(--radius); color: var(--text); }
.form-panel input:focus-visible, .form-panel select:focus-visible, .form-panel textarea:focus-visible { outline: 3px solid var(--primary); border-color: var(--primary); }
.thanks { text-align: center; padding-block: 1.5rem; }
.thanks[hidden] { display: none; }
.thanks h2 { margin-top: 0.5rem; }
.thanks p { margin: 0.75rem auto 0; color: var(--text-soft); }
.thanks:focus { outline: none; }

/* ---------- Privacy ---------- */
.policy h2 { font-size: var(--step-2); margin-top: 2.25rem; margin-bottom: 0.6rem; }
.policy p + p, .policy ul { margin-top: 0.8rem; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin-top: 0.35rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: var(--on-dark); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; text-align: center; --focus: var(--accent-mid); }
.site-footer .grain { height: 22px; margin-bottom: 2rem; }
.site-footer .grain path, .site-footer .grain ellipse { stroke: #6F7F89; stroke-width: 1; }
.footer-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--on-dark); text-decoration: none; }
.footer-brand svg { width: 48px; height: 48px; }
.footer-brand:hover { color: var(--accent-mid); }
.site-footer p { color: var(--on-dark-soft); margin: 0.5rem auto 0; }
.site-footer .footer-phone { color: var(--accent-mid); font-weight: 600; text-decoration: none; }
.site-footer .footer-phone:hover { text-decoration: underline; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; margin: 1.5rem auto 0; padding: 0; }
.footer-nav a { display: inline-block; padding: 0.5rem 0.1rem; color: var(--on-dark); text-decoration: none; }
.footer-nav a:hover { color: var(--accent-mid); text-decoration: underline; }
.footer-nav a[aria-current="page"] { color: var(--accent-mid); }
.footer-base { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(239,241,239,.16); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; font-size: var(--step--1); }
.footer-base span, .footer-base a { color: var(--on-dark-soft); }
.footer-base a:hover { color: var(--accent-mid); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-grain { animation: none !important; }
}

/* ---------- Mobile navigation: kept last so nothing above can show the links ---------- */
@media (max-width: 767.98px) {
  .site-header .site-nav .nav-links { display: none; }
  .site-header .site-nav .nav-links.is-open { display: flex; }
}
