/* ============================================================
   ALHAH DISPATCH — styles.css  (File 2 of 3: the LOOKS)
   ------------------------------------------------------------
   This file controls every color, font, size, and spacing.
   The most useful part for you is the ":root" block right below,
   where all the colors live. Change a value there and it updates
   everywhere on the site at once.
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS  — the master list of colors & settings
   ------------------------------------------------------------ */
:root {
  /* ---- COLORS (change these to re-skin the whole site) ---- */
  --ink:        #0A0A0B;   /* main black background            */
  --ink-2:      #121214;   /* slightly lighter panels/cards    */
  --ink-3:      #1A1A1D;   /* card hover / inputs              */
  --paper:      #F5F3EE;   /* soft white — main text           */
  --muted:      #9C978D;   /* gray — secondary text            */

  --gold:       #D4AF37;   /* the main gold                    */
  --gold-deep:  #A9812A;   /* darker gold (shadows/edges)      */
  --gold-light: #F1D680;   /* lighter gold (highlights)        */
  /* A "metallic" gold gradient used on buttons & accents */
  --gold-grad:  linear-gradient(135deg, #F1D680 0%, #D4AF37 45%, #A9812A 100%);

  /* ---- HAIRLINE BORDERS ---- */
  --line:       rgba(245, 243, 238, 0.09);   /* faint white line */
  --line-gold:  rgba(212, 175, 55, 0.28);    /* faint gold line  */

  /* ---- FONTS ---- */
  --font-display: 'Archivo', sans-serif;   /* big headlines     */
  --font-body:    'Manrope', sans-serif;   /* paragraphs        */
  --font-mono:    'Space Mono', monospace; /* little labels     */

  /* ---- SHAPES & SPACING ---- */
  --radius:   16px;   /* rounded corners */
  --radius-sm: 10px;
  --maxw:     1200px; /* max content width on big screens */

  /* ---- MOTION ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   2. RESETS  — make browsers behave the same
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }            /* smooth scrolling */
html { scroll-padding-top: 90px; }           /* stop under the sticky nav when jumping to sections */

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;                        /* no sideways scroll */
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* A reusable box that centers content and keeps it from getting too wide */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Standard vertical breathing room for each section */
.section { padding: clamp(72px, 10vw, 130px) 0; }

/* Keyboard users: jump link that appears when focused */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 2000;
  background: var(--gold); color: var(--ink);
  padding: 10px 18px; border-radius: 8px; font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Make keyboard focus clearly visible everywhere (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY HELPERS
   ------------------------------------------------------------ */
.text-gold { color: var(--gold); }

/* Small monospace label used above every section title */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;                 /* pill shape */
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}

/* Primary gold button */
.btn--gold {
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.22);
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.38);
}

/* Secondary outline button */
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-gold);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.btn--block { width: 100%; }             /* full-width (used on the form) */

/* ------------------------------------------------------------
   5. LOADING ANIMATION
   ------------------------------------------------------------ */
.loader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }  /* JS adds this class to hide it */

.loader__brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  color: var(--paper);
}
.loader__brand span { color: var(--gold); }

.loader__bar {
  width: 220px; height: 3px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 100%;
  background: var(--gold-grad);
  transform: translateX(-100%);
  animation: loadfill 1.2s var(--ease) forwards;
}
@keyframes loadfill { to { transform: translateX(0); } }

/* ------------------------------------------------------------
   6. STICKY NAVIGATION
   ------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
/* JS adds .scrolled once you scroll down: gives the bar a solid backing */
.nav.scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}

/* The text logo */
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  display: inline-flex; align-items: baseline; gap: 8px;
}
.logo__mark {
  color: var(--gold);
  position: relative;
}
/* thin gold underline under the word DISPATCH — a little brand detail */
.logo__mark::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--gold-grad);
}

/* Desktop menu */
.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-weight: 600; font-size: 0.98rem; color: var(--muted);
  position: relative; padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav__link:hover { color: var(--paper); }
/* animated underline that grows on hover / active */
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold-grad);
  transition: width 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--paper); }
.nav__cta { color: var(--ink) !important; }   /* the CTA button keeps dark text */
.nav__cta::after { display: none; }

/* Hamburger button (hidden on desktop, shown on mobile) */
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span {
  width: 26px; height: 2px; background: var(--paper); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
/* turn the hamburger into an X when the menu is open */
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   7. HERO SECTION
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
/* soft glowing blobs in the background */
.hero__glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; z-index: 0;
  pointer-events: none;
}
.hero__glow--a { width: 480px; height: 480px; top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(212,175,55,0.28), transparent 70%); }
.hero__glow--b { width: 420px; height: 420px; bottom: -160px; left: -120px;
  background: radial-gradient(circle, rgba(212,175,55,0.14), transparent 70%); }

.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px; align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }

/* the little trust strip under the buttons */
.trust {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.trust li { display: flex; flex-direction: column; }
.trust strong {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; color: var(--gold); line-height: 1;
}
.trust span { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* --- Hero illustration --- */
.hero__visual { position: relative; }
.truck { width: 100%; height: auto; overflow: visible; }

/* the road dashes appear to move to the left = sense of speed */
.truck__road { animation: roadmove 1.1s linear infinite; }
@keyframes roadmove { to { stroke-dashoffset: -48; } }

/* gentle bob on the whole truck */
.truck { animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* floating status chips */
.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: rgba(18, 18, 20, 0.9);
  border: 1px solid var(--line-gold);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  animation: float 5s ease-in-out infinite;
}
.chip b { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--gold); display: block; }
.chip small { font-size: 0.78rem; color: var(--muted); display: block; }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.chip__dot--pulse { animation: pulse 1.8s ease-in-out infinite; }
.chip--a { top: 4%; left: -6%; }
.chip--b { bottom: 8%; right: -4%; animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.5); } 50% { box-shadow: 0 0 0 7px rgba(212,175,55,0); } }

