/* Vintage Austin Register NZ — site styles */

:root {
  --green-900: #0f2a20;
  --green-800: #163a2c;
  --green-700: #1f4d3b;
  --green-100: #e4ede7;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --ink: #1d2320;
  --muted: #5b655f;
  --line: #e2dccd;
  --brass: #b8892f;
  --brass-dark: #8f6a22;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 42, 32, 0.06), 0 8px 24px rgba(15, 42, 32, 0.08);
  --max: 1160px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 2rem); margin-inline: auto; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--green-900);
}
.brand img { width: 52px; height: 44px; object-fit: contain; }
.brand span { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; line-height: 1.15; }
.brand small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.5rem 0.7rem; cursor: pointer; color: var(--green-900);
}
.nav-toggle svg { display: block; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.site-nav li { position: relative; }
.site-nav a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: var(--green-100); color: var(--green-900); }
.site-nav .nav-cta {
  background: var(--green-800); color: #fff; margin-left: 0.4rem;
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] { background: var(--green-900); color: #fff; }

.has-sub > a::after { content: "▾"; font-size: 0.7em; margin-left: 0.35em; opacity: 0.6; }
.sub {
  list-style: none; margin: 0; padding: 0.4rem;
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.has-sub:hover > .sub,
.has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 72px); overflow-y: auto;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 0.75rem 1rem 1.25rem; gap: 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; background: none; }
  .has-sub > a::after { content: none; }
  .site-nav .nav-cta { margin: 0.5rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: clamp(380px, 62vh, 620px);
  display: flex; align-items: flex-end;
  background: var(--green-900);
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 42, 32, 0.15) 0%, rgba(15, 42, 32, 0.55) 55%, rgba(15, 42, 32, 0.9) 100%);
}
.hero .container { padding-block: 4rem 3.5rem; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { font-size: 1.2rem; max-width: 52ch; color: rgba(255, 255, 255, 0.9); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 0.75rem;
}
.hero .eyebrow { color: #e9c77f; }

.page-hero { min-height: clamp(260px, 38vh, 400px); }
.page-hero .container { padding-block: 3rem 2.5rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 0.98rem;
  background: var(--brass); color: #fff; border: 2px solid var(--brass);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green-900); border-color: #fff; }
.btn-green { background: var(--green-800); border-color: var(--green-800); }
.btn-green:hover { background: var(--green-900); border-color: var(--green-900); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.prose { max-width: 720px; }
.prose p, .prose li { color: #2c3430; }
.lead { font-size: 1.2rem; color: var(--muted); }

.split { display: grid; gap: 3rem; grid-template-columns: 1.15fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card-meta { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-dark); }
.card-link { margin-top: auto; padding-top: 0.75rem; font-weight: 600; color: var(--green-700); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.stat strong { display: block; font-family: var(--font-serif); font-size: 2.4rem; color: var(--green-800); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.95rem; }
.section-dark { background: var(--green-900); color: #e9efe9; }
.section-dark h2 { color: #fff; }
.section-dark .stat { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.section-dark .stat strong { color: #e9c77f; }
.section-dark .stat span { color: rgba(255, 255, 255, 0.75); }

/* ---------- Lists ---------- */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 12px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.link-list a:hover { border-color: var(--brass); transform: translateX(3px); color: var(--ink); }
.link-list .title { font-weight: 600; }
.link-list .source { flex-shrink: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-dark); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.65rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f4d3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1rem 1.25rem 1rem 3.75rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 0.95rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--green-800); color: #fff; font-weight: 700; font-size: 0.9rem;
  display: grid; place-items: center;
}

/* ---------- Pricing ---------- */
.price { text-align: center; padding: 2rem 1.5rem; }
.price .amount { font-family: var(--font-serif); font-size: 2.8rem; color: var(--green-800); line-height: 1; }
.price .amount small { font-family: var(--font-sans); font-size: 1rem; color: var(--muted); }
.price h3 { margin-bottom: 0.75rem; }
.price.featured { border: 2px solid var(--brass); }

/* ---------- Vehicles table ---------- */
.vehicle-card .card-media { aspect-ratio: 3 / 2; }
.count-badge {
  align-self: flex-start; background: var(--green-100); color: var(--green-800);
  font-weight: 700; font-size: 0.82rem; padding: 0.2rem 0.6rem; border-radius: 999px;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.tags span { font-size: 0.8rem; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.55rem; color: var(--muted); }

/* ---------- Event detail ---------- */
.event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.fact { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: 10px; padding: 1rem 1.25rem; }
.fact .label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact .value { font-family: var(--font-serif); font-size: 1.3rem; color: var(--green-900); }

.callout {
  background: var(--green-100); border-radius: var(--radius); padding: 1.5rem 1.75rem;
  border: 1px solid #cfdcd3;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--green-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.04); }

.album { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.album:first-of-type { border-top: 0; padding-top: 0; }
.album-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.album-head p { margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.form input, .form textarea, .form select {
  font: inherit; font-weight: 400; padding: 0.75rem 0.9rem; border-radius: 10px;
  border: 1px solid #cfc7b4; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.form textarea { min-height: 150px; resize: vertical; }
.form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.form-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, 0.78); padding-block: 3.5rem 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #e9c77f; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #e9c77f; margin: 0 0 0.85rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-brand { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 56px; height: auto; flex-shrink: 0; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand strong { font-family: var(--font-serif); color: #fff; font-size: 1.15rem; font-weight: 600; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- Committee contacts ---------- */
.people-group h3 { margin-bottom: 0.75rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.people li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.9rem 1.1rem; display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.95rem;
}
.people .role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-dark); }
.people strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; color: var(--green-900); }
.people .place { color: var(--muted); }
.people a { text-decoration: none; overflow-wrap: anywhere; }
.people a:hover { text-decoration: underline; }
