/*
Theme Name: Fowlers Building Transport
Theme URI: https://fowlersbuildingtransport.com.au
Author: Delamere System Solutions
Description: Bespoke block theme for Fowlers Building Transport, Trafalgar VIC. No blog, no comments, minimal dependencies.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fbt
*/

/* ---------------------------------------------------------------
   Fonts
   --------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-800-normal.woff2') format('woff2');
}

/* ---------------------------------------------------------------
   Tokens
   --------------------------------------------------------------- */
:root {
  --ink: #14171a;
  --ink-80: #3a4149;
  --paper: #ffffff;
  --bone: #f4f2ed;
  --steel: #5a6570;
  --hivis: #f5c400;
  --line: rgba(20, 23, 26, .14);
  --line-soft: rgba(20, 23, 26, .08);
  --gut: 24px;
  --max: 1240px;
  --shadow: 0 1px 2px rgba(20,23,26,.05), 0 8px 28px -12px rgba(20,23,26,.22);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

.fbt-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700;
}
.fbt-skip:focus { left: 0; }

/* ---------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap-narrow { max-width: 760px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--bone { background: var(--bone); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink a { color: var(--paper); }

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 14px;
}
.section--ink .eyebrow { color: var(--hivis); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-80);
  max-width: 62ch;
}
.section--ink .lede { color: rgba(255,255,255,.76); }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.rule {
  height: 1px; border: 0; background: var(--line); margin: 0;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
  cursor: pointer;
}
.btn:hover { background: var(--hivis); border-color: var(--hivis); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
/* Buttons on any dark band: the hero photo, the ink sections and the CTA.
   Kept as one rule so a new dark section can never ship an invisible
   ink-on-ink ghost button again. */
.section--ink .btn,
.cta .btn { background: var(--hivis); border-color: var(--hivis); color: var(--ink); }
.section--ink .btn:hover,
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

.hero .btn--ghost,
.section--ink .btn--ghost,
.cta .btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
}
.hero .btn--ghost:hover,
.section--ink .btn--ghost:hover,
.cta .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -.02em; text-transform: uppercase;
}
.brand__sub {
  font-size: .625rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--steel); margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .9375rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--hivis); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--steel); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--hivis); }
  .header-phone span { display: none; }
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(104deg, rgba(10,12,14,.92) 0%, rgba(10,12,14,.74) 42%, rgba(10,12,14,.22) 100%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(80px, 13vw, 168px);
  max-width: 820px;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero__lede { color: rgba(255,255,255,.82); font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 56ch; }
.hero .eyebrow { color: var(--hivis); }

.hero--page .hero__inner { padding-block: clamp(64px, 9vw, 116px); }

/* Capability strip */
.capstrip { background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); }
.capstrip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,.1);
}
.capstrip__item {
  padding: 26px 22px;
  border-right: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.72);
  font-size: .875rem; line-height: 1.45;
}
.capstrip__item b {
  display: block; color: #fff; font-size: 1rem; font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 5px;
}
@media (max-width: 860px) { .capstrip__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .capstrip__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Section heading block
   --------------------------------------------------------------- */
.sechead { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.sechead--split {
  max-width: none; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr);
  gap: 32px; align-items: end;
}
@media (max-width: 860px) { .sechead--split { grid-template-columns: 1fr; align-items: start; } }

/* ---------------------------------------------------------------
   Cards
   --------------------------------------------------------------- */
.cards {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); padding: 30px 28px 34px; }
.section--bone .card { background: var(--bone); }
.card__num {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  color: var(--hivis); margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-80); font-size: .9688rem; margin: 0; }
@media (max-width: 900px) { .cards, .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards--2 { grid-template-columns: 1fr; } }

