/* King Towing Transport — shared styles. Tokens and rules are documented in DESIGN.md. */
:root {
  --red: #D0142C;
  --red-press: #AE0F24;
  --black: #000000;
  --charcoal: #1A1C1E;
  --charcoal-line: #33363A;
  --white: #FFFFFF;
  --stone: #F3F3F1;
  --line: #E2E2DE;
  --text: #141516;
  --muted: #5E5F5C;
  --muted-dark: #A9ABA8;
  --wrap: 1200px;
  --gutter: 32px;
  --section: 128px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: "Archivo", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { margin: 0; text-wrap: balance; color: inherit; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; font-weight: 750; font-stretch: 108%; letter-spacing: -0.02em; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.tbc { background: #FFF1B8; color: #5A4500; padding: 1px 6px; border-radius: 2px; font-weight: 600; font-size: .9em; white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 2px; border: 1.5px solid transparent;
  font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition-property: background-color, color, border-color, scale; transition-duration: .15s;
}
.btn:active { scale: .98; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-press); }
.btn-outline-light { border-color: rgba(255,255,255,.85); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }
.btn-outline-dark { border-color: var(--text); color: var(--text); }
.btn-outline-dark:hover { background: var(--text); color: var(--white); }

/* Wordmark */
.mark { display: inline-block; text-decoration: none; line-height: 1; }
.mark img { height: 64px; width: auto; }
.foot .mark img { height: 84px; }
.mark b { display: block; font-size: 26px; font-weight: 800; font-stretch: 125%; letter-spacing: .04em; color: var(--red); }
.mark span { display: block; font-size: 12.5px; font-weight: 600; font-stretch: 112%; letter-spacing: .08em; margin-top: 4px; }

/* Header over the hero */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.top nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.menu-btn {
  display: none; align-items: center; gap: 10px; height: 48px; padding: 0 16px;
  background: rgba(0,0,0,.35); color: var(--white); border: 1.5px solid rgba(255,255,255,.6); border-radius: 2px;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn path { transition: transform .2s var(--ease-out), opacity .2s; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
.top nav a.link { font-size: 16px; font-weight: 500; text-decoration: none; opacity: .9; }
.top nav a.link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.top .btn { height: 48px; padding: 0 20px; font-size: 16px; }

/* Hero */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: flex-end; color: var(--white); background: var(--black); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 20%),
    linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.72) 28%, rgba(0,0,0,0) 46%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 72px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; max-width: 24ch; }
.hero p { margin-top: 24px; font-size: 20px; line-height: 1.5; color: rgba(255,255,255,.86); max-width: 32em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Trust strip */
.facts { background: var(--charcoal); color: var(--white); }
.facts ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 36px 28px 36px 0; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--charcoal-line); }
.facts b { display: block; font-size: 34px; line-height: 1; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted-dark); line-height: 1.4; }

section.block { padding: var(--section) 0; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip { grid-template-columns: 5fr 7fr; }
.feature.flip .photo { order: 2; }
.photo { position: relative; margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; }
.feature h2 + .lead { margin-top: 20px; }
.ticks { list-style: none; margin: 32px 0 0; padding: 0; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks svg { width: 18px; height: 18px; margin-top: 4px; color: var(--red); }
.ticks strong { font-weight: 700; }
.ticks span { color: var(--muted); }

/* Brisbane run */
.run { background: var(--charcoal); color: var(--white); }
.run .lead { color: var(--muted-dark); }
.run-head { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
.route { margin-top: 80px; }
.route-names { display: flex; justify-content: space-between; font-size: clamp(28px, 4.2vw, 56px); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1; }
.route-track { position: relative; height: 24px; margin: 28px 0 16px; }
.route-line { position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; background: repeating-linear-gradient(90deg, var(--white) 0 18px, transparent 18px 30px); opacity: .55; transform-origin: left; }
.route-end { position: absolute; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--charcoal), 0 0 0 6px rgba(255,255,255,.4); z-index: 1; }
.route-end.a { left: 0; } .route-end.b { right: 0; }
.route-truck { position: absolute; top: 5px; left: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); z-index: 2; opacity: 0; }
.route-meta { display: flex; justify-content: space-between; color: var(--muted-dark); font-size: 15px; }
.run-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--charcoal-line); }
.run-cols p { color: var(--muted-dark); margin-top: 10px; }

