:root {
  /* Brand palette (from logo/banner) */
  --brand-blue: #004078;        /* primary */
  --brand-blue-700: #003870;    /* deeper */
  --brand-navy: #081f4a;        /* topbar/footer */
  --brand-red: #f02028;         /* accent (backgrounds/buttons) */
  --brand-red-aa: #e02028;      /* accent for small text on white (WCAG AA) */

  /* Alias for existing code (keeps changes safe/minimal) */
  --blue: var(--brand-blue);
  --red: var(--brand-red);
  --white: #ffffff;

  /* Neutrals */
  --text: #0f172a;
  --muted: #475569;
  --bg: #f8fafc;
  --card: #ffffff;
  --surface: #ffffff;
  --border: #e2e8f0;
  --headline-hero: clamp(2rem, 3.6vw, 3rem);

  /* Shadows (slightly cleaner + consistent) */
  --shadow: 0 12px 28px rgba(2, 6, 23, 0.10);
  --shadow-soft: 0 8px 20px rgba(2, 6, 23, 0.06);

  /* Radii */
  --radius: 14px;
  --radius-sm: 10px;

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --pad-x: 1.25rem; /* 20px */

  /* Interaction */
  --focus-ring: rgba(224, 32, 40, 0.45);
  --link: var(--brand-blue);
  --link-hover: var(--brand-blue-700);

  --hero-grad: linear-gradient(
  90deg,
  rgba(0, 64, 120, 0.84) 0%,
  rgba(0, 64, 120, 0.68) 45%,
  rgba(240, 32, 40, 0.52) 100%
  );
  --hero-grad-strong: linear-gradient(
    90deg,
    rgba(0, 64, 120, 0.88) 0%,
    rgba(0, 64, 120, 0.70) 45%,
    rgba(240, 32, 40, 0.56) 100%
  );
  
}

html {
  scroll-behavior: smooth;
}

/* Blog post hero (inside article/page content, not full-width site hero) */
.post-hero {
	background: linear-gradient(90deg, var(--blue), var(--red));
	color: var(--white);
	border-radius: var(--radius);
	padding: 2rem 1.5rem;
	box-shadow: var(--shadow-soft);
}

.post-hero-inner {
	max-width: 75ch;
}

.post-hero-title {
	margin: 0 0 0.75rem 0;
	font-size: var(--headline-hero);
	line-height: 1.15;
  font-weight: 800;
}

.post-hero-sub {
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.1rem;
}

.post-hero-meta {
	margin: 0.9rem 0 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
}

/* Make pill readable on dark/gradient backgrounds */
.pill-on-dark {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.26);
	color: rgba(255, 255, 255, 0.95);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 64, 120, 0.08);
  color: #0b1220;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 64, 120, 0.16);
  margin: 0 0 0.35rem 0;
}

.pill + .page-title {
  margin-top: 0.4rem;
}

.post-hero .pill {
  margin: 0;
}

.post-hero .pill + .post-hero-title {
  margin-top: 0.35rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.page-title,
.hero-title {
  margin: 0 0 0.75rem 0;
  font-size: var(--headline-hero);
  line-height: 1.15;
  font-weight: 800;
}

.hero-lead {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* Containers (UPS-style centered layout) */
.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.container-wide {
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Topbar */
.topbar {
  background: var(--brand-navy);
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
}
.topbar-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.topbar-link { color: rgba(255,255,255,0.92); }
.topbar-link:hover { color: var(--white); }
.topbar-dot { opacity: 0.65; }

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1 1 auto;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tag { font-size: 0.85rem; color: var(--muted); }

.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-lines {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
}
.nav-toggle-lines::before { top: -7px; }
.nav-toggle-lines::after { top: 7px; }

/* Slightly rounded bars */
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  border-radius: 999px;
}
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

body.nav-open {
  overflow: hidden;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: #0b1220;
  font-weight: 600;
}
.nav-link:hover {
  background: rgba(0, 64, 120, 0.08);
}
.nav-link.active {
  background: rgba(240, 32, 40, 0.10);
  color: var(--brand-red-aa);
}

.nav-cta { margin-left: 0.3rem; }

/* Dropdown */
.dropdown { position: relative; }

/* Services button should look EXACTLY like other nav links */
.dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;

  font: inherit;
  font-weight: 600;   /* ← THIS fixes it */
  color: inherit;
  line-height: inherit;

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;          /* remove hover-breaking gap */
  left: 0;
  margin-top: 6px;    /* small visual spacing without dead zone */
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  display: none;
  z-index: 100;
}

/* Keep open on hover and when tabbing (keyboard) */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

/* Hover bridge: prevents flicker when moving mouse into menu */
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.dropdown-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: #0b1220;
  font-weight: 600;
}
.dropdown-link.active {
  background: rgba(0, 64, 120, 0.10);
  color: var(--brand-blue);
  font-weight: 800;
}
.dropdown-link:hover { background: rgba(0, 64, 120, 0.08); }

.chev { font-size: 0.85rem; opacity: 0.8; }

