/* Alternate white and the original light gray (#EDF0F1).
   Mark content sections in HTML in alternating order.
   Image heroes, overlaid navigation and small action controls are excluded. */
body main > section[data-surface="white"] {
  --section-surface: #fff;
  --card-surface: var(--surface-soft);
}

body main > section[data-surface="soft"] {
  --section-surface: var(--surface-soft);
  --card-surface: #fff;
}

body main > section[data-surface] {
  background: var(--section-surface) !important;
  color: var(--ink);
}

body main > section[data-surface] :is(h2, h3, h4, h5, h6) {
  color: var(--ink) !important;
}

body main > section[data-surface] :is(p, address, blockquote, figcaption, small) {
  color: var(--muted) !important;
}

body main > section[data-surface] :is(.section-label, .eyebrow, .light-label) {
  color: var(--muted) !important;
}

body main > section[data-surface] :is(strong, .hub-corridors small, .regional-contact-grid b) {
  color: var(--ink);
}

body main > section[data-surface] a:not(.button):not(.nav-cta):not(.footer-cta) {
  color: var(--ink);
}

body main > section[data-surface] :is(.about-inline-link.light, .text-link.light) {
  color: var(--ink);
  border-color: var(--line);
}

/* Lighten formerly charcoal cards as well as the enclosing sections.
   Founder card and year badge are styled separately in team.css to match the footer. */
body main > section[data-surface] :is(
  .hub-card,
  .hub-card.featured-hub,
  .email-dispatch-card,
  .direct-email-box,
  .freight-related-grid > a,
  .policy-contact-box,
  .pan-india-ribbon
) {
  background: var(--card-surface) !important;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(17, 18, 20, 0.04);
}

/* Text previously styled white for charcoal cards. */
body main > section[data-surface] :is(
  .founder-tag,
  .hub-coordinators span,
  .hub-coordinators strong,
  .hub-address,
  .email-box-label,
  .email-card-footer,
  .email-card-footer span,
  .regional-contact-grid b
) {
  color: var(--muted) !important;
}

body main > section[data-surface] .regional-contact-grid strong,
body main > section[data-surface] .freight-brief-grid strong {
  color: var(--ink);
}

body main > section[data-surface] :is(
  .detail-step-grid,
  .detail-step-grid article,
  .warehouse-advantage-grid,
  .warehouse-advantage article,
  .about-legacy-list,
  .about-legacy-item,
  .hub-address,
  .hub-corridors,
  .regional-contact-grid,
  .regional-contact-grid a,
  .freight-brief-grid,
  .freight-brief-grid > div,
  .email-card-footer,
  .email-card-footer span
) {
  border-color: var(--line);
}

body main > section[data-surface] .comparison-table th.highlight {
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: inset 0 3px var(--accent);
}

body main > section[data-surface] :is(.button-outline-light, .copy-email-btn) {
  background: transparent;
  color: var(--ink);
  border: 1px solid #b8bfc5;
}

body main > section[data-surface] :is(.button-outline-light, .copy-email-btn):hover {
  background: var(--ink);
  color: #fff;
}

/* Preserve contrast where captions intentionally sit over photographs. */
body main > section[data-surface] .about-story-media figcaption,
body main > section[data-surface] .about-story-media figcaption strong {
  color: #fff !important;
}

