/* base.css — Haulasaurus design tokens, type, buttons, header, footer.
 * Palette is lifted from the logo: dino green, trailer orange, harbor navy, sand cream, ocean blue.
 * Every other stylesheet should use these variables rather than raw colours so a palette change
 * is one edit here.
 */
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@500;600;700;800&family=Caveat+Brush&display=swap');

:root {
  /* brand */
  --navy-950: #07111F;
  --navy-900: #0B1A2E;
  --navy: #13233F;
  --navy-700: #1C3354;
  --navy-500: #34507A;
  --orange: #F26A1B;
  --orange-600: #D9540B;
  --orange-300: #FF9A57;
  --dino: #4D8338;
  --dino-600: #3A6A2A;
  --dino-300: #7DB25E;
  --cream: #FBF1DE;
  --cream-200: #F4E4C6;
  --cream-400: #E6CFA5;
  --sea: #1F5F8B;
  --sky: #4FA8C7;
  --rock: #7B7772;
  --white: #FFFDF8;

  /* fates (junk afterlife) */
  --fate-donate: #4D8338;
  --fate-recycle: #1F7FB0;
  --fate-scrap: #8A7A5C;
  --fate-ewaste: #8C5BD6;
  --fate-landfill: #B5462A;

  /* semantic */
  --bg: var(--cream);
  --bg-alt: var(--cream-200);
  --surface: var(--white);
  --ink: var(--navy);
  --ink-soft: #4A5B73;
  --line: rgba(19, 35, 63, .14);
  --accent: var(--orange);
  --good: var(--dino);

  /* type */
  --font-display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --font-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Caveat Brush', 'Comic Sans MS', cursive;

  /* shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 0 rgba(11, 26, 46, .18);
  --shadow: 0 6px 0 rgba(11, 26, 46, .22), 0 14px 30px -12px rgba(11, 26, 46, .35);
  --shadow-lg: 0 10px 0 rgba(11, 26, 46, .25), 0 30px 60px -20px rgba(11, 26, 46, .45);
  --outline: 3px solid var(--navy);

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.2, .9, .3, 1.2);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(32px, 5vw, 58px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); }
p { margin: 0 0 1em; }
.label, .eyebrow {
  font: 700 14px/1 var(--font-label); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { color: var(--orange); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.script { font-family: var(--font-script); font-weight: 400; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section--dark { background: var(--navy); color: var(--cream); --ink: var(--cream); --ink-soft: rgba(251, 241, 222, .72); --line: rgba(251, 241, 222, .16); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .lede { margin-left: auto; margin-right: auto; }

/* torn / wavy edges between sections */
.edge-top, .edge-bottom { position: absolute; left: 0; right: 0; height: 28px; pointer-events: none; color: var(--bg); }
.edge-top { top: -1px; } .edge-bottom { bottom: -1px; transform: scaleY(-1); }
.edge-top svg, .edge-bottom svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------- buttons */
.btn {
  --b: var(--orange); --t: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: var(--outline); border-radius: 999px;
  background: var(--b); color: var(--t); text-decoration: none; cursor: pointer;
  font: 800 17px/1 var(--font-label); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 5px 0 var(--navy); transform: translateY(0);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--navy); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--green { --b: var(--dino); }
.btn--navy { --b: var(--navy); --t: var(--cream); }
.btn--cream { --b: var(--cream); --t: var(--navy); }
.btn--ghost { --b: transparent; --t: var(--ink); box-shadow: none; border-color: currentColor; }
.btn--ghost:hover { box-shadow: none; background: rgba(19, 35, 63, .06); }
.section--dark .btn { border-color: var(--navy-950); box-shadow: 0 5px 0 var(--navy-950); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: 0 3px 0 var(--navy); }
.btn--lg { min-height: 62px; padding: 0 34px; font-size: 20px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface); font: 700 13px/1 var(--font-label);
  letter-spacing: .08em; text-transform: uppercase;
}

.card {
  background: var(--surface); border: var(--outline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); color: var(--navy);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(19, 35, 63, .96); color: var(--cream);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 3px solid var(--orange);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 58px; width: auto; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); margin-top: 10px; transition: transform .3s var(--ease-out); }
.brand:hover img { transform: rotate(-4deg) scale(1.06); }
.brand__name { font: 400 22px/1 var(--font-display); letter-spacing: .02em; }
.brand__name small { display: block; font: 700 11px/1.4 var(--font-label); letter-spacing: .22em; color: var(--orange-300); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 700 15px/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: rgba(251,241,222,.85);
  transition: background .2s, color .2s;
}
.nav a:hover, .nav a.is-active { background: rgba(251,241,222,.1); color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { font: 700 16px/1 var(--font-label); letter-spacing: .06em; color: var(--cream); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--orange-300); }
.site-header .btn { min-height: 44px; font-size: 15px; padding: 0 18px; border-color: var(--navy-950); box-shadow: 0 4px 0 var(--navy-950); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(251,241,222,.3); background: transparent; color: var(--cream); cursor: pointer; }
.menu-btn svg { margin: auto; }

@media (max-width: 1240px) { .header-phone { display: none; } .nav a { padding: 10px 10px; font-size: 14px; } .brand__name small { display: none; } }
@media (max-width: 1040px) { .brand__name { display: none; } }
@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: grid; }
  .brand img { height: 50px; }
  body.nav-open .nav {
    display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--navy); padding: 16px var(--gutter) 24px; gap: 4px; border-bottom: 3px solid var(--orange);
  }
  body.nav-open .nav a { padding: 16px; font-size: 18px; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: rgba(251,241,222,.8); padding: 72px 0 110px; position: relative; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--orange-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font: 700 14px/1 var(--font-label); letter-spacing: .18em; text-transform: uppercase; color: var(--orange-300); margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo { width: 200px; margin-bottom: 12px; }
.footer-tag { font: 400 30px/1.1 var(--font-script); color: var(--cream); }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(251,241,222,.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast {
  background: var(--navy); color: var(--cream); border: 2px solid var(--orange); border-radius: 999px;
  padding: 10px 20px; font: 700 15px/1.2 var(--font-label); letter-spacing: .06em; box-shadow: var(--shadow);
  animation: toast-in .35s var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.95); } }
