/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Overpass", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  line-height: 1.65;
  color: #111827;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: "Overpass", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  font-weight: 700;
}

/* Local logo font */
@font-face {
  font-family: "TBJ Ultra Centric";
  src: url("../fonts/TBJUltraCentricDemo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TBJ Ultra Centric";
  src: url("../fonts/TBJUltraCentricDemo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TBJ Ultra Centric";
  src: url("../fonts/TBJUltraCentricDemo-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 94%; max-width: 1120px; margin-inline: auto; }

.section { padding: 72px 0; }
.section-alt { background: #f6f7fb; }
.section h2 { margin: 0 0 18px; font-size: clamp(1.4rem, 1.5rem + 1vw, 1.9rem); line-height: 1.25; }
.section p { max-width: 760px; }
.section-lead { max-width: 760px; margin: 0 0 18px; color: #374151; }

.container--narrow { max-width: 760px; }

.hero {
  padding: 48px 0 72px;
  text-align: center;
}
.hero h2 {
  margin: 0;
  line-height: 1.2;
}
.hero-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.contact-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
}
.contact-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #374151;
  margin: 0 0 10px;
}
.contact-card p {
  margin: 0;
  line-height: 1.5;
}
.contact-card a {
  color: #0b1d3a;
  text-decoration: none;
  font-weight: 600;
}

/* Header */
.site-header {
  background: #ffffff;
  color: #0b1d3a;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  z-index: 9999;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-block: 18px;
  text-align: center;
}
.brand { display: flex; align-items: center; justify-content: center; }
.logo-link { text-decoration: none; color: inherit; display: inline-flex; }
.logo-img {
  height: 160px;
  width: auto;
  display: block;
}
.header-cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.site-tagline {
  display: none;
}
.phone-cta {
  background: #0b1d3a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
}

/* Contact line separator spacing */
.header-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.header-contact-line span[aria-hidden="true"] {
  margin: 0 6px;
}

/* ================================
   MILLS COURIER EXPRESS MOBILE NAV
   ================================ */

.mobile-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 9998;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0;
  padding: 10px 4px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 2px;
  color: #111111;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: 10px;
}

.mobile-nav a.active {
  color: #0b1d3a;
  background: #f3f4f6;
}

@media (max-width: 760px) {
  .mobile-nav {
    display: block;
  }
  .site-nav {
    display: none;
  }
}

@media (min-width: 761px) {
  .mobile-nav {
    display: none;
  }
.site-nav {
  display: flex;
  justify-content: center;
  border-top: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 9998;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
  .nav-inner {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-links a {
    display: inline-block;
    color: #374151;
    font-weight: 500;
    padding: 10px 2px;
    border-bottom: 2px solid transparent;
    text-decoration: none;
  }
  .nav-links a:hover {
    border-bottom-color: #0b1d3a;
    color: #0b1d3a;
  }
  .nav-links a.active {
    border-bottom-color: #0b1d3a;
    color: #0b1d3a;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-inner {
    scroll-behavior: auto;
  }
}

/* Page load animation */
main {
  animation: pageIn 220ms ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.button-primary { background: #0b1d3a; color: #ffffff; }
.button-secondary { background: #ffffff; color: #0b1d3a; border-color: #0b1d3a; }

/* Services */
.service-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.service-icon {
  font-size: 34px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}
.service-body h2 {
  margin: 0 0 8px;
}
.service-body p {
  margin: 0;
  color: #374151;
}

.price-sheet-page {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
}

.services .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.card, .hour-card, .news-item { border-color: #d1d5db; background: #ffffff; }
.card {
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(17,24,39,0.04);
  transition: box-shadow 140ms ease, transform 140ms ease;
}
.card:hover { box-shadow: 0 10px 24px rgba(17,24,39,0.08); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: #374151; }

/* Hours */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.hour-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(17,24,39,0.04);
}
.hour-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.hour-card p { margin: 0; color: #374151; }

.tagline-block {
  margin-top: 10px;
  font-style: italic;
  color: #374151;
}

/* About */
.about p { max-width: 760px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 10px;
}
.contact-grid a { color: #0b1d3a; text-decoration: underline; text-underline-offset: 3px; }

/* News */
.news-list { display: grid; gap: 18px; }
.news-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
}
.news-item h3 { margin: 0 0 10px; font-size: 1.1rem; }
.news-item p, .news-item li { color: #374151; }
.news-item ul { padding-left: 18px; margin: 0; }

/* Photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.photo-card img {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.photo-card p { margin: 8px 0 0; color: #374151; font-size: 0.95rem; }

/* Pricing tables */
.section-note { color: #374151; margin: 0 0 18px; }
.table-wrap { overflow-x: auto; margin-top: 6px; }
.rates-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.rates-table caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0b1d3a;
}
.rates-table thead {
  background: #0b1d3a;
  color: #ffffff;
}
.rates-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.rates-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  white-space: nowrap;
}
.rates-table tbody tr:nth-child(even) { background: #f6f7fb; }
.rates-table tbody tr:hover { background: #eef2ff; }
.rates-table td:last-child { font-weight: 600; }

/* Quote form */
.quote-form {
  margin-top: 10px;
  display: grid;
  gap: 14px;
}
.form-note {
  margin-top: 6px;
  color: #374151;
  font-size: 0.95rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
  color: #111827;
  background: #ffffff;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer { background: #0b1d3a; color: #cbd5e1; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-inner a { color: #ffffff; text-decoration: none; }
.copyright { opacity: 0.85; font-size: 0.9rem; }

/* Mobile */
@media (max-width: 760px) {
  .service-row { gap: 10px; }
  .service-icon { font-size: 28px; width: 36px; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero { padding: 40px 0 56px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Intro animation */
.intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.intro-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.intro-overlay .intro-logo {
  height: clamp(120px, 20vw, 180px);
  width: auto;
  display: block;
  opacity: 0;
  transform: none;
  transition: opacity 0.5s ease;
}
.intro-overlay.is-ready .intro-logo {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay {
    transition: opacity 0.01s;
  }
  .intro-overlay .intro-logo {
    transition: opacity 0.01s;
  }
}

/* Van gallery */
.van-gallery {
  max-width: 1000px;
  margin: 18px auto 0;
  padding: 0 14px;
}

.van-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.van-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.van-panel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 760px) {
  .van-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .van-panel img {
    animation: none;
  }
}

/* Automatic device dark mode */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background: #000000;
    color: #f3f4f6;
  }

  body {
    color-scheme: dark;
  }

  a { color: #e5e7eb; }

  .site-header,
  .site-nav,
  .mobile-nav,
  .mobile-nav-inner,
  .section-alt,
  .card,
  .hour-card,
  .news-item,
  .contact-card,
  .button-secondary,
  .field input,
  .field select,
  .field textarea {
    background: #000000;
    color: #f3f4f6;
  }

  .site-header,
  .site-nav,
  .mobile-nav-inner,
  .card,
  .hour-card,
  .news-item,
  .contact-card,
  .field input,
  .field select,
  .field textarea {
    border-color: #374151;
  }

  .nav-links a,
  .mobile-nav a,
  .contact-card a,
  .button-secondary {
    color: #ffffff;
  }

  .site-nav,
  .mobile-nav-inner {
    border-color: #4b5563;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
  }

  .mobile-nav a.active {
    background: #d1d5db;
    color: #000000;
  }

  .nav-links a.active,
  .mobile-nav a.active {
    background: #d1d5db;
    color: #000000;
    border-bottom-color: #d1d5db;
    border-radius: 6px;
  }

  .section-lead,
  .service-body h2,
  .service-body p,
  .contact-card p,
  .card p,
  .hour-card p,
  .news-item p,
  .news-item li,
  .form-note,
  .tagline-block {
    color: #ffffff;
  }

  .site-footer,
  .rates-table thead {
    background: #000000;
  }

  .button,
  .phone-cta {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
  }

  .button:hover,
  .phone-cta:hover {
    background: #ffffff;
    color: #000000;
  }

  .rates-table td {
    color: #f3f4f6;
    border-bottom-color: #374151;
  }

  .rates-table tbody tr:nth-child(even) {
    background: #000000;
  }

  .rates-table tbody tr:hover {
    background: #111111;
  }

  .intro-overlay {
    background: #000000;
  }

  .logo-img,
  .intro-logo {
    filter: invert(1);
  }
}
