/* Velora Express — base styles.
   Color values are injected as CSS custom properties from config/brand.php
   (see includes/header.php <style> block), so this file never hardcodes hex codes.
   Layout, spacing, type scale and motion are cloned from the approved reference design. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 800; font-size: 14px; padding: 14px 24px;
  border: 1px solid transparent; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #fff; }
.btn-outline { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: #d8d3e0; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--primary); background: none; border: none; padding: 0; }
.btn-link:hover { text-decoration: underline; }
.btn-link svg { transition: transform .18s ease; }
.btn-link:hover svg { transform: translateX(3px); }

/* ---- Site header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--primary); color: #fff; border-bottom: 1px solid rgba(255,255,255,.18); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo-badge { position: relative; display: inline-flex; align-items: center; background: var(--accent); color: var(--primary); font-weight: 900; font-style: italic; letter-spacing: -0.06em; padding: 8px 14px; border-radius: 4px; font-size: 24px; }
.logo-group { display: flex; align-items: center; }
.logo-dashes { display: inline-flex; flex-direction: column; gap: 5px; margin-left: 5px; }
.logo-dash { display: block; background: var(--accent); border-radius: 0; }
.logo-dash-bold { width: 20px; height: 3px; }
.logo-dash-thin { width: 34px; height: 3px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: 14px; }
.main-nav a, .main-nav button { color: #fff; background: none; border: none; font: inherit; cursor: pointer; transition: color .18s ease; }
.main-nav a:hover, .main-nav button:hover { color: var(--accent); }
.main-nav .icon-inline { display: inline-flex; align-items: center; gap: 4px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; padding: 8px; border-radius: 6px; }
.mobile-nav { display: none; border-top: 1px solid rgba(255,255,255,.18); background: var(--primary); padding: 18px 0; }
.mobile-nav.is-open { display: block; }
.mobile-nav .container { display: flex; flex-direction: column; gap: 16px; font-weight: 700; font-size: 15px; }
.mobile-nav a, .mobile-nav button { color: #fff; background: none; border: none; text-align: left; padding: 0; font: inherit; }
.mobile-nav .btn { width: fit-content; }
@media (max-width: 900px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---- Nav "Services" dropdown (desktop) ---- */
.nav-dropdown { position: relative; }
.nav-dropdown > .icon-inline svg { transition: transform .18s ease; }
/* Invisible bridge over the gap between the trigger and the panel below it —
   without this, the cursor (or focus) leaves every hoverable element while
   crossing the gap and the panel closes before you can reach it. */
.nav-dropdown::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 420px; height: 14px;
}
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  margin-top: 14px; min-width: 420px; background: #fff; border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0,0,0,.2); padding: 14px;
  display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 2px 18px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover > .icon-inline svg,
.nav-dropdown:focus-within > .icon-inline svg { transform: rotate(180deg); }
.main-nav .nav-dropdown-panel a {
  color: var(--ink); font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 8px; white-space: nowrap;
}
.main-nav .nav-dropdown-panel a:hover { background: var(--primary-light); color: var(--primary); }

