/* Logwise Logistics — DHG-inspired design system
   Warm near-black surfaces · oversized display type · circular arrow buttons
   Accent: Logwise lime-green (#90C018). Edit variables below to restyle. */

:root {
  --lime: #90c018;
  --lime-bright: #a8d92a;
  --lime-deep: #56730d;      /* readable green on light (AA) */
  --lime-tint: #eef6dc;
  --ink: #181513;            /* warm near-black — primary dark surface */
  --ink-2: #211d18;
  --ink-3: #2c2721;
  --paper: #f4f1ea;          /* warm off-white */
  --paper-2: #ece7dc;
  --sand: #e4dccc;           /* warm neutral line/detail */
  --body: #46433c;           /* body text on light */
  --body-dark: rgba(255,255,255,.72); /* body text on dark */
  --muted: #8b857a;
  --line: #e3ddd1;
  --line-dark: rgba(255,255,255,.14);
  --max: 1280px;
  --radius: 4px;
  --shadow: 0 20px 60px rgba(15, 20, 10, 0.14);
  --font: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.05; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--lime-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible, .btn:focus-visible, .cbtn:focus-visible {
  outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(28px, var(--safe-l)); padding-right: max(28px, var(--safe-r)); }

/* Section rhythm */
.section { padding: 120px 0; }
.section--tight { padding: 70px 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--body-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--body-dark); }

.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 700; color: var(--lime-deep); margin-bottom: 1.1rem; }
.section--dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--lime); }

/* Oversized display heading (DHG signature) */
.display { text-transform: uppercase; font-weight: 800; letter-spacing: -0.02em; line-height: .98; font-size: clamp(2.4rem, 6vw, 4.6rem); }

.lead { font-size: 1.22rem; color: inherit; max-width: 760px; line-height: 1.6; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--lime); color: var(--ink); padding: 13px 30px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 0; cursor: pointer; touch-action: manipulation;
  transition: background .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
@media (hover: hover) {
  .btn:hover { background: var(--lime-bright); text-decoration: none; transform: translateY(-1px); }
  .btn--outline-light:hover { background: rgba(255,255,255,.1); }
}

/* Circular arrow button (DHG signature CTA) */
.cbtn { display: inline-flex; align-items: center; gap: 16px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; font-size: .82rem; color: var(--ink); cursor: pointer; }
.cbtn:hover { text-decoration: none; }
.cbtn__ic { width: 54px; height: 54px; border-radius: 50%; background: var(--lime); color: var(--ink);
  display: grid; place-items: center; flex-shrink: 0; transition: transform .25s, background .25s; }
.cbtn__ic svg { width: 22px; height: 22px; display: block; }
.cbtn:hover .cbtn__ic { background: var(--lime-bright); transform: translateX(4px); }
.section--dark .cbtn, .hero .cbtn, .page-hero .cbtn { color: #fff; }
.cbtn--lg .cbtn__ic { width: 62px; height: 62px; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.55); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; gap: 6px; }
.topbar .lime { color: var(--lime); }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; color: rgba(255,255,255,.82); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; display: inline-flex; align-items: center; transition: color .25s ease; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--lime); text-decoration: none; }
.nav-cta { margin-left: 6px; }
.nav-cta .btn { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; touch-action: manipulation; flex-direction: column; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 3px 0; transition: .25s; }

/* ---------- Hero (video) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; display: flex; align-items: flex-end; min-height: 92vh; min-height: 92svh; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,10,.5) 0%, rgba(15,18,10,.15) 35%, rgba(15,18,10,.85) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 64px; width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .3em; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.3rem; max-width: 580px; }
.hero-tagline { text-transform: uppercase; letter-spacing: .26em; font-size: .8rem; font-weight: 700; color: var(--lime); margin-bottom: 22px; white-space: nowrap; }
@media (max-width: 560px) { .hero-tagline { white-space: normal; letter-spacing: .2em; font-size: .72rem; } }
.hero .btn-row { margin-top: 36px; display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }

/* Page hero (interior) with image */
.page-hero { position: relative; color: #fff; overflow: hidden; display: flex; align-items: flex-end; min-height: 56vh; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,10,.45), rgba(15,18,10,.82)); }
.page-hero .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 64px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.18rem; max-width: 640px; }