body main > section[data-surface] .founder-spotlight-card::before,
body main > section[data-surface] .email-dispatch-card::after {
  background: var(--brand-gradient);
}
/* Shared footer polish: preserve the approved footer tint and original logo. */
body .site-footer {
  position: relative;
  background: var(--surface-footer);
  color: var(--ink);
  padding: clamp(28px, 3vw, 44px) 5vw 18px;
  border-top: 1px solid rgba(17, 18, 20, 0.12);
}
body .site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand-gradient);
}
body .site-footer .footer-top {
  grid-template-columns: minmax(225px, 0.8fr) minmax(260px, 1.2fr) auto;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: 24px;
  min-height: 0;
}
body .site-footer .footer-brand {
  gap: 12px;
  align-self: stretch;
  justify-content: flex-start;
}
body .site-footer .brand img {
  width: 180px !important;
  height: auto;
  filter: none;
}
body .site-footer .footer-tagline {
  font-size: 22px;
  line-height: 1.35;
}
body .site-footer .footer-tagline em {
  color: #63363b;
}
body .site-footer .footer-brief {
  padding-left: clamp(24px, 3vw, 44px);
  border-color: rgba(17, 18, 20, 0.15);
  min-width: 0;
}
body .site-footer .footer-overline {
  color: #742330;
  font-size: 11px;
  letter-spacing: 0.12em;
}
body .site-footer .footer-brief h2 {
  margin: 10px 0 12px;
  font: 600 clamp(26px, 2.2vw, 32px)/1.15 "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  color: var(--ink);
}
body .site-footer .footer-brief p {
  color: #463338;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}
body .site-footer .footer-cta {
  min-height: 46px;
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  gap: 18px;
}
body .site-footer .footer-presence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: center;
  gap: 10px 20px;
  width: min(100%, 300px);
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 18, 20, 0.14);
  font-size: 12px;
  line-height: 1.5;
  color: #463338;
  text-align: center;
}
body .site-footer .footer-presence > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
body .site-footer .footer-presence strong {
  color: #241c1e;
  white-space: nowrap;
}
body .site-footer .footer-presence span {
  margin: 0;
  white-space: nowrap;
}
body .site-footer .footer-links-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body .site-footer .footer-socials {
  margin-top: 10px;
  gap: 14px;
}
body .site-footer .footer-links-panel .footer-socials {
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 18, 20, 0.15);
  gap: 22px;
}
body .site-footer .footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  color: #332329;
  font-size: 11px;
}
body .site-footer .footer-links small {
  color: #742330;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 11px;
  margin-bottom: 4px;
}
body .site-footer .footer-links > div {
  gap: 9px;
}
body .site-footer .footer-links a,
body .site-footer .footer-contact-list a {
  color: #332329;
  font-size: 14px;
  line-height: 1.5;
}
body .site-footer a:focus-visible {
  outline: 2px solid #742330;
  outline-offset: 5px;
}
body .site-footer .footer-links a:hover {
  color: #742330;
  text-decoration: underline;
  text-underline-offset: 5px;
}
body .site-footer .footer-bottom {
  padding-top: 12px;
  border-color: rgba(17, 18, 20, 0.16);
  color: #573b42;
  font-size: 12px;
  letter-spacing: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
body .site-footer .footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body .site-footer .footer-credit a {
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
body .site-footer .footer-credit a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
body .site-footer .footer-credit img {
  height: 17px;
  width: auto;
  display: block;
}
@media (max-width: 1200px) {
  body .site-footer .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }
  body .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
  body .site-footer .footer-presence {
    margin-top: 6px;
  }
  body .site-footer .footer-brief {
    border-left: 0;
    border-top: 1px solid rgba(17, 18, 20, 0.15);
    padding: 18px 0 0;
  }
  body .site-footer .footer-top > .footer-links,
  body .site-footer .footer-links-panel {
    padding-top: 18px;
    border-top: 1px solid rgba(17, 18, 20, 0.15);
  }
  body .site-footer .footer-links {
    gap: clamp(20px, 3vw, 40px);
  }
}
@media (max-width: 800px) {
  body .site-footer {
    padding-inline: 7vw;
  }
  body .site-footer .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  body .site-footer .footer-brief h2 {
    font-size: 28px;
  }
  body .site-footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  body .site-footer .footer-links > div:nth-child(2) {
    display: none;
  }
  body .site-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    white-space: normal;
  }
  body .site-footer .footer-socials a {
    min-height: 32px;
  }
  body .site-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.6;
  }
  body .site-footer .footer-bottom > span {
    display: block;
  }
  body .site-footer .footer-bottom > .footer-credit {
    display: inline-flex;
  }
}
