/* ── Tokens: "Harbour Blue" theme ───────────────────────────────────────── */
:root {
  --ink: #0f2440;          /* deep navy */
  --ink-soft: #475972;
  --paper: #f0f5fa;        /* sky wash */
  --card: #ffffff;
  --crate: #1c6fd6;        /* tote blue (primary) */
  --crate-dark: #114c99;
  --hivis: #8fc9ff;        /* light sky (CTA / highlight) */
  --line: #d5e1ee;
  --danger: #b3372c;
  --radius: 10px;
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; }
h1,h2,h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.01em; }
a { color: var(--crate-dark); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }

/* Signature: interlocking hinged-lid "teeth" divider */
.lid-divider {
  height: 16px;
  background:
    conic-gradient(from 135deg at 50% 0, var(--crate) 90deg, transparent 0) top/32px 16px repeat-x;
}

/* ── Header / nav ───────────────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px); background: var(--card);
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 1.15rem; }
.brand-mark { width: 30px; height: 30px; fill: var(--crate); stroke: var(--crate); }
nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: var(--ink); }
.nav-agents { color: var(--crate-dark); font-weight: 600; }

/* ── Buttons / forms ────────────────────────────────────────────────────── */
.btn {
  display: inline-block; background: var(--crate); color: #fff; border: 2px solid var(--crate);
  padding: 12px 24px; border-radius: var(--radius); font-family: var(--display);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--crate-dark); border-color: var(--crate-dark); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--crate-dark); }
