/* ============================================================
   Pine Transportation NEMT — brand styles
   Palette drawn from brand brochure: deep pine green, champagne
   gold, warm cream. Type: Montserrat (display) / Inter (text).
   ============================================================ */

:root {
  --pine: #17402e;
  --pine-deep: #0e2c1f;
  --pine-soft: #245c43;
  --gold: #c19a4b;
  --gold-soft: #d9bc7a;
  --cream: #f7f4ee;
  --white: #ffffff;
  --ink: #1c2a23;
  --ink-soft: #4c5b53;
  --line: #e4e0d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 44, 31, 0.10);
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-text: "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html { background: var(--white); }

body {
  overflow-x: clip;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1160px, 92%); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--pine); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); color: var(--pine); }

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: #fff;
}
h1 .accent { color: var(--gold-soft); }

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin-bottom: 0.6em;
}
h2.on-dark { color: #fff; }

h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }

.kicker {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}
.kicker::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 42px; height: 2px; background: var(--gold);
  margin-left: 14px; opacity: 0.75;
}
.kicker-light { color: var(--gold-soft); }
.kicker-gold { color: var(--gold-soft); }

.section-lede { max-width: 58ch; color: var(--ink-soft); margin-bottom: 3rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.9375rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }

.btn-gold { background: var(--gold); color: var(--pine-deep); }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 8px 22px rgba(193, 154, 75, 0.35); }

.btn-green { background: var(--pine); color: #fff; }
.btn-green:hover { background: var(--pine-soft); box-shadow: 0 8px 22px rgba(23, 64, 46, 0.3); }

.btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.65); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.55rem; letter-spacing: 0.30em; color: var(--pine);
}
.brand-sub {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.60rem; letter-spacing: 0.26em; color: var(--gold);
}
.brand-sub em { font-style: normal; color: var(--pine-soft); }

.nav-menu {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.nav-menu a:not(.btn) {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem;
  color: var(--ink); text-decoration: none;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-menu a:not(.btn):hover { color: var(--pine); border-color: var(--gold); }
.nav-phone a { color: var(--pine) !important; font-weight: 700 !important; }
.btn-nav { padding: 11px 22px; font-size: 0.875rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle-bar {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--pine); margin: 5px 0; transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../assets/hero-road.jpg") center 62% / cover no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 33, 23, 0.94) 0%, rgba(12, 38, 26, 0.82) 42%, rgba(14, 44, 31, 0.45) 75%, rgba(14, 44, 31, 0.30) 100%);
}
.hero-inner { padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 10vw, 8rem); max-width: 1160px; }
.hero-inner h1 { max-width: 13ch; margin-bottom: 0.45em; }
.hero-lede {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 2rem; }
.hero-note {
  color: var(--gold-soft);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Trust strip ---------- */

.trust-strip { background: var(--pine-deep); border-top: 3px solid var(--gold); }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 18px 28px; padding-block: 22px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--cream);
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.trust-item .icon { color: var(--gold-soft); width: 22px; height: 22px; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-cream { background: var(--cream); }

.section-dark {
  background: linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 100%);
  position: relative; overflow: hidden;
}

/* subtle pine silhouettes on dark panels, echoing the brochure */
.pines-bg {
  position: absolute; inset: auto 0 0 0; height: 52%;
  pointer-events: none; opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='170' viewBox='0 0 260 170'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M50 58 L68 92 L58 92 L74 118 L62 118 L80 150 L53 150 L53 170 L47 170 L47 150 L20 150 L38 118 L26 118 L42 92 L32 92 Z'/%3E%3Cpath d='M185 97 L197 120 L190 120 L201 138 L193 138 L205 156 L187 156 L187 170 L183 170 L183 156 L165 156 L177 138 L169 138 L180 120 L173 120 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
          mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-soft);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cream);
  color: var(--pine);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.9875rem; }

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
}
.split-reverse .split-media { order: 2; }
.split-reverse .split-copy { order: 1; }

.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(10, 30, 21, 0.35);
  width: 100%; height: 460px; object-fit: cover;
}

.media-badge {
  position: absolute; left: 22px; bottom: 22px;
  background: var(--gold);
  color: var(--pine-deep);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.media-badge-num { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; }
.media-badge-label { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; }

.stack-media { padding-bottom: 90px; }
.stack-media img { height: 400px; }
.stack-media-over {
  position: absolute; right: -6%; bottom: 0;
  width: 58% !important; height: 230px !important;
  border: 6px solid var(--cream);
}

.feature-list { list-style: none; display: grid; gap: 26px; margin-top: 2.2rem; }
.feature-list li { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(193, 154, 75, 0.16);
  border: 1.5px solid rgba(217, 188, 122, 0.5);
  color: var(--gold-soft);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-list h3 { color: #fff; margin-bottom: 3px; font-size: 1.0625rem; }
.feature-list p { color: rgba(247, 244, 238, 0.75); font-size: 0.9375rem; }

.stat-row { display: flex; gap: 40px; margin-top: 2.2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--pine); }
.stat-label { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Steps ---------- */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 3rem 0 3.2rem;
  counter-reset: step;
}
.step {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  position: relative;
}
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--pine); color: var(--gold-soft);
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.9875rem; }

