/* =========================================================
   TAT LOGISTICS — Premium Corporate Stylesheet
   Palette: Navy #0A1D3F · White · Red #CE1126
            Light Gray #F8FAFC · Charcoal #1F2937
   ========================================================= */

:root {
  /* TAT Logistics LLC brand: deep navy + red */
  --navy: #0A1D3F;
  --navy-800: #10294d;
  --navy-700: #17345f;
  --white: #ffffff;
  --orange: #CE1126;      /* brand red (kept var name for compatibility) */
  --orange-600: #A50E1F;  /* darker red for hovers */
  --gray-bg: #F8FAFC;
  --charcoal: #1F2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow: 0 12px 34px rgba(15, 23, 42, .10);
  --shadow-lg: 0 26px 60px rgba(10, 29, 63, .18);
  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Poppins', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.15; letter-spacing: -.02em; }
.ic { width: 16px; height: 16px; fill: currentColor; flex: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .78rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn--accent { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(206, 17, 38, .32); }
.btn--accent:hover { background: var(--orange-600); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(206, 17, 38, .40); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2000; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader__mark { display: flex; flex-direction: column; gap: 5px; }
.loader__mark span { display: block; height: 9px; border-radius: 3px; background: #fff; animation: loadbar 1.1s var(--ease) infinite; }
.loader__mark span:nth-child(1) { width: 46px; }
.loader__mark span:nth-child(2) { width: 46px; background: var(--orange); animation-delay: .15s; }
.loader__mark span:nth-child(3) { width: 30px; animation-delay: .3s; }
@keyframes loadbar { 0%, 100% { opacity: .25; transform: translateX(-6px); } 50% { opacity: 1; transform: translateX(0); } }
.loader__text { color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: .28em; font-size: .8rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cbd5e1; font-size: .82rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar__contact a:hover { color: #fff; }
.topbar__meta { display: flex; align-items: center; gap: 20px; }
.topbar__meta span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__badge { background: var(--orange); color: #fff; padding: 2px 12px; border-radius: 999px; font-weight: 600; font-size: .74rem; letter-spacing: .03em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .0);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: 14px;
}
.nav.solid { background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.nav__inner { display: flex; align-items: center; gap: 20px; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 44px; width: auto; }
/* Over the hero (transparent nav) use the white-variant logo so the container
   bars stay visible; switch to the full-color logo once the nav turns solid. */
.nav__logo-color { display: none; }
.nav__logo-white { display: block; }
.nav.solid .nav__logo-color { display: block; }
.nav.solid .nav__logo-white { display: none; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  font-size: .9rem; font-weight: 500; padding: .5rem .64rem; border-radius: 8px;
  color: #e2e8f0; transition: color .2s, background .2s; position: relative;
  white-space: nowrap;
}
.nav.solid .nav__links a { color: var(--charcoal); }
.nav__links a::after {
  content: ""; position: absolute; left: .64rem; right: .64rem; bottom: .28rem; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__links a:hover, .nav__links a.active { color: var(--orange); }
.nav.solid .nav__links a:hover, .nav.solid .nav__links a.active { color: var(--orange); }
.nav__cta { margin-left: 8px; }
.nav:not(.solid) .nav__cta { box-shadow: 0 10px 24px rgba(206, 17, 38, .4); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav__toggle span { width: 26px; height: 3px; border-radius: 3px; background: #fff; transition: .3s var(--ease); }
.nav.solid .nav__toggle span { background: var(--navy); }
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; margin-top: -76px; padding-top: 76px; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.16); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10, 29, 63, .93) 0%, rgba(10, 29, 63, .78) 42%, rgba(10, 29, 63, .45) 100%); }
.hero__inner { position: relative; padding-block: 90px; max-width: 820px; }
.hero__eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: rgba(206, 17, 38, .95); padding: .4rem 1rem; border-radius: 999px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.3rem, 5.2vw, 4rem); color: #fff; font-weight: 800; margin-bottom: 20px; }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: #dbe4f0; max-width: 640px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero__trust { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--display); font-size: 1.9rem; color: #fff; line-height: 1; }
.hero__trust span { font-size: .82rem; color: #b9c6d8; letter-spacing: .04em; margin-top: 4px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; display: flex; justify-content: center; }
.hero__scroll span { width: 4px; height: 8px; background: #fff; border-radius: 2px; margin-top: 8px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy-800); color: #fff; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .06); }
.marquee__track { display: flex; align-items: center; gap: 26px; white-space: nowrap; padding: 14px 0; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .02em; }
.marquee__track i { color: var(--orange); font-style: normal; font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(60px, 8vw, 104px); }
.section--gray { background: var(--gray-bg); }
.section--navy { background: var(--navy); color: #fff; position: relative; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 62px); text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.section__head p { color: var(--muted); font-size: 1.06rem; }
.section--navy .section__head p { color: #b9c6d8; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.eyebrow--light { color: var(--orange); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__ic { width: 56px; height: 56px; border-radius: 14px; background: var(--gray-bg); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; transition: background .3s, transform .3s; }
.svc-card:hover .svc-card__ic { background: rgba(206, 17, 38, .12); transform: scale(1.06); }
.svc-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.svc-card p { font-size: .92rem; color: var(--muted); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--navy-800); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 28px 24px; transition: transform .35s var(--ease), background .35s; }
.feature:hover { transform: translateY(-6px); background: var(--navy-700); }
.feature__check { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 700; margin-bottom: 16px; }
.feature h3 { font-size: 1.04rem; margin-bottom: 8px; }
.feature p { font-size: .9rem; color: #a9b8cc; }

/* ---------- Inventory ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter { border: 1.5px solid var(--line); background: #fff; color: var(--charcoal); padding: .55rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: .25s var(--ease); }
.filter:hover { border-color: var(--orange); color: var(--orange); }
.filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.inventory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.inv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.inv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.inv-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.inv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.inv-card:hover .inv-card__media img { transform: scale(1.08); }
.inv-card__tag { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; }
.inv-card__avail { position: absolute; top: 12px; right: 12px; background: #16a34a; color: #fff; font-size: .68rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.inv-card__avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.inv-card__body { padding: 20px; }
.inv-card__body h3 { font-size: 1.12rem; margin-bottom: 4px; }
.inv-card__cond { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.inv-card__meta { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.inv-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.inv-card__meta b { color: var(--navy); font-weight: 600; }
.inv-card .btn { width: 100%; padding: .68rem 1rem; font-size: .9rem; }

/* ---------- Split sections ---------- */
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; transition: transform .8s var(--ease); }
.split__media:hover img { transform: scale(1.05); }
.split__badge { position: absolute; bottom: 20px; left: 20px; background: #fff; border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow); }
.split__badge strong { display: block; font-family: var(--display); color: var(--navy); font-size: 1.05rem; }
.split__badge span { font-size: .8rem; color: var(--muted); }
.split__badge--accent { background: var(--orange); }
.split__badge--accent strong, .split__badge--accent span { color: #fff; }
.split__body .eyebrow { margin-bottom: 12px; }
.split__body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.split__body > p { color: var(--muted); margin-bottom: 18px; }
.section--navy .split__body > p { color: #b9c6d8; }
.ticklist { display: grid; gap: 12px; margin-bottom: 28px; }
.ticklist li { position: relative; padding-left: 34px; font-weight: 500; }
.ticklist li::before { content: "✔"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: rgba(206, 17, 38, .14); color: var(--orange); border-radius: 6px; display: grid; place-items: center; font-size: .72rem; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.mini strong { display: block; color: var(--navy); font-size: .98rem; }
.mini span { font-size: .84rem; color: var(--muted); }
.about-points { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.about-points strong { display: block; font-family: var(--display); color: var(--navy); }
.about-points span { font-size: .86rem; color: var(--muted); }

/* ---------- USA Map ---------- */
.map-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 46px; align-items: center; }
.map-usa svg { width: 100%; height: auto; }
.map-usa .state { fill: rgba(255, 255, 255, .10); stroke: rgba(255, 255, 255, .28); stroke-width: 1; transition: fill .3s; }
.map-usa .state:hover { fill: var(--orange); }
.map-usa .hq { fill: var(--orange); }
.map-usa .pulse { fill: var(--orange); opacity: .55; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { r: 6; opacity: .6; } 100% { r: 26; opacity: 0; } }
.map-legend { display: grid; gap: 22px; }
.map-legend__item { display: flex; gap: 14px; align-items: flex-start; }
.map-legend__item .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; margin-top: 4px; }
.dot--hq { background: var(--orange); box-shadow: 0 0 0 4px rgba(206, 17, 38, .25); }
.dot--stock { background: #fff; }
.dot--route { background: #38bdf8; }
.map-legend__item strong { color: #fff; font-family: var(--display); }
.map-legend__item p { font-size: .86rem; color: #a9b8cc; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, var(--orange), var(--orange-600)); color: #fff; padding-block: 64px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.stat__label { font-size: .95rem; font-weight: 500; opacity: .95; margin-top: 8px; display: block; }
.stat { position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 15%; height: 70%; width: 1px; background: rgba(255, 255, 255, .3); }

/* ---------- Industries ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.ind { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 18px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; }
.ind:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--navy); }
.ind:hover h3 { color: #fff; }
.ind__ic { font-size: 2.1rem; display: block; margin-bottom: 12px; }
.ind h3 { font-size: 1rem; transition: color .3s; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 44px; }
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease); }
.testi:hover { transform: translateY(-6px); }
.testi__stars { color: var(--orange); letter-spacing: 3px; margin-bottom: 14px; }
.testi blockquote { font-size: 1rem; color: var(--charcoal); margin-bottom: 22px; }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--display); }
.testi figcaption strong { display: block; color: var(--navy); font-size: .96rem; }
.testi figcaption span { font-size: .82rem; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; opacity: .8; }
.logos span { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.02rem; letter-spacing: .01em; filter: grayscale(1); opacity: .6; transition: opacity .3s; }
.logos span:hover { opacity: 1; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__item summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--orange); transition: transform .3s; line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 24px 22px; }
.faq__a p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: .95rem; color: var(--charcoal);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .72rem .9rem; background: var(--gray-bg);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(206, 17, 38, .12); }
.field textarea { resize: vertical; }
.field input.invalid, .field select.invalid { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.form-note { margin-top: 14px; font-size: .9rem; text-align: center; min-height: 20px; }
.form-note.ok { color: #16a34a; font-weight: 600; }
.form-note.err { color: #dc2626; font-weight: 600; }
.contact-info { display: grid; gap: 22px; }
.info-card { background: var(--navy); color: #fff; border-radius: 20px; padding: 30px; }
.info-card h3 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; }
.info-list { display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
.info-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: 2px; }
.info-list a, .info-list span { color: #e2e8f0; font-size: .96rem; }
.info-list a:hover { color: var(--orange); }
.map-embed { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: #071a33; color: #b9c6d8; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px; }
.footer__brand img { height: 44px; margin-bottom: 18px; }
.footer__brand p { font-size: .92rem; max-width: 340px; margin-bottom: 20px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; transition: background .25s, transform .25s; }
.socials a svg { width: 18px; height: 18px; fill: #cbd5e1; transition: fill .25s; }
.socials a:hover { background: var(--orange); transform: translateY(-3px); }
.socials a:hover svg { fill: #fff; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer__col a { display: block; font-size: .9rem; padding: 5px 0; transition: color .2s, padding-left .2s; }
.footer__col a:hover { color: var(--orange); padding-left: 5px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 22px; font-size: .85rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--orange); }

/* ---------- Floating buttons ---------- */
.floaties {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab {
  display: inline-flex; align-items: center; gap: 9px; color: #fff;
  padding: .78rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.fab svg { width: 20px; height: 20px; fill: #fff; }
.fab:hover { transform: translateY(-4px) scale(1.03); }
.fab--wa { background: #25D366; box-shadow: 0 12px 30px rgba(37, 211, 102, .5); animation: floaty 3s ease-in-out infinite; }
.fab--wa:hover { box-shadow: 0 18px 38px rgba(37, 211, 102, .6); }
.fab--call { background: var(--orange); box-shadow: 0 12px 30px rgba(206, 17, 38, .45); }
.fab--call:hover { box-shadow: 0 18px 38px rgba(206, 17, 38, .55); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* WhatsApp submit button uses the brand green */
.btn--wa { background: #25D366; box-shadow: 0 10px 24px rgba(37, 211, 102, .32); }
.btn--wa:hover { background: #1eb958; box-shadow: 0 16px 32px rgba(37, 211, 102, .4); }
.form-hint { margin-top: 10px; font-size: .82rem; color: var(--muted); text-align: center; }
.totop {
  position: fixed; left: 24px; bottom: 24px; z-index: 900; width: 46px; height: 46px; border-radius: 12px;
  border: 0; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease); box-shadow: var(--shadow);
}
.totop svg { width: 22px; height: 22px; fill: #fff; }
.totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--orange); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }

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

/* ---------- Responsive ---------- */
/* Hide the header CTA before the row of links starts to get cramped */
@media (max-width: 1240px) {
  .nav__cta { display: none; }
}
@media (max-width: 1080px) {
  .services-grid, .feature-grid, .inventory-grid { grid-template-columns: repeat(3, 1fr); }
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  /* Collapse the primary nav into a slide-in drawer so links never wrap */
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--navy);
    flex-direction: column; gap: 4px; padding: 100px 24px 40px; margin: 0;
    transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav__links.open { transform: translateX(0); }
  /* backdrop-filter/transform on .nav would make it the containing block for the
     fixed drawer, clipping it to the header height — keep nav free of them here. */
  .nav, .nav.solid { backdrop-filter: none; }
  .nav.solid { background: rgba(255, 255, 255, .98); }
  .nav__links a { color: #e2e8f0; font-size: 1.05rem; padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: normal; }
  .nav.solid .nav__links a { color: #e2e8f0; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }
  .nav.solid .nav__toggle span { background: var(--navy); }
}
@media (max-width: 900px) {
  .split__inner, .map-wrap, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .stat:not(:last-child)::after { display: none; }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  /* Hero no longer underlaps nav, so nav sits on white — force solid look */
  .nav { background: rgba(255, 255, 255, .98); box-shadow: var(--shadow-sm); }
  /* Nav is always light here, so always show the full-color logo */
  .nav .nav__logo-color { display: block; }
  .nav .nav__logo-white { display: none; }
  .nav .nav__toggle span { background: var(--navy); }
  .hero { margin-top: 0; padding-top: 0; min-height: 88vh; }
  .services-grid, .feature-grid, .inventory-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .field-row, .mini-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .hero__trust { gap: 26px; }
  .fab span { display: none; }
  .fab { padding: .9rem; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .services-grid, .feature-grid, .inventory-grid, .testi-grid, .industries-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.1rem; }
  .contact-form { padding: 24px; }
}
