/* ==========================================================================
   RICIN XPRESS — Design System (vanilla CSS)
   ========================================================================== */

:root {
  --black: #02050a;
  --navy: #06101d;
  --navy-2: #0a1624;
  --card: rgba(13, 20, 29, 0.78);
  --card-solid: #0c141f;
  --red: #ff1f26;
  --red-dark: #d91017;
  --white: #ffffff;
  --text: #f3f5f7;
  --muted: #a9b0ba;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --glow: 0 12px 40px rgba(255, 31, 38, 0.32);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 78px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  background: var(--red);
  margin-top: 8px;
}
.eyebrow.center { display: block; text-align: center; }
.eyebrow.center::after { margin: 8px auto 0; }

.text-red { color: var(--red); }
.muted { color: var(--muted); }
.section { padding: 96px 0; position: relative; }
.section-dark { background: linear-gradient(180deg, var(--black), var(--navy) 55%, var(--black)); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 12px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex;

  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  background: transparent;
}
.btn i { font-size: 0.9em; }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(255, 31, 38, 0.48); }
.btn-ghost { border-color: var(--border-strong); color: var(--white); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; gap: 8px; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(3, 7, 13, 0.86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1;
}
.brand span { color: var(--white); font-style: italic; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--red); }
.header-cta { padding: 11px 24px; }

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.mobile-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.mobile-toggle span:nth-child(1) { top: 15px; }
.mobile-toggle span:nth-child(2) { top: 21px; }
.mobile-toggle span:nth-child(3) { top: 27px; }
.mobile-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 56px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 72%;
  filter: brightness(1.14) contrast(1.06) saturate(1.08);
  image-rendering: -webkit-optimize-contrast;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(2, 5, 10, 0.9) 8%, rgba(2, 5, 10, 0.66) 38%,
      rgba(2, 5, 10, 0.16) 68%, rgba(2, 5, 10, 0.45) 100%),
    radial-gradient(70% 60% at 12% 40%, rgba(255, 31, 38, 0.12), transparent 70%);
}

.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 620px; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.badge-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 31, 38, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(255, 31, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 31, 38, 0); }
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.94;
  margin-bottom: 16px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-title .line-2 {
  display: block;
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--red);
  text-shadow: 0 0 60px rgba(255, 31, 38, 0.45);
}
.hero-sub {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
}
.hero-text { color: var(--muted); max-width: 470px; margin-bottom: 28px; }
.hero-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.hero-points li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.hero-points i { color: var(--red); width: 22px; text-align: center; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Feature strip */
.feature-strip {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  overflow: hidden;
}
.feature-strip .fs-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  border-right: 1px solid var(--border);
}
.feature-strip .fs-item:last-child { border-right: none; }
.fs-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: rgba(255, 31, 38, 0.12);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.fs-item strong { display: block; font-size: 0.97rem; }
.fs-item span { font-size: 0.86rem; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 90px;
  overflow: hidden;
}
.page-hero .hero-media img { object-position: center; }
.page-hero-inner { position: relative; z-index: 1; }
.page-title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1; }
.page-title .accent { display: block; color: var(--red); }
.page-lead { color: var(--muted); max-width: 500px; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 31, 38, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 31, 38, 0.12);
}
.card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 31, 38, 0.12);
  color: var(--red);
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.92rem;
}
.card-link i { transition: transform 0.25s var(--ease); }
.card:hover .card-link i { transform: translateX(5px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 31, 38, 0.5), transparent);
}
.step { text-align: center; position: relative; }
.step-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy-2);
  border: 1px solid var(--border-strong);
  position: relative;
  z-index: 1;
  transition: all 0.35s var(--ease);
}
.step:hover .step-num {
  border-color: var(--red);
  color: var(--red);
  box-shadow: var(--glow);
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* CTA band */
.cta-band {
  position: relative;
  padding: 90px 0;
  text-align: center;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 31, 38, 0.18), transparent 70%), var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.form-section + .form-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border); }
