/* AAGAAS LLC — site styles
   Brand colours are defined once here; change them in :root. */

:root {
  --green: #013220;        /* British Racing Green: header, footer, primary */
  --copper: #B87333;       /* accents, dividers (not for small text on light) */
  --copper-dark: #8F5524;  /* small accent text on light backgrounds */
  --cream: #FBF5DF;        /* page background */
  --gold: #E3B27A;         /* light gold: accents on green */
  --muted: #46544B;        /* secondary text */
  --text: #12261B;         /* body text */
  --card: #FFFDF4;         /* card surface */
  --border: #D9CFA6;       /* card border */

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "League Spartan", "Helvetica Neue", Arial, sans-serif;

  --max: 1080px;
  --gutter: 1.25rem;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--green);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-dark); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--cream); color: var(--green);
  padding: 0.6rem 1rem; z-index: 100; border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Header ---------- */
.site-header { background: var(--green); color: var(--cream); border-bottom: 3px solid var(--copper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px; flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.8rem;
  color: var(--cream); text-decoration: none;
}
.brand:hover { color: var(--cream); }
.brand svg { width: 40px; height: 40px; flex: none; }
.wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.3rem; letter-spacing: 0.22em; white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--gold); color: var(--cream);
  font: inherit; font-size: 0.95rem; padding: 0.4rem 0.8rem; border-radius: 4px; cursor: pointer;
}
.nav-toggle:focus-visible { outline-color: var(--gold); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: center; }
.site-nav a {
  color: var(--cream); text-decoration: none; font-size: 0.98rem;
  padding: 0.35rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.site-nav a:focus-visible { outline-color: var(--gold); }
.site-nav .nav-cta {
  border: 1px solid var(--gold); padding: 0.45rem 0.9rem; border-radius: 4px;
}
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--gold); color: var(--green); }

/* Collapsible nav on small screens (only when JS is available) */
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .wordmark { font-size: 1.1rem; letter-spacing: 0.18em; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section + .section { padding-top: 0; }

.eyebrow {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-dark);
  margin: 0 0 0.9rem;
}

.rule { width: 64px; height: 2px; background: var(--copper); border: 0; margin: 1.4rem 0 1.8rem; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

.prose { max-width: 42em; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn {
  display: inline-block; font-family: var(--sans); font-size: 1rem; font-weight: 500;
  padding: 0.85rem 1.4rem; border-radius: 4px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--green); line-height: 1.2;
}
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: #024a30; color: var(--cream); }
.btn-secondary { background: transparent; color: var(--green); }
.btn-secondary:hover { background: var(--card); color: var(--green); }

/* ---------- Cards / layout ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.split { display: grid; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }

.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-3 h3 { font-size: 1.25rem; }
.grid-3 p { margin: 0; color: var(--muted); }

/* ---------- Product imagery ---------- */
.product-figure {
  margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  aspect-ratio: 3 / 4; max-height: 640px; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-figure img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; mix-blend-mode: multiply; } /* multiply blends white photo backgrounds into the card */
/* Shown when an image file is missing, so no broken-image icon appears */
.img-missing::after {
  content: attr(data-missing-label);
  font-family: var(--serif); font-size: 1.1rem; color: var(--muted); padding: 1rem; text-align: center;
}

/* ---------- Spec tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
/* Caption is for screen readers; the visible heading sits above the table */
.spec-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spec-table th, .spec-table td { text-align: left; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); width: 42%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.product + .product { margin-top: clamp(3rem, 8vw, 5rem); padding-top: clamp(3rem, 8vw, 5rem); border-top: 1px solid var(--border); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 0.55rem 0 0.55rem 1.4rem; position: relative; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 8px; height: 8px; background: var(--copper); transform: rotate(45deg); }

/* ---------- Contact details ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.contact-list li { padding: 0.35rem 0; }
.contact-list .label { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-dark); }

.placeholder { background: #f6e7c4; outline: 1px dashed var(--copper-dark); padding: 0 0.2em; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 760px) { .founder { grid-template-columns: 240px 1fr; gap: 3rem; } }
.headshot {
  width: 240px; max-width: 100%; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden;
  background: var(--green); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin: 0;
}
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.headshot.img-missing::after { content: "JR"; font-family: var(--serif); font-size: 3.4rem; letter-spacing: 0.12em; color: var(--gold); padding: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 500; }
.field .hint { font-size: 0.9rem; color: var(--muted); margin: 0; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #b9ad84; border-radius: 4px; padding: 0.7rem 0.8rem;
}
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--copper); outline-offset: 1px; border-color: var(--green); }
.form textarea { min-height: 9rem; resize: vertical; }
.row-2 { display: grid; gap: 1.3rem; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 0.3rem; }
.choice, .consent { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.choice input, .consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--green); flex: none; }
.hp { display: none; }

.notice { border-left: 3px solid var(--copper); background: var(--card); padding: 1rem 1.2rem; color: var(--muted); font-size: 0.98rem; }
.notice p:last-child { margin: 0; }

.form-status { padding: 1rem 1.2rem; border-radius: 6px; }
.form-status.error { background: #fbe9e4; border: 1px solid #b4532a; color: #6b2a10; }
.confirmation { border-left: 3px solid var(--green); }
.confirmation:focus { outline: none; }

/* ---------- Draft banner (legal pages) ---------- */
.draft-banner {
  background: #f6e7c4; border: 1px solid var(--copper-dark); color: #4a2c10;
  padding: 0.9rem 1.2rem; border-radius: 6px; font-weight: 500; margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: var(--cream); border-top: 3px solid var(--copper); padding: 3rem 0 2rem; font-size: 0.98rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.site-footer a:focus-visible { outline-color: var(--gold); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid h2 { color: var(--gold); font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-contact { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; font-style: normal; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.site-footer .placeholder { background: rgba(227, 178, 122, 0.18); outline-color: var(--gold); }
.footer-base { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(227, 178, 122, 0.35); color: #cfd6cc; font-size: 0.88rem; }

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
}
