/* ============================================================
   Preston Trailer Hire — main stylesheet
   Palette: dark navy, white, light grey, orange accent
   Plain CSS, no build step. Mobile-first, responsive.
   ============================================================ */

:root {
  --navy: #16233c;
  --navy-dark: #0f1a2e;
  --navy-light: #24365a;
  --orange: #f47b20;
  --orange-dark: #d9660f;
  --grey-light: #f4f6f9;
  --grey: #e2e7ee;
  --grey-mid: #6b7688;
  --text: #1f2733;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(16, 26, 46, 0.10);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--orange-dark); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 56px 0; }
.section--grey { background: var(--grey-light); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--tight { padding: 40px 0; }

.lead { font-size: 1.15rem; color: var(--grey-mid); max-width: 720px; }
.section--navy .lead { color: #c7d0e0; }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-dark);
  margin: 0 0 0.6rem;
}
.section--navy .eyebrow { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--grey); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--orange);
  border-radius: 8px;
  flex: 0 0 auto;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand small { display: block; font-size: 0.66rem; font-weight: 600; color: #aab6cc; letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: #dfe5ef;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-block;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--navy-light); color: #fff; }
.nav-links .nav-cta a { background: var(--orange); color: #fff; }
.nav-links .nav-cta a:hover { background: var(--orange-dark); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-dark);
    padding: 10px 16px 18px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .nav-cta a { text-align: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 70px 0 76px;
}
.hero h1 { color: #fff; }
.hero p { color: #cdd6e6; font-size: 1.2rem; max-width: 640px; }
.hero .btn-row { margin-top: 26px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 30px; padding: 0; list-style: none;
}
.hero-badges li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; color: #dbe2ee; font-weight: 600;
}
.hero-badges svg { width: 18px; height: 18px; color: var(--orange); flex: 0 0 auto; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: #fff2e7; color: var(--orange-dark); margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 62px; margin-bottom: 22px; }
.step:last-child { margin-bottom: 0; }
.step .num {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}
.step h3 { margin: 4px 0 4px; }
.step p { margin: 0; }

/* Spec / details table */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey); }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--grey); vertical-align: top; }
.spec-table th { width: 42%; color: var(--navy); font-weight: 700; background: var(--grey-light); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.placeholder { color: var(--orange-dark); font-style: italic; }

/* Feature list */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Callout / notice */
.notice {
  border-left: 4px solid var(--orange);
  background: #fff6ee;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 22px 0;
}
.notice strong { color: var(--navy); }

/* Split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 26px; } }
.media-box {
  background: linear-gradient(150deg, var(--navy-light), var(--navy));
  border-radius: var(--radius);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: #9fb0cc; text-align: center; padding: 24px;
  border: 1px dashed rgba(255,255,255,0.25);
}
.media-box svg { width: 64px; height: 64px; opacity: 0.7; margin-bottom: 10px; }

/* ---------- Forms ---------- */
.form-wrap { background: #fff; border: 1px solid var(--grey); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.field .req { color: var(--orange-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #c7cfdc; border-radius: 8px;
  font-family: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: 12px; align-items: flex-start; }
.checkbox input { width: auto; margin-top: 4px; flex: 0 0 auto; }
.checkbox label { font-weight: 500; color: var(--text); }
.form-hint { font-size: 0.9rem; color: var(--grey-mid); }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid var(--grey); border-radius: 8px;
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy);
  padding: 14px 0; list-style: none; position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 12px;
  font-size: 1.5rem; color: var(--orange); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 14px; margin: 0; color: #3a4657; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #fff; text-align: center; padding: 46px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff3ea; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band .btn--ghost { background: #fff; color: var(--navy); }
.cta-band .btn--secondary { border-color: rgba(255,255,255,0.8); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #aeb9cc; padding: 46px 0 26px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #c3cddd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 30px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
  font-size: 0.85rem; color: #8592a8;
}
.footer-bottom a { color: #8592a8; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.small { font-size: 0.9rem; }
.breadcrumb { font-size: 0.85rem; color: var(--grey-mid); padding: 14px 0 0; }
.breadcrumb a { color: var(--grey-mid); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
