/* ==========================================================================
   NZPS – NZ Parcel Services
   Palette and design tokens replicated from the original site.
   ========================================================================== */

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 8%);
  --card: hsl(0 0% 98%);
  --card-foreground: hsl(0 0% 8%);
  --primary: hsl(0 0% 8%);
  --primary-foreground: hsl(0 0% 98%);
  --secondary: hsl(30 8% 92%);
  --secondary-foreground: hsl(0 0% 8%);
  --muted: hsl(30 5% 95%);
  --muted-foreground: hsl(0 0% 45%);
  --accent: hsl(36 97% 62%);
  --accent-soft: hsl(36 97% 62% / .2);
  --accent-foreground: hsl(0 0% 8%);
  --yellow-bright: hsl(38 82% 54%);
  --yellow-warm: hsl(36 100% 60%);
  --yellow-soft: hsl(37 44% 90%);
  --destructive: hsl(0 84% 60%);
  --border: hsl(30 8% 88%);
  --input: hsl(30 8% 90%);
  --ring: hsl(36 97% 62%);
  --radius: .5rem;
  --footer-bg: hsl(0 0% 8%);
  --footer-muted: hsl(0 0% 82%);
  --footer-line: hsl(0 0% 25%);
  --footer-chip: hsl(0 0% 17%);
  --shadow-sm: 0 1px 2px hsl(0 0% 0% / .05);
  --shadow-lg: 0 10px 25px -5px hsl(0 0% 0% / .1), 0 8px 10px -6px hsl(0 0% 0% / .1);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .75rem; font-weight: 700; }
p { margin: 0 0 1rem; }

a { color: inherit; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.text-accent { color: var(--accent); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .icon { width: 1rem; height: 1rem; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}
.btn-accent:hover { background: var(--yellow-warm); }

.btn-outline-accent {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-outline {
  background: var(--background);
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover { background: var(--secondary); }

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-secondary:hover { background: hsl(30 8% 86%); }

.btn-light {
  background: var(--background);
  color: var(--foreground);
}
.btn-light:hover { background: var(--secondary); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--accent-foreground);
  color: var(--accent-foreground);
}
.btn-outline-dark:hover {
  background: var(--accent-foreground);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 3rem; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--foreground);
  border-radius: var(--radius);
}
.nav-toggle .icon { width: 1.6rem; height: 1.6rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--foreground);
  transition: color .2s;
}
.nav-menu a:not(.btn):hover { color: var(--accent); }
.nav-menu a[aria-current="page"] { color: var(--accent); }

.nav-phone a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.nav-phone .icon { width: 1.05rem; height: 1.05rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: .5rem 1rem 1rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { padding: .55rem 0; }
  .nav-menu .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: 4rem; }
.section-lg { padding-block: 5rem; }

.section-title {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 1rem;
}
.section-intro {
  text-align: center;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.hero {
  background: linear-gradient(to bottom right, var(--background), var(--secondary), var(--yellow-soft));
  padding-block: 5rem;
  text-align: center;
}
.hero-soft {
  background: linear-gradient(to bottom right, var(--background), var(--yellow-soft));
}
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  margin-bottom: 1.5rem;
}
.hero .accent-line { color: var(--accent); display: block; }
.hero-sub {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2rem;
}
.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* Feature cards (Why Choose NZPS) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: hsl(38 82% 54% / .3); }

.feature-card {
  text-align: center;
  padding: 1.5rem;
}
.feature-icon {
  display: inline-flex;
  padding: .75rem;
  background: var(--yellow-soft);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.feature-icon .icon { width: 2rem; height: 2rem; color: var(--yellow-bright); }
.feature-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted-foreground); font-size: .9rem; margin: 0; }

