/* WK Outdoors: shared styles. All pages link this one file. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #fafaf8;
  --panel: #efefec;
  --ink: #16171a;          /* anthracite, taken from the pergola frames */
  --mid: #55575c;          /* secondary text, 7:1 on paper */
  --rule: #d2d2ce;
  --rule-dark: #3a3c41;
  --accent: #8a4a36;       /* brick, used only for hover and small emphasis, 6:1 on paper */
  --on-ink: #f3f3f0;
  --on-ink-mid: #b9bbbf;   /* 9:1 on ink */
  --error-on-ink: #ff9d94;
  --ok-on-ink: #9fd8ac;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --max: 78rem;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M0 6h18M13 1l5 5-5 5'/%3E%3C/svg%3E");
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[id] { scroll-margin-top: 5rem; }

h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); line-height: 1.05; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Inline links share one underline; hover shifts colour only */
.link { text-decoration-line: underline; }

/* Primary action: square-edged block with a trailing arrow */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem;
  min-height: 3.5rem; padding: 0 1.25rem 0 1.4rem;
  font: 500 1rem/1 var(--sans); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 0;
  transition: background 0.2s, color 0.2s;
}
.btn::after, .row .go { content: ""; width: 1.25rem; height: 0.75rem; flex: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.btn::after { transition: transform 0.2s ease; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover::after { transform: translateX(0.3rem); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--light { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn--light:hover { background: transparent; color: var(--on-ink); border-color: var(--on-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; padding-inline: var(--edge); }
.brand { display: block; line-height: 0; }
.brand img { width: 5.5rem; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.75rem); font-size: 0.95rem; }
.nav a { text-decoration-color: transparent; transition: text-decoration-color 0.2s, color 0.2s; }
.nav a:hover { text-decoration-color: currentColor; color: inherit; }
.nav .nav-cta { font-weight: 500; text-decoration-color: currentColor; }
.nav .nav-tel { display: none; color: var(--mid); font-variant-numeric: tabular-nums; }
@media (min-width: 58rem) { .nav .nav-tel { display: inline; } }

/* Hero: text column and a full-bleed image, anchored to the bottom edge */
.hero { display: grid; padding-left: var(--edge); gap: 2.5rem; padding-top: clamp(2.5rem, 6vw, 4rem); }
.hero-text { padding-right: var(--gutter); }
.hero-text .lede { margin: 1.5rem 0 0; max-width: 30rem; font-size: 1.125rem; color: var(--mid); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.hero-actions .btn { min-width: 17rem; }
.hero-img { margin: 0; }
.hero-img img { width: 100%; height: clamp(18rem, 70vw, 30rem); object-fit: cover; object-position: 60% 50%; }
@media (max-width: 59.99rem) { .hero { padding-left: 0; } .hero-text { padding-left: var(--gutter); } }
@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(24rem, 1fr) 1.6fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-top: 0; }
  .hero-text { padding-bottom: 7.875rem; padding-right: 0; }
  .hero-img img { height: clamp(32rem, 82svh, 50rem); }
}

@media (min-width: 60rem) and (max-width: 75rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .hero-text h1 { font-size: 2.3rem; }
}

/* Statement */
.statement { padding: clamp(3.25rem, 7.4vw, 6.5rem) var(--edge) clamp(3rem, 6vw, 5rem); }
.statement p { font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem); line-height: 1.28; letter-spacing: -0.012em; max-width: 34em; margin: 0; }
.statement p + p { margin-top: 0.6rem; color: var(--mid); font-size: 1.0625rem; line-height: 1.6; letter-spacing: 0; max-width: 31rem; }

/* Range: an index, not cards */
.range { padding: 0 var(--edge) clamp(3.5rem, 8vw, 7rem); }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; }
.range-head span { color: var(--mid); font-size: 0.95rem; }
.range ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.range li { border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 2.25rem 1fr 1.5rem; gap: 0.3rem 1rem; align-items: baseline; padding: 1.4rem 0; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.row:focus-visible { outline-offset: -2px; }
.row:hover { color: inherit; }
.row .n { color: var(--mid); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.row h3 { font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; transition: color 0.2s ease; }
.row p { grid-column: 2; margin: 0; color: var(--mid); max-width: 26rem; }
.row .go { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; transition: transform 0.2s ease, background-color 0.2s ease; }
@media (hover: hover) {
  .row:hover h3 { color: var(--accent); }
  .row:hover .go { background: var(--accent); transform: translateX(0.3125rem); }
}
.row:focus-visible h3 { color: var(--accent); }
@media (min-width: 52rem) {
  .row { grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr) 2rem; padding: 1.7rem 0; align-items: center; }
  .row p { grid-column: 3; grid-row: 1; }
  .row .go { grid-column: 4; }
}

/* Showroom and enquiry: one dark band */
.contact { background: var(--ink); color: var(--on-ink); padding: clamp(3.5rem, 8vw, 7rem) var(--edge); display: grid; gap: 3.5rem; color-scheme: dark; }
.contact a:hover { color: #fff; }
.contact .mid { color: var(--on-ink-mid); margin: 0; }
.contact h2 { margin-bottom: 1.25rem; }
@media (min-width: 60rem) { .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 9rem); } }

/* Mobile: enquiry first, showroom details after a clear break */
@media (max-width: 59.99rem) {
  .contact { gap: 3rem; }
  .enquire { order: -1; }
  #visit { padding-top: 2.5rem; border-top: 1px solid var(--rule-dark); }
}

address { font-style: normal; }
.facts { margin: 1.9rem 0 0; padding: 0; list-style: none; max-width: 26rem; }
.facts li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 0.8rem 0; border-top: 1px solid var(--rule-dark); min-width: 0; }
.facts li:last-child { border-bottom: 1px solid var(--rule-dark); }
.facts li > * { min-width: 0; overflow-wrap: break-word; }
.facts span { color: var(--on-ink-mid); font-size: 0.95rem; }
.contact .map { display: inline-block; margin-top: 1.5rem; }

