/* =============================================
   CTN LOGISTICS LIMITED
   Main Stylesheet — Navy & Cobalt Blue
   ============================================= */

:root {
  --navy-deep:    #0A1F4D;
  --navy-mid:     #122a63;
  --navy-light:   #1c3a7a;
  --blue:         #1565C0;
  --blue-bright:  #1E88E5;
  --blue-faint:   rgba(21,101,192,0.08);
  --white:        #ffffff;
  --off-white:    #F4F7FB;
  --gray-100:     #eef1f6;
  --gray-200:     #dce3ee;
  --gray-400:     #8d99b3;
  --gray-600:     #555f74;
  --gray-700:     #34394a;
  --black:        #0d1117;
  --font-head:    'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 2px 8px rgba(10,31,77,0.08);
  --shadow-md:    0 8px 32px rgba(10,31,77,0.12);
  --shadow-lg:    0 20px 64px rgba(10,31,77,0.18);
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-h:        76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 28px; }

/* ===== UTILITY ===== */
.accent { color: var(--blue-bright); }
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(21,101,192,0.32);
}
.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.45);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 30px;
  border-radius: 8px;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: var(--blue-bright); background: rgba(30,136,229,0.15); }
.btn-dark {
  display: inline-block;
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); }

.section-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
}
.section-eyebrow--light { color: var(--blue-bright); }

h2.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy-deep);
  margin-bottom: 18px;
}
h2.section-title--light { color: var(--white); }

.section-intro { font-size: 17px; color: var(--gray-600); line-height: 1.75; max-width: 560px; }
.section-intro--light { color: rgba(255,255,255,0.68); }

/* ===== NAVBAR — WHITE ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(10,31,77,0.10); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo img { height: 44px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--navy-deep); background: var(--off-white); }
.nav-menu a.nav-cta {
  background: var(--blue);
  color: var(--white);
  margin-left: 8px;
  padding: 10px 22px;
  font-weight: 700;
}
.nav-menu a.nav-cta:hover { background: var(--blue-bright); box-shadow: 0 4px 16px rgba(21,101,192,0.3); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy-deep); border-radius: 2px; transition: var(--transition); }

/* ===== PAGE HERO (inner pages) — STRAIGHT, NO CURVE ===== */
.page-hero {
  background: var(--navy-deep);
  padding: calc(var(--nav-h) + 64px) 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--blue);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.page-hero-content { position: relative; z-index: 2; text-align: center; max-width: 700px; margin: 0 auto; }
.page-hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 18px;
}
.page-hero-content p { font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.breadcrumb a { color: var(--blue-bright); transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb-sep { opacity: 0.3; }

/* ===== TICKER ===== */
.ticker-wrap { background: var(--blue); overflow: hidden; padding: 13px 0; }
.ticker { display: flex; gap: 32px; width: max-content; animation: ticker 35s linear infinite; white-space: nowrap; }
.ticker span { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.ticker .dot { opacity: 0.5; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SECTION SPACING ===== */
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 120px 0; }
.section--dark { background: var(--navy-deep); }
.section--alt { background: var(--off-white); }

/* ===== CARD BASE ===== */
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-body { padding: 28px; }
.card-icon {
  width: 52px; height: 52px;
  background: var(--navy-deep);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--blue-bright);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; line-height: 1.3; }
.card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--blue); margin-top: 16px;
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { gap: 10px; color: var(--navy-deep); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-deep); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 56px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand-logo { height: 38px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.75; max-width: 280px; }
.footer-col-title { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--blue-bright); }
.footer-contact p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 8px; line-height: 1.6; }
.footer-contact a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-contact a:hover { color: var(--blue-bright); }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--blue); color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    padding: 20px 28px 28px;
    gap: 4px;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 20px 40px rgba(10,31,77,0.1);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 16px; width: 100%; }
  .nav-menu a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) { .container, .container--wide { padding: 0 20px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
