/* Self-hosted variable fonts. Same files Google served, but same-origin so
   they need no extra DNS lookup or TLS handshake, and no render-blocking
   stylesheet from another host. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #D32F2F;
  --brand-dark: #B71C1C;
  --brand-accent: #1acbff;
  --brand-accent-dark: #0c8fb8;
  --ndis-purple: #6B2976;
  --ndis-purple-dark: #4E1E56;
  --ink: #1a1a1a;
  --ink-soft: #4b5563;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-900: #111827;
  --radius: 1rem;
  --max-width: 1200px;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin: 0 0 .75rem; color: var(--gray-900); }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  border-radius: .6rem;
  padding: .65rem 1.25rem;
  transition: background .15s ease, transform .1s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
  text-decoration: none !important;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-lg { padding: .9rem 1.75rem; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 46px; width: auto; display: block; }
.header-ndis-badge {
  width: 4.75rem;
  height: 4.75rem;
  flex-shrink: 0;
  margin-left: -.25rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-weight: 600;
  font-size: .95rem;
}
.site-nav a { color: var(--gray-900); }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: .5rem;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--gray-900); margin: 0 .6rem; }

/* Hero */
.hero { background: var(--gray-50); padding: 3.5rem 1.5rem; }
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-copy { flex: 1; }
.hero-copy h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.lede { font-size: 1.15rem; max-width: 38rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-media { flex: 1; width: 100%; }

/* Photo placeholder slots */
.photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-align: center;
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
  padding: 1.5rem;
  width: 100%;
}
.photo-slot[data-ratio="4-3"] { aspect-ratio: 4 / 3; }
.photo-slot[data-ratio="1-1"] { aspect-ratio: 1 / 1; }
.photo-slot[data-ratio="2-1"] { aspect-ratio: 2 / 1; }
.photo-slot[data-ratio="3-4"] { aspect-ratio: 3 / 4; }
.photo-slot-icon { width: 2.25rem; height: 2.25rem; color: var(--gray-200); }

/* Real photo frames (replaces .photo-slot once a real image is available) */
.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  width: 100%;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame[data-ratio="4-3"] { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="3-4"] { aspect-ratio: 3 / 4; }
.media-frame[data-ratio="1-1"] { aspect-ratio: 1 / 1; }
.media-frame[data-ratio="2-1"] { aspect-ratio: 2 / 1; }
.media-frame[data-ratio="3-2"] { aspect-ratio: 3 / 2; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 .45rem; color: var(--gray-200); }

/* Sub-page hero (shorter than the homepage hero) */
.page-hero { background: var(--gray-50); padding: 2.25rem 1.5rem 3rem; }
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .5rem; }
.page-hero .lede { margin-bottom: 0; }