/* ---- Nav "Services" submenu (mobile) ---- */
.mobile-nav-dropdown summary {
  display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
}
.mobile-nav-dropdown summary::-webkit-details-marker { display: none; }
.mobile-nav-dropdown summary svg { transition: transform .18s ease; }
.mobile-nav-dropdown[open] summary svg { transform: rotate(180deg); }
.mobile-nav-dropdown-panel {
  display: flex; flex-direction: column; gap: 14px; padding: 16px 0 4px 8px;
}
.mobile-nav-dropdown-panel a { font-weight: 600; font-size: 14px; opacity: .88; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: flex-end; color: #fff; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center; transform: scale(1.08); animation: hero-zoom-in 1.2s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero-media.hero-media-plain { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%); }
@keyframes hero-zoom-in { to { transform: scale(1); } }
.hero-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(20,15,10,.55); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 96px 0 56px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin: 0 0 18px; }
.hero-eyebrow .rule { display: inline-block; width: 32px; height: 1px; background: var(--accent); }
.hero h1 { font-size: 46px; font-weight: 900; letter-spacing: -0.045em; line-height: .98; margin: 0 0 20px; max-width: 640px; }
.hero p.lead { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 560px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero.hero-simple { display: block; min-height: 0; padding: 118px 0 56px; }
.hero.hero-simple .hero-inner { padding: 0; }
.hero.hero-simple h1 { font-size: 52px; }

/* Hero content fade-up on load (clone of framer-motion's initial/animate on the hero text + track box) */
.hero-fade { opacity: 0; transform: translateY(22px); animation: hero-fade-up .55s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero-fade.hero-fade-delay { transform: translateY(20px); animation-delay: .18s; }
@keyframes hero-fade-up { to { opacity: 1; transform: translateY(0); } }

.track-box { background: #fff; border-radius: 16px; padding: 12px; max-width: 620px; box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.track-box form { display: flex; gap: 8px; flex-wrap: wrap; }
.track-box input[type=text] { flex: 1; min-width: 200px; border: none; border-radius: 10px; padding: 15px 16px; font-size: 15px; font-weight: 600; color: var(--ink); outline: none; background: transparent; }
.track-box .btn { flex-shrink: 0; }
.track-box p.hint { margin: 10px 4px 0; font-size: 12px; color: var(--muted); }

/* ---- Specialist / promo banner ---- */
.promo-banner { background: var(--surface); padding: 48px 0; }
.promo-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; background: color-mix(in srgb, var(--accent) 22%, #fff); border-radius: 24px; padding: 32px; overflow: hidden; }
.promo-card .eyebrow { color: color-mix(in srgb, var(--accent-dark) 80%, #3a2e00); }
.promo-card p.body { color: color-mix(in srgb, var(--accent-dark) 60%, #3a2e00); max-width: 420px; margin: 16px 0 0; line-height: 1.6; font-size: 14px; }
@media (max-width: 860px) { .promo-card { grid-template-columns: 1fr; } }

/* ---- Depth cards / photos (framer-motion clone) ---- */
.depth-stage { perspective: 1100px; }
.depth-card { transform: translateZ(0); box-shadow: 0 18px 34px rgba(25,25,25,.14); transition: transform 220ms cubic-bezier(0.22,1,0.36,1), box-shadow 220ms cubic-bezier(0.22,1,0.36,1); }
@media (hover: hover) and (pointer: fine) {
  .depth-card:hover { transform: translate3d(0,-7px,20px) rotateX(1deg) rotateY(-1deg); box-shadow: 0 28px 48px rgba(25,25,25,.2); }
}
.depth-photo { position: relative; box-shadow: 20px 20px 0 var(--accent), 0 28px 48px rgba(0,0,0,.22); transform: rotate(2.5deg); border-radius: 16px; overflow: hidden; }
.depth-photo.float-gently { animation: float-gently 5s ease-in-out infinite; }
@keyframes float-gently { 0%, 100% { transform: rotate(2.5deg) translate3d(0,0,0); } 50% { transform: rotate(.8deg) translate3d(0,-10px,0); } }
.depth-photo img, .depth-photo .photo-fill { width: 100%; height: 100%; object-fit: cover; display: block; }
.depth-photo .caption-chip { position: absolute; bottom: 16px; left: 16px; border-radius: 999px; background: var(--ink); padding: 6px 12px; font-size: 12px; font-weight: 700; color: #fff; }

/* ---- Reveal-on-scroll (framer-motion whileInView clone) ---- */
/* Scoped to .has-js (set by an inline script in <head>) so content never
   stays invisible if JS fails to load — a plain CSS/no-JS visitor just
   sees the final state with no animation. */
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(0.22,1,0.36,1), transform .55s cubic-bezier(0.22,1,0.36,1); }
.has-js .reveal.reveal-x { transform: translateX(22px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger the "How we move your world" service cards, matching the reference
   app's index * 0.07s whileInView delay on that specific grid only. */
#services .grid-4 > .reveal:nth-child(2) { transition-delay: .07s; }
#services .grid-4 > .reveal:nth-child(3) { transition-delay: .14s; }
#services .grid-4 > .reveal:nth-child(4) { transition-delay: .21s; }

/* ---- Sections / type scale ---- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--ink); color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; color: var(--primary); margin: 0; }
.section-dark .eyebrow { color: var(--accent); }
.section h2 { font-size: 34px; font-weight: 900; letter-spacing: -0.045em; margin: 10px 0 16px; color: var(--ink); }
.section-dark h2 { color: #fff; }
.testimonial-block h2 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head .btn-link { white-space: nowrap; }

/* ---- Grids ---- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } .grid-6 { grid-template-columns: repeat(2, 1fr); } }

/* ---- Cards ---- */
.card { background: #fff; border: 1px solid #ece7f2; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; min-height: 240px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card .btn-link { margin-top: auto; padding-top: 22px; }
.icon-badge { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
.icon-badge svg { width: 22px; height: 22px; }
.card-dark { background: rgba(255,255,255,.1); border: none; border-radius: 16px; padding: 22px; }
.card-dark .icon-badge { background: transparent; color: var(--accent); width: auto; height: auto; margin-bottom: 18px; }
.card-dark h3 { color: #fff; font-size: 16px; margin-top: 0; }
.card-dark p { color: rgba(255,255,255,.65); }

/* ---- Stat blocks ---- */
.stat-block { border-radius: 16px; padding: 28px; background: #fff; }
.stat-block.stat-dark { background: var(--ink); color: #fff; }
.stat-block .num { font-size: 40px; font-weight: 900; letter-spacing: -0.05em; margin: 0; }
.stat-block .label { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.stat-block.stat-dark .label { color: rgba(255,255,255,.65); }

.stat-strip { border-top: 1px solid #ece7f2; border-bottom: 1px solid #ece7f2; }
.stat-strip .grid-6 > div { text-align: center; padding: 10px; border-right: 1px solid #ece7f2; }
.stat-strip .grid-6 > div:last-child { border-right: none; }
.stat-strip .num { font-size: 26px; font-weight: 900; color: var(--primary); letter-spacing: -0.05em; margin: 0; }
.stat-strip .label { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.3; }
@media (max-width: 900px) { .stat-strip .grid-6 > div:nth-child(3n) { border-right: none; } }
@media (max-width: 600px) { .stat-strip .grid-6 > div:nth-child(2n) { border-right: none; } }

/* ---- Checklist ---- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #ece7f2; padding: 14px 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.check-list svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
@media (max-width: 700px) { .check-list { grid-template-columns: 1fr; } }

/* ---- Process steps ---- */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px; }
.step-list li { border-top: 2px solid var(--primary); padding-top: 18px; }
.step-list .step-top { display: flex; align-items: center; justify-content: space-between; }
.step-list .step-num { font-size: 14px; font-weight: 900; color: var(--primary); }
.step-list h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 800; }
.step-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) { .step-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .step-list { grid-template-columns: 1fr; } }

/* ---- Calculator / forms in cards ---- */
.calc-card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 6px 24px rgba(20,15,10,.06); }
.calc-result { margin-top: 16px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 25%, #fff); padding: 12px 14px; font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--accent-dark) 75%, #3a2e00); }

/* ---- Industries / testimonial ---- */
.testimonial-block { background: var(--ink); color: #fff; overflow: hidden; }
.testimonial-grid { display: grid; grid-template-columns: .8fr .9fr 1.1fr; gap: 30px; align-items: center; }
.testimonial-quote { border-left: 2px solid var(--accent); padding-left: 24px; font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.testimonial-cite { display: block; margin-top: 22px; font-size: 14px; }
.testimonial-cite .name { color: var(--accent); font-weight: 800; }
.testimonial-cite .role { color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---- FAQ accordion ---- */
.faq-list { margin-top: 24px; border-top: 1px solid #ece7f2; border-bottom: 1px solid #ece7f2; }
.faq-item { border-bottom: 1px solid #ece7f2; }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; padding: 18px 0; text-align: left; font-size: 15px; font-weight: 800; color: var(--ink); }
.faq-q svg { flex-shrink: 0; transition: transform .2s ease; color: var(--muted); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); color: var(--primary); }
.faq-a { display: none; max-width: 640px; padding: 0 0 18px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.faq-item.is-open .faq-a { display: block; }

/* ---- CTA banner ---- */
.cta-banner { border-radius: 24px; background: var(--accent); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta-banner .eyebrow { color: color-mix(in srgb, var(--accent-dark) 85%, #3a2e00); }
.cta-banner h2 { margin: 10px 0 8px; font-size: 30px; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); max-width: 520px; }
.cta-banner p { margin: 0; max-width: 460px; font-size: 14px; color: color-mix(in srgb, var(--ink) 75%, transparent); }

/* ---- Footer ---- */
.site-footer { background: var(--footer); color: rgba(255,255,255,.7); }
.site-footer .newsletter { border-bottom: 1px solid rgba(255,255,255,.1); padding: 56px 0; }
.site-footer .newsletter h2 { color: #fff; font-size: 28px; font-weight: 900; letter-spacing: -0.04em; margin: 10px 0; }
.site-footer .newsletter p { max-width: 380px; color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.6; }
.newsletter-form { display: flex; border-radius: 12px; background: #fff; padding: 6px; gap: 6px; max-width: 420px; }
.newsletter-form input { flex: 1; min-width: 0; border: none; border-radius: 8px; padding: 12px; font-size: 14px; font-weight: 600; color: var(--ink); background: transparent; outline: none; }
.newsletter-form .btn { border-radius: 8px; padding: 12px 20px; }
.newsletter-note { margin: 10px 2px 0; font-size: 12px; color: rgba(255,255,255,.4); }
.newsletter-note.success { color: var(--accent); font-weight: 700; }
.site-footer .cols { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 52px 0; }
.site-footer .cols h4 { color: #fff; font-size: 14px; margin: 0 0 16px; font-weight: 800; }
.site-footer .footer-services a { display: block; color: rgba(255,255,255,.6); font-size: 14px; padding: 4px 0; transition: color .18s ease; }
.site-footer .footer-services a:hover { color: var(--accent); }
.footer-services { column-count: 3; column-gap: 22px; }
.footer-legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 8px; }
.footer-tagline { max-width: 260px; font-size: 14px; margin-top: 14px; line-height: 1.6; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } .footer-services { column-count: 2; } .footer-legal-grid { grid-template-columns: 1fr; } }

/* ---- Tracking dashboard ---- */
.track-page { background: var(--surface); padding: 40px 0 70px; }
.track-topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 28px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.back-link:hover { text-decoration: underline; }

.track-hero { background: var(--ink); color: #fff; border-radius: 20px; padding: 32px; margin-bottom: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.track-hero .grid2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; }
@media (max-width: 800px) { .track-hero .grid2 { grid-template-columns: 1fr; } }
.track-hero .tracking-num { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 24px; font-weight: 800; letter-spacing: .05em; margin: 8px 0 0; }
.track-status-chip { width: 48px; height: 48px; border-radius: 999px; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.track-hero .eta-box { background: rgba(255,255,255,.1); border-radius: 14px; padding: 20px; }
.progress-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; margin-top: 12px; }
.progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: 0; transition: width 1s cubic-bezier(0.22,1,0.36,1); }

.timeline { list-style: none; margin: 24px 0 0; padding: 0; }
.timeline li { display: flex; gap: 16px; padding-bottom: 28px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; background: var(--surface); color: var(--accent-dark); }
.timeline li.complete .dot { background: var(--primary); color: #fff; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: #ece7f2; }
.timeline li.complete:not(:last-child)::before { background: var(--primary); }
.timeline time { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.timeline .row { display: flex; justify-content: space-between; flex: 1; gap: 12px; flex-wrap: wrap; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge-accent { background: color-mix(in srgb, var(--accent) 30%, #fff); color: color-mix(in srgb, var(--accent-dark) 70%, #3a2e00); }
.badge-primary { background: var(--primary); color: #fff; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.track-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; margin-top: 28px; }
@media (max-width: 900px) { .track-layout { grid-template-columns: 1fr; } }

.detail-box { background: #fff; border: 1px solid #ece7f2; border-radius: 16px; padding: 24px; }
.detail-box h4 { margin: 0 0 6px; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.not-found { background: color-mix(in srgb, var(--danger) 6%, #fff); border: 1px dashed var(--danger); border-radius: 16px; padding: 32px; text-align: center; }

.route-map { position: relative; height: 300px; overflow: hidden; background: #e8eee8; border-radius: 0 0 16px 16px; }
.route-map .leaflet-container { height: 100%; width: 100%; background: #e8eee8; }
.route-map-scan { position: absolute; bottom: 14px; left: 14px; z-index: 500; display: flex; align-items: center; gap: 8px; border-radius: 10px; background: var(--ink); padding: 8px 12px; font-size: 11px; font-weight: 700; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.route-map-scan .dot-icon { width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.route-map-scan .sub { display: block; color: rgba(255,255,255,.6); }
.route-legend { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; font-size: 12px; border-top: 1px solid #ece7f2; }
.route-legend > div { padding: 12px; }
.route-legend strong { display: block; color: var(--ink); }
.route-legend strong.current { color: var(--primary); }
.route-legend span { color: var(--muted); }

.record-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--ink); background: #101010; box-shadow: 0 20px 40px rgba(0,0,0,.12); margin-top: 28px; }
.record-header { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.1); padding: 24px; color: #fff; }
.record-header::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--primary); }
.record-header .row { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.record-header h2 { margin: 8px 0 4px; font-size: 30px; font-weight: 900; letter-spacing: -0.04em; }
.record-header .sub { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }
.record-tracking-chip { border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent); color: var(--ink); padding: 12px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.2); }
.record-tracking-chip .lbl { margin: 0; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.record-tracking-chip .val { margin: 4px 0 0; font-family: monospace; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.record-body { background: #f7f7f7; padding: 20px; }
.record-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
@media (max-width: 900px) { .record-grid { grid-template-columns: 1fr; } }
.transport-card { border-radius: 14px; background: #fff; padding: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.transport-card .head { display: flex; align-items: center; justify-content: space-between; }
.transport-card .head .kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.transport-card .head .pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--primary); }
.route-row { margin-top: 26px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.route-row .place-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }
.route-row .place { margin: 8px 0 0; font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.route-row .to-dest { text-align: right; }
.route-row .arrow { display: flex; align-items: center; }
.route-row .arrow .rule { width: 54px; height: 1px; background: var(--primary); }
.route-fields { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid #f0f0f0; padding-top: 18px; }
@media (max-width: 700px) { .route-fields { grid-template-columns: 1fr; } .route-row { grid-template-columns: 1fr; text-align: left; } .route-row .arrow, .route-row .to-dest { display: none; } }
.record-field { border-radius: 10px; padding: 13px; background: #f7f7f7; }
.record-field.highlight { background: color-mix(in srgb, var(--accent) 28%, #fff); }
.record-field .lbl { margin: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.record-field .val { margin: 6px 0 0; font-size: 14px; font-weight: 800; }
.record-field.highlight .val { color: color-mix(in srgb, var(--accent-dark) 65%, #3a2e00); }
.consignment-card { border-radius: 14px; background: var(--ink); color: #fff; padding: 22px; }
.consignment-card .kicker { margin: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); }
.consignment-card .desc { margin: 16px 0 0; font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; border-radius: 999px; background: var(--primary); padding: 6px 13px; font-size: 13px; font-weight: 800; }
.status-pill .ping { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.record-parties { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .record-parties { grid-template-columns: 1fr; } }
.party-card { border-radius: 14px; background: #fff; padding: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.party-card .head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f0f0; padding-bottom: 16px; }
.party-card .head .lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.party-card.sender .head .lbl { color: var(--primary); }
.party-card.receiver .head .lbl { color: color-mix(in srgb, var(--accent-dark) 65%, #3a2e00); }
.party-card .dotmark { width: 8px; height: 8px; border-radius: 999px; }
.party-card.sender .dotmark { background: var(--primary); }
.party-card.receiver .dotmark { background: var(--accent); }
.party-card .party-name { margin: 20px 0 0; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.party-card .party-addr { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.party-card .party-phone { margin-top: 20px; display: inline-flex; border-radius: 8px; padding: 8px 12px; font-size: 14px; font-weight: 800; }
.party-card.sender .party-phone { background: color-mix(in srgb, var(--primary) 8%, #fff); color: var(--primary); }
.party-card.receiver .party-phone { background: color-mix(in srgb, var(--accent) 22%, #fff); color: color-mix(in srgb, var(--accent-dark) 65%, #3a2e00); }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=password], select, textarea {
  width: 100%; border: 1px solid #ddd6e6; border-radius: 10px; padding: 13px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); outline: none; transition: border-color .18s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 16px; }
.alert { border-radius: 10px; padding: 13px 16px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #e9f9ee; color: #17753a; border: 1px solid #bfead0; }
.alert-error { background: #fdecef; color: #a11930; border: 1px solid #f4c2cd; }
.alert-info { background: var(--surface); color: var(--primary); border: 1px solid #e4dcf0; }

/* Quote page — styled like the reference app's quote modal card */
.quote-card { background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 20px 50px rgba(20,15,10,.1); border: 1px solid #ece7f2; }
.quote-card .quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }

/* Quote dialog — the reference app's actual "Get a quote" popup, opened from any [data-quote-trigger] */
.quote-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.55); padding: 16px; }
.quote-overlay[hidden] { display: none; }
.quote-dialog { width: 100%; max-width: 520px; border-radius: 20px; background: #fff; padding: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.35); max-height: 90vh; overflow-y: auto; }
.quote-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.quote-dialog-head h2 { margin: 8px 0 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.quote-close { border: none; background: none; padding: 8px; border-radius: 999px; color: var(--muted); }
.quote-close:hover { background: var(--surface); }
.quote-dialog-form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.quote-dialog-form .form-grid, .quote-dialog-form .field { margin-bottom: 0; }
@media (min-width: 640px) {
  .quote-overlay { align-items: center; }
  .quote-dialog { padding: 32px; }
}

/* Cookie preference toggles */
.pref-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px; border-bottom: 1px solid #ece7f2; }
.pref-row:last-child { border-bottom: none; }
.pref-row .pref-title { font-weight: 800; color: var(--ink); margin: 0; }
.pref-row .pref-desc { margin: 8px 0 0; max-width: 460px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.switch { position: relative; display: inline-flex; width: 48px; height: 28px; flex-shrink: 0; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 999px; background: #d8d3e0; transition: background .18s ease; }
.switch .thumb { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; transition: transform .18s ease; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked ~ .thumb { transform: translateX(20px); }
.switch input:disabled + .track { opacity: .6; cursor: not-allowed; }
.pref-panel { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 24px rgba(20,15,10,.06); margin-top: 30px; }
.pref-panel-head { background: var(--ink); color: #fff; padding: 20px 22px; }
.pref-panel-head p.title { margin: 0; font-weight: 800; }
.pref-panel-head p.sub { margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,.6); }
.pref-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 20px 22px; border-top: 1px solid #ece7f2; }
.pref-saved { font-size: 14px; font-weight: 700; color: var(--success); }

/* Fraud / accessibility inline forms */
.support-form-box { margin-top: 40px; border-radius: 16px; padding: 28px; }
.support-form-box.fraud { border: 1px solid color-mix(in srgb, var(--accent) 55%, #000); background: color-mix(in srgb, var(--accent) 18%, #fff); }
.support-form-box.accessibility { border: 1px solid #ece7f2; }
.support-form-box h2 { margin: 18px 0 8px; font-size: 24px; font-weight: 900; }
.support-form-box p.note { margin: 0 0 20px; max-width: 640px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.support-submitted { font-size: 14px; font-weight: 700; color: var(--success); margin-top: 4px; }

.info-cta { margin-top: 40px; border-radius: 20px; background: var(--ink); color: #fff; padding: 32px; }
.info-cta .eyebrow { color: var(--accent); }
.info-cta h2 { margin: 10px 0; font-size: 28px; font-weight: 900; }
.info-cta p { margin: 0 0 20px; max-width: 520px; color: rgba(255,255,255,.65); line-height: 1.6; }

.info-section { display: grid; grid-template-columns: 110px 1fr; gap: 16px; border-bottom: 1px solid #ece7f2; padding-bottom: 34px; margin-bottom: 34px; }
.info-section:last-child { border-bottom: none; margin-bottom: 0; }
.info-section .idx { font-size: 14px; font-weight: 900; color: var(--primary); }
.info-section h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.info-section p { margin: 14px 0 0; max-width: 680px; line-height: 1.8; color: var(--muted); }
@media (max-width: 600px) { .info-section { grid-template-columns: 1fr; } }

.breadcrumb { font-size: 14px; color: rgba(255,255,255,.6); }
.breadcrumb.on-light { color: var(--muted); }
.breadcrumb a { font-weight: 700; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb.on-light a { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

/* ---- Admin (unchanged) ---- */
.admin-body { background: #f4f2f8; min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--ink); color: rgba(255,255,255,.75); flex-shrink: 0; padding: 22px 0; }
.admin-sidebar .brand { padding: 0 22px 22px; font-weight: 900; font-size: 18px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 14px; }
.admin-sidebar nav a { display: block; padding: 11px 22px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7); }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.08); color: #fff; border-right: 3px solid var(--accent); }
.admin-sidebar-top { display: block; }
.admin-nav-toggle { display: none; background: none; border: none; color: #fff; padding: 8px; border-radius: 6px; }
.admin-main { flex: 1; padding: 30px 34px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 24px; margin: 0; font-weight: 900; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 1000px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: #fff; border-radius: 14px; padding: 18px 20px; border: 1px solid #ece7f2; }
.stat-card .num { font-size: 28px; font-weight: 900; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--muted); }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #ece7f2; }
table.admin-table th, table.admin-table td { text-align: left; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #f0edf5; }
table.admin-table th { background: var(--surface); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.admin-table tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: 8px; }
.panel { background: #fff; border: 1px solid #ece7f2; border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.panel h3 { margin-top: 0; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.login-card { background: #fff; border-radius: 16px; padding: 36px; width: 100%; max-width: 380px; box-shadow: 0 20px 45px rgba(0,0,0,.3); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tag-new { background: #e6effe; color: #1d4ed8; }
.tag-contacted { background: #fdf2cf; color: #8a6a00; }
.tag-closed { background: #e9f9ee; color: #17753a; }

/* ================================================================
   Responsive touch-ups (mobile / tablet)
   Everything below is additive only — no rule above this point was
   changed, so desktop and tablet appearance is exactly as before.
   These rules just make sure the same design also fits and behaves
   correctly on narrower screens. ================================= */

/* Large page headings (services, business-shipping, information,
   quote) are set inline per-page with a fixed px size; scale them
   down on phones the same way the class-based headings below are
   scaled, without needing to touch those pages' markup. */
@media (max-width: 600px) {
  .hero h1, .hero.hero-simple h1 { font-size: 34px; }
  .section h2 { font-size: 26px; }
  .site-footer .newsletter h2 { font-size: 24px; }
  .cta-banner h2 { font-size: 24px; }
  .info-cta h2 { font-size: 22px; }
  .record-header h2 { font-size: 24px; }
  .testimonial-quote { font-size: 19px; }
  h1[style*="font-size"] { font-size: 30px !important; }
}
@media (max-width: 400px) {
  .hero h1, .hero.hero-simple h1 { font-size: 28px; }
  h1[style*="font-size"] { font-size: 25px !important; }
}

/* Admin panel: below tablet width the fixed 230px sidebar no longer
   has room next to the content, so it collapses into a top bar with
   a hamburger toggle — the same open/close pattern as the public
   site's mobile nav — instead of squeezing (and horizontally
   overflowing) the page. Same colors/spacing as the desktop sidebar. */
@media (max-width: 880px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; padding: 0; }
  .admin-sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
  .admin-sidebar-top .brand { padding: 14px 0; margin-bottom: 0; border-bottom: none; }
  .admin-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .admin-sidebar nav[data-admin-nav] { display: none; flex-direction: column; border-top: 1px solid rgba(255,255,255,.1); padding: 6px 0 10px; }
  .admin-sidebar nav[data-admin-nav].is-open { display: flex; }
  .admin-sidebar nav a:hover, .admin-sidebar nav a.active { border-right: none; background: rgba(255,255,255,.08); }
  .admin-main { padding: 24px 18px; }
}
@media (max-width: 480px) {
  .admin-main { padding: 18px 14px; }
  .admin-topbar h1 { font-size: 20px; }
  .login-card { padding: 26px; }
}

/* Admin data tables: scroll horizontally on narrow screens instead of
   crushing the columns or breaking the page layout. */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  .table-responsive table.admin-table { min-width: 620px; }
}

/* Admin shipment search: the search input has a fixed min-width for
   desktop layout, so stack it on narrow screens to avoid overflow. */
@media (max-width: 560px) {
  .admin-search { flex-wrap: wrap; width: 100%; }
  .admin-search input[type=text] { min-width: 0; width: 100%; }
  .admin-search button { width: 100%; }
}