/* ============================================
   American Cargo Services LLC — main stylesheet
   ============================================ */

:root {
  --navy-900: #091834;
  --navy-800: #0E2357;
  --navy-700: #16306E;
  --navy-600: #1B3A8C;
  --blue-500: #2E55B4;
  --red-600: #C8202F;
  --red-500: #E23744;
  --ink: #10203E;
  --muted: #51607C;
  --line: #E3E9F4;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FC;
  --amber: #FFC53D;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(9, 24, 52, .06), 0 2px 8px rgba(9, 24, 52, .05);
  --shadow-md: 0 6px 24px rgba(9, 24, 52, .10);
  --shadow-lg: 0 18px 48px rgba(9, 24, 52, .18);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--navy-900);
  color: #C6D2EC;
  font-size: .82rem;
  font-weight: 500;
}

.topbar-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  min-height: 38px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}

.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { color: var(--red-500); flex: none; }
.topbar-item a:hover { color: #fff; }
.topbar-hours { margin-left: auto; }

/* ---------- Header / nav ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}

header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand img { height: 46px; width: auto; }

.navlinks {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  font-size: .93rem;
}

.navlinks > a:not(.btn) {
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.navlinks > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2.5px;
  background: var(--red-600);
  border-radius: 2px;
  transition: right .25s ease;
}

.navlinks > a:not(.btn):hover::after { right: 0; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Language selector */

.lang { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease;
}

.lang-btn:hover { border-color: #CBD8EE; background: var(--bg-soft); }
.lang-btn > svg:first-child { color: var(--navy-600); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
  min-width: 150px;
  z-index: 80;
}

.lang-menu.open { display: grid; gap: 2px; }

.lang-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.lang-menu button:hover { background: var(--bg-soft); }
.lang-menu button.active { color: var(--navy-600); font-weight: 800; background: #EDF2FB; }

.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy-800);
  margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .93rem;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 32, 47, .28);
}

.btn-primary:hover { background: #AD1826; box-shadow: 0 8px 22px rgba(200, 32, 47, .36); }

.btn-ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.btn-light {
  background: #fff;
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
}

.btn-light:hover { background: #EDF2FB; }

.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 84px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #DCE5F7;
  margin-bottom: 22px;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 4px rgba(226, 55, 68, .25);
}

.hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, #FF6B77, #E23744);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  margin-top: 18px;
  font-size: 1.08rem;
  color: #C6D2EC;
  max-width: 54ch;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-points {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-size: .9rem;
  font-weight: 600;
  color: #DCE5F7;
}

.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: #5CD68A; flex: none; }

.hero-art { position: relative; }

.hero-art img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .12);
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: var(--shadow-lg);
  font-size: .8rem;
  line-height: 1.3;
  animation: floaty 5s ease-in-out infinite;
}

.float-chip b { display: block; font-size: .86rem; }
.float-chip span { color: var(--muted); }
.float-chip svg { color: var(--navy-600); flex: none; }

.chip-a { top: 26px; left: -20px; }
.chip-b { bottom: 30px; right: -14px; animation-delay: 2.5s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Stats band ---------- */

.band {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat {
  padding: 26px 20px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: #94A6CC;
  font-size: .84rem;
  font-weight: 500;
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p { margin-top: 12px; color: var(--muted); }

.eyebrow {
  display: inline-block;
  color: var(--red-600);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- Cards / services ---------- */

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD8EE;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #EDF2FB, #DEE8F8);
  color: var(--navy-600);
  margin-bottom: 18px;
}

.card .icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; }

.contact-link { font-weight: 700; color: var(--navy-600); word-break: break-all; }
.contact-link:hover { text-decoration: underline; }

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.split-copy p { color: var(--muted); margin-top: 12px; }

.checklist {
  list-style: none;
  margin: 26px 0 30px;
  display: grid;
  gap: 18px;
}

.checklist li { display: flex; gap: 14px; align-items: flex-start; }

.check {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #E8F7EE;
  color: #1F9D55;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.checklist b { display: block; font-size: .97rem; }
.checklist span:not(.check) { color: var(--muted); font-size: .9rem; }

/* Why-us photo */

.why-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.why-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* Dark operations panel */

.panel-dark {
  background: linear-gradient(165deg, var(--navy-800), var(--navy-900));
  border-radius: 20px;
  padding: 26px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 14px;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 15px 16px;
}

.panel-row > div:nth-child(2) { flex: 1; line-height: 1.35; }
.panel-row b { display: block; font-size: .92rem; }
.panel-row span:not(.pill) { color: #94A6CC; font-size: .8rem; }

.panel-icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  display: grid;
  place-items: center;
  color: #AFC2E8;
}

.panel-icon svg { width: 22px; height: 22px; }

.pill {
  flex: none;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: .03em;
}

.pill.ok { background: rgba(92, 214, 138, .16); color: #5CD68A; }
.pill.active { background: rgba(255, 197, 61, .16); color: var(--amber); }

.panel-foot {
  text-align: center;
  color: #7F93BE;
  font-size: .78rem;
  padding-top: 4px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.step:nth-child(even) .step-num { background: var(--red-600); }

.step h3 { font-size: 1rem; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: .88rem; }

/* ---------- Location ---------- */

.addr-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-top: 26px;
}

.addr-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(150deg, #FDECEE, #F9D8DC);
  color: var(--red-600);
  display: grid;
  place-items: center;
}

.addr-icon svg { width: 24px; height: 24px; }

.addr-card b { display: block; }
.addr-card span { display: block; color: var(--muted); font-size: .92rem; margin: 2px 0 6px; }
.addr-card a { color: var(--navy-600); font-weight: 700; font-size: .88rem; }
.addr-card a:hover { text-decoration: underline; }

.map-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------- CTA ---------- */

.cta { padding: 20px 0 0; }

.cta-box {
  background:
    linear-gradient(100deg, rgba(9, 24, 52, .92) 25%, rgba(14, 35, 87, .62)),
    url("../img/photos/truck.jpg") center 55% / cover no-repeat;
  border-radius: 24px;
  padding: 46px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(226, 55, 68, .25);
  filter: blur(10px);
}

.cta-box h2 { position: relative; }
.cta-box p { position: relative; margin-top: 8px; color: #C6D2EC; max-width: 52ch; }
.cta-box .btn { position: relative; }

/* ---------- Footer ---------- */

footer {
  background: var(--navy-900);
  color: #94A6CC;
  margin-top: 88px;
  padding: 56px 0 28px;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }

.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col b { color: #fff; margin-bottom: 4px; font-size: .95rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: .82rem;
}

.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero-art { max-width: 640px; }
  .chip-a { left: 8px; }
  .chip-b { right: 8px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .topbar-inner { gap: 10px; justify-content: center; }
  .topbar-hours { margin-left: 0; }

  .hamburger { display: block; }

  .navlinks {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    gap: 6px;
    display: none;
  }

  .navlinks.open { display: flex; }
  .navlinks > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--bg-soft); }
  .navlinks .btn { margin-top: 12px; }

  .brand img { height: 38px; }

  .section { padding: 64px 0; }
  .grid3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { padding: 18px 10px; }
  .stat b { font-size: 1.1rem; }

  .cta-box { padding: 34px 26px; }
  .hero-art img { height: 300px; }
  .why-photo img { min-height: 260px; height: 300px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .map-frame iframe { height: 300px; }
}
