/* ============================================================
   Cullen Logistics Corp. — Corporate Stylesheet
   Palette: White · Navy Blue · Gold
   ============================================================ */

:root {
  --navy-900: #071630;
  --navy-800: #0A1D3D;
  --navy-700: #0E2A54;
  --navy-600: #163a6e;
  --gold-500: #C7A24B;
  --gold-400: #D9BE6E;
  --gold-300: #EBD79C;

  --ink: #14203a;
  --body: #48546a;
  --muted: #7a8598;
  --line: #e6eaf1;

  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --bg-navy: var(--navy-800);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 18px rgba(10, 29, 61, .06);
  --shadow-md: 0 18px 50px rgba(10, 29, 61, .12);
  --shadow-gold: 0 14px 34px rgba(199, 162, 75, .30);

  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 14px 30px; border-radius: 50px; cursor: pointer; border: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  letter-spacing: .01em;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900); box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(199, 162, 75, .45); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 26px rgba(10, 29, 61, .08);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.site-header.scrolled .brand { color: var(--navy-800); }
.brand-mark { width: 40px; height: 40px; color: var(--gold-500); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .14em; }
.brand-sub { font-size: .58rem; letter-spacing: .34em; color: var(--gold-400); font-weight: 600; margin-top: 3px; }
.site-header.scrolled .brand-sub { color: var(--gold-500); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .88); position: relative; padding: 4px 0;
  transition: color .25s;
}
.site-header.scrolled .main-nav a { color: var(--body); }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold-500); transition: width .3s var(--ease);
}
.main-nav a:not(.nav-cta):hover { color: var(--gold-400); }
.site-header.scrolled .main-nav a:not(.nav-cta):hover { color: var(--navy-800); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900) !important; padding: 10px 22px !important; border-radius: 50px; font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.site-header.scrolled .nav-toggle span { background: var(--navy-800); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(1200px 600px at 70% 10%, var(--navy-700), var(--navy-900) 70%);
  color: #fff; overflow: hidden; padding: 140px 0 90px;
}
.hero-map { position: absolute; inset: 0; opacity: .9; }
.hero-map svg { width: 100%; height: 100%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 22, 48, .96) 0%, rgba(7, 22, 48, .82) 42%, rgba(7, 22, 48, .28) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 600; margin-bottom: 22px;
  padding: 7px 16px; border: 1px solid rgba(199, 162, 75, .4); border-radius: 50px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 700; color: #fff; margin-bottom: 26px; }
.hero h1 .gold {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255, 255, 255, .82); max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 42px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Map (SVG dot world + routes) ---------- */
.dot-land { fill: rgba(255, 255, 255, .16); }
.route-path { fill: none; stroke: url(#routeGrad); stroke-width: 1.6; stroke-linecap: round; opacity: .9; }
.route-dash { stroke-dasharray: 6 10; animation: dashMove 2.4s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -160; } }
.city-dot { fill: var(--gold-400); }
.city-pulse { fill: var(--gold-500); transform-origin: center; transform-box: fill-box; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { opacity: .55; transform: scale(1); } 70% { opacity: 0; transform: scale(3.6); } 100% { opacity: 0; transform: scale(3.6); } }
.route-runner { fill: #fff; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip { background: var(--navy-800); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div {
  padding: 30px 24px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; gap: 4px;
}
.trust-grid > div:last-child { border-right: none; }
.trust-grid strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--gold-400); font-weight: 700; }
.trust-grid span { font-size: .82rem; letter-spacing: .04em; color: rgba(255, 255, 255, .68); }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-500);
  font-weight: 700; margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.section-lead { font-size: 1.08rem; color: var(--body); }
