/* ============================================
   Lambow Logistics – Shared Styles
   ============================================ */
:root {
  --black: #0d0d0d;
  --black-light: #1a1a1a;
  --yellow: #C8D838;
  --yellow-dark: #a8b82e;
  --yellow-glow: rgba(200,216,56,0.15);
  --white: #ffffff;
  --gray-100: #f2f2f2;
  --gray-200: #d9d9d9;
  --gray-400: #999999;
  --gray-600: #666666;
  --gray-800: #333333;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;

  /* Legacy aliases for minimal inline-style breakage */
  --navy: var(--black);
  --navy-light: var(--black-light);
  --teal: var(--yellow);
  --teal-dark: var(--yellow-dark);
  --gold: var(--yellow);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--black); padding: 0 24px; height: 72px;
  display: flex; align-items: center;
}
.nav__inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-size: 1.5rem; font-weight: 800; color: var(--white);
  display: flex; align-items: center; gap: 10px;
}
.nav__logo img { height: 40px; width: auto; border-radius: 4px; }
.nav__logo span { color: var(--yellow); }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  color: var(--gray-200); font-size: 0.95rem; font-weight: 500;
  transition: color var(--transition); position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--yellow); }
.nav__links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--yellow); border-radius: 2px;
}
.nav__cta {
  background: var(--yellow); color: var(--black); padding: 10px 24px;
  border-radius: var(--radius); font-weight: 700; font-size: 0.9rem;
  transition: background var(--transition);
}
.nav__cta:hover { background: var(--yellow-dark); }

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 6px 0; transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  margin-top: 72px; padding: 100px 24px 80px;
  background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
  color: var(--white); text-align: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow-glow); border: 1px solid rgba(245,197,24,0.3);
  padding: 6px 16px; border-radius: 999px; font-size: 0.85rem;
  color: var(--yellow); margin-bottom: 24px;
}
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { font-size: 1.15rem; color: var(--gray-400); max-width: 640px; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius); font-weight: 700;
  font-size: 1rem; border: none; cursor: pointer; transition: var(--transition);
}
.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:hover { background: var(--yellow-dark); }
.btn--outline {
  background: transparent; color: var(--white);
  border: 2px solid var(--gray-400);
}
.btn--outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--gold { background: var(--yellow); color: var(--black); }
.btn--gold:hover { filter: brightness(1.1); }

/* ---- SECTIONS ---- */
.section { padding: 80px 24px; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--black); color: var(--white); }
.section__header { text-align: center; margin-bottom: 56px; }
.section__header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.section__header p { color: var(--gray-600); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Yellow text on light backgrounds — dark pill for contrast */
.btn--ocean {
  background: var(--black);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  margin-top: 16px;
}
.btn--ocean:hover {
  background: var(--yellow);
  color: var(--black);
}

.btn--air {
  background: var(--yellow);
  color: var(--black);
  border: 2px solid var(--yellow);
  margin-top: 16px;
}
.btn--air:hover {
  background: var(--black);
  color: var(--yellow);
}

.highlight-yellow {
  color: var(--yellow);
  background: var(--black);
  padding: 2px 10px;
  border-radius: 4px;
  display: inline-block;
}
.section--dark .section__header p { color: var(--gray-400); }

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

/* ---- CARDS ---- */
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.card:hover { transform: translateY(-4px); }
.card__icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--yellow-glow); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px; font-size: 1.5rem;
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--gray-600); font-size: 0.95rem; }

/* dark card */
.card--dark { background: var(--black-light); }
.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--gray-400); }

/* ---- STATS ---- */
.stats { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; padding: 48px 0; }
.stat { text-align: center; }
.stat__value { font-size: 2.4rem; font-weight: 800; color: var(--yellow); }
.stat__label { font-size: 0.9rem; color: var(--gray-400); margin-top: 4px; }

/* ---- TRACK FORM ---- */
.track-box {
  max-width: 640px; margin: 0 auto; background: var(--white);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.track-box h2 { font-size: 1.6rem; margin-bottom: 8px; }
.track-box > p { color: var(--gray-600); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  transition: border var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--yellow);
}

/* ---- FLEET TABLE ---- */
.fleet-table { width: 100%; border-collapse: collapse; }
.fleet-table th, .fleet-table td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--gray-200);
}
.fleet-table th { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; color: var(--gray-600); }
.fleet-table tr:hover { background: var(--gray-100); }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
}
.badge--green { background: rgba(34,197,94,0.15); color: #16a34a; }
.badge--gold { background: var(--yellow-glow); color: var(--yellow-dark); }
.badge--red { background: rgba(220,53,69,0.12); color: #c0392b; }

/* ---- FOOTER ---- */
.footer { background: var(--black); color: var(--gray-400); padding: 64px 24px 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.6; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.9rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--yellow); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  text-align: center; font-size: 0.85rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .stats { gap: 32px; }
}
@media (max-width: 600px) {
  .nav__links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--black-light); padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav__links a:hover, .nav__links a.active { background: var(--yellow-glow); }
  .nav__cta { display: none; }
  .hamburger { display: block; }
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .footer__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .hero { padding: 60px 16px 48px; }
}

/* ---- BACK TO TOP ---- */
.btt {
  position: fixed; bottom: 32px; right: 32px; z-index: 99;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow); color: var(--black); border: none; cursor: pointer;
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.btt.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.btt:hover { background: var(--yellow-dark); }