/* Section heading block */
.section-head { max-width: 780px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid.gap-tight { gap: 4px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card .card-img { aspect-ratio: 4/3; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card .card-body { padding: 28px 30px 32px; }
.card h3 { color: var(--ink); }
.card p { color: var(--body); margin-bottom: 0; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .card:hover .card-img img { transform: scale(1.06); }
}
.card--pad { padding: 32px; }
.card--pad .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 18px; }

/* Location cards */
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.loc-card .loc-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.loc-card .loc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.loc-card:hover .loc-img img { transform: scale(1.05); }
.loc-card .loc-img .place { position: absolute; left: 16px; bottom: 14px; background: rgba(20,22,16,.8); color: #fff; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.loc-card .loc-body { padding: 24px 26px 28px; }
.loc-card .loc-body h3 { color: var(--ink); margin-bottom: 8px; }
.loc-card .metric { font-weight: 800; color: var(--lime-deep); font-size: 1.02rem; margin-bottom: 8px; letter-spacing: .01em; }
.loc-card .loc-body p { color: var(--body); margin-bottom: 0; font-size: .97rem; }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split .visual { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--paper-2); }
.split .visual img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.split--media-first .visual { order: -1; }

/* Full-bleed image band (DHG signature) */
.fullbleed { width: 100%; height: clamp(340px, 52vw, 620px); overflow: hidden; }
.fullbleed img { width: 100%; height: 100%; object-fit: cover; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); color: var(--body); }
.section--dark .checklist li { border-color: var(--line-dark); color: var(--body-dark); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 20px; width: 18px; height: 18px; background: var(--lime); border-radius: 50%; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stats > div { border-top: 2px solid var(--lime); padding-top: 20px; }
.stats .num { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.section--dark .stats .num { color: #fff; }
.stats .label { color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; }
.section--dark .stats .label { color: rgba(255,255,255,.6); }

/* Quote */
.quote { padding: 20px 0; text-align: center; max-width: 940px; margin: 0 auto; }
.quote blockquote { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 auto 24px; line-height: 1.2; color: #fff; }
.section:not(.section--dark) .quote blockquote { color: var(--ink); }
.quote .who { color: var(--lime-deep); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.section--dark .quote .who { color: var(--lime); }

/* Badges */
.badge-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); color: var(--body); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px 18px; border-radius: 999px; }
.section--dark .badge { border-color: var(--line-dark); color: #fff; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-card h3 { color: var(--ink); }
.contact-card p { margin: 0 0 4px; color: var(--body); }
.contact-card a { font-weight: 700; }

/* CTA band (big, dark) */
.cta-band { text-align: center; padding: 20px 0; }
.cta-band h2 { color: #fff; margin-bottom: 26px; }
.section:not(.section--dark) .cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--body-dark); max-width: 620px; margin: 0 auto 30px; font-size: 1.15rem; }
.section:not(.section--dark) .cta-band p { color: var(--body); }
.cta-band .cbtn { justify-content: center; }

/* Floating contact pill (DHG signature) */
.contact-fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border: 1px solid var(--line-dark); padding: 8px 24px 8px 8px; border-radius: 999px;
  font-weight: 700; font-size: .86rem; box-shadow: var(--shadow); transition: transform .2s; }
.contact-fab:hover { text-decoration: none; transform: translateY(-2px); }
.contact-fab .fab-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.contact-fab .fab-ic svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.68); padding: 96px 0 32px; font-size: .92rem; }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 18px; }
.site-footer .foot-logo { height: 30px; width: auto; margin-bottom: 18px; }
.site-footer .tagline { text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; color: var(--lime); margin-top: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 2px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 38px; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 54px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.4); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--media-first .visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px max(28px,var(--safe-l)) calc(16px + env(safe-area-inset-bottom,0px));
    border-bottom: 1px solid var(--line-dark); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: flex; align-items: center; min-height: 50px; width: 100%; border-bottom: 1px solid var(--line-dark); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero p { font-size: 1.12rem; }
  .hero .btn-row { gap: 18px; }
  .split .visual, .split .visual img { min-height: 280px; }
  .contact-fab { right: 14px; bottom: 14px; padding: 6px; }
  .contact-fab .fab-label { display: none; }        /* icon only on phones */
  .contact-fab .fab-ic { width: 46px; height: 46px; }
}

/* ---------- Motion: soft, modern ---------- */
/* Sticky header gains a subtle shadow + slight compression once scrolled */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.28); }

/* Scroll-reveal: elements ease up + fade in as they enter the viewport */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* Hero content fades up on load, gently staggered */
.hero .container > * { opacity: 0; transform: translateY(22px); animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .container > *:nth-child(1) { animation-delay: .15s; }
.hero .container > *:nth-child(2) { animation-delay: .30s; }
.hero .container > *:nth-child(3) { animation-delay: .45s; }
.hero .container > *:nth-child(4) { animation-delay: .60s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Slow, subtle zoom on the hero video for a living feel */
.hero__media video, .hero__media img { animation: heroZoom 22s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Circular arrow buttons: gentle nudge on hover (in addition to existing) */
.cbtn__ic svg { transition: transform .25s ease; }
.cbtn:hover .cbtn__ic svg { transform: translateX(2px); }

/* Contact pill: soft breathing entrance */
.contact-fab { animation: fabIn .5s ease .8s both; }
@keyframes fabIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero .container > * { opacity: 1 !important; transform: none !important; }
}
