/* ==========================================================================
   Deltrans Group Inc — Global Stylesheet
   Brand system derived from the Deltrans logo (navy + metallic blues)
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #0a1f3d;
  --navy-800: #0e2a52;
  --navy-700: #143a6b;
  --blue-600: #1e5aa8;
  --blue-500: #2e86d6;
  --blue-400: #4ea3e6;
  --blue-300: #6fb8e8;
  --blue-100: #e7f1fb;
  --blue-50:  #f3f8fd;

  --accent:   #f5a623;   /* warm CTA accent for contrast */
  --accent-dark: #d98a06;

  --ink:      #16263b;
  --body:     #41526a;
  --muted:    #7286a0;
  --line:     #dde6f1;
  --white:    #ffffff;
  --bg:       #ffffff;
  --bg-soft:  #f6f9fd;

  --ok:       #1f9d57;
  --warn:     #d97706;
  --danger:   #d64545;

  --radius:   14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(14,42,82,.06);
  --shadow:    0 10px 30px rgba(14,42,82,.10);
  --shadow-lg: 0 26px 60px rgba(14,42,82,.18);

  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
section { position: relative; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-800); color: #cdddf0; }
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-500); margin-bottom: 14px;
}
.section__head { max-width: 720px; margin: 0 auto 52px; }
.section__head.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
  text-align: center; line-height: 1.1;
}
.btn--primary { background: var(--accent); color: #2a1a00; border-color: var(--accent); box-shadow: 0 8px 22px rgba(245,166,35,.32); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #2a1a00; transform: translateY(-2px); }
.btn--blue { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.btn--blue:hover { background: var(--blue-500); border-color: var(--blue-500); color:#fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--blue-600); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-500); }
.btn--white { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn--white:hover { background: var(--blue-100); border-color: var(--blue-100); color: var(--navy-800); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand__name { font-weight: 800; color: var(--navy-800); font-size: 1.02rem; letter-spacing: -.01em; line-height: 1; }
.brand__name span { display: block; font-size: .62rem; letter-spacing: .2em; color: var(--blue-500); font-weight: 700; margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 16px; list-style: none; }
.nav__links a { display: block; color: var(--ink); font-weight: 600; font-size: .96rem; white-space: nowrap; padding: 12px 10px; border-radius: var(--radius-sm); }
.nav__links a:hover, .nav__links a.is-active { color: var(--blue-500); background: var(--blue-50); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone { font-weight: 800; color: var(--navy-800); white-space: nowrap; font-size: .94rem; }
.nav__phone small { display:block; font-size:.64rem; font-weight:600; color: var(--muted); letter-spacing:.06em; text-transform:uppercase;}
.nav__cta .btn { padding: 13px 24px; font-size: .96rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2.6px; background: var(--navy-800); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #eaf2fc; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 80% -10%, rgba(46,134,214,.55), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
}
.hero::after {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(680px 380px at 75% 10%, #000, transparent 75%);
  pointer-events:none;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 78px 0 90px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--blue-300); }
.hero__sub { font-size: 1.18rem; color: #c4d6ee; max-width: 540px; margin: 20px 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__actions .btn { min-width: 200px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: #bcd2ed; }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { color: var(--blue-300); }

/* Quote card in hero */
.quote-card {
  background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.quote-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.quote-card p.muted { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem; color: var(--ink);
  background: #fff; border: 1.6px solid var(--line); border-radius: var(--radius-sm); transition: border .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(46,134,214,.16); }
.textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
fieldset { border: 0; padding: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(150deg, var(--blue-500), var(--blue-600)); color: #fff;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--body); margin-bottom: 0; font-size: .98rem; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600);
  font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.1rem;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.stat { text-align: center; }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.stat__label { color: #a8c2e2; font-size: .92rem; }

/* Feature list */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; color: var(--ok); margin-top: 3px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--navy-800), var(--blue-600)); aspect-ratio: 4/3;
  display: grid; place-items: center; color: #fff; position: relative;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; grid-area: 1/1; }
.media-frame__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px;
  background: linear-gradient(to top, rgba(10,31,61,.9), transparent);
}
.media-frame__caption h3 { color: #fff; margin: 0 0 4px; font-size: 1.15rem; }
.media-frame__caption p { color: #d6e6f8; margin: 0; }

/* Fleet photo gallery */
.fleet-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; transition: transform .18s ease, box-shadow .18s ease; }
.fleet-photo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fleet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lanes */
.lanes { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.lane { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; color: var(--ink); }
.lane span { color: var(--muted); font-weight: 600; font-size: .85rem; }

/* Testimonials */
.quote-box { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.quote-box p { font-size: 1.05rem; color: var(--ink); }
.quote-box .who { display:flex; align-items:center; gap: 12px; margin-top: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); display:grid; place-items:center; font-weight:800;}
.stars { color: var(--accent); letter-spacing: 2px; }

/* FAQ accordion */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-weight: 700; color: var(--ink); font-size: 1.02rem; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq__q::after { content: "+"; font-size: 1.4rem; color: var(--blue-500); transition: transform .2s; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 22px; }
.faq__a p { padding-bottom: 18px; color: var(--body); margin: 0; }
.faq__item.open .faq__a { max-height: 460px; }

/* CTA band */
.cta-band { background: linear-gradient(150deg, var(--blue-600), var(--navy-700)); border-radius: var(--radius-lg); padding: 54px; color: #fff; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e6f8; max-width: 560px; margin: 10px auto 26px; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: #e8f1fc; padding: 64px 0 70px; text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #c2d6ef; max-width: 620px; margin: 14px auto 0; font-size: 1.12rem; }
.crumbs { font-size: .85rem; color: #8fb0d6; margin-bottom: 14px; }
.crumbs a { color: #bcd5f0; }

/* ---------- Quote result ---------- */
.estimate {
  background: linear-gradient(150deg, var(--navy-800), var(--blue-600)); color: #fff;
  border-radius: var(--radius); padding: 28px; text-align: center; margin-bottom: 8px;
}
.estimate .price { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; }
.estimate .range { color: #cfe2f7; }
.estimate .meta { display:flex; flex-wrap:wrap; justify-content:center; gap: 8px 20px; margin-top: 14px; font-size: .9rem; color:#d6e6f8;}
.badge { display:inline-block; background: var(--blue-100); color: var(--blue-600); font-weight:700; font-size:.78rem; padding: 4px 11px; border-radius: 999px; }

/* Lock overlay (quote page step 2, before an estimate exists) */
.lead-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 12px; padding: 32px;
  background: rgba(255,255,255,.96); border-radius: var(--radius); backdrop-filter: blur(2px);
}
.lead-lock svg { color: var(--blue-500); }
.lead-lock p { color: var(--muted); max-width: 280px; margin: 0; }

/* ---------- Stepper (booking) ---------- */
.stepper { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.stepper__item { flex:1; min-width: 120px; text-align: center; padding: 12px 8px; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--muted); font-weight: 700; font-size: .88rem; border: 1px solid var(--line); }
.stepper__item.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.stepper__item.done { background: var(--blue-100); color: var(--blue-600); }
.book-step { display: none; }
.book-step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* Alerts */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; margin-bottom: 16px; }
.alert--ok { background: #e8f7ef; color: #176c3e; border: 1px solid #b7e3c8; }
.alert--info { background: var(--blue-50); color: var(--blue-600); border: 1px solid #cfe2f7; }
.alert--err { background: #fdeaea; color: #a23030; border: 1px solid #f3c3c3; }

/* Credentials KPI (about page) */
.kpi { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.kpi .n { font-size: 1.9rem; font-weight: 800; color: var(--navy-800); }
.kpi .l { color: var(--muted); font-size:.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb6d4; padding: 64px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; text-transform: uppercase; }
.site-footer a { color: #9fb6d4; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-brand img { height: 50px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: #8aa3c4; max-width: 280px; }
.footer-contact { padding: 0; }
.footer-contact li { display:flex; gap:10px; margin-bottom: 10px; list-style: none; }
.footer-contact svg { flex:none; color: var(--blue-400); margin-top:3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; font-size: .85rem; color:#7a93b5; }
.footer-legal { white-space: nowrap; }
.footer-creds { display:flex; gap: 16px; flex-wrap:wrap; }
.footer-creds span { background: rgba(255,255,255,.06); padding: 4px 12px; border-radius: 8px; }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mb-1{margin-bottom:12px}.mb-2{margin-bottom:22px}.mt-2{margin-top:22px}
.text-center{text-align:center}.hidden{display:none !important}
.tag-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 54px 0 64px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 18px 22px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open .nav__links a { padding: 12px 4px; border-bottom: 1px solid var(--bg-soft); }
  .cols-3, .cols-2, .lanes, .stats, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 38px 24px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .stats{grid-template-columns:1fr 1fr;}
  .cols-4{grid-template-columns:1fr;}
  body{font-size:16px;}
}