/* Photo cards */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { display: flex; flex-direction: column; }
.pcard__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard h3 { margin: 18px 0 8px; }
.pcard p { color: var(--ink-80); font-size: .9375rem; margin: 0; }
@media (max-width: 900px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pcards { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Split feature
   --------------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.split--media-first .split__media { order: -1; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3/4; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--media-first .split__media { order: 0; } }

/* ---------------------------------------------------------------
   Exclusions
   --------------------------------------------------------------- */
.exclude {
  border: 2px solid var(--ink);
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper);
}
.exclude__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.exclude__list li {
  position: relative; padding: 14px 0 14px 38px;
  border-top: 1px solid var(--line-soft);
  font-weight: 500;
}
.exclude__list li:first-child { border-top: 0; }
.exclude__list li::before {
  content: ''; position: absolute; left: 4px; top: 50%; margin-top: -8px;
  width: 16px; height: 16px;
  background: var(--ink);
  clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}

/* ---------------------------------------------------------------
   Steps
   --------------------------------------------------------------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps__item {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.steps__n {
  font-size: 2rem; font-weight: 800; letter-spacing: -.04em;
  color: var(--line); line-height: 1;
}
.steps__item h3 { margin-bottom: 8px; }
.steps__item p { color: var(--ink-80); margin: 0; }
@media (max-width: 560px) { .steps__item { grid-template-columns: 48px 1fr; gap: 16px; } .steps__n { font-size: 1.5rem; } }

/* ---------------------------------------------------------------
   Gallery
   A twelve column mosaic on fixed row units. Tiles claim both column
   and row spans and the grid packs densely, so a tall tile sits beside
   short ones without leaving a gap in the row.
   --------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 140px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery figure {
  margin: 0; position: relative; overflow: hidden; background: var(--bone);
  grid-column: span 4; grid-row: span 2;
}
.gallery figure.is-wide { grid-column: span 8; grid-row: span 2; }
.gallery figure.is-tall { grid-column: span 4; grid-row: span 3; }
.gallery figure.is-full { grid-column: span 12; grid-row: span 3; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto;
  transition: transform .6s ease;
}
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 18px 14px;
  background: linear-gradient(to top, rgba(10,12,14,.82), rgba(10,12,14,0));
  color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 110px; gap: 12px; }
  .gallery figure, .gallery figure.is-wide { grid-column: span 3; grid-row: span 2; }
  .gallery figure.is-tall { grid-column: span 3; grid-row: span 3; }
  .gallery figure.is-full { grid-column: span 6; grid-row: span 3; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery figure,
  .gallery figure.is-wide,
  .gallery figure.is-tall,
  .gallery figure.is-full { grid-column: span 1; grid-row: auto; aspect-ratio: 4/3; }
  .gallery figcaption { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   Quote / statement band
   --------------------------------------------------------------- */
.statement { max-width: 22ch; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }

/* ---------------------------------------------------------------
   Form
   --------------------------------------------------------------- */
.formwrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
@media (max-width: 900px) { .formwrap { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block; font-weight: 700; font-size: .875rem; margin-bottom: 7px;
}
.field .hint { font-weight: 400; color: var(--steel); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); background: var(--paper);
  font: inherit; font-size: 1rem; color: var(--ink);
  border-radius: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink);
}
.field--error input, .field--error textarea { border-color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.field__err { color: #b3261e; font-size: .8125rem; font-weight: 600; margin-top: 6px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 18px 20px; margin-bottom: 28px; border-left: 4px solid; font-weight: 500; }
.notice--ok { background: #eef6ee; border-color: #2e7d32; }
.notice--bad { background: #fdeeec; border-color: #b3261e; }

.aside-card {
  border: 1px solid var(--line); padding: 28px 26px; background: var(--bone);
}
.aside-card h3 { margin-bottom: 14px; }
.aside-card dl { margin: 0; }
.aside-card dt {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel); margin-top: 18px;
}
.aside-card dt:first-child { margin-top: 0; }
.aside-card dd { margin: 4px 0 0; font-weight: 600; }
.aside-card a { text-decoration: none; border-bottom: 2px solid var(--hivis); }

/* ---------------------------------------------------------------
   CTA band
   --------------------------------------------------------------- */
.cta { background: var(--ink); color: #fff; }
.cta__inner {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center;
  padding-block: clamp(44px, 6vw, 76px);
}
.cta h2 { color: #fff; margin: 0; max-width: 18ch; }
.cta p { color: rgba(255,255,255,.7); margin: 14px 0 0; max-width: 46ch; }
@media (max-width: 760px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.66); border-top: 1px solid rgba(255,255,255,.1); }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-block: clamp(44px, 6vw, 68px);
}
.footer__grid h4 {
  color: #fff; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; margin: 0 0 16px;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 9px; font-size: .9375rem; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: rgba(255,255,255,.5); }
.footer__blurb { font-size: .9375rem; margin-top: 18px; max-width: 38ch; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .8125rem;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------------------------------------------------------------
   Misc / utility
   --------------------------------------------------------------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .5em; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .cta, .btn { display: none !important; }
}