/* animated scroll hint at the bottom of the hero */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--line-gold);
  border-radius: 14px; display: flex; justify-content: center; z-index: 1;
}
.scroll-hint span {
  width: 4px; height: 8px; background: var(--gold); border-radius: 4px;
  margin-top: 7px; animation: scrolldot 1.6s ease-in-out infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ------------------------------------------------------------
   8. SECTION DIVIDERS  (the gold "route line")
   ------------------------------------------------------------ */
.divider {
  display: flex; align-items: center; gap: 20px;
  padding-top: 10px; padding-bottom: 10px;
}
.divider__line {
  flex: 1; height: 2px;
  background-image: linear-gradient(90deg, var(--gold-deep) 0 14px, transparent 14px 30px);
  background-size: 30px 2px;              /* dashed like road markings */
  opacity: 0.55;
}
.divider__label {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.25em; color: var(--muted);
}

/* ------------------------------------------------------------
   9. SECTION HEADERS (shared by Services & Contact)
   ------------------------------------------------------------ */
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section__intro { color: var(--muted); font-size: 1.05rem; }

/* ------------------------------------------------------------
   10. SERVICES CARDS
   ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 across on desktop */
  gap: 22px;
}
.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
/* thin gold line that sweeps across the top of a card on hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--line-gold);
  background: var(--ink-3);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  margin-bottom: 22px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: scale(1.08) rotate(-3deg); background: rgba(212,175,55,0.18); }

.card__tag {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep); display: block; margin-bottom: 8px;
}
.card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; margin-bottom: 10px;
}
.card__text { color: var(--muted); font-size: 0.96rem; }

/* ------------------------------------------------------------
   11. CONTACT SECTION
   ------------------------------------------------------------ */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px; align-items: start;
}
.contact__info .section__title { margin-bottom: 18px; }

.contact__list { margin-top: 34px; display: grid; gap: 20px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--line-gold); color: var(--gold);
}
.contact__ic svg { width: 22px; height: 22px; }
.contact__list small { display: block; font-size: 0.76rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.contact__list a { font-weight: 600; color: var(--paper); transition: color 0.2s var(--ease); }
.contact__list a:hover { color: var(--gold); }

/* --- the form --- */
.contact__form-wrap {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 8px; color: var(--paper);
}
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--paper);
  font-size: 0.96rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #6b675f; }
.field input:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }

/* red highlight + message when a field is invalid (added by JavaScript) */
.field.invalid input, .field.invalid textarea { border-color: #e0564f; }
.field__error {
  display: block; color: #f08a84; font-size: 0.8rem;
  margin-top: 6px; min-height: 1em;
}
.form__note {
  margin-top: 16px; font-size: 0.92rem; text-align: center;
  color: var(--gold); min-height: 1em;
}

/* ------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); background: #08080A; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 44px;
}
.footer__brand p { color: var(--muted); margin-top: 16px; max-width: 320px; font-size: 0.95rem; }
.footer h4 {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { color: var(--muted); font-size: 0.95rem; width: fit-content; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--paper); }

.social { display: flex; gap: 12px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-gold); color: var(--gold);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.social a svg { width: 18px; height: 18px; }
.social a:hover { background: var(--gold-grad); color: var(--ink); transform: translateY(-3px); }

.footer__bar { border-top: 1px solid var(--line); }
.footer__bar-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 22px 24px; font-size: 0.85rem; color: var(--muted);
}
.footer__closing { color: var(--gold-deep); }

/* ------------------------------------------------------------
   13. SCROLL-TO-TOP BUTTON
   ------------------------------------------------------------ */
.to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold-grad); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(212,175,55,0.32);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ------------------------------------------------------------
   14. SCROLL ANIMATIONS
   Elements with data-anim start hidden, then fade + slide up.
   JavaScript adds the ".in" class when they scroll into view.
   ------------------------------------------------------------ */
[data-anim] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-anim].in { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------
   15. RESPONSIVE  — how the layout changes on smaller screens
   ------------------------------------------------------------ */

/* Tablets and small laptops */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; max-width: 520px; }   /* show truck above text */
  .hero { min-height: auto; padding-top: 110px; }
  .cards { grid-template-columns: repeat(2, 1fr); } /* 2 cards across */
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 640px) {
  /* Turn the desktop menu into a slide-down mobile panel */
  .nav__menu {
    position: fixed; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(10,10,11,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 28px;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .nav__menu.open { transform: translateY(0); }        /* JS toggles .open */
  .nav__link { width: 100%; padding: 12px 0; font-size: 1.05rem; }
  .nav__cta { width: 100%; margin-top: 10px; }
  .nav__toggle { display: flex; }                      /* show hamburger */

  .cards { grid-template-columns: 1fr; }               /* 1 card per row */
  .field-row { grid-template-columns: 1fr; gap: 0; }   /* stack name/phone */
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .contact__form-wrap { padding: 24px; }
  .chip { display: none; }                             /* hide floating chips on tiny screens */
  .trust { gap: 14px 22px; }
  .footer__bar-inner { flex-direction: column; text-align: center; }
}

/* ------------------------------------------------------------
   16. ACCESSIBILITY: respect "reduce motion" system setting
   If a visitor has motion turned off, we stop the animations.
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-anim] { opacity: 1; transform: none; }
}
