/* ==========================================================================
   Elle Freight Limited
   1. Design tokens   2. Base   3. Layout   4. Navigation   5. Buttons
   6. Hero   7. Cards & grids   8. Stats band   9. Products, process, airlines
   10. Closing CTA & contact   11. Footer   12. Responsive & motion
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

:root {
  --bg: #FAF6F4;
  --surface: #FFFFFF;
  --ink: #2A1515;
  --muted: #6A5050;
  --brand: #8B0000;
  --brand-soft: #8B0000;
  --sun: #F0A04B;
  --line: #E8D9D6;
  --on-brand: #FFF8F6;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Dark mode: follows the system setting unless the page is forced to light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #170C0C;
    --surface: #231212;
    --ink: #F6ECEA;
    --muted: #C8AEAB;
    --brand: #A31212;
    --brand-soft: #EE8E8E;
    --sun: #F0A04B;
    --line: #3A2323;
    --on-brand: #FFF8F6;
  }
}

/* Dark mode: forced via data-theme="dark" */
:root[data-theme="dark"] {
  --bg: #170C0C;
  --surface: #231212;
  --ink: #F6ECEA;
  --muted: #C8AEAB;
  --brand: #A31212;
  --brand-soft: #EE8E8E;
  --sun: #F0A04B;
  --line: #3A2323;
  --on-brand: #FFF8F6;
}


/* 2. Base
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 90px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Manrope, system-ui, sans-serif;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; }

p {
  max-width: 62ch;
  margin: 0 0 1em;
}

a {
  color: inherit;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}


/* 3. Layout
   ========================================================================== */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}


/* 4. Navigation
   ========================================================================== */

nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5E5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) nav {
    background: #1B1B1B;
    border-bottom-color: #333333;
  }
}

:root[data-theme="dark"] nav {
  background: #1B1B1B;
  border-bottom-color: #333333;
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: Fraunces, serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.logo img {
  display: block;
  width: auto;
  height: 56px;
  max-width: 100%;
}

nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
}

nav ul a:hover {
  color: var(--ink);
}


/* 5. Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
}

.btn.alt {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn.sun {
  border-color: var(--sun);
  background: var(--sun);
  color: #1A1208;
}


/* 6. Hero
   ========================================================================== */

.hero {
  padding: 72px 0 56px;
}

.hero .tag {
  margin-bottom: 12px;
  color: var(--brand-soft);
  font-weight: 700;
}

.hero h1 span {
  display: block;
  color: var(--brand);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero h1 span {
    color: var(--brand-soft);
  }
}

.hero .lede {
  color: var(--muted);
  font-size: 1.2rem;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 36px;
}

.gateways {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 700;
}

.gateways span {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
}

/* Route map */
.map {
  margin-top: 44px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.map svg {
  display: block;
  width: 100%;
  height: auto;
}

.route {
  fill: none;
  stroke: var(--sun);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  stroke-dashoffset: 900;
  animation: draw 2.8s ease-out 0.3s forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.lbl {
  fill: var(--ink);
  font: 700 14px Manrope, sans-serif;
}


/* 7. Cards & grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.targets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.targets div {
  padding: 4px 14px;
  border-left: 4px solid var(--sun);
  border-radius: 0 8px 8px 0;
  background: var(--surface);
}

.targets b {
  font-family: Fraunces, serif;
  font-size: 1.3rem;
}


/* 8. Stats band
   ========================================================================== */

.band {
  background: var(--brand);
  color: var(--on-brand);
}

.band .stats {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat b {
  display: block;
  font: 700 clamp(2.2rem, 5vw, 3.4rem) / 1 Fraunces, serif;
}

.stat small {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  opacity: 0.85;
}


/* 9. Products, process, airlines
   ========================================================================== */

.prod h3 {
  color: var(--brand);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .prod h3 {
    color: var(--brand-soft);
  }
}

.prod ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}

.steps li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 700;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--sun);
  color: #1A1208;
  font-size: 0.9rem;
}

.airline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.airline li {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 700;
}


/* 10. Closing call to action (full width, edge to edge)
   ========================================================================== */

.cta {
  width: 100%;
  padding: 104px 0;
  background: var(--brand);
  color: var(--on-brand);
  text-align: center;
}

.cta p {
  margin: 0 auto 1em;
}

.cta .tagline {
  font-family: Fraunces, serif;
  font-size: 1.4rem;
}

/* Contact and location */
.contact address {
  margin: 0 0 1.2em;
  color: var(--muted);
  font-style: normal;
}

.contact .card:last-child address {
  margin-bottom: 0;
}

.contact address a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.contact address a:hover {
  color: var(--brand);
}


/* 11. Footer
   ========================================================================== */

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}


/* 12. Responsive & motion
   ========================================================================== */

@media (max-width: 760px) {
  nav .wrap { height: 68px; }
  .logo img { height: 44px; }
  nav ul { display: none; }
  section { padding: 60px 0; }
  .cta { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .route {
    animation: none;
    stroke-dashoffset: 0;
  }
}
