/* ==========================================================================
   Active Travel & Logistics — site stylesheet
   Layout widths use container-query units (cqi) against the .page wrapper,
   exactly as in the approved design.
   ========================================================================== */

/* ---------- Brand tokens ---------- */
:root {
  /* Active Orange — buttons / actions only */
  --orange: #C64A0C;
  --orange-hover: #A33B08;
  --orange-tint: #FCEBDF;
  --orange-on-dark: #E2662A;     /* big numbers on navy */

  /* Sky Blue — icons, large headings (never small text on white) */
  --sky: #1E93C8;
  --sky-text: #0E6F9E;           /* links / small text */
  --sky-tint: #E3F3FB;

  /* Deep Navy — hero overlay, stats, footer, international cards */
  --navy: #0F2A3D;
  --navy-overlay: rgba(15, 42, 61, 0.72);   /* drawer backdrop */
  /* Hero: darker behind the text (left), fading out so the sunset shows.
     Lightest values that keep hero text at WCAG AA contrast over hero.jpeg — re-check if the photo changes. */
  --hero-overlay: linear-gradient(90deg, rgba(15, 42, 61, 0.68) 0%, rgba(15, 42, 61, 0.60) 50%, rgba(15, 42, 61, 0.22) 80%, rgba(15, 42, 61, 0.10) 100%);
  --hero-overlay-narrow: rgba(15, 42, 61, 0.60);
  --navy-line: #24384A;
  --navy-border: #3A5568;
  --navy-muted: #3D5568;

  /* Neutrals */
  --sand: #F7F3EF;
  --border: #E6DED6;
  --ink: #1C1E21;
  --muted: #5B6470;
  --white: #FFFFFF;
  --on-dark-text: #C9D3DB;
  --on-dark-soft: #E8EDF1;
  --on-dark-faint: #A3B0BB;
  --hero-placeholder: #3B4A55;

  /* Type */
  --font-head: Poppins, system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Shape & spacing */
  --radius-card: 14px;
  --radius-pill: 999px;
  --radius-field: 6px;
  --max-width: 1344px;
  --gutter: clamp(16px, 4cqi, 32px);
  --section-pad: clamp(64px, 7cqi, 96px);
  --shadow-card: 0 8px 24px rgba(15, 42, 61, 0.08);
  --header-h: 77px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); }
[id] { scroll-margin-top: var(--header-h); }
img { max-width: 100%; }

a { color: var(--sky-text); }
a:hover { color: var(--navy); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sky-text);
  outline-offset: 3px;
}
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--white); }

.page {
  container-type: inline-size;
  container-name: page;
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
  background: var(--white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font: 600 15px/20px var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 14px; }

/* ---------- Shared section pieces ---------- */
.section { background: var(--white); padding: var(--section-pad) 0; }
.section--sand { background: var(--sand); }

.section-body { display: flex; flex-direction: column; gap: 48px; }

.section-head { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }

.eyebrow {
  margin: 0;
  font: 600 13px/16px var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-text);
}

.section-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 3cqi, 36px);
  line-height: 1.22;
  color: var(--ink);
}

.text-muted { margin: 0; color: var(--muted); }
.nowrap { white-space: nowrap; }

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card-title { margin: 0; font: 600 22px/30px var(--font-head); color: var(--ink); }

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background: var(--orange-tint);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-circle--md { width: 56px; height: 56px; }
.icon-circle--sm { flex: none; width: 44px; height: 44px; }
.icon-circle--blue { background: var(--sky-tint); color: var(--sky-text); }

.link-strong { font-weight: 600; text-decoration: none; }

/* ---------- 1. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font: 500 15px/20px var(--font-body);
  padding: 12px 4px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--sky-text); border-bottom-color: var(--sky); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

@container page (max-width: 900px) {
  .nav-links { display: none !important; }
  .menu-btn { display: inline-flex !important; }
}
@container page (max-width: 480px) {
  .hide-xs { display: none !important; }
}

/* ---------- Mobile navigation drawer ---------- */
/* Lives outside .page: container containment would otherwise trap position:fixed. */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
}
.drawer[hidden] { display: none; }

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: var(--navy-overlay);
  opacity: 0;
  transition: opacity .25s ease;
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--white);
  box-shadow: -8px 0 24px rgba(15, 42, 61, 0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .28s ease;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer__head img { height: 52px; width: auto; display: block; }
.drawer__close { display: inline-flex; }

.drawer__nav { display: flex; flex-direction: column; padding: 8px 16px; }
.drawer__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font: 600 18px/24px var(--font-head);
}
.drawer__link:hover { color: var(--sky-text); }

