/* ==========================================================================
   Masmot Logistics Ltd — Design System
   Navy & Amber freight-forwarding brand
   ========================================================================== */

:root {
  /* Brand colour palette */
  --navy-900: #0A2440;
  --navy-800: #0F2A47;
  --navy-700: #163A5F;
  --navy-600: #1F4C79;
  --navy-100: #E7EDF4;
  --navy-50:  #F3F6FA;

  --amber-600: #E0932A;
  --amber-500: #F2A93B;
  --amber-100: #FDEFD9;

  --slate-700: #33404D;
  --slate-500: #5B6B7C;
  --slate-300: #AEBAC7;
  --slate-100: #D8DEE6;

  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --success: #1E8A5F;

  /* Typography */
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 36, 64, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 36, 64, 0.12);
  --transition: 180ms ease;
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 780px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--slate-500); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-600); }
.btn-secondary { background: var(--white); color: var(--navy-800); border-color: var(--slate-100); }
.btn-secondary:hover { border-color: var(--navy-700); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Header / Nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--slate-100);
}
.topbar {
  background: var(--navy-900);
  color: var(--slate-300);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--slate-300); }
.topbar a:hover { color: var(--amber-500); }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-links span, .topbar-links a { display: inline-flex; align-items: center; gap: 6px; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-text { font-family: var(--font-head); line-height: 1.05; }
.brand-text strong { display: block; font-size: 1.2rem; color: var(--navy-800); letter-spacing: 0.02em; }
.brand-text span { display: block; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--amber-600); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-800);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--amber-600); }
.nav-links a.active { color: var(--amber-600); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--amber-500);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 300px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-100);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--navy-50); color: var(--navy-800); }
.dropdown svg { flex-shrink: 0; color: var(--amber-600); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-100);
    background: var(--white);
  }
  .nav-cta .btn-secondary { display: none; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-md);
  }
  body.nav-open .dropdown { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 10px; }
  body.nav-open .has-dropdown.open .dropdown { display: block; }
  .nav-links a { width: 100%; padding: 10px 0; }
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--slate-300); max-width: 540px; }
.hero-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--amber-500); }
.hero-stats div span { font-size: 0.85rem; color: var(--slate-300); }
.hero-art { position: relative; z-index: 2; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
}

.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 64px 0 72px;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.breadcrumbs { font-size: 0.85rem; color: var(--slate-300); margin-bottom: 18px; }
.breadcrumbs a { color: var(--slate-300); }
.breadcrumbs a:hover { color: var(--amber-500); }
.page-hero .lead { color: var(--slate-300); max-width: 640px; }

/* ---- Cards / Grids ------------------------------------------------------ */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card .icon-tile { margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--slate-500); font-size: 0.95rem; margin-bottom: 14px; }
.card-link { font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--navy-700); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { color: var(--amber-600); }

.icon-tile {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-700);
}
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile.amber { background: var(--amber-100); color: var(--amber-600); }

.service-card { text-align: left; }

/* Alternating content rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
}
.split-media {
  background: var(--navy-50);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.split-media svg { width: 100%; height: auto; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.check-list svg { flex-shrink: 0; color: var(--amber-600); margin-top: 3px; }

/* ---- Bands -------------------------------------------------------------- */
.band-navy { background: var(--navy-900); color: var(--white); }
.band-navy h2 { color: var(--white); }
.band-navy p { color: var(--slate-300); }
.band-off { background: var(--off-white); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-strip strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--amber-500); }
.stats-strip span { font-size: 0.88rem; color: var(--slate-300); }
@media (max-width: 780px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

.logos-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

/* ---- Process steps -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--amber-500);
  display: block;
  margin-bottom: 10px;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }

/* ---- Testimonial -------------------------------------------------------- */
.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--amber-500);
}
.quote-card p { font-size: 1.1rem; color: var(--navy-800); font-style: italic; }
.quote-card .who { font-family: var(--font-head); font-weight: 600; color: var(--navy-700); font-style: normal; margin-top: 16px; }
.quote-card .who span { display: block; font-weight: 400; color: var(--slate-500); font-size: 0.85rem; }

/* ---- CTA band -------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: var(--slate-300); margin: 0; }
@media (max-width: 700px) { .cta-band { padding: 36px; } }

/* ---- Forms -------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-100);
  background: var(--white);
  color: var(--slate-700);
  transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-700); }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--slate-500); margin-top: 10px; }

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); }
.contact-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-row .icon-tile { background: rgba(242,169,59,0.15); color: var(--amber-500); flex-shrink: 0; }
.contact-row strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.contact-row span, .contact-row a { color: var(--slate-300); font-size: 0.92rem; }
.contact-row a:hover { color: var(--amber-500); }

/* ---- Map -------------------------------------------------------------- */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--slate-100); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---- FAQ -------------------------------------------------------------- */
.accordion-item { border-bottom: 1px solid var(--slate-100); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-800);
  cursor: pointer;
}
.accordion-trigger svg { flex-shrink: 0; transition: transform var(--transition); color: var(--amber-600); }
.accordion-item.open .accordion-trigger svg { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  color: var(--slate-500);
  font-size: 0.95rem;
}
.accordion-item.open .accordion-panel { max-height: 400px; }
.accordion-panel-inner { padding: 0 4px 20px; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--slate-300); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--amber-500); }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 0.82rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a:hover { color: var(--amber-500); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Utilities -------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber-100); color: var(--amber-600);
  font-family: var(--font-head); font-weight: 600; font-size: 0.78rem;
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--amber-500); color: var(--navy-900);
  padding: 10px 16px; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Page-level fade-in — content is ALWAYS visible (opacity:1) so it never depends on
   JS/scroll to be readable or crawlable; only a small transform is deferred. */
.reveal { transform: translateY(10px); opacity: 1; transition: transform 500ms ease; }
.reveal.in { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
}
