/* ===========================================================
   Top One Logistics LLC — styles.css
   Palette derived from the logo: royal blue + dark navy on white,
   with a warm amber accent for calls to action.
   =========================================================== */

:root {
  /* Brand */
  --navy:        #16263B;
  --navy-700:    #1E3550;
  --blue:        #1559C0;
  --blue-600:    #1A5FC4;
  --blue-400:    #3B82E6;
  --accent:      #F59E0B;
  --accent-600:  #D9870A;

  /* Neutrals */
  --bg:          #FFFFFF;
  --bg-alt:      #F2F6FB;
  --text:        #1E293B;
  --muted:       #5B6B7F;
  --border:      #E2E8F0;
  --white:       #FFFFFF;

  /* Shape & motion */
  --radius:      14px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 3px rgba(22, 38, 59, .08);
  --shadow:      0 10px 30px rgba(22, 38, 59, .10);
  --shadow-lg:   0 24px 60px rgba(22, 38, 59, .18);
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --maxw:        1140px;

  --font-body:   "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head:   "Plus Jakarta Sans", var(--font-body);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-600); box-shadow: var(--shadow); }

.btn-accent { background: var(--accent); color: var(--navy); box-shadow: 0 8px 20px rgba(245,158,11,.30); }
.btn-accent:hover { background: var(--accent-600); }

.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-logo { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  color: var(--navy);
  position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--blue); transition: width .2s var(--ease);
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav-cta { padding: 11px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 2.5px; width: 24px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Eyebrows & section heads ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--blue); }
.eyebrow-light { color: var(--blue-400); }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.section-title.light { color: #fff; }
.section-head.center { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-intro { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }
.section-intro.light { color: rgba(255,255,255,.78); }
.lead { font-size: 1.15rem; color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  /* Treatment layers (top → bottom): navy scrim weighted toward the left where
     the copy sits, a brand tint, then the photo. The scrim keeps white text at
     accessible contrast no matter how bright the underlying image is. */
  background-color: #16263B; /* fallback tint shown only where the image isn't */
  background-image:
    linear-gradient(100deg, rgba(13,22,35,.92) 0%, rgba(16,38,59,.80) 38%, rgba(16,38,59,.45) 100%),
    radial-gradient(900px 500px at 85% -10%, rgba(59,130,230,.35), transparent 60%),
    url("img/hero1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-inner { position: relative; z-index: 1; padding: 104px 24px 92px; max-width: 820px; }
.eyebrow { } /* placeholder so hero eyebrow inherits */
.hero .eyebrow { color: #8fc0ff; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -.025em; color: #fff; }
.grad-text {
  background: linear-gradient(90deg, #ffffff 0%, #9cc6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.about-copy .section-title { margin-bottom: 18px; }
.about-copy p + p { margin-top: 16px; }
.about-copy .lead { margin-bottom: 4px; }

.pillars { margin-top: 40px; display: grid; gap: 22px; }
.pillar { padding-left: 20px; border-left: 3px solid var(--blue); }
.pillar h3 { font-size: 1.12rem; margin-bottom: 4px; }
.pillar p { color: var(--muted); }

.about-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
  position: sticky; top: 100px;
}
.about-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 20px; }
.check-list { display: grid; gap: 14px; margin-bottom: 28px; }
.check-list li { position: relative; padding-left: 32px; color: rgba(255,255,255,.86); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- What Drives Us (dark) ---------- */
.section-dark { background: var(--navy); position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 100% 0%, rgba(21,89,192,.4), transparent 60%);
}
.section-dark .container { position: relative; z-index: 1; }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.value:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); border-color: rgba(143,192,255,.4); }
.value-num { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--accent); }
.value h3 { color: #fff; font-size: 1.18rem; margin: 14px 0 8px; }
.value p { color: rgba(255,255,255,.72); font-size: .96rem; }

/* ---------- Solutions (alternating image / text rows) ---------- */
.solutions-rows { display: grid; gap: 72px; margin-top: 12px; }
.solution-row {
  display: flex; align-items: center; gap: 56px;
}
/* Flip every other row so the image alternates left ↔ right */
.solution-row:nth-child(even) { flex-direction: row-reverse; }
.solution-media, .solution-body { flex: 1 1 50%; min-width: 0; }

/* Placeholder image panel — replace with <img class="solution-img"> when photos arrive */
.solution-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px dashed #C7D5E6;
  display: grid; place-items: center;
}
.solution-img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--radius);
}
.media-note {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  letter-spacing: .04em; color: var(--muted);
}

.solution-icon {
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, #E8F0FE, #D6E4FF);
  color: var(--blue);
}
.solution-icon svg { width: 28px; height: 28px; }
.solution-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.solution-body p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }

/* Closing call-to-action band */
.solutions-cta {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}
.solutions-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.solutions-cta p { color: rgba(255,255,255,.8); margin-bottom: 22px; }

/* ---------- Contact ---------- */
.contact-info .lead { margin-top: 16px; color: var(--muted); max-width: 60ch; }
.contact-list { margin-top: 34px; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; }
.contact-label { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .92rem; }
.contact-list a:hover { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); }
.footer-bottom {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  padding: 30px 0;
  font-size: .9rem; color: rgba(255,255,255,.6);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card { position: static; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .solutions-rows { gap: 56px; }
  .solution-row { gap: 40px; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 24px 22px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .3s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 14px; border-bottom: none !important; }
  .nav-toggle { display: flex; }

  .hero-inner { padding: 72px 24px 64px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stack each row: image on top, text below (no left/right alternation) */
  .solution-row, .solution-row:nth-child(even) { flex-direction: column; gap: 24px; }
  .solution-media { width: 100%; }
  .solution-body p { max-width: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .value:hover { transform: none; }
}
