/* =========================================================
   Route 183 — Prototype stylesheet
   Colours taken from the Route 183 concept document.
   Change the variables below to re-theme the whole site.
   ========================================================= */
:root {
  --green-dark: #2f5233;
  --green: #4f7a52;
  --green-light: #e8f0e8;
  --sand: #f6f3ec;
  --text: #2b2b2b;
  --muted: #666;
  --border: #d9ded9;
  --alert: #b3261e;
  --alert-light: #fdecea;
  --radius: 10px;
  --max: 1120px;
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--green-dark); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section.alt { background: var(--sand); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; max-width: var(--max); margin: 0 auto; }
.logo { font-family: var(--font-head); font-weight: bold; font-size: 1.5rem; color: var(--green-dark); text-decoration: none; letter-spacing: .5px; }
.nav-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--text); font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--green-dark); text-decoration: underline; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--green-dark); transition: .15s; }
.btn-primary { background: var(--green-dark); color: #fff; }
.btn-primary:hover { background: var(--green); border-color: var(--green); }
.btn-outline { background: transparent; color: var(--green-dark); }
.btn-outline:hover { background: var(--green-light); }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.btn-alert { background: var(--alert); border-color: var(--alert); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, rgba(47,82,51,.88), rgba(79,122,82,.75)),
              repeating-linear-gradient(45deg, #6c8f6e 0 20px, #5d805f 20px 40px);
  color: #fff; padding: 90px 0 80px;
}
.hero h1, .hero h2 { color: #fff; }
.hero p { font-size: 1.15rem; max-width: 640px; }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.15); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.page-hero { padding: 56px 0 44px; }
.breadcrumb { font-size: .9rem; margin-bottom: 10px; opacity: .9; }
.breadcrumb a { color: inherit; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card.link-card { text-decoration: none; color: inherit; transition: .15s; display: block; }
.card.link-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.card .tag { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: .8rem; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.card.soon { opacity: .6; border-style: dashed; }

/* Image placeholders — replace with real photos */
.img-ph {
  background: repeating-linear-gradient(45deg, #dfe7df 0 14px, #d3ddd3 14px 28px);
  border-radius: var(--radius); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  color: var(--green-dark); font-size: .9rem; margin-bottom: 14px;
}
.map-ph { aspect-ratio: 21/9; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 24px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold;
}

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: #fff; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--green-dark); color: #fff; font-weight: 600; }
tr:nth-child(even) td { background: #fafbfa; }

/* ---------- Info kit ---------- */
.kit-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.kit-nav { position: sticky; top: 90px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; }
.kit-nav h3 { font-size: 1rem; }
.kit-nav ul { list-style: none; padding: 0; margin: 0; }
.kit-nav li a { display: block; padding: 6px 0; text-decoration: none; font-size: .93rem; }
.kit-section { padding: 22px 0; border-bottom: 1px solid var(--border); }
.kit-section:last-child { border-bottom: none; }
.reviewed { font-size: .82rem; color: var(--muted); font-style: italic; }
.members-only { background: var(--green-light); border-left: 4px solid var(--green-dark); padding: 12px 16px; border-radius: 6px; font-size: .93rem; margin-top: 10px; }

/* ---------- Emergency ---------- */
.emergency-banner { background: var(--alert-light); border: 2px solid var(--alert); border-radius: var(--radius); padding: 20px 24px; }
.emergency-banner h2, .emergency-banner h3 { color: var(--alert); }
.big-number { font-size: 2.6rem; font-weight: 800; color: var(--alert); font-family: var(--font-body); line-height: 1; }
.num-card { background: #fff; border: 1px solid #f1c3bf; border-radius: var(--radius); padding: 18px; text-align: center; }
.num-card .label { font-weight: 600; margin-top: 6px; }
.verify { display: inline-block; background: #fff4d6; border: 1px solid #e6c35c; color: #6b5300; font-size: .78rem; padding: 2px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.checklist { padding-left: 0; list-style: none; }
.checklist li { padding: 6px 0 6px 30px; position: relative; }
.checklist li::before { content: "☐"; position: absolute; left: 4px; color: var(--green-dark); }
.gentle { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.directory-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.directory-filter button { border: 1px solid var(--border); background: #fff; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.directory-filter button.on { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

/* ---------- Forms ---------- */
form .field { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .93rem; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }

/* ---------- FAQ ---------- */
details { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; background: #fff; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #dfe9df; padding: 44px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-family: var(--font-head); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); margin-top: 28px; padding-top: 16px; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .kit-layout { grid-template-columns: 1fr; }
  .kit-nav { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-top: 10px; }
  .nav-links.open { display: flex; }
  .nav { flex-wrap: wrap; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Print (emergency cards) ---------- */
@media print {
  .site-header, .site-footer, .no-print, .kit-nav { display: none !important; }
  .section { padding: 12px 0; }
  body { font-size: 12pt; }
}

.brand { flex: 0 0 auto; display: block; }
.brand img { width: 75px; height: 75px; object-fit: contain; }
.nav { max-width: 1440px; }
.nav-links { justify-content: flex-end; }
.language-form { margin-left: auto; order: 2; display: flex; align-items: center; gap: 5px; }
.flag-btn { padding: 2px; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; line-height: 0; opacity: .65; }
.flag-btn img { width: 30px; height: 20px; border: 1px solid var(--border); }
.flag-btn[aria-pressed="true"], .flag-btn:hover { opacity: 1; border-color: #ee9d28; }
.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; }
.notice { padding: 10px 20px; text-align: center; background: #fff4d6; color: #473800; }
.safety-notice { background: #fdecea; color: #7a1b16; }
.form-honeypot { display: none; }
.field-error, .form-error { color: var(--alert); font-size: .88rem; display: block; margin-top: 4px; }
.input-validation-error { border-color: var(--alert); }
.validation-summary-valid, .field-validation-valid { display: none; }
.prototype-notice { padding: 12px; background: #fff4d6; border-radius: 6px; color: #473800; }
button.btn { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
table { display: block; overflow-x: auto; }
:focus-visible { outline: 3px solid #ee9d28; outline-offset: 3px; }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-top: 10px; }
  .nav-links.open { display: flex; }
  .nav { flex-wrap: wrap; }
}

.nav-toggle { order: 3; }
.nav-links { order: 4; }
.brand { order: 1; }
@media (min-width: 1001px) { .nav-links { order: 1; flex: 1; } .language-form { order: 5; margin-left: 0; } }