/* Accent CTA band */
.cta-band {
  background: var(--accent);
  color: var(--accent-foreground);
  text-align: center;
  padding-block: 4rem;
}
.cta-band h2 { font-size: 1.875rem; }
.cta-band p {
  color: hsl(0 0% 8% / .8);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

/* --------------------------------------------------------------------------
   Welcome splash (index)
   -------------------------------------------------------------------------- */
.splash {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at bottom right, hsl(37 44% 90% / .45), transparent 60%),
    linear-gradient(to bottom right, var(--background), var(--background));
}
.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='10' width='24' height='20' rx='3' fill='none' stroke='%23141414' stroke-width='2'/%3E%3Cpath d='M10 18h24M22 10v8' stroke='%23141414' stroke-width='2'/%3E%3C/svg%3E");
}
.splash > * { position: relative; z-index: 1; }
.splash-logo { height: 10rem; width: auto; margin-bottom: 2rem; }
.splash h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  text-align: center;
  margin-bottom: 1rem;
}
.splash-sub {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--muted-foreground);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.splash-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 72rem;
}
@media (min-width: 768px) { .splash-cards { grid-template-columns: repeat(3, 1fr); } }

.splash-card {
  background: hsl(0 0% 98% / .8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 2rem;
  transition: box-shadow .3s, transform .3s;
}
.splash-card:hover { box-shadow: var(--shadow-lg); transform: scale(1.02); }
.splash-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.splash-card-icon {
  padding: .75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  display: inline-flex;
}
.splash-card-icon .icon { width: 2rem; height: 2rem; color: var(--accent); }
.splash-card h2 { font-size: 1.4rem; margin: 0; }
.splash-card-head p { color: var(--muted-foreground); margin: 0; font-size: .95rem; }

.splash-more {
  margin-top: 3rem;
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: hsl(36 97% 62% / .1);
  border: 1px solid hsl(36 97% 62% / .2);
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  transition: background-color .2s;
}
.splash-more:hover { background: hsl(36 97% 62% / .2); }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
.service-card {
  border-left: 4px solid var(--yellow-bright);
  padding: 1.75rem;
  height: 100%;
}
.service-card-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.service-card-head .feature-icon { margin: 0; }
.service-card-head h2 { font-size: 1.5rem; margin: 0; }
.service-card-head p { color: var(--muted-foreground); margin: 0; font-size: .9rem; }

.speed-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.speed-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-block: .35rem;
}
.speed-list .icon { width: 1rem; height: 1rem; color: var(--primary); }
.speed-list strong { font-weight: 600; }

.spec-box {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.spec-box h3 { font-size: 1rem; margin-bottom: .5rem; }
.spec-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--muted-foreground);
}
.spec-box li { padding-block: .15rem; padding-left: 1rem; position: relative; }
.spec-box li::before { content: "•"; position: absolute; left: .25rem; color: var(--accent); }

.panel-card {
  border-top: 3px solid var(--accent);
  padding: 1.75rem;
  margin-top: 2rem;
}
.panel-card-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .25rem;
}
.panel-card-head .icon { color: var(--accent); width: 1.5rem; height: 1.5rem; }
.panel-card-head h2 { font-size: 1.5rem; margin: 0; }
.panel-sub { color: var(--muted-foreground); font-size: .9rem; margin-bottom: 1.5rem; }

.table-wrap { overflow-x: auto; }
table.cutoff {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 30rem;
}
table.cutoff th, table.cutoff td {
  text-align: left;
  padding: .8rem .75rem;
  border-bottom: 1px solid var(--border);
}
table.cutoff th { font-weight: 600; }
table.cutoff tbody tr:last-child td { border-bottom: 0; }

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .coverage-grid { grid-template-columns: 1fr 1fr; } }
.coverage-grid h3 { font-size: 1rem; }
.coverage-grid ul { margin: 0 0 1.25rem; padding: 0; list-style: none; color: var(--muted-foreground); font-size: .95rem; }
.coverage-grid ul.dotted li { padding-left: 1rem; position: relative; }
.coverage-grid ul.dotted li::before { content: "•"; position: absolute; left: .25rem; color: var(--accent); }
.coverage-grid ul li { padding-block: .2rem; }
.zone-lines li { padding-left: 1rem; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .story-grid { grid-template-columns: 1.2fr 1fr; } }
.story-grid h2 { font-size: 1.875rem; }
.story-grid .prose p { color: var(--muted-foreground); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-card { padding: 1.5rem 1rem; }
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--yellow-bright);
}
.stat-label { color: var(--muted-foreground); font-size: .9rem; }

.value-card { text-align: center; padding: 1.75rem 1.25rem; }
.value-card .feature-icon { border-radius: 999px; }
.value-card .feature-icon .icon { color: var(--accent); }
.value-card h3 { font-size: 1.05rem; }
.value-card p { color: var(--muted-foreground); font-size: .9rem; margin: 0; }

.fleet-card { overflow: hidden; display: flex; flex-direction: column; }
.fleet-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.fleet-card-body { padding: 1.25rem; }
.fleet-card-body h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.05rem;
}
.fleet-card-body h3 .icon { width: 1.15rem; height: 1.15rem; color: var(--accent); }
.fleet-card-body p { color: var(--muted-foreground); font-size: .9rem; margin: 0; }

.team-card { text-align: center; padding: 1.75rem 1.25rem; }
.team-photo {
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 30%;
  margin: 0 auto 1rem;
  border: 3px solid var(--yellow-soft);
}
.team-card h3 { margin-bottom: .15rem; font-size: 1.1rem; }
.team-role { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: .75rem; }
.team-card p:last-child { color: var(--muted-foreground); font-size: .875rem; margin: 0; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

.info-card { padding: 1.5rem; margin-bottom: 1.5rem; }
.info-card-inner { display: flex; gap: 1rem; align-items: flex-start; }
.info-card-inner > .icon { color: var(--accent); margin-top: .2rem; }
.info-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.info-card p, .info-card li { color: var(--muted-foreground); margin: 0; font-size: .95rem; }
.info-card ul { list-style: none; margin: 0; padding: 0; }
.info-card a { text-decoration: none; transition: color .2s; }
.info-card a:hover { color: var(--accent); }

.form-card { padding: 1.75rem; }
.form-card > h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: .35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  padding: .55rem .75rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 0;
  border-color: transparent;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }
.field-row-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .field-row-4 { grid-template-columns: repeat(4, 1fr); } }
.field .hint { font-size: .8rem; color: var(--muted-foreground); margin-top: .25rem; }

.map-flag-card {
  background: var(--yellow-soft);
  border-radius: var(--radius);
  padding: 2rem;
}
.map-flag-card .icon { width: 3rem; height: 3rem; color: var(--accent); margin-bottom: 1rem; }
.map-flag-card h3 { font-size: 1.25rem; }
.map-flag-card p { color: var(--muted-foreground); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.find-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) { .find-grid { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Track / merchant pages
   -------------------------------------------------------------------------- */
.narrow { max-width: 46rem; margin-inline: auto; }
.portal-card { padding: 2rem; text-align: center; }
.portal-card .feature-icon .icon { color: var(--accent); }
.portal-card h2 { font-size: 1.35rem; }
.portal-card p { color: var(--muted-foreground); }
.notice {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: var(--muted-foreground);
  text-align: left;
}
.notice strong { color: var(--foreground); }

/* Legal pages */
.legal h1 { font-size: 2.25rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--muted-foreground); }
.legal .updated { font-size: .85rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-muted);
  padding-top: 3rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr .8fr; } }

.footer-flags { display: flex; gap: .5rem; margin-bottom: 1rem; }
.footer-flags img, .footer-flags svg {
  height: 2.2rem;
  width: auto;
  border-radius: 2px;
  display: block;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding-block: .3rem; }