/* Route draws once when it scrolls into view */
.js .route-line { transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
.js .route.in .route-line { transform: scaleX(1); }
@keyframes drive { 0% { left: 12px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% - 26px); opacity: 0; } }
.js .route.in .route-truck { animation: drive 2.4s .6s var(--ease-out) both; }

/* Gallery */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.gallery-head p { color: var(--muted); max-width: 26em; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82vw); gap: 20px;
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--edge);
  padding: 48px var(--edge) 8px;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figure .photo img { aspect-ratio: 4 / 3; }
.gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* Trade */
.trade { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; }
.trade-list { display: grid; margin: 0; padding: 0; list-style: none; }
.trade-list li { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.trade-list li:last-child { border-bottom: 1px solid var(--line); }
.trade-list p { color: var(--muted); }

/* Family */
.family { background: var(--black); color: var(--white); }
.family-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 72px; align-items: center; }
.family .photo::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.family p { color: #CFD0CC; font-size: 19px; line-height: 1.65; }
.family p + p { margin-top: 18px; }
.family h2 + p { margin-top: 28px; }
.sign-off { margin-top: 32px; font-weight: 600; color: var(--white); }

/* Reviews */
.reviews { background: var(--stone); }
.reviews-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 72px; align-items: end; }
.quote-big p { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; font-weight: 600; font-stretch: 104%; letter-spacing: -0.015em; }
.quote-big footer, .quote-small footer { margin-top: 20px; color: var(--muted); font-size: 15px; }
.rating b { display: block; font-size: 56px; line-height: 1; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.rating .stars { color: var(--red); letter-spacing: 3px; margin-top: 8px; }
.rating span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.quotes-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 72px; padding-top: 40px; border-top: 1px solid #D6D6D1; }
.quote-small p { font-size: 19px; line-height: 1.5; }
blockquote { margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; }
.faq-list { border-top: 2px solid var(--text); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  rotate: 45deg; translate: 0 -4px; transition: rotate .2s var(--ease-out), translate .2s var(--ease-out);
}
.faq-list details[open] summary::after { rotate: -135deg; translate: 0 3px; }
.faq-list summary:hover { color: var(--red); }
.faq-list .answer { padding: 0 48px 26px 0; color: var(--muted); font-size: 17px; max-width: 46em; }
.faq-list .answer p + p { margin-top: 10px; }

/* Quote form */
.quote-sec { background: var(--stone); }
.quote-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; }
.phone-big { display: inline-block; margin-top: 32px; font-size: clamp(36px, 4.4vw, 54px); line-height: 1; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; color: var(--red); text-decoration: none; font-variant-numeric: tabular-nums; }
.aside-note { margin-top: 14px; color: var(--muted); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--white); padding: 40px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06); }
.field { display: flex; flex-direction: column; gap: 8px; }
.full { grid-column: 1 / -1; }
label, legend { font-size: 15px; font-weight: 600; }
input, select, textarea {
  font: inherit; font-size: 17px; color: var(--text); background: var(--white);
  height: 52px; padding: 0 14px; border: 1.5px solid #B9BAB5; border-radius: 2px;
  transition-property: border-color, box-shadow; transition-duration: .15s;
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(208,20,44,.22); }
fieldset { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1.5px solid #B9BAB5; border-radius: 2px; font-weight: 500; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--text); }
.choices input { accent-color: var(--red); margin: 0; height: auto; }
.form-status { font-weight: 600; }

/* Footer */
.foot { background: var(--black); color: var(--muted-dark); padding: 88px 0 48px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.foot .mark span { color: var(--white); }
.foot h3 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.foot p + p { margin-top: 6px; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.social { display: flex; gap: 8px; margin-top: 24px; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #333; border-radius: 2px; transition-property: border-color, background-color; transition-duration: .15s; }
.social a:hover { border-color: var(--white); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.legal { margin-top: 72px; padding-top: 24px; border-top: 1px solid #222; font-size: 14px; }

.callbar { display: none; }

/* Google rating under the hero buttons */
.rated { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 16px; color: rgba(255,255,255,.86); }
.rated-stars { color: #FFC529; letter-spacing: 2px; }
.rated strong { color: var(--white); font-weight: 700; }

/* Links to the service pages */
.service-links { margin-top: 112px; }
.service-links-title { font-size: 24px; font-stretch: 104%; }
.service-links ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 2px solid var(--text); }
.service-links a { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.service-links strong { display: block; font-weight: 700; font-size: 18px; }
.service-links span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.service-links a:hover strong { color: var(--red); }

/* Routes table in the Brisbane section */
.routes { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--charcoal-line); }
.routes ul { list-style: none; margin: 20px 0 32px; padding: 0; }
.routes li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--charcoal-line); align-items: baseline; }
.r-name { font-weight: 700; font-size: 19px; }
.r-when { color: var(--white); }
.r-km { color: var(--muted-dark); text-align: right; font-variant-numeric: tabular-nums; }

/* Service pages */
.page-hero { position: relative; background: var(--black); color: var(--white); }
.page-hero img { width: 100%; height: clamp(600px, 74vh, 720px); object-fit: cover; object-position: 50% 70%; opacity: .62; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 22%), linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,0) 70%); pointer-events: none; }
.page-hero .wrap { position: absolute; inset: auto 0 0 0; padding-bottom: 64px; z-index: 1; }
.crumbs { font-size: 15px; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.crumbs a { color: var(--white); }
.page-hero h1 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1; font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; max-width: 20ch; }
.page-hero p { margin-top: 20px; font-size: 20px; color: rgba(255,255,255,.88); max-width: 34em; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.prose-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); }
.prose h2:not(:first-child) { margin-top: 56px; }
.prose p, .prose li { color: var(--muted); font-size: 18px; }
.prose p { margin-top: 16px; }
.prose ul { margin: 16px 0 0; padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--text); }
.cta-band { background: var(--red); color: var(--white); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); }
.cta-band p { margin-top: 10px; font-size: 18px; color: rgba(255,255,255,.9); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: #F0F0EC; }

@media (max-width: 980px) {
  :root { --section: 96px; }
  .top nav { gap: 12px; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--charcoal); box-shadow: 0 16px 32px rgba(0,0,0,.35);
  }
  .nav-links.open { display: flex; }
  .nav-links a.link { padding: 16px 0; font-size: 18px; opacity: 1; border-bottom: 1px solid var(--charcoal-line); }
  .nav-links a.link:last-child { border-bottom: 0; }
  .top .wrap { position: static; }
  .top.menu-open { background: var(--charcoal); }
  .hero { display: block; min-height: 0; }
  .hero img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 30% 60%; }
  .hero::after { inset: 0 0 auto 0; height: 120px; background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0)); }
  .hero .wrap { padding-top: 40px; padding-bottom: 56px; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--charcoal-line); }
  .feature, .feature.flip, .run-head, .trade, .family-grid, .reviews-grid, .faq-grid, .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .photo { order: 0; }
  .run-cols { grid-template-columns: 1fr; gap: 28px; }
  .gallery-head { flex-direction: column; align-items: start; }
  .service-links ul { grid-template-columns: 1fr 1fr; }
  .prose-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero img { height: auto; aspect-ratio: 4 / 3; opacity: 1; }
  .page-hero::after { inset: 0 0 auto 0; height: 120px; background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0)); }
  .page-hero .wrap { position: static; padding-top: 40px; padding-bottom: 56px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --section: 80px; }
  body { padding-bottom: 80px; }
  .top .wrap { height: 80px; }
  .mark img { height: 52px; }
  .top .btn { display: none; }
  .hero .wrap { padding-top: 32px; padding-bottom: 44px; }
  .hero p { font-size: 18px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .facts li { padding: 24px 16px 24px 0; }
  .facts li + li { padding-left: 16px; }
  .facts b { font-size: 24px; white-space: nowrap; }
  .feature + .feature { margin-top: 80px; }
  .trade-list li { grid-template-columns: 1fr; gap: 8px; }
  .quotes-row { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .faq-list summary { font-size: 18px; }
  .faq-list .answer { padding-right: 0; }
  form { grid-template-columns: 1fr; padding: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white);
    box-shadow: 0 -1px 0 rgba(0,0,0,.08), 0 -8px 24px rgba(0,0,0,.08);
  }
  .callbar .btn { width: 100%; padding: 0 12px; }
  .service-links ul { grid-template-columns: 1fr; }
  .page-hero .wrap { padding-top: 32px; padding-bottom: 44px; }
  .prose-grid { gap: 32px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .js .route-line { transform: none; }
}