.btn-ghost:hover { background: var(--crate); color: #fff; }
.btn-hivis { background: var(--hivis); border-color: var(--hivis); color: var(--ink); }
.btn-hivis:hover { background: #74b9f7; border-color: #74b9f7; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin: 14px 0 4px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff;
}
input:focus, select:focus { border-color: var(--crate); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ── Flash ──────────────────────────────────────────────────────────────── */
.flash { padding: 12px clamp(16px, 4vw, 48px); font-weight: 500; }
.flash-error { background: #fbe9e7; color: var(--danger); }
.flash-success { background: #e3f0fc; color: var(--crate-dark); }
.flash-info { background: #e9f4ff; color: #1a5089; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(160deg, var(--ink) 0%, #143a66 100%); color: var(--paper); padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px); position: relative; overflow: hidden; }
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--hivis); }
.hero p { margin: 18px 0 20px; font-size: 1.1rem; color: #c3d5ea; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ticks { list-style: none; margin: 0 0 26px; display: grid; gap: 8px; color: #dcebfb; font-weight: 500; }
.hero-ticks li::before { content: "✓ "; color: var(--hivis); font-weight: 800; }
.hero-trust { margin-top: 22px; font-size: 0.9rem; color: #9db8d8; letter-spacing: 0.02em; }

/* Animated crate illustration */
.crate-fig { display: flex; justify-content: center; }
.crate-fig svg { width: min(320px, 80%); }
.crate-lid-l, .crate-lid-r { transform-origin: center; transition: transform 0.5s ease; }
.crate-fig:hover .crate-lid-l { transform: rotate(-38deg) translate(-14px, -20px); }
.crate-fig:hover .crate-lid-r { transform: rotate(38deg) translate(14px, -20px); }
.crate-caption { text-align: center; color: #8fb0d4; font-size: 0.85rem; margin-top: 10px; }

/* ── Sections / cards ───────────────────────────────────────────────────── */
.section { padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 48px); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 8px; }
.section .eyebrow { font-family: var(--display); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--crate); margin-bottom: 6px; }
.section .lead { color: var(--ink-soft); max-width: 62ch; margin-bottom: 32px; }
.section-alt { background: var(--card); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.section-alt .card { background: var(--paper); }
.card h3 { font-size: 1.2rem; }
.card .glyph { font-size: 1.6rem; }
.card .price { font-family: var(--display); font-weight: 900; font-size: 1.9rem; color: var(--crate-dark); }
.card .price small { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.card p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }
.card ul { list-style: none; color: var(--ink-soft); font-size: 0.92rem; display: grid; gap: 5px; flex: 1; }
.card ul li::before { content: "✓ "; color: var(--crate); font-weight: 700; }
.card .btn { align-self: flex-start; margin-top: 8px; }
.card-featured { border-color: var(--crate); border-width: 2.5px; position: relative; }
.card-featured::before { content: "Most popular"; position: absolute; top: -12px; left: 18px; background: var(--crate); color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.72rem; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.06em; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: step; }
.step { padding-top: 8px; border-top: 4px solid var(--crate); }
.step::before {
  counter-increment: step; content: "Step " counter(step);
  font-family: var(--display); font-weight: 700; font-size: 0.8rem; color: var(--crate-dark);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.step h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }

/* Service-area chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #e3efff; color: var(--crate-dark); border: 1px solid #c3dcf7; border-radius: 99px; padding: 7px 16px; font-weight: 600; font-size: 0.92rem; }

/* Package finder */
.finder { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .finder { grid-template-columns: 1fr; } }
.finder h2 { color: #fff; }
.finder p { color: #c3d5ea; }
.finder select { max-width: 320px; }
.finder-result { background: rgba(255,255,255,0.07); border: 1px solid #2c4a75; border-radius: var(--radius); padding: 22px; }
.finder-result .rec { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--hivis); }
.finder-result p { font-size: 0.95rem; }

/* Comparison table */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; min-width: 560px; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.compare thead th { background: var(--ink); color: #fff; font-family: var(--display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.compare td:last-child { background: #e9f4ff; font-weight: 600; color: var(--crate-dark); }
.compare tr:last-child td { border-bottom: none; }

/* Testimonials */
.quote-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; }
.quote-card .stars { color: #f4a825; letter-spacing: 2px; }
.quote-card blockquote { margin: 10px 0 12px; color: var(--ink-soft); font-size: 0.95rem; }
.quote-card cite { font-style: normal; font-weight: 600; font-size: 0.88rem; }

/* CTA band */
.cta-band { background: linear-gradient(160deg, var(--ink) 0%, #143a66 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #c3d5ea; margin: 10px auto 26px; }

/* Sticky help bar */
.help-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--crate); color: #fff; text-align: center; padding: 10px 16px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; display: block;
}
.help-bar:hover { background: var(--crate-dark); color: #fff; }
body.has-help-bar { padding-bottom: 46px; }

/* ── Quote panel (booking page) ─────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.quote-box {
  position: sticky; top: 84px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 24px;
}
.quote-box h3 { color: var(--hivis); margin-bottom: 12px; }
.quote-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #33507c; font-size: 0.95rem; gap: 12px; }
.quote-total { display: flex; justify-content: space-between; padding-top: 12px; font-family: var(--display); font-weight: 900; font-size: 1.4rem; }
.quote-note { font-size: 0.85rem; color: #8fb0d4; margin-top: 10px; }

/* ── Tables (dashboards) ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
th { text-align: left; font-family: var(--display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); padding: 12px 14px; border-bottom: 2px solid var(--line); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 600; }
.pill-issued, .pill-pending, .pill-pending_payment { background: #fff3cd; color: #7a5b00; }
.pill-redeemed, .pill-confirmed, .pill-active { background: #dcedff; color: var(--crate-dark); }
.pill-delivered { background: #d8f3e3; color: #14663a; }
.pill-collected { background: #e9e9e9; color: #444; }
.pill-cancelled, .pill-paused { background: #fbe9e7; color: var(--danger); }

/* ── Stat blocks / points ───────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .n { font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--crate-dark); }
.stat .l { font-size: 0.83rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.points-hero { background: var(--crate); color: #fff; }
.points-hero .n { color: var(--hivis); }
.points-hero .l { color: #d3e6fb; }

/* ── Narrow page / auth card ────────────────────────────────────────────── */
.narrow { max-width: 480px; margin: 0 auto; }
.panel { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; }
.mt { margin-top: 24px; } .mb { margin-bottom: 24px; }
.quiet { color: var(--ink-soft); font-size: 0.85rem; }
.code-chip { font-family: ui-monospace, monospace; background: var(--paper); border: 1px dashed var(--crate); padding: 2px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 40px; background: var(--ink); color: #c3d5ea; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 24px; font-size: 0.92rem; }
@media (max-width: 680px) { .footer-inner { grid-template-columns: 1fr; } }
.site-footer strong { color: #fff; font-family: var(--display); }
.site-footer a { display: block; color: #c3d5ea; text-decoration: none; margin: 6px 0; }
.site-footer a:hover { color: var(--hivis); }
.inline-form { display: inline; }

/* ── Address checker ────────────────────────────────────────────────────── */
.checker-section { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px); }
.checker { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .checker { grid-template-columns: 1fr; } }
.checker-form { display: flex; gap: 10px; flex-wrap: wrap; }
.checker-form input { flex: 1 1 260px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.checker-result { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius); font-size: 0.97rem; }
.checker-yes  { background: #e3f0fc; border: 1.5px solid #b7d7f6; color: var(--crate-dark); }
.checker-no   { background: #fbe9e7; border: 1.5px solid #f0c4bf; color: var(--danger); }
.checker-warn { background: #fff6df; border: 1.5px solid #f0dda4; color: #7a5b00; }

/* ── FAQ accordion ──────────────────────────────────────────────────────── */
.faq { max-width: 760px; }
.faq-item { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 0 18px; }
.section-alt .faq-item { background: var(--paper); }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--crate); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--ink-soft); padding: 0 0 16px; font-size: 0.95rem; }

/* ── Suburb autocomplete ────────────────────────────────────────────────── */
.ac-wrap { position: relative; flex: 1 1 260px; }
.ac-wrap input { width: 100%; }
.ac-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 36, 64, 0.14); list-style: none;
  max-height: 280px; overflow-y: auto; padding: 6px;
}
.ac-item { padding: 9px 12px; border-radius: 7px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 0.95rem; }
.ac-item span { color: var(--ink-soft); font-size: 0.85rem; }
.ac-item:hover, .ac-active { background: #e3efff; }

/* ── Moving Guides ──────────────────────────────────────────────────────── */
.guide-card { text-decoration: none; color: inherit; padding: 0; overflow: hidden; }
.guide-card > * { padding-left: 22px; padding-right: 22px; }
.guide-card h3 { margin-top: 6px; }
.guide-card .quiet { color: var(--crate-dark); font-weight: 600; padding-bottom: 20px; }
.guide-card:hover { border-color: var(--crate); }
.guide-art { padding: 0 !important; line-height: 0; }
.guide-art svg { width: 100%; height: auto; display: block; }
.guide-body p { margin-bottom: 18px; font-size: 1.02rem; line-height: 1.7; color: #2a3a35; }

/* ── Nav dropdown (About) ───────────────────────────────────────────────── */
.nav-drop { position: relative; }
.nav-drop summary {
  cursor: pointer; list-style: none; color: var(--ink-soft); font-weight: 500;
  font-size: 0.95rem; user-select: none;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: " \25BE"; font-size: 0.75em; color: var(--crate); }
.nav-drop summary:hover { color: var(--ink); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 36, 64, 0.16); padding: 8px; min-width: 230px; z-index: 70;
}
.nav-drop-menu a { display: block; padding: 9px 14px; border-radius: 7px; color: var(--ink); font-size: 0.92rem; }
.nav-drop-menu a:hover { background: #e3efff; color: var(--crate-dark); }
@media (max-width: 720px) {
  .nav-drop-menu { position: static; transform: none; box-shadow: none; border: none; padding: 4px 0 0 12px; min-width: 0; }
}

/* ── Floating help bubble (service-area page) ───────────────────────────── */
.help-bubble {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 36, 64, 0.2);
  display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 12px;
  font-size: 0.9rem; line-height: 1.35;
}
.help-bubble a { font-size: 1.15rem; font-weight: 800; color: var(--crate-dark); }
.help-bubble-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
@media (max-width: 640px) { .help-bubble { right: 12px; bottom: 12px; padding: 10px 16px 10px 10px; } }
