/*
Theme Name: Tottenham Truck Park
Theme URI: https://tottenhamtruckpark.com.au/
Author: Tottenham Truck Park
Description: Lightweight one-page WordPress theme for Tottenham Truck Park.
Version: 1.0.0
Text Domain: tottenham-truck-park
*/

:root {
  --ink: #1f252b;
  --text: #36444f;
  --muted: #6a7782;
  --blue: #1d88bb;
  --blue-dark: #156d98;
  --blue-soft: #eaf6fb;
  --gold: #f9c984;
  --gold-strong: #f2b95e;
  --paper: #f6f9fb;
  --white: #ffffff;
  --line: #dde8ee;
  --shadow: 0 16px 44px rgba(27, 55, 72, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Poppins, "Open Sans", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 82px;
  padding: 12px clamp(18px, 5vw, 68px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(29, 136, 187, 0.14);
  box-shadow: 0 8px 28px rgba(27, 55, 72, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 220px;
  height: auto;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav a,
.phone-link,
.text-link {
  text-decoration: none;
}

.nav a:hover,
.phone-link:hover,
.text-link:hover {
  color: var(--blue);
}

.header-phone {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  min-height: 680px;
  padding: 146px clamp(18px, 6vw, 82px) 74px;
  overflow: hidden;
  background: linear-gradient(110deg, #ffffff 0%, #ffffff 48%, #eaf6fb 48%, #eaf6fb 100%);
}

.hero-media {
  position: absolute;
  inset: 112px clamp(18px, 6vw, 82px) 48px auto;
  width: min(48vw, 650px);
  border-radius: 8px;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-overlay {
  position: absolute;
  inset: 112px clamp(18px, 6vw, 82px) 48px auto;
  width: min(48vw, 650px);
  border-radius: 8px;
  background: linear-gradient(0deg, rgba(11, 23, 32, 0.18), rgba(11, 23, 32, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 18px;
  font-family: "Open Sans", Poppins, Arial, sans-serif;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: "Open Sans", Poppins, Arial, sans-serif;
  font-size: clamp(1.75rem, 2.55vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 530px;
  margin-bottom: 26px;
  color: var(--text);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #12202a;
  background: var(--gold);
  box-shadow: 0 10px 20px rgba(249, 201, 132, 0.28);
}

.button-primary:hover {
  background: #ffd99c;
}

.button-secondary {
  color: var(--blue-dark);
  border-color: rgba(29, 136, 187, 0.3);
  background: var(--white);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-proof span {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--text);
  background: var(--blue-soft);
  border: 1px solid rgba(29, 136, 187, 0.16);
  font-size: 0.9rem;
  font-weight: 700;
}

.band {
  background: var(--white);
}

.summary,
.location,
.split,
.contact-section {
  padding: clamp(48px, 6vw, 82px) clamp(18px, 6vw, 82px);
}

.summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 470px);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.summary-copy {
  max-width: 760px;
}

.vehicle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 4px 0 20px;
  padding: 0;
  list-style: none;
}

.vehicle-list li {
  padding: 8px 11px;
  border: 1px solid rgba(29, 136, 187, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: var(--blue-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.summary-copy p,
.section-heading p,
.split p,
.availability-panel p,
.contact-copy p {
  color: var(--muted);
}

.compact-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfe 100%);
  box-shadow: var(--shadow);
}

.compact-panel div {
  display: grid;
  gap: 7px;
}

.compact-panel strong {
  color: var(--blue-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.compact-panel span {
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  background: var(--blue-soft);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 31px;
  color: var(--text);
  font-weight: 750;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--blue);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 5px;
  height: 8px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

.availability-panel {
  padding: 28px;
  border: 1px solid rgba(29, 136, 187, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.availability-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.08;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 900;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.map-panel {
  position: relative;
  display: grid;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-panel iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  filter: saturate(0.85) contrast(1.02);
}

.address-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 5px;
  width: min(330px, calc(100% - 44px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(27, 55, 72, 0.14);
}

.address-card .phone-link {
  color: var(--blue-dark);
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 540px);
  gap: clamp(30px, 6vw, 78px);
  align-items: start;
  background: #f7fafc;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--text);
  font-weight: 750;
}

.contact-details .phone-link {
  color: var(--blue-dark);
  font-size: 1.18rem;
  font-weight: 900;
}

.enquiry-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

label {
  font-size: 0.84rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfdfe;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(29, 136, 187, 0.18);
  border-color: var(--blue);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.form-status.success {
  color: #147c45;
  font-weight: 900;
}

.form-status.error {
  color: #b33131;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 6vw, 82px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 210px;
  height: auto;
  border-radius: 8px;
}

.site-footer p,
.site-footer span {
  margin: 0;
}

@media (max-width: 1020px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 168px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 54%, #eaf6fb 54%, #eaf6fb 100%);
  }

  .hero-media,
  .hero-overlay {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 320px;
    margin-top: 32px;
    grid-row: 2;
  }

  .hero-overlay {
    display: none;
  }

  .summary,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand img {
    width: 184px;
  }

  .header-phone {
    font-size: 0.92rem;
  }

  .nav {
    font-size: 0.74rem;
  }

  .hero {
    padding: 176px 18px 46px;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-media {
    min-height: 250px;
  }

  .summary,
  .location,
  .split,
  .contact-section {
    padding: 46px 18px;
  }

  .compact-panel,
  .availability-panel,
  .enquiry-form {
    padding: 20px;
  }

  .address-card {
    position: static;
    width: 100%;
    border-radius: 0;
  }

  .map-panel iframe {
    min-height: 310px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