.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 22px;
}
.form-section-title .num { color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-group label { font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; }
.form-group label .req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  width: 100%;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #6f7783; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 31, 38, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 31, 38, 0.12);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--red); background: rgba(255, 31, 38, 0.08); }
.field-error {
  display: none;
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 6px;
}
.field-error.show { display: block; }
select option { background: var(--navy-2); color: var(--white); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  transition: all 0.35s var(--ease);
  max-width: min(92vw, 380px);
  font-size: 0.93rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; flex: 0 0 26px; }
.toast.success .ico { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.toast.error .ico { background: rgba(255, 31, 38, 0.15); color: var(--red); }
.toast.info .ico { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* ---------- Tracking ---------- */
.track-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  max-width: 780px;
}
.track-form { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.track-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  background: rgba(255, 31, 38, 0.1);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.track-form input {
  flex: 1 1 240px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 16px;
  color: var(--white);
  text-transform: uppercase;
}
.track-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 31, 38, 0.12); }
.track-note { display: flex; align-items: center; gap: 8px; margin: 16px 0 0 78px; font-size: 0.85rem; color: var(--muted); }
.track-note i { color: var(--red); }

.result {
  display: none;
  margin-top: 34px;
  animation: fadeUp 0.5s var(--ease);
}
.result.show { display: block; }
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.result-ref { font-family: var(--serif); font-size: 1.9rem; color: var(--white); }
.result-date { font-size: 0.88rem; color: var(--muted); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
}
.status-pending { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.1); }
.status-confirmed { color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.1); }
.status-onway { color: #c084fc; border-color: rgba(192, 132, 252, 0.4); background: rgba(192, 132, 252, 0.1); }
.status-pickedup { color: #fb923c; border-color: rgba(251, 146, 60, 0.4); background: rgba(251, 146, 60, 0.1); }
.status-completed { color: #22c55e; border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 8px 0 36px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
}
.timeline-step { text-align: center; position: relative; }
.timeline-dot {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-2);
  border: 2px solid var(--border);
  color: var(--muted);
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease);
}
.timeline-step .label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.timeline-step.completed .timeline-dot { border-color: #22c55e; color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.timeline-step.completed .label { color: var(--text); }
.timeline-step.active .timeline-dot {
  border-color: var(--red);
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 0 0 6px rgba(255, 31, 38, 0.14);
  animation: glowPulse 2.2s infinite;
}
.timeline-step.active .label { color: var(--white); font-weight: 700; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255, 31, 38, 0.14); }
  50% { box-shadow: 0 0 0 14px rgba(255, 31, 38, 0.02); }
}

