/* ============================================================
   Perth Swan Cabs — shared stylesheet
   Palette: night-teal ink, brass accent, river teal, warm paper
   Type: Fraunces (display) + IBM Plex Sans (body/UI)
   ============================================================ */

:root {
  --ink: #16232B;
  --ink-soft: #1F323C;
  --paper: #F6F2EA;
  --paper-raised: #FFFFFF;
  --line: #E4DCCB;
  --text: #1B2A2E;
  --text-muted: #5B6B6E;
  --brass: #B4863A;
  --brass-dark: #8F6A2C;
  --teal: #3E7C74;
  --teal-dark: #2C5951;
  --on-ink: #EFEAE0;
  --on-ink-muted: #A9BAC0;

  --radius-s: 4px;
  --radius-m: 10px;
  --shadow-card: 0 1px 2px rgba(22,35,43,0.06), 0 8px 24px -12px rgba(22,35,43,0.18);
  --max-w: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--text); }
p.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; }

a { color: var(--teal-dark); }
a.plain { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 76px 0; }
.section-tight { padding: 48px 0; }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-ink h2, .section-ink h3 { color: var(--on-ink); }
.section-ink p { color: var(--on-ink-muted); }
.section-raised { background: var(--paper-raised); }
.section-line-top { border-top: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker { display: block; color: var(--brass-dark); font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.section-ink .section-head .kicker { color: #D9B876; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--brass); color: #201203; }
.btn-primary:hover { background: var(--brass-dark); }
.btn-secondary { background: transparent; color: var(--on-ink); border-color: rgba(239,234,224,0.4); }
.btn-secondary:hover { border-color: var(--on-ink); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--on-ink); }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,234,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-word { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-word span { color: var(--brass-dark); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.96rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-dark); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-panel {
  position: absolute; top: 100%; left: -14px; margin-top: 14px;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-card); padding: 10px; min-width: 220px;
  display: none; flex-direction: column;
}
.nav-links .dropdown:hover .dropdown-panel, .nav-links .dropdown:focus-within .dropdown-panel { display: flex; }
.dropdown-panel a { padding: 9px 12px; border-radius: 6px; }
.dropdown-panel a:hover { background: var(--paper); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-call { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 0.95rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 76px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 26px 24px; gap: 4px; display: none; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .dropdown-panel { position: static; display: flex; box-shadow: none; border: none; margin-top: 4px; padding-left: 12px; }
  .nav-links .dropdown:hover .dropdown-panel { display: none; }
  .nav-links .dropdown.open .dropdown-panel { display: flex; }
  .nav-toggle { display: block; }
  .nav-call span.call-word { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--on-ink);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,134,58,0.25), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #D9B876; font-weight: 600; font-size: 0.9rem; margin-bottom: 18px; }
.hero h1 { color: #FBF7EE; }
.hero .lede { color: var(--on-ink-muted); font-size: 1.12rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.hero-fact { display: flex; align-items: center; gap: 8px; color: var(--on-ink-muted); font-size: 0.92rem; }
.hero-fact strong { color: var(--on-ink); font-weight: 600; }

.hero-card {
  background: var(--paper-raised); border-radius: var(--radius-m); padding: 26px;
  box-shadow: var(--shadow-card); color: var(--text);
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card .fare-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hero-card .fare-row:last-of-type { border-bottom: none; }
.hero-card .fare-row span:last-child { font-weight: 600; color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px; box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.96rem; color: var(--text-muted); }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.92rem; text-decoration: none; }

.icon-badge {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(180,134,58,0.14);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--brass-dark);
}
.icon-badge svg { width: 22px; height: 22px; }

/* ---------- Steps (real sequences only) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 46px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brass); color: #201203; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Table (tariffs) ---------- */
.rate-table { width: 100%; border-collapse: collapse; background: var(--paper-raised); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); }
.rate-table th, .rate-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.rate-table th { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.rate-table tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--brass-dark); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; color: var(--text-muted); }

/* ---------- Quick enquiry form (subpages) ---------- */
.enquiry-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; box-shadow: var(--shadow-card); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-family: inherit; font-size: 0.96rem; background: var(--paper); color: var(--text);
}
.field textarea { resize: vertical; min-height: 88px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Landmark / suburb strip ---------- */
.fact-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--paper-raised); }
.fact-strip .fact { flex: 1 1 200px; padding: 20px 22px; border-right: 1px solid var(--line); }
.fact-strip .fact:last-child { border-right: none; }
.fact .fact-label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.fact .fact-value { font-weight: 600; color: var(--ink); }

.landmark-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
@media (max-width: 560px) { .landmark-list { grid-template-columns: 1fr; } }
.landmark-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 0.86rem; color: var(--on-ink-muted); }
.crumb a { color: var(--on-ink-muted); }
.crumb a:hover { color: var(--on-ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal-dark); color: #F1F6F4; border-radius: var(--radius-m); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #FDFBF6; margin-bottom: 6px; }
.cta-band p { color: #D6E7E3; margin-bottom: 0; }

/* ---------- Areas grid (hub page) ---------- */
.area-card { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; }
.area-card .go { color: var(--brass-dark); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--on-ink); font-size: 0.92rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--on-ink-muted); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--on-ink); }
.footer-bottom { border-top: 1px solid rgba(239,234,224,0.14); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* ---------- Mobile tap-to-call bar ---------- */
.psc-callbar { display: none; }
@media (max-width: 760px) {
  .psc-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
  .psc-callbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 8px; font-weight: 700; font-size: 16px; text-decoration: none; color: #fff; }
  .psc-callbar .cb-call { background: #1a2b4a; }
  .psc-callbar .cb-wa { background: #25D366; }
  body { padding-bottom: 58px; }
}
.enquiry-sent { padding: 18px; border-radius: 10px; background: #e8f7ee; color: #14532d; font-weight: 600; line-height: 1.5; }