.footer-links a {
  text-decoration: none;
  color: var(--footer-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding-block: .35rem;
}
.footer-contact .icon { width: 1.05rem; height: 1.05rem; color: var(--accent); margin-top: .3rem; }
.footer-contact a { color: var(--footer-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 1rem; }
.footer-social a,
.footer-social .social-chip {
  display: inline-flex;
  padding: .55rem;
  background: var(--footer-chip);
  border-radius: 999px;
  color: var(--footer-muted);
  transition: background-color .2s, color .2s;
}
.footer-social .social-chip { opacity: .55; }
.footer-social a:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}
.footer-social .icon { width: 1rem; height: 1rem; }

.footer-bottom {
  border-top: 1px solid var(--footer-line);
  padding-block: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a { color: var(--footer-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Quote / suburbs modals
   -------------------------------------------------------------------------- */
dialog.modal {
  width: min(56rem, calc(100vw - 2rem));
  max-height: 90vh;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-lg);
}
dialog.modal::backdrop { background: hsl(0 0% 0% / .55); }
.modal-inner { padding: 1.5rem; }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.modal-head h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.5rem;
  margin: 0;
}
.modal-head h2 .icon { color: var(--accent); width: 1.5rem; height: 1.5rem; }
.modal-head .sub { color: var(--muted-foreground); font-size: .9rem; margin: .25rem 0 0; }
.modal-close {
  background: none;
  border: 0;
  padding: .4rem;
  cursor: pointer;
  color: var(--muted-foreground);
  border-radius: var(--radius);
  transition: color .2s, background-color .2s;
}
.modal-close:hover { color: var(--foreground); background: var(--muted); }

.modal .card { margin-bottom: 1.25rem; }
.modal .card-section { padding: 1.25rem; }
.modal .card-section > h3 { font-size: 1.1rem; margin-bottom: 1rem; }

.checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
}
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  cursor: pointer;
}
.checks input { accent-color: var(--accent); width: 1rem; height: 1rem; }

.modal-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.modal-actions .btn[type="submit"] { flex: 1 1 12rem; }

.zones-map {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.zones-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.zone-block { margin-bottom: 1.5rem; }
.zone-block h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: .6rem; }
.zone-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .35rem .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .875rem;
}
@media (min-width: 768px) { .zone-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .zone-list { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  max-width: 22rem;
  background: var(--foreground);
  color: var(--background);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(.5rem);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast strong { display: block; margin-bottom: .15rem; }
.toast span { font-size: .875rem; opacity: .85; }

/* --------------------------------------------------------------------------
   Truck animations
   -------------------------------------------------------------------------- */
.truck-runner {
  position: fixed;
  bottom: 1rem;
  left: 0;
  z-index: 10;
  pointer-events: none;
  color: var(--accent);
  filter: drop-shadow(0 4px 3px hsl(0 0% 0% / .15));
  animation: truck-cross 20s linear infinite;
}
.truck-runner .icon { width: 2rem; height: 2rem; }

.truck-runner-large {
  position: absolute;
  top: 36%;
  left: 0;
  z-index: 5;
  pointer-events: none;
  color: var(--accent);
  filter: drop-shadow(0 10px 8px hsl(0 0% 0% / .2));
  animation: truck-cross-large 15s linear infinite;
}
.truck-runner-large .icon { width: 7.5rem; height: 7.5rem; }

@keyframes truck-cross {
  0%   { transform: translateX(-4rem); }
  40%  { transform: translateX(calc(100vw + 4rem)); }
  100% { transform: translateX(calc(100vw + 4rem)); }
}
@keyframes truck-cross-large {
  0%   { transform: translateX(-10rem); }
  55%  { transform: translateX(calc(100vw + 10rem)); }
  100% { transform: translateX(calc(100vw + 10rem)); }
}

/* Fade-in-up entrance */
.fade-in-up { animation: fade-in-up .7s ease-out both; }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .truck-runner, .truck-runner-large { display: none; }
  .fade-in-up { animation: none; }
  .splash-card, .card { transition: none; }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.bg-secondary { background: var(--secondary); }
.bg-muted { background: var(--muted); }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