.section-head.light h2, .section-head.light .section-lead { color: #fff; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 22px; }
.about-copy p { margin-bottom: 18px; font-size: 1.03rem; }
.about-belief { font-size: 1.15rem !important; color: var(--ink); padding-left: 20px; border-left: 3px solid var(--gold-500); }
.about-belief strong { color: var(--navy-700); }
.about-panels { display: flex; flex-direction: column; gap: 22px; }
.mv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mv-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); color: var(--gold-400); }
.mv-icon svg { width: 26px; height: 26px; fill: currentColor; }
.mv-card h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500)); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, #eef3fb, #dfe8f6); color: var(--navy-700);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); color: var(--gold-400); }
.service-icon svg { width: 30px; height: 30px; fill: currentColor; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.service-card p { font-size: .98rem; }
.service-card-wide { grid-column: span 1; }

/* ---------- Process ---------- */
.process-track {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative;
}
.process-track::before {
  content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-400) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  box-shadow: 0 8px 22px rgba(10, 29, 61, .22); border: 3px solid #fff; position: relative;
}
.step-num::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--gold-500); opacity: .5;
}
.process-step p { font-size: .95rem; color: var(--body); }

/* ---------- Markets ---------- */
.markets { position: relative; background: radial-gradient(1000px 500px at 50% -10%, var(--navy-700), var(--navy-900) 75%); color: #fff; overflow: hidden; }
.markets-map { position: absolute; inset: 0; opacity: .55; }
.markets-map svg { width: 100%; height: 100%; }
.markets-inner { position: relative; z-index: 2; }
.markets-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.market-chip {
  display: flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 50px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.market-chip span { color: rgba(255, 255, 255, .92); }
.market-chip:hover { transform: translateY(-4px); background: rgba(199, 162, 75, .16); border-color: var(--gold-500); }

/* ---------- Why ---------- */
.why-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; max-width: 900px; margin: 0 auto; }
.why-grid li {
  position: relative; padding: 18px 20px 18px 56px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: 1.02rem;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.why-grid li:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.why-grid li::before {
  content: "✓"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-900);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.contact-details { list-style: none; margin: 28px 0; display: flex; flex-direction: column; gap: 20px; }
.contact-details li { display: flex; gap: 16px; }
.ci {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); color: var(--gold-400);
}
.contact-details strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 3px; }
.contact-details a { color: var(--navy-600); font-weight: 500; }
.contact-details a:hover { color: var(--gold-500); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 6px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; filter: grayscale(.2) contrast(1.05); }

.contact-form-wrap {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-md); color: #fff;
}
.contact-form h3 { color: #fff; font-size: 1.5rem; margin-bottom: 24px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .82rem; font-weight: 500; color: var(--gold-300); margin-bottom: 7px; letter-spacing: .02em; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: .96rem; color: #fff; padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); transition: border-color .3s, background .3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: rgba(255, 255, 255, .1); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #e07a7a; }
.form-note { margin-top: 14px; font-size: .9rem; min-height: 1.2em; color: var(--gold-300); }
.form-note.error { color: #ffb4b4; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 66px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px; padding-bottom: 46px; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-tagline { font-size: .92rem; color: rgba(255, 255, 255, .6); max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-cols a, .footer-cols p { display: block; font-size: .92rem; color: rgba(255, 255, 255, .66); margin-bottom: 10px; transition: color .25s; }
.footer-cols a:hover { color: var(--gold-400); }
.footer-cta { color: var(--gold-400) !important; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .84rem; color: rgba(255, 255, 255, .5);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; z-index: 90;
  display: grid; place-items: center; font-size: 1.3rem; color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); box-shadow: var(--shadow-gold);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: .35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); flex-direction: column; align-items: flex-start;
    gap: 6px; background: var(--navy-900); padding: 100px 30px 40px; transform: translateX(105%);
    transition: transform .4s var(--ease); box-shadow: -10px 0 40px rgba(0, 0, 0, .3); z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { color: rgba(255, 255, 255, .85) !important; width: 100%; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: none; }
  .nav-toggle { display: flex; z-index: 100; }
  .site-header.scrolled .nav-toggle span, .nav-toggle.open span { background: #fff; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(2) { border-right: none; }
  .trust-grid > div:nth-child(1), .trust-grid > div:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .process-track { grid-template-columns: 1fr; gap: 26px; max-width: 460px; margin: 0 auto; }
  .process-track::before { display: none; }
  .process-step { display: flex; align-items: center; gap: 18px; text-align: left; }
  .step-num { margin: 0; flex: none; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .container { padding: 0 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 22px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .brand-name { font-size: 1rem; }
  .hero { padding: 120px 0 70px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
