/* AGLog Cargo — Global Logistics — Main Stylesheet */
/* Brand: Logo Navy (#25335D) + Logo Gold (#D8A443) + Clean White + Slate Gray */

:root {
  --navy:      #1D2E50;
  --navy-mid:  #25335D;
  --navy-light:#2E4275;
  --gold:      #D8A443;
  --gold-dark: #B8893A;
  --white:     #FFFFFF;
  --off-white: #F8F9FC;
  --gray-100:  #F1F3F7;
  --gray-200:  #E2E8F0;
  --gray-400:  #94A3B8;
  --gray-600:  #475569;
  --gray-800:  #1E293B;
  --text:      #1E293B;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --radius:    8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.16);
  --transition: all .25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  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; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--gray-600); line-height: 1.75; }
.lead { font-size: 1.15rem; color: var(--gray-600); line-height: 1.75; }

/* ── Layout ── */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg   { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container-sm   { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section        { padding: 80px 0; }
.section-sm     { padding: 48px 0; }
.section-lg     { padding: 120px 0; }
.section--dark  { background: var(--navy); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark p  { color: var(--gray-400); }
.section--gray    { background: var(--off-white); }
.section--navy-mid{ background: var(--navy-mid); }

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

.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold) !important; }
.text-gray   { color: var(--gray-400) !important; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-outline-navy {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: .875rem; }

/* ── Navigation ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(29, 46, 80, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 164, 67, .15);
  transition: var(--transition);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.navbar__logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer__logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  object-fit: contain;
}
.navbar__nav { display: flex; align-items: center; gap: 8px; }
.navbar__nav a {
  color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
  transition: var(--transition);
}
.navbar__nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.navbar__nav .dropdown { position: relative; }
.navbar__nav .dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--navy-mid); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 8px; min-width: 220px;
  box-shadow: var(--shadow-lg);
}
.navbar__nav .dropdown:hover .dropdown-menu { display: block; }
.navbar__nav .dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 6px;
  color: rgba(255,255,255,.8); font-size: .875rem;
}
.navbar__nav .dropdown-menu a:hover { background: rgba(255,255,255,.06); color: var(--white); }
.navbar__cta { display: flex; align-items: center; gap: 12px; }
.navbar__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  touch-action: manipulation; /* kills iOS 300 ms tap delay */
  -webkit-tap-highlight-color: transparent; /* removes grey flash on Safari tap */
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #0d2d4a 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__content { position: relative; max-width: 680px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(216, 164, 67, .14); border: 1px solid rgba(216, 164, 67, .35);
  color: var(--gold); padding: 6px 14px; border-radius: 50px;
  font-size: .8rem; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.75); margin-bottom: 36px; font-size: 1.2rem; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__trust {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.hero__trust-item { text-align: center; }
.hero__trust-item strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.hero__trust-item span { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; }

/* ── Section Labels ── */
.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-600); max-width: 600px; }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--gray-200);
  padding: 32px; transition: var(--transition);
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--dark {
  background: var(--navy-mid); border-color: rgba(255,255,255,.06);
}
.card--dark h3, .card--dark h4 { color: var(--white); }
.card--dark p { color: var(--gray-400); }
.card--dark:hover { border-color: var(--gold); }

.service-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(216, 164, 67, .12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.card--dark .service-icon { background: rgba(216, 164, 67, .1); }

/* ── HK Advantage Strip ── */
.hk-strip {
  background: linear-gradient(90deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  padding: 48px 0;
}
.hk-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.hk-strip__stat strong {
  display: block; font-size: 2rem; font-weight: 800;
  color: var(--gold); font-family: var(--font-head);
}
.hk-strip__stat span { color: rgba(255,255,255,.6); font-size: .875rem; }

/* ── How It Works ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { text-align: center; padding: 24px 16px; }
.step__num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin: 0 auto 16px;
}
.step h4 { margin-bottom: 8px; }

/* ── Trade Lanes ── */
.lanes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lane-card {
  background: var(--navy-mid); border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  padding: 24px; transition: var(--transition);
  display: flex; justify-content: space-between; align-items: center;
}
.lane-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.lane-card__route { color: var(--white); font-weight: 600; font-size: .95rem; }
.lane-card__arrow { color: var(--gold); font-size: 1.25rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 80px 0; text-align: center;
}
.cta-banner h2 { color: var(--navy); }
.cta-banner p  { color: rgba(10,22,40,.7); font-size: 1.1rem; margin: 16px 0 32px; }

/* ── Footer ── */
.footer {
  background: var(--navy); padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand p { color: rgba(255,255,255,.5); font-size: .875rem; margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer__logo { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--white); }
.footer h5 { color: rgba(255,255,255,.9); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,.5); font-size: .875rem; transition: var(--transition); }
.footer ul li a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer__bottom p { color: rgba(255,255,255,.3); font-size: .8rem; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .95rem; color: var(--text);
  background: var(--white); transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 140px 0 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,.7); max-width: 600px; margin-top: 16px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.breadcrumb a, .breadcrumb span {
  font-size: .8rem; color: rgba(255,255,255,.5);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,.25); }

/* ── FAQ Accordion ── */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  color: var(--navy); transition: var(--transition);
}
.faq-question:hover { color: var(--gold-dark); }
.faq-question .icon { font-size: 1.2rem; transition: var(--transition); color: var(--gold); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding-bottom: 20px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: .9rem; }
th { background: var(--navy); color: var(--white); font-weight: 600; }
tr:hover td { background: var(--gray-100); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4, .hk-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-2-3, .lanes-grid { grid-template-columns: 1fr; }
  .navbar__nav, .navbar__cta .btn:first-child { display: none; }
  .navbar__menu-toggle { display: block; }
  .hero { padding: 120px 0 72px; }
  .hero__trust { gap: 20px; }
  .section { padding: 56px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* ── Mobile nav open panel ── */
  .navbar.nav-open .navbar__nav {
    display: flex;
    flex-direction: column;
    /* Fixed (not absolute) so iOS Safari doesn't clip it inside the fixed navbar */
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgb(25, 40, 70);
    /* No backdrop-filter — compositing a filter inside a fixed parent breaks Safari */
    padding: 10px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
    gap: 2px;
    z-index: 999;
  }
  .navbar.nav-open .navbar__nav > a,
  .navbar.nav-open .navbar__nav .dropdown > a {
    padding: 13px 16px;
    font-size: .95rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  /* Disable hover dropdown on mobile, use click instead */
  .navbar.nav-open .navbar__nav .dropdown:hover .dropdown-menu { display: none; }
  .navbar.nav-open .navbar__nav .dropdown.dropdown-open .dropdown-menu {
    display: flex;
    flex-direction: column;
    position: static;
    background: rgba(255,255,255,.06);
    box-shadow: none;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    margin: 4px 0 6px 12px;
    min-width: auto;
    padding: 6px;
  }
  .navbar.nav-open .navbar__nav .dropdown.dropdown-open .dropdown-menu a {
    padding: 10px 14px;
    font-size: .875rem;
    border-bottom: none;
  }
  /* Show Call Us in the open panel */
  .navbar.nav-open .navbar__cta {
    position: absolute;
    top: calc(72px + var(--mobile-nav-height, 400px));
    display: none; /* CTA already visible in top bar; no duplicate needed */
  }
}
@media (max-width: 480px) {
  .grid-4, .hk-strip__grid, .steps { grid-template-columns: 1fr; }
  .btn-lg { padding: 16px 24px; }
}