.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.detail {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.detail .k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail .v { font-weight: 500; word-break: break-word; }

.error-card {
  display: none;
  margin-top: 34px;
  text-align: center;
  padding: 46px 30px;
  border: 1px solid rgba(255, 31, 38, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 31, 38, 0.06);
}
.error-card.show { display: block; animation: fadeUp 0.4s var(--ease); }
.error-card i { font-size: 2.2rem; color: var(--red); margin-bottom: 14px; }

/* ---------- Contact ---------- */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(255, 31, 38, 0.5); }
.contact-card .ci {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: rgba(255, 31, 38, 0.12);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.contact-card .k { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-card .v { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 66px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; }
.footer h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a, .footer li { color: var(--muted); font-size: 0.94rem; }
.footer a:hover { color: var(--red); }
.footer p { color: var(--muted); font-size: 0.94rem; max-width: 340px; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Animations ---------- */
.animate-on-scroll { opacity: 1; transform: none; }
.js .animate-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.animate-on-scroll.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }

}

/* ---------- Admin ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  text-align: center;
}
.auth-card .brand { display: inline-block; margin-bottom: 6px; }
.auth-card form { text-align: left; margin-top: 22px; }

.admin-shell { min-height: 100vh; background: var(--black); padding-top: var(--header-h); }
.admin-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(3, 7, 13, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 100;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stat-card .k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-card .v {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 6px 0 2px;
}

.stat-card .n { font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; margin: 6px 0 2px; }
.stat-card .s { font-size: 0.82rem; color: var(--muted); }
.stat-card.accent { border-color: rgba(255, 31, 38, 0.35); box-shadow: 0 0 40px rgba(255, 31, 38, 0.08) inset; }

.toolbar { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin: 26px 0; }
.toolbar input, .toolbar select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  width: 100%;
}
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--red); }

.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; min-width: 940px; }
th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td { padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: 0.92rem; vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.order-ref { font-family: ui-monospace, "SFMono-Regular", monospace; color: var(--red); font-weight: 700; }
.order-status-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  cursor: pointer;
}
.order-actions { display: flex; gap: 8px; }
.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-icon:hover { border-color: var(--red); color: var(--red); }
.btn-delete:hover { background: rgba(255, 31, 38, 0.14); }

.order-cards { display: none; gap: 14px; }
.order-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.order-card .row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; padding: 4px 0; }
.order-card .row span:first-child { color: var(--muted); }

.empty-state { display: none; text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 2rem; color: var(--red); margin-bottom: 12px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(2, 5, 10, 0.8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.show { display: flex; }
.modal-box {
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  overflow: auto;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  animation: fadeUp 0.3s var(--ease);
}
.modal-row { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.modal-label { color: var(--muted); font-size: 0.85rem; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-strip .fs-item:nth-child(2n) { border-right: none; }
  .feature-strip .fs-item:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .mobile-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 22px;
    padding: calc(var(--header-h) + 28px) 20px calc(env(safe-area-inset-bottom, 0px) + 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(2, 5, 10, 0.97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: none; }
  .nav-link { font-size: 1.25rem; font-family: var(--serif); }
  .nav .nav-cta { width: auto; margin-top: 8px; }
  .header { height: var(--header-h); }
  .header-inner { justify-content: space-between; gap: 12px; }
  .mobile-toggle { position: relative; z-index: 120; }
  .header-cta { display: none; }
  .nav .nav-cta { display: inline-flex; }
  .table-wrap { display: none; }
  .order-cards { display: grid; }
  .toolbar { grid-template-columns: 1fr; }
  .modal-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4, .form-row, .detail-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); }
  .hero-media img { object-position: 55% 76%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(2, 5, 10, 0.48), rgba(2, 5, 10, 0.3) 60%, rgba(2, 5, 10, 0.7)); }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip .fs-item { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-strip .fs-item:last-child { border-bottom: none; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 0; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; }
  .timeline-step { display: flex; align-items: center; gap: 16px; text-align: left; padding: 10px 0; }
  .timeline-dot { margin: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .track-note { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .brand { font-size: 1.5rem; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .track-form { flex-direction: column; align-items: stretch; gap: 12px; }
  .track-icon { display: none; }
  .track-form input {
    flex: 0 0 auto;
    width: 100%;
    height: 54px;
    padding: 0 14px;
    font-size: 0.95rem;
    text-overflow: ellipsis;
  }
  .track-form input::placeholder { font-size: 0.85rem; }
  .track-card { padding: 18px 16px; }
  .track-note { font-size: 0.8rem; }
}

/* Brand wordmark image */
.brand-mark {
  height: 1.9rem;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer .brand-mark { height: 2.2rem; }
.auth-card .brand-mark { height: 2.4rem; margin: 0 auto 16px; }
.hero-title .brand-mark { height: clamp(2rem, 5.2vw, 4rem); width: auto; display: inline-block; }
@media (max-width: 768px) {
  .brand-mark { height: 1.5rem; }
}

/* Header without wordmark: nav centred on desktop */
@media (min-width: 901px) {
  .header-inner { justify-content: flex-end; }
  .nav { margin-right: auto; margin-left: auto; }
}

/* Home hero photo composition (coded layout, photo on the right) */
@media (min-width: 769px) {
  .hero { min-height: 92vh; max-height: 1040px; }
  .hero .hero-media img { object-position: 55% 74%; }
  .hero .hero-media::after {
    background: linear-gradient(95deg, rgba(2, 5, 10, 0.86) 0%, rgba(2, 5, 10, 0.7) 24%,
        rgba(2, 5, 10, 0.3) 42%, rgba(2, 5, 10, 0.02) 58%, rgba(2, 5, 10, 0.28) 100%),
      linear-gradient(180deg, rgba(2, 5, 10, 0.55) 0%, transparent 22%, rgba(2, 5, 10, 0.6) 100%);
  }
}
.hero-title { text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55); }

/* Image safety: never crop key subjects, never overflow */
img { max-width: 100%; }
.page-hero { min-height: 46vh; }
.page-hero .hero-media img { object-position: 70% center; }
.page-hero .hero-media::after {
  background: linear-gradient(100deg, rgba(2, 5, 10, 0.88) 0%, rgba(2, 5, 10, 0.66) 45%,
      rgba(2, 5, 10, 0.36) 100%),
    linear-gradient(180deg, rgba(2, 5, 10, 0.62) 0%, transparent 38%, rgba(2, 5, 10, 0.7) 100%);
}
.section img:not(.brand-mark) { width: 100%; height: auto; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero .hero-media img { object-position: 55% 78%; filter: brightness(1.3) contrast(1.08) saturate(1.12); }
  .hero .hero-media::after {
    background: linear-gradient(180deg, rgba(2, 5, 10, 0.42) 0%, rgba(2, 5, 10, 0.26) 55%, rgba(2, 5, 10, 0.66) 100%);
  }
  .hero-title, .hero-sub, .hero-text { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75); }
  .page-hero { min-height: 0; }
  .page-hero .hero-media img { filter: brightness(1.26) contrast(1.06) saturate(1.1); }
}

