/* ==================== NAV ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
}

.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--color-red);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) 0;
}

.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: var(--space-2);
  margin-top: var(--space-4);
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown.is-open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  display: block;
  color: var(--color-charcoal);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: var(--color-offwhite);
  color: var(--color-red);
}

.navbar .nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  z-index: 99;
  padding: var(--space-24) var(--space-6) var(--space-6);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

.mobile-services-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile-nav .mobile-sub {
  padding-left: var(--space-4);
  display: none;
}

.mobile-nav .mobile-sub a {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-gray);
  border-bottom: none;
  padding: var(--space-2) 0;
}

.mobile-nav .btn-primary {
  margin-top: var(--space-8);
  display: inline-block;
  width: 100%;
  text-align: center;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .navbar .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ==================== BUTTONS ==================== */
.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  min-height: 48px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-primary:hover { background: var(--color-red-hover); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  padding: 12px 26px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover { background: var(--color-navy); color: var(--color-white); }

.btn-light {
  background: var(--color-white);
  color: var(--color-navy);
  transition: transform 0.1s ease;
}
.btn-light:hover { transform: translateY(-1px); }

.btn-text {
  color: var(--color-red);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.btn-text:hover { text-decoration: underline; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy) 0%, #142848 100%);
  color: var(--color-white);
  padding: var(--space-24) var(--space-6) var(--space-16);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(193,39,45,0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06), transparent 45%);
  pointer-events: none;
}

.hero.hero-image {
  background-image: linear-gradient(rgba(12,27,51,0.75), rgba(12,27,51,0.8)), var(--hero-bg-image);
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  max-width: 760px;
}

.hero h1 { color: var(--color-white); margin-bottom: var(--space-6); }
.hero .subheadline { color: var(--color-gray); max-width: 640px; white-space: normal; }

@media (min-width: 768px) {
  .hero .subheadline { white-space: pre-line; }
}
.hero .btn-row { margin-top: var(--space-8); }

.hero-link-light {
  color: var(--color-white);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}

@media (min-width: 1024px) {
  .hero { padding: var(--space-24) var(--space-6); }
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-gray);
  margin-bottom: var(--space-6);
}

.breadcrumb a { color: var(--color-gray); }
.breadcrumb a:hover { color: var(--color-white); text-decoration: underline; }
.breadcrumb span { color: var(--color-white); }

/* ==================== CARRIER STRIP ==================== */
.carrier-strip {
  background: var(--color-white);
  padding: var(--space-8) var(--space-6);
  border-top: 1px solid var(--color-gray);
  border-bottom: 1px solid var(--color-gray);
}

.carrier-strip-label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-midgray);
  margin-bottom: var(--space-6);
}

.carrier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8) var(--space-12);
  max-width: var(--max-width);
  margin: 0 auto;
}

.carrier-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
}

.carrier-badge img {
  width: auto;
  max-width: 220px;
}

/* Individual sizing to compensate for how much visual "padding" each
   logo carries inside its own artwork (badge-style marks like DHL/USPS
   read smaller than flat wordmarks at the same box height) */
.carrier-badge img.carrier-fedex { height: 64px; }
.carrier-badge img.carrier-dhl { height: 78px; }
.carrier-badge img.carrier-ups { height: 72px; }
.carrier-badge img.carrier-canada-post { height: 68px; }
.carrier-badge img.carrier-usps { height: 84px; }
.carrier-badge img.carrier-gls { height: 64px; }

/* ==================== CARDS ==================== */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-offwhite);
  border-radius: var(--radius-md);
  color: var(--color-red);
  margin-bottom: var(--space-6);
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--color-midgray); font-size: var(--text-sm); margin-bottom: var(--space-4); }

.service-card a.btn-text { font-size: var(--text-sm); }

/* ==================== CTA BAND ==================== */
.cta-band {
  background: var(--color-red);
  color: var(--color-white);
  padding: var(--space-20) var(--space-6);
  text-align: center;
}

.cta-band h2 { color: var(--color-white); margin-bottom: var(--space-4); }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto var(--space-8); }
.cta-band .btn-row { justify-content: center; }
.cta-band .cta-secondary { display: block; margin-top: var(--space-6); color: rgba(255, 255, 255, 0.85); font-size: var(--text-sm); }
.cta-band .cta-secondary a { color: var(--color-white); text-decoration: underline; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--color-navy);
  color: var(--color-gray);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.footer-logo img { height: 40px; width: auto; }

.footer-tagline { color: var(--color-midgray); }

.footer-columns {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-columns { grid-template-columns: repeat(4, 1fr); }
}

.footer-columns h4 {
  color: var(--color-white);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-columns ul li { margin-bottom: var(--space-2); }
.footer-columns a { color: var(--color-midgray); font-size: var(--text-sm); }
.footer-columns a:hover { color: var(--color-white); }
.footer-columns p { color: var(--color-midgray); font-size: var(--text-sm); margin-bottom: var(--space-2); }

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-12) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-midgray);
}

/* ==================== SECTION EYEBROW helpers already in global ==================== */

/* ==================== STEPS ==================== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  counter-reset: step;
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  counter-increment: step;
  position: relative;
  padding-top: var(--space-12);
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50%;
}

.step h4 { margin-bottom: var(--space-2); }
.step p { color: var(--color-midgray); font-size: var(--text-sm); }

/* ==================== FORM ==================== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-charcoal);
}

.form-group .required {
  color: var(--color-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: var(--text-base);
  border: 1px solid var(--color-gray);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-charcoal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-navy);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4) var(--space-6);
}

@media (min-width: 640px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

.form-error {
  color: var(--color-red);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--color-red);
}

.form-group.has-error .form-error { display: block; }

.form-note {
  font-size: var(--text-xs);
  color: var(--color-midgray);
  text-align: center;
  margin-top: var(--space-4);
}

.form-success {
  display: none;
  background: var(--color-gray);
  border: 1px solid var(--color-navy);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-6);
}

.form-success.is-visible { display: block; }
.form-success h3 { margin-bottom: var(--space-2); }

.quote-form.is-submitted .form-fields { display: none; }

/* ==================== FAQ ACCORDION ==================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-6) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal);
}

.faq-question > span:first-child {
  text-wrap: balance;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-red);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.2s ease; }

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
  color: var(--color-midgray);
  padding-bottom: var(--space-6);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

/* ==================== INDUSTRY CARD ==================== */
.industry-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  scroll-margin-top: var(--space-24);
}

.industry-card.featured {
  background: var(--color-navy);
  border-color: var(--color-navy);
  grid-column: 1 / -1;
}

.industry-card.featured h3,
.industry-card.featured p { color: var(--color-white); }
.industry-card.featured .service-tags span {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}

.industry-card h3 { margin-bottom: var(--space-2); }
.industry-card h4 {
  color: var(--color-red);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.industry-card p { color: var(--color-midgray); margin-bottom: var(--space-4); }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-tags span {
  font-size: var(--text-xs);
  background: var(--color-offwhite);
  color: var(--color-charcoal);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

/* ==================== CONTENT BLOCKS ==================== */
.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.content-image svg { display: block; width: 100%; height: auto; }
.content-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.quote-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: 1.4;
  color: var(--color-white);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .quote-block { font-size: var(--text-3xl); }
}

.list-check {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 640px) {
  .list-check { grid-template-columns: 1fr 1fr; }
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
}

.list-check li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/70% no-repeat;
}

.related-services {
  margin-top: var(--space-8);
}