/* Trust strip */
.trust-strip { background: var(--gray-900); color: #fff; padding: .9rem 1.5rem; }
.trust-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  justify-content: center;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* NDIS registration section (About page) */
.ndis-section { background: var(--ndis-purple); color: #fff; }
.ndis-section .section-title { color: #fff; }
.ndis-section .section-lede { color: #ecd9f2; }
.ndis-section .photo-slot {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.ndis-section .photo-slot-icon { color: rgba(255,255,255,.5); }
.ndis-tag {
  display: inline-block;
  background: #fff;
  color: var(--ndis-purple-dark);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-top: 1rem;
}

/* Sections */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--gray-50); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-inner-narrow { max-width: 640px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; }
.section-lede { text-align: center; max-width: 42rem; margin: 0 auto 3rem; font-size: 1.05rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 1.75rem;
  text-align: center;
}
.card-icon {
  width: 3rem;
  height: 3rem;
  background: #fdecea;
  color: var(--brand);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 { font-size: 1.1rem; }
.card p { font-size: .95rem; margin: 0; }

a.card { display: block; color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
a.card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.08); transform: translateY(-2px); text-decoration: none; }
.card-featured { border-top-width: 4px; background: linear-gradient(180deg, #fff 60%, var(--gray-50)); }
.card-link { display: inline-block; margin-top: .75rem; font-weight: 700; font-size: .9rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .75rem 0; }
.tag-chip { background: #fdecea; color: var(--brand-dark); font-size: .75rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; }
.tag-chip-accent { background: #e0f7ff; color: var(--brand-accent-dark); }

/* Feature rows */
.feature-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row-reverse { flex-direction: row-reverse; }
.feature-row-text-only .feature-copy { max-width: 46rem; }
.director-block { max-width: 680px; margin: 0 auto; text-align: center; }
.about-van { margin: 2.5rem auto 0; max-width: 900px; }
.about-van figcaption { margin-top: .75rem; text-align: center; font-size: .9rem; color: var(--ink-soft); }
.feature-copy, .feature-media { flex: 1; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.check-list li { position: relative; padding-left: 1.75rem; color: var(--ink-soft); font-size: 1.02rem; }
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 800;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-wide { grid-column: 1 / -1; }
/* Centre a short final row: six tracks, each photo spanning two, so a
   trailing pair or single can be nudged half a column across. */
.gallery-grid-centred { grid-template-columns: repeat(6, 1fr); }
.gallery-grid-centred > figure { grid-column: span 2; }
.gallery-grid-centred > figure:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
.gallery-grid-centred > figure:nth-last-child(1):nth-child(3n + 1) { grid-column: 3 / span 2; }
.gallery-grid figure { margin: 0; }
.gallery-grid figcaption {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Credentials */
.credentials-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.credential-badge {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: .75rem;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.credential-badge .value { display: block; font-size: 1.1rem; color: var(--brand); margin-top: .15rem; }

.policy-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.policy-links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: .6rem;
  padding: .75rem 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.policy-links a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.policy-links svg { width: 1.1rem; height: 1.1rem; color: var(--brand); flex-shrink: 0; }

.client-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem .9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.client-list li { padding-left: 1.2rem; position: relative; }
.client-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}

/* Enquiry form */
.enquiry-form { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.form-row { margin-bottom: 1.25rem; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-row-split .form-row { margin-bottom: 0; }
label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .92rem; }
input, select, textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--gray-200);
  border-radius: .5rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 600; min-height: 1.2em; }
.form-status.success { color: #15803d; }
.form-status.error { color: var(--brand-dark); }

/* Footer */
.site-footer { background: var(--gray-900); color: var(--gray-200); padding: 3rem 1.5rem; text-align: center; }
.footer-inner { max-width: 640px; margin: 0 auto; }
/* The logo artwork is dark red on black, so it needs a light panel to sit
   on against the dark footer. */
.footer-logo-chip {
  display: inline-block;
  background: #fff;
  border-radius: .75rem;
  padding: .85rem 1.25rem;
  margin-bottom: 1rem;
}
.footer-logo { height: 56px; width: auto; display: block; }
.site-footer h3 { color: var(--brand); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.footer-tagline { font-style: italic; color: #9ca3af; margin-bottom: 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-bottom: 1.5rem; font-size: .9rem; font-weight: 600; }
.footer-nav a { color: var(--gray-200); }
.footer-nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; border-top: 1px solid #374151; padding-top: 2rem; margin-bottom: 1rem; font-size: 1.05rem; }
.footer-contact a { color: #fff; font-weight: 700; }
/* The global p rule uses the body ink colour, which is unreadable on the
   dark footer. */
.footer-contact p { color: var(--gray-200); }
.footer-credentials { font-size: .8rem; color: #9ca3af; margin: 0 0 1rem; }
.footer-copyright { font-size: .85rem; color: #9ca3af; margin: 0; }
.footer-credit { font-size: .8rem; color: #9ca3af; margin: .5rem 0 0; }
.footer-credit a { color: #9ca3af; text-decoration: underline; }
.footer-credit a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-centred { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid-centred > figure:nth-last-child(2):nth-child(3n + 1) { grid-column: auto / span 2; }
  .gallery-grid-centred > figure:nth-last-child(1):nth-child(2n + 1) { grid-column: 2 / span 2; }
  .feature-row, .feature-row-reverse { flex-direction: column; }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .header-actions .btn-phone span { display: none; }
  .header-actions .btn-phone { padding: .65rem; flex-shrink: 0; }
  .header-inner { gap: .75rem; }
  .brand { min-width: 0; }
  .brand-logo { height: 36px; }
  .header-ndis-badge { display: none; }
  .hero-inner { flex-direction: column; }
  .form-row-split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid-centred { grid-template-columns: repeat(4, 1fr); }
  .client-list { grid-template-columns: 1fr; }
}