/* Mobile full-screen overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  margin: 0;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-content {
  width: min(92vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 240ms ease, opacity 240ms ease;
}

.mobile-nav-overlay.is-open .mobile-nav-content {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-overlay,
  .mobile-nav-content,
  .mobile-services-menu {
    transition: none;
    transform: none;
  }
}

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-close:focus { outline: none; }
.mobile-nav-close:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  color: #0b1220;
}
.mobile-nav-link.active {
  background: rgba(0, 64, 120, 0.10);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 64, 120, 0.16);
}

.mobile-services {
  width: 100%;
}

.mobile-services-toggle {
  width: 100%;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 64, 120, 0.06);
  font: inherit;
  font-weight: 700;
  color: #0b1220;
  cursor: pointer;
}
.mobile-services-toggle.active {
  background: rgba(0, 64, 120, 0.10);
  border-color: rgba(0, 64, 120, 0.20);
  color: var(--brand-blue);
}

.mobile-services-menu {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: max-height 220ms ease, opacity 220ms ease, padding-top 220ms ease;
  padding-top: 0;
  opacity: 0;
}

.mobile-services-menu.is-open {
  max-height: 520px;
  padding-top: 0.35rem;
  opacity: 1;
}
.mobile-services-menu .mobile-nav-link {
  padding-left: 1.4rem;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand-red);
  color: var(--white);
}
.btn-primary:hover { filter: brightness(0.95); }

.btn-secondary {
  background: rgba(0, 64, 120, 0.10);
  border-color: rgba(0, 64, 120, 0.18);
  color: var(--brand-blue);
}
.btn-secondary:hover { background: rgba(0, 64, 120, 0.14); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: #0b1220;
}
.btn-ghost:hover { background: rgba(15, 23, 42, 0.04); }

.btn-block { width: 100%; }

/* White buttons for the band section */
.btn-white {
  background: var(--white);
  color: #0b1220;
}
.btn-white:hover {
  background: #f1f5f9;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);

}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.95);
}
  
/* Anchor hover color should NOT override button text colors */
a.btn:hover,
a.btn:focus,
a.btn:active {
  text-decoration: none;
}

/* Lock text colors for each button variant (fixes nav + hero + band buttons) */
a.btn.btn-primary,
a.btn.btn-primary:hover,
a.btn.btn-primary:focus,
a.btn.btn-primary:active {
  color: var(--white);
}

a.btn.btn-secondary,
a.btn.btn-secondary:hover,
a.btn.btn-secondary:focus,
a.btn.btn-secondary:active {
  color: var(--brand-blue);
}

a.btn.btn-ghost,
a.btn.btn-ghost:hover,
a.btn.btn-ghost:focus,
a.btn.btn-ghost:active {
  color: #0b1220;
}

/* Lock text colors for white band buttons too */
a.btn.btn-white,
a.btn.btn-white:hover,
a.btn.btn-white:focus,
a.btn.btn-white:active {
  color: #0b1220;
}

a.btn.btn-outline-white,
a.btn.btn-outline-white:hover,
a.btn.btn-outline-white:focus,
a.btn.btn-outline-white:active {
  color: var(--white);
}

/* Hero with demo background */
.hero {
  color: var(--white);
  background:
    linear-gradient(90deg, var(--blue), var(--red)),
    url("/main-site/assets/images/hero-courier-demo.jpg");
  background-size: cover;
  background-position: center;
  padding: 4.5rem 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.hero-content h1 {
  margin: 0 0 0.75rem 0;
  font-size: var(--headline-hero);
  line-height: 1.15;
  font-weight: 800;
}
.hero-sub {
  margin: 0 0 1.25rem 0;
  color: rgba(255,255,255,0.92);
  max-width: 58ch;
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.badge {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Store card */
.store-card {
  background: rgba(255,255,255,0.96);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.6);
}
.store-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.2rem;
}
.store-line {
  margin: 0.35rem 0;
  color: #0b1220;
}
.store-line a { color: var(--blue); font-weight: 700; }
.store-line a:hover { text-decoration: underline; }

.store-hours {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.store-hours-title {
  margin: 0 0 0.6rem 0;
  font-size: 1rem;
}
.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  color: var(--muted);
}
.store-actions {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-head {
  margin-bottom: 1.6rem;
}
.back-link {
  display: inline-block;
  margin: 0 0 0.75rem 0;
  font-weight: 800;
  color: var(--blue);
}
.back-link a { color: inherit; }
.back-link a:hover { text-decoration: underline; }
.post-layout { margin-top: 1rem; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}
.section-head h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.9rem;
}
.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.1rem;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.duo-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.duo-primary {
  order: 1;
}

.duo-secondary {
  order: 2;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  box-shadow: var(--shadow-soft);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 64, 120, 0.22);
}
.card-media {
  height: 140px; /* keep your current value */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  object-position: center top;
}
/* picture must be a block that fills the box */
.card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
/* object-fit belongs ONLY on img */
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card-media.tall {
  height: 220px;
}
.card-media.hero-media {
  height: 260px;
}
.card-body {
  padding: 1.05rem 1.05rem 1.15rem;
}
.card-body h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.15rem;
}
.card-body p {
  margin: 0 0 0.85rem 0;
  color: var(--muted);
}
.card-link {
  font-weight: 800;
  color: var(--blue);
}
.card-summary {
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.post-date {
  margin: 0 0 0.35rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.sidebar-actions {
  margin-top: 1rem;
}
a.card.service-card .card-media {
  height: 220px;
}

/* Band section */
.band {
  background: linear-gradient(90deg, var(--blue), var(--red));
  color: var(--white);
  padding: 2.75rem 0;
}
.band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}
.band-text h2 { margin: 0 0 0.4rem 0; }
.band-text p { margin: 0; color: rgba(255,255,255,0.92); max-width: 70ch; }
.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand-strip {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.brand-strip img {
  display: block;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  height: auto;
  opacity: 0.96;  
}

/* Footer */
.footer {
  background: var(--brand-navy);
  color: rgba(255,255,255,0.92);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-brand {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--white);
}
.footer-title {
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-text { margin: 0.7rem 0 0 0; color: rgba(255,255,255,0.85); }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-links a { color: rgba(255,255,255,0.88); }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.80);
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 10px;
}