/* Form: underline fields, no boxes */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.95rem; color: var(--on-ink-mid); margin-bottom: 0; line-height: 1.5; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--on-ink); background: transparent; border: 0; border-bottom: 1px solid #8b8d92;
  border-radius: 0; padding: 0.4rem 0; min-height: 2.5rem; transition: border-color 0.2s;
}
select { -webkit-appearance: none; appearance: none; padding-right: 1.75rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23f3f3f0' stroke-width='1.4'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 0.25rem center / 0.75rem no-repeat; }
select option { color: #000; background: #fff; }
textarea { min-height: 5.5rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-bottom-color: #cfd0d3; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-bottom: 2px solid #fff; padding-bottom: calc(0.4rem - 1px); }
[aria-invalid="true"] { border-bottom-color: var(--error-on-ink) !important; }
.err { color: var(--error-on-ink); font-size: 0.95rem; margin: 0.3rem 0 0; }
.err:empty { display: none; }
.check { display: flex; gap: 0.8rem; align-items: flex-start; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; flex: none; accent-color: #fff; }
.check label { margin: 0; color: var(--on-ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { color: var(--on-ink-mid); font-size: 0.95rem; margin: 0.9rem 0 0; }
.form-foot a { color: var(--on-ink); }
.form .btn { width: 100%; max-width: 20rem; }
.status { margin-top: 1.25rem; padding: 1rem 0 1rem 1rem; border-left: 2px solid; }
.status[hidden] { display: none; }
.status--ok { color: var(--ok-on-ink); }
.status--error { color: var(--error-on-ink); }
.status a { color: inherit; }

/* Footer */
.site-footer { padding: 2rem var(--edge) 2.5rem; font-size: 0.95rem; color: var(--mid); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer a { color: var(--ink); }
.site-footer nav { display: flex; gap: 1.5rem; }

/* Text pages */
.page { padding: clamp(3rem, 7vw, 6rem) var(--edge) clamp(4rem, 8vw, 7rem); }
.prose { max-width: 40rem; }
.prose h1 { margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.4rem; margin: 2.25rem 0 0.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--accent); }
.placeholder { background: #ffefb8; color: #4a3a00; padding: 0 0.3em; }