/* ---------- Motion polish: unified easing + durations ---------- */
:root {
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 420ms;
}
/* smooth scrolling handled in JS (scroll-behavior would fight the inertial loop) */
a, button, .btn, .card, .step, .fs-item, .nav-link, .service-card,
input, select, textarea, .order-card, .stat-card, .timeline-dot {
  transition: color var(--dur-fast) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.header { transition: background-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease),
    backdrop-filter var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.card:hover, .step:hover { transform: translateY(-4px); }
.hero-media img { will-change: transform; }
.js .animate-on-scroll { transition: opacity 620ms var(--ease), transform 620ms var(--ease); }

@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}




/* Inline brand wordmark inside headings */
.inline-mark {
  display: inline-block;
  height: 0.82em;
  width: auto;
  vertical-align: baseline;
  transform: translateY(0.04em);
  margin-right: 0.06em;
}

/* Only one CTA: menu CTA on mobile, header CTA on desktop */
@media (min-width: 901px) { .nav .nav-cta { display: none; } }

/* ── Faded edge imagery (photos melting into the page) ─────── */
.cutout,
.faded-media img{
  width:100%;
  height:auto;
  display:block;
  border:0 !important;
  border-radius:0 !important;
  background:transparent;
  object-fit:cover;
  filter:contrast(1.06) saturate(1.04) brightness(1.02);
  -webkit-mask-image:radial-gradient(ellipse 72% 70% at 50% 48%, #000 30%, rgba(0,0,0,.6) 62%, transparent 92%);
  mask-image:radial-gradient(ellipse 72% 70% at 50% 48%, #000 30%, rgba(0,0,0,.6) 62%, transparent 92%);
  transition:transform var(--dur, .45s) var(--ease, cubic-bezier(.22,.61,.36,1)),
             filter var(--dur, .45s) var(--ease, cubic-bezier(.22,.61,.36,1));
}
.cutout:hover,
.faded-media img:hover{ transform:translateY(-6px) scale(1.015); filter:contrast(1.1) saturate(1.08) brightness(1.05); }
.cutout-wrap,
.faded-media{
  position:relative;
  max-width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 0;
  overflow:hidden;
}
/* Founder: faded photo on mobile only, original framed photo on desktop */
.founder-cutout{ display:none; }
@media (max-width:900px){
  .founder-photo{ display:none; }
  .founder-cutout{ display:block; }
}

/* ── Realistic faded photography (all pages except home hero) ── */
.page-hero .hero-media img {
  -webkit-mask-image: radial-gradient(ellipse 85% 82% at 50% 45%, #000 34%, rgba(0,0,0,.55) 68%, transparent 96%);
  mask-image: radial-gradient(ellipse 85% 82% at 50% 45%, #000 34%, rgba(0,0,0,.55) 68%, transparent 96%);
  filter: brightness(1.16) contrast(1.07) saturate(1.08);
}
.founder-photo {
  -webkit-mask-image: radial-gradient(ellipse 68% 66% at 50% 46%, #000 22%, rgba(0,0,0,.5) 58%, transparent 90%);
  mask-image: radial-gradient(ellipse 68% 66% at 50% 46%, #000 22%, rgba(0,0,0,.5) 58%, transparent 90%);
  filter: brightness(1.16) contrast(1.07) saturate(1.08);
}
.founder-photo {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}
@media (max-width: 900px) {
  .page-hero .hero-media img {
    -webkit-mask-image: radial-gradient(ellipse 110% 78% at 50% 42%, #000 40%, rgba(0,0,0,.5) 74%, transparent 100%);
    mask-image: radial-gradient(ellipse 110% 78% at 50% 42%, #000 40%, rgba(0,0,0,.5) 74%, transparent 100%);
  }
}

/* Keep hero copy readable over the brighter photo */
.hero-sub, .hero-text, .hero-points li { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }

/* ---------- Contact hero: full landscape vehicle presentation ---------- */
.contact-hero {
  min-height: 0;
  height: 56.25vw;
  max-height: 900px;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.contact-hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter: brightness(1.05) contrast(1.05) saturate(1.06);
}
.contact-hero .hero-media::after {
  background:
    linear-gradient(90deg,
      rgba(2, 5, 10, 0.42) 0%,
      rgba(2, 5, 10, 0.18) 42%,
      rgba(2, 5, 10, 0.56) 72%,
      rgba(2, 5, 10, 0.84) 100%),
    linear-gradient(180deg,
      rgba(2, 5, 10, 0.74) 0%,
      rgba(2, 5, 10, 0.10) 32%,
      rgba(2, 5, 10, 0.28) 70%,
      rgba(2, 5, 10, 0.78) 100%);
}
.contact-hero .page-hero-inner {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + 82px);
}
.contact-hero .eyebrow,
.contact-hero .page-title,
.contact-hero .page-lead {
  width: min(100%, 510px);
}
.contact-hero .page-title {
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.78);
}
.contact-hero .page-lead {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.78);
}

@media (max-width: 900px) {
  .contact-hero {
    height: 56.25vw;
    max-height: none;
    min-height: 320px;
  }
  .contact-hero .page-hero-inner {
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 34px;
  }
  .contact-hero .hero-media::after {
    background:
      linear-gradient(180deg,
        rgba(2, 5, 10, 0.38) 0%,
        rgba(2, 5, 10, 0.05) 34%,
        rgba(2, 5, 10, 0.30) 58%,
        rgba(2, 5, 10, 0.90) 100%);
  }
  .contact-hero .eyebrow,
  .contact-hero .page-title,
  .contact-hero .page-lead {
    width: 100%;
    max-width: 640px;
  }
}

/* ---------- Contact page: mobile-first hero polish ---------- */
@media (max-width: 900px) {
  .contact-hero {
    height: auto;
    min-height: 0;
    display: block;
    overflow: hidden;
    padding: 0;
    background: #02050a;
  }

  /* Keep the full 16:9 blue van image visible on phones — no subject crop. */
  .contact-hero .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .contact-hero .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .contact-hero .hero-media::after {
    background:
      linear-gradient(180deg,
        rgba(2, 5, 10, 0.08) 0%,
        rgba(2, 5, 10, 0.04) 38%,
        rgba(2, 5, 10, 0.44) 66%,
        rgba(2, 5, 10, 0.96) 100%);
  }

  /* Let the copy overlap the lower edge of the photograph cleanly. */
  .contact-hero .page-hero-inner {
    width: 100%;
    max-width: var(--maxw);
    margin: -92px auto 0;
    padding: 0 24px 34px;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .contact-hero .eyebrow {
    width: auto;
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .contact-hero .page-title {
    width: 100%;
    max-width: 620px;
    font-size: clamp(2.35rem, 10vw, 3.5rem);
    line-height: 0.98;
    margin-bottom: 12px;
  }

  .contact-hero .page-lead {
    width: 100%;
    max-width: 560px;
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(255,255,255,.86);
  }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .mobile-toggle { flex: 0 0 44px; }

  .contact-hero .page-hero-inner {
    margin-top: -86px;
    padding: 0 18px 28px;
  }

  .contact-hero .eyebrow {
    padding: 7px 12px;
    letter-spacing: .14em;
  }

  .contact-hero .page-title {
    font-size: clamp(2.15rem, 11.5vw, 3rem);
  }

  .contact-hero .page-lead {
    font-size: 0.92rem;
    max-width: 360px;
  }

  .contact-hero + .section {
    padding-top: 54px;
  }

  .contact-card {
    min-width: 0;
    padding: 16px;
  }

  .contact-card .v {
    overflow-wrap: anywhere;
  }

  .form-card {
    width: 100%;
    min-width: 0;
  }
}

/* ---------- Services page mobile polish ---------- */
@media (max-width: 768px) {
  /* Keep the Services hero tall enough for its copy and CTAs instead of
     forcing the content into the desktop 3:2 image ratio. */
  .services-photo-hero.full-photo-hero {
    aspect-ratio: auto;
    min-height: 620px !important;
    height: auto;
  }

  .services-photo-hero.full-photo-hero .page-hero-inner {
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 34px;
  }

  .services-photo-hero .page-title {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 0.98;
    max-width: 100%;
  }

  .services-photo-hero .page-lead {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .services-photo-hero .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px !important;
  }

  .services-photo-hero .hero-actions .btn {
    width: 100%;
    min-height: 52px;
  }

  /* Tracking card: stack every control cleanly on phones. */
  .track-card {
    width: 100%;
    max-width: none;
    padding: 18px;
  }

  .track-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .track-form input,
  .track-form .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .track-note {
    margin-left: 0;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
  }

  /* Service cards: make Learn More controls easy to tap and prevent
     narrow-width wrapping from creating uneven card heights. */
  .section-dark .grid-3 .card {
    padding: 24px 20px;
  }

  .section-dark .grid-3 .card-link {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    margin-top: 18px;
    border: 1px solid rgba(255, 31, 38, 0.34);
    border-radius: 10px;
    background: rgba(255, 31, 38, 0.08);
  }

  .section-dark .grid-3 .card-link:hover {
    border-color: var(--red);
    background: rgba(255, 31, 38, 0.14);
  }

  /* Bottom support CTA should stack instead of squeezing the button beside
     the heading on small screens. */
  .section-dark > .container > .card[style*="justify-content:space-between"] {
    align-items: stretch !important;
    gap: 18px !important;
    padding: 22px 20px !important;
  }

  .section-dark > .container > .card[style*="justify-content:space-between"] > div {
    width: 100%;
    align-items: flex-start !important;
  }

  .section-dark > .container > .card[style*="justify-content:space-between"] > div .card-icon {
    flex: 0 0 54px;
  }

  .section-dark > .container > .card[style*="justify-content:space-between"] > .btn {
    width: 100%;
    min-height: 50px;
  }

  /* Tracking results stay readable on small screens. */
  .result .card {
    padding: 22px 18px;
  }

  .result-head {
    align-items: flex-start;
    gap: 10px;
  }

  .result-ref {
    font-size: 1.45rem;
    overflow-wrap: anywhere;
  }

  .status-badge {
    max-width: 100%;
  }

  .error-card {
    padding: 34px 20px;
  }
}

@media (max-width: 480px) {
  .services-photo-hero.full-photo-hero {
    min-height: 660px !important;
  }

  .services-photo-hero.full-photo-hero .hero-media img {
    object-position: center center !important;
  }

  .services-photo-hero .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .services-photo-hero .page-title {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
  }

  .services-photo-hero .page-lead {
    font-size: 0.94rem;
  }

  .section-dark .grid-3 .card-link {
    font-size: 0.9rem;
  }
}

/* ---------- Services page: true mobile-first hero sizing ---------- */
@media (max-width: 768px) {
  /* Let the hero grow with its content so the CTA can never be clipped. */
  .services-photo-hero.full-photo-hero {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    display: block;
    overflow: hidden;
  }

  .services-photo-hero.full-photo-hero .hero-media {
    position: absolute;
    inset: 0;
  }

  .services-photo-hero.full-photo-hero .page-hero-inner {
    width: 100%;
    padding-top: calc(var(--header-h) + 42px);
    padding-bottom: calc(42px + env(safe-area-inset-bottom, 0px));
    position: relative;
  }

  .services-photo-hero .hero-actions {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px !important;
  }

  .services-photo-hero .hero-actions .btn {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 14px 18px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    flex: 0 0 auto;
  }

  .services-photo-hero .page-title,
  .services-photo-hero .page-lead {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .services-photo-hero.full-photo-hero .page-hero-inner {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: calc(var(--header-h) + 34px);
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }

  .services-photo-hero .page-title {
    font-size: clamp(2.05rem, 10.5vw, 2.9rem);
    line-height: 1.02;
  }

  .services-photo-hero .page-lead {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .services-photo-hero .hero-actions .btn {
    min-height: 56px;
    padding: 15px 16px;
    font-size: 0.96rem;
  }
}