.center { text-align: center; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--pine-deep) 0%, var(--pine) 70%);
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 3px solid var(--gold);
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  position: relative;
}
.cta-lede { color: rgba(247, 244, 238, 0.8); margin-top: 0.4rem; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer { background: var(--pine-deep); color: var(--cream); padding-top: 4.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 40px;
  padding-bottom: 3rem;
}
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-sub em { color: var(--cream); opacity: 0.85; }
.footer-tag { margin-top: 14px; color: var(--gold-soft); font-family: var(--font-display); font-size: 0.875rem; letter-spacing: 0.06em; }
.footer-col h3 {
  color: var(--gold-soft); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-list { list-style: none; display: grid; gap: 10px; font-size: 0.9375rem; }
.footer-list a { color: var(--cream); text-decoration: none; }
.footer-list a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(247, 244, 238, 0.15);
  padding-block: 22px;
  font-size: 0.8125rem; color: rgba(247, 244, 238, 0.6);
}

/* ============================================================
   Booking page
   ============================================================ */

.page-hero {
  background: linear-gradient(120deg, var(--pine-deep) 0%, var(--pine) 80%);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero p { color: rgba(247, 244, 238, 0.85); max-width: 60ch; margin-top: 0.6rem; }

.booking-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.booking-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}

fieldset { border: 0; margin-bottom: 2.2rem; }
legend {
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  color: var(--pine); margin-bottom: 1.2rem;
  padding-top: 0.4rem;
  display: flex; align-items: center; gap: 10px;
}
.legend-num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--pine); color: var(--gold-soft);
  font-size: 0.9375rem; flex-shrink: 0;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }

label { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.optional { color: var(--ink-soft); font-weight: 400; font-size: 0.8125rem; }

input, select, textarea {
  font: inherit; color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid #cfcabd;
  border-radius: 10px;
  background: #fdfcfa;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(23, 64, 46, 0.15);
}
textarea { resize: vertical; min-height: 100px; }

.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  position: relative; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid #cfcabd; border-radius: 999px;
  padding: 10px 18px; cursor: pointer;
  font-size: 0.9375rem; font-weight: 500;
  background: #fdfcfa;
  transition: border-color .15s, background .15s;
}
.chip:has(input:checked) {
  border-color: var(--pine); background: var(--pine); color: #fff;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.form-note {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.875rem; color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-actions .btn { border: 0; }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--pine); }
.form-status.err { color: #a33a2a; }

.booking-aside { display: grid; gap: 24px; position: sticky; top: 96px; }
.aside-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
}
.aside-card.dark {
  background: linear-gradient(150deg, var(--pine) 0%, var(--pine-deep) 100%);
  color: var(--cream);
}
.aside-card h3 { margin-bottom: 12px; }
.aside-card.dark h3 { color: #fff; }
.aside-card p { font-size: 0.9375rem; color: var(--ink-soft); }
.aside-card.dark p { color: rgba(247,244,238,0.8); }
.aside-phone {
  display: block;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--gold-soft) !important; text-decoration: none; margin-top: 10px;
}
.aside-steps { list-style: none; display: grid; gap: 14px; margin-top: 14px; }
.aside-steps li { display: flex; gap: 12px; font-size: 0.9375rem; color: var(--ink-soft); }
.aside-steps .legend-num { width: 26px; height: 26px; font-size: 0.8125rem; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1020px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-aside { position: static; }
}

@media (max-width: 860px) {
  .br-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(14, 44, 31, 0.12);
    display: none;
    padding: 10px 5vw 22px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 10px 0; }
  .nav-menu a:not(.btn) { display: block; font-size: 1.0625rem; }
  .btn-nav { width: 100%; }

  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 1; }
  .split-reverse .split-copy { order: 2; }
  .split-media img { height: 340px; }
  .stack-media { padding-bottom: 70px; }
  .stack-media-over { right: 0; height: 190px !important; }

  .steps { grid-template-columns: 1fr; }
  .trust-inner { justify-content: flex-start; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .kicker { letter-spacing: 0.14em; }
  .kicker::after { width: 28px; margin-left: 10px; }
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .brand-name { font-size: 1.3rem; }
}