.drawer__foot { margin-top: auto; padding: 24px 16px 32px; display: flex; flex-direction: column; gap: 16px; }
.drawer__foot .btn { width: 100%; }
.drawer__contact { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.drawer__contact a { font-weight: 600; }

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  background-color: var(--hero-placeholder);
  color: var(--white);
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%; /* keeps the sunset in frame when cropped on phones */
}
.hero__overlay { position: absolute; inset: 0; background: var(--hero-overlay); }
@container page (max-width: 900px) {
  .hero__overlay { background: var(--hero-overlay-narrow); } /* text spans the full width */
}
.hero__content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(96px, 12cqi, 168px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero .eyebrow { color: var(--sky-tint); }
.hero__title {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 4.4cqi, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
}
.hero__lead { margin: 0; max-width: 600px; font-size: 19px; line-height: 30px; color: var(--on-dark-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* ---------- 3. About ---------- */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 5cqi, 72px);
}
.about__media { flex: 1 1 420px; min-width: 0; position: relative; }
.about__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius-card);
  background: var(--sky-tint);
}
.about__badge {
  position: absolute;
  left: 16px;
  bottom: -24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(15, 42, 61, 0.18);
}
.about__badge-num { font: 700 44px/1 var(--font-head); color: var(--orange-on-dark); }
.about__badge-text { font: 600 15px/20px var(--font-body); }
.about__copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 2px; color: var(--sky); }

/* ---------- 4. Services ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card__link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

/* ---------- 5. Destinations ---------- */
.dest-group { display: flex; flex-direction: column; gap: 20px; }
.dest-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.dest-card {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--sky-tint);
  text-decoration: none;
  color: var(--navy);
}
.dest-card:hover { color: var(--navy); } /* keep global a:hover from recolouring */
.dest-card__code {
  position: absolute;
  top: 8px;
  left: 14px;
  font: 700 76px/1 var(--font-head);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(30, 147, 200, 0.55);
  pointer-events: none;
}
.dest-card__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-text);
}
.dest-card__name { position: relative; font: 700 20px/26px var(--font-head); overflow-wrap: anywhere; }
.dest-card__region { position: relative; font-size: 14px; line-height: 20px; color: var(--navy-muted); }

.dest-card--intl,
.dest-card--intl:hover { background: var(--navy); color: var(--white); }
.dest-card--intl .dest-card__code { -webkit-text-stroke-color: rgba(79, 184, 230, 0.6); }
.dest-card--intl .dest-card__arrow { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.dest-card--intl .dest-card__region { color: var(--on-dark-text); }

/* ---------- 6. Why us / 8. Who we serve ---------- */
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-card--filled { background: var(--white); }
.feature-card__title { margin: 0; font: 600 20px/28px var(--font-head); }

/* ---------- 7. Stats band ---------- */
.stats { background: var(--navy); color: var(--white); padding: clamp(48px, 5cqi, 72px) 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font: 700 clamp(36px, 4cqi, 48px)/1.1 var(--font-head); color: var(--orange-on-dark); }
.stat__label { color: var(--on-dark-text); font-size: 15px; }

/* ---------- 9. Contact ---------- */
.contact-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }

.contact-form {
  flex: 1 1 520px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3cqi, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-label { font-weight: 600; font-size: 14px; line-height: 20px; }
.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-note { font-size: 14px; line-height: 20px; color: var(--muted); }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 20px; color: var(--sky-text); }
.form-status:empty { display: none; }

.field {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--ink);
  font: 400 16px/24px var(--font-body);
}
.field:focus { border-color: var(--sky-text); outline: 2px solid var(--sky-text); outline-offset: 0; }

.contact-aside { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.contact-list {
  margin: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 8px 24px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item__body { display: flex; flex-direction: column; min-width: 0; }
.contact-item__label { font-size: 14px; line-height: 20px; color: var(--muted); }
.contact-item__value { font-weight: 600; overflow-wrap: anywhere; } /* long email on small phones */
@container page (max-width: 420px) {
  .contact-item__value .keep-together { display: block; }
}

.map {
  flex: 1 1 auto;
  min-height: 220px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--sky-tint);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 220px; border: 0; }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-text); padding: clamp(56px, 6cqi, 80px) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 48px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col--brand { gap: 16px; align-items: flex-start; }
.footer-logo { background: var(--white); border-radius: var(--radius-card); padding: 10px 14px; display: inline-flex; }
.footer-logo img { height: 56px; width: auto; display: block; }
.footer-tagline { margin: 0; font: 600 17px/24px var(--font-head); color: var(--white); }
.footer-blurb { margin: 0; font-size: 15px; line-height: 24px; }
.footer-heading { margin: 0 0 4px; font: 600 17px/24px var(--font-head); color: var(--white); }

.social { display: flex; gap: 10px; }
.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.social-link:hover { color: var(--white); }

.foot-link { color: var(--on-dark-text); text-decoration: none; overflow-wrap: anywhere; }
.foot-link:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--navy-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-dark-faint);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .drawer__backdrop, .drawer__panel { transition: none; }
  .card:hover { transform: none; }
}
