/* Cargo Drops Kenya Ltd — site stylesheet
   Design tokens mirror the approved design brief palette. */

:root {
  --navy: #0B2545;
  --navy-dark: #071A33;
  --navy-line: #16294A;
  --gold: #F5A623;
  --gold-dark: #D6870A;
  --blue: #3E7CB1;
  --green: #1E8E5A;
  --green-bg: #E9F5EF;

  --bg: #F7F8FA;
  --white: #FFFFFF;
  --border: #E4E7EC;
  --icon-bg: #F0F4F8;

  --text: #1C2530;
  --text-muted: #5A6472;
  --text-muted-2: #3A4456;
  --text-soft: #8A93A3;

  --text-on-navy: #D7DEE8;
  --text-on-navy-soft: #AEB6C4;
  --text-on-navy-softer: #C7CDD8;
  --text-on-navy-faint: #7C8AA0;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max: 1280px;
  --max-narrow: 1080px;
  --max-prose: 900px;

  --radius: 6px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { opacity: 0.85; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0;
}

ul { margin: 0; padding: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--max-narrow); }
.container--prose { max-width: var(--max-prose); }

.section { padding: 80px 24px; }
.section--tight { padding: 56px 24px; }
.section--white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--navy { background: var(--navy); }
.section--navy-dark { background: var(--navy-dark); }
.section--gold { background: var(--gold); }

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.eyebrow--on-navy { color: var(--gold); }

.page-hero {
  background: var(--navy);
  padding: 72px 24px 56px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 42px; margin: 0 0 16px; }
.page-hero p { color: var(--text-on-navy); font-size: 17px; margin: 0; max-width: 640px; margin-inline: auto; }

/* Hero */
.hero { position: relative; width: 100%; height: 640px; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,26,51,0.92) 0%, rgba(11,37,69,0.8) 55%, rgba(11,37,69,0.45) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero__inner { max-width: 760px; }
.hero__inner h1 { font-size: 56px; color: var(--white); line-height: 1.15; margin: 0 0 22px; }
.hero__inner p { font-size: 19px; color: var(--text-on-navy); line-height: 1.65; margin: 0 0 36px; max-width: 640px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.trust-strip { background: var(--navy-dark); padding: 18px 24px; }
.trust-strip__inner { display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center; align-items: center; }
.trust-strip__inner span:not(.trust-strip__sep) { color: var(--gold); font-size: 14px; font-weight: 600; }
.trust-strip__sep { color: #3A4A66; }

.service-card { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.service-card p { flex: 1; }
.service-card__link { font-size: 13.5px; font-weight: 700; color: var(--gold-dark); margin-top: 8px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 32px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-outline-white { background: transparent; border: 1.5px solid var(--white); color: var(--white); }
.btn-outline-navy { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-sm { padding: 10px 22px; font-size: 14px; border-radius: 3px; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--navy); letter-spacing: 0.3px; }
.brand__name span { color: var(--gold); }
.brand__tag { font-size: 10.5px; color: var(--text-soft); letter-spacing: 1px; }

.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: #4A5568; white-space: nowrap; }
.nav a.is-active { font-weight: 700; color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .phone { text-decoration: none; color: var(--navy); font-size: 14px; font-weight: 600; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle span { margin: 5px 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* Footer */
.site-footer { background: var(--navy-dark); color: var(--bg); font-family: var(--font-body); }
.site-footer .container {
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 40px;
}
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--white); margin-bottom: 10px; }
.footer-brand span { color: var(--gold); }
.footer-about { font-size: 14px; color: var(--text-on-navy-soft); line-height: 1.6; max-width: 280px; margin: 0; }
.footer-heading { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: var(--text-on-navy-softer); font-size: 14px; }
.footer-offices { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; color: var(--text-on-navy-softer); line-height: 1.5; }
.footer-offices strong { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-contact a { text-decoration: none; color: var(--text-on-navy-softer); }
.footer-contact .hours { color: var(--text-soft); margin-top: 8px; }
.footer-bottom { border-top: 1px solid var(--navy-line); }
.footer-bottom .container {
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-on-navy-faint);
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card-icon--lg { width: 56px; height: 56px; margin-bottom: 20px; }
.card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Service detail rows (image + text alternating) */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
  padding: 64px 24px;
}
.service-row.reverse { grid-template-columns: 1.3fr 1fr; }
.service-row.reverse .service-row__media { order: -1; }
.service-row--white { background: var(--white); }
.service-row__media img { width: 100%; height: 340px; object-fit: cover; border-radius: 10px; }
.service-row h2 { font-size: 26px; color: var(--navy); margin-bottom: 12px; }
.service-row p.lede { font-size: 15.5px; color: var(--text-muted); line-height: 1.65; margin: 0 0 18px; }
.service-row .whats-included {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.service-row ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-muted-2);
  font-size: 14.5px;
  line-height: 1.9;
}
.service-row .more-link { display: inline-block; margin-top: 18px; text-decoration: none; color: var(--gold-dark); font-weight: 700; font-size: 14.5px; }

/* Stats */
.stats-band { background: var(--white); padding: 72px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { text-align: center; padding: 0 12px; }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: 34px; color: var(--gold); margin-bottom: 10px; }
.stat__label { font-size: 15px; color: var(--navy); font-weight: 600; line-height: 1.4; }

/* Pills (network countries) */
.pill {
  padding: 12px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}
.pill--active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.pill--outline { background: transparent; border-color: #3E5F8A; color: var(--white); }

/* Client chips */
.chip { border: 1px solid var(--border); background: var(--white); padding: 20px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 600; color: var(--text-muted-2); }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--text-muted-2); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #D8DEE7;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
}
.form-group textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

.form-alert { padding: 14px 16px; border-radius: 6px; font-size: 14.5px; margin-bottom: 20px; }
.form-alert--success { background: var(--green-bg); color: #1D6B45; border: 1px solid #BFE5D3; }
.form-alert--error { background: #FDECEC; color: #9A2A2A; border: 1px solid #F3C6C6; }

/* Toast: JS-driven enhancement over .form-alert (see assets/js/main.js).
   The inline .form-alert stays in the HTML as the no-JS fallback; when JS
   runs, it's hidden and this floating version is shown instead. */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(11,37,69,0.18);
  font-size: 14.5px;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translateX(0); }
.toast--success { border-left: 4px solid var(--green); color: var(--text); }
.toast--error { border-left: 4px solid #C0392B; color: var(--text); }
.toast__icon { flex-shrink: 0; margin-top: 1px; }
.toast--success .toast__icon { color: var(--green); }
.toast--error .toast__icon { color: #C0392B; }
.toast__message { flex: 1; }
.toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1;
  padding: 0;
  margin: -2px -2px 0 0;
}
.toast__close:hover { color: var(--text); }

@media (max-width: 480px) {
  .toast-container { left: 12px; right: 12px; top: 12px; }
  .toast { max-width: none; min-width: 0; }
}

/* Staff avatar placeholder (until real photos are supplied) */
.staff-avatar {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
}
.leader-card { display: flex; gap: 20px; align-items: flex-start; background: var(--bg); border-radius: var(--radius-lg); padding: 28px; }
.leader-card h3 { font-size: 18px; color: var(--navy); margin: 0; }
.leader-card .role { font-size: 13.5px; color: var(--gold-dark); font-weight: 700; margin: 4px 0 10px; }
.leader-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }

.value-card h3 { font-size: 16px; margin-bottom: 8px; }
.value-card p { font-size: 14px; }

.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.vision-grid div { color: var(--text-on-navy); font-size: 15px; line-height: 1.6; }

/* Contact page contact cards */
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.contact-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.contact-card .addr { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.contact-card .links { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-card a.link { text-decoration: none; color: var(--blue); font-size: 14.5px; font-weight: 600; }
.contact-card a.link--green { color: var(--green); }

/* Map embed */
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius-lg); }

/* Table (customs page) */
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-table thead tr { background: var(--icon-bg); }
.doc-table th { text-align: left; padding: 16px 20px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--border); }
.doc-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td.doc-name { font-weight: 600; }
.doc-table td.doc-note { color: var(--text-muted); }
.table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

.timeline-figure { background: var(--bg); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.timeline-figure__value { font-family: var(--font-head); font-weight: 700; font-size: 36px; color: var(--gold); margin-bottom: 8px; }
.timeline-figure__label { font-size: 15px; color: var(--navy); font-weight: 600; }

/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-intro p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.section-intro--tight { margin-bottom: 44px; }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions .phone { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .service-row, .service-row.reverse { grid-template-columns: 1fr; }
  .service-row.reverse .service-row__media { order: 0; }
  .service-row__media img { height: 260px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 32px; }
  .hero { height: 520px; }
  .hero__inner h1 { font-size: 36px; }
  .hero__inner p { font-size: 16px; }
  .hero__overlay { background: linear-gradient(180deg, rgba(7,26,51,0.82) 0%, rgba(7,26,51,0.92) 100%); }
}

@media (max-width: 560px) {
  .site-footer .container { grid-template-columns: 1fr; }
  .stats-band .grid-4 { gap: 32px; }
  .page-hero h1 { font-size: 28px; }
}
