/* =============================================================================
   ALL NATIONS RECYCLING, LLC — Shared Stylesheet
   Rugged-industrial design system. Used by both index.html and contact.html.
   -----------------------------------------------------------------------------
   Sections:
     1.  Design tokens (CSS variables: color, type, spacing)
     2.  Base / reset
     3.  Reusable utilities (container, buttons, section headings)
     4.  Decorative elements (hazard stripes, grain texture)
     5.  Site header / navigation
     6.  Hero
     7.  Container-size cards (20 / 30 / 40 yard)
     8.  "How it works" steps
     9.  "Why us" trust band
     10. Service area
     11. Call-to-action band
     12. Contact page (form + sidebar)
     13. Footer
     14. Scroll-reveal animation
     15. Responsive / mobile rules
   ============================================================================= */


/* 1. DESIGN TOKENS ---------------------------------------------------------- */
:root {
  /* Color — brand RED + NAVY + concrete cream (taken from the All Nations card) */
  --navy-900: #141d40;   /* deepest brand navy — header, footer, dark sections */
  --navy-800: #1b2752;   /* dark panels */
  --navy-700: #28366a;   /* raised dark panels / borders */
  --concrete:  #5b6488;   /* muted blue-grey text on dark */
  --cement:    #f6f1e9;   /* main warm cream background */
  --cement-2:  #ece4d6;   /* slightly deeper cream for alternating sections */
  --line:      #ddd2c0;   /* hairline borders on light surfaces */

  --orange:    #cc2229;   /* PRIMARY brand red (kept var name for simplicity) */
  --orange-dk: #a3141a;   /* pressed / hover state (dark red) */
  --amber:     #1f2a5e;   /* SECONDARY brand navy accent */

  --ink:       #1c2238;   /* primary text on light (navy-tinted) */
  --ink-soft:  #565d72;   /* secondary text on light */
  --cream-soft:#c5cbe0;   /* secondary text on dark (navy-tinted) */

  /* Typography */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;        /* big rugged headlines + numbers */
  --font-cond:    'Barlow Semi Condensed', sans-serif;        /* subheads / UI labels */
  --font-body:    'Barlow', system-ui, sans-serif;            /* body copy */

  /* Layout */
  --maxw: 1180px;            /* content max width */
  --radius: 4px;             /* tight radii = industrial, not soft */
  --shadow: 0 18px 40px -18px rgba(25, 24, 22, .45);
}


/* 2. BASE / RESET ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cement);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: .5px; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }


/* 3. REUSABLE UTILITIES ----------------------------------------------------- */

/* Centered content wrapper */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Vertical rhythm for full-width sections */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--cream2 { background: var(--cement-2); }
.section--dark   { background: var(--navy-900); color: var(--cement); }

/* Small uppercase label that sits above a section heading (the "kicker") */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.kicker::before {                 /* little tally-mark before the label */
  content: "";
  width: 26px; height: 3px;
  background: var(--orange);
}

/* Section headings */
.h-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 60px);
  text-transform: uppercase;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }
.section--dark .lead { color: var(--cream-soft); }

/* Buttons */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover    { background: var(--orange-dk); border-color: var(--orange-dk); transform: translateY(-2px); }
.btn:active   { transform: translateY(0); }
.btn .arrow   { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Outlined / ghost button variant (used on dark backgrounds) */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cement);
  border-color: var(--concrete);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--orange);
  color: #fff;
}


/* 4. DECORATIVE ELEMENTS ---------------------------------------------------- */

/* Diagonal hazard stripes — the signature "construction" texture.
   Used as a thin band to separate major sections. */
.hazard {
  height: 14px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--amber) 0, var(--amber) 18px,
    var(--navy-900) 18px, var(--navy-900) 36px
  );
}

/* Subtle film-grain / noise overlay for rugged texture on dark areas.
   Applied via ::before so it never blocks clicks. */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* 5. SITE HEADER / NAVIGATION ----------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-700);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo lockup — globe + horizon mark recreated from the All Nations business card */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: auto; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 22px; line-height: .9;
  color: var(--cement); text-transform: uppercase; letter-spacing: .5px;
}
.brand__name span { color: var(--orange); display: block; font-size: 11px; letter-spacing: 3px; }

/* Nav links */
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--font-cond);
  font-weight: 600; font-size: 16px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cream-soft);
  transition: color .15s ease;
}
.nav__links a:hover { color: #fff; }
.nav__links .btn { color: #fff; padding: 11px 22px; font-size: 15px; }

/* Hamburger toggle (hidden on desktop, shown on mobile) */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--cement); border-radius: 2px; transition: .2s; }


/* 6. HERO ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900);
  color: var(--cement);
}
/* faint orange glow + grid lines for an industrial backdrop */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 78% 18%, rgba(204,34,41,.18), transparent 60%),
    linear-gradient(transparent 95%, rgba(255,255,255,.04) 95%) 0 0 / 100% 46px,
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,.04) 95%) 0 0 / 46px 100%;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 7vw, 86px);
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero__sub { font-size: 1.18rem; color: var(--cream-soft); max-width: 46ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

/* Quick trust stats under the hero CTA */
.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stat .num {
  font-family: var(--font-display); font-size: 34px; color: #fff; line-height: 1;
}
.hero__stat .lbl {
  font-family: var(--font-cond); font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--cream-soft);
}

/* Hero illustration sits in a softly framed panel */
.hero__art {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}


/* 7. CONTAINER-SIZE CARDS --------------------------------------------------- */
.sizes__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 44px;
}
.size-card {
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.size-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--orange);
}
/* hazard tab in the corner of each card */
.size-card::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 64px; height: 64px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 8px, var(--navy-900) 8px 16px);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: .9;
}
.size-card__num {
  font-family: var(--font-display);
  font-size: 76px; line-height: .8; color: var(--orange);
}
.size-card__num small {
  display: block; font-family: var(--font-cond); font-weight: 700;
  font-size: 18px; letter-spacing: 2px; color: var(--ink); text-transform: uppercase;
}
.size-card__dims {
  font-family: var(--font-cond); font-weight: 600; letter-spacing: .5px;
  color: var(--ink-soft); margin: 16px 0 14px; font-size: 16px;
}
.size-card__dims b { color: var(--ink); }
.size-card h3 {
  font-family: var(--font-cond); font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.size-card ul { list-style: none; padding: 0; margin: 0 0 8px; }
.size-card li {
  position: relative; padding-left: 24px; margin-bottom: 6px;
  font-size: 16px; color: var(--ink-soft);
}
.size-card li::before {                /* orange check tick */
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 7px; border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange); transform: rotate(-45deg);
}


/* 8. "HOW IT WORKS" STEPS ---------------------------------------------------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px;
}
.step {
  position: relative;
  border-top: 3px solid var(--orange);
  padding: 26px 22px;
  background: rgba(255,255,255,.03);
}
.step__n {
  font-family: var(--font-display); font-size: 46px; color: var(--orange); line-height: 1;
}
.step h3 {
  font-family: var(--font-cond); font-weight: 700; font-size: 21px;
  text-transform: uppercase; margin: 8px 0 8px;
}
.step p { margin: 0; color: var(--cream-soft); }


/* 9. "WHY US" TRUST BAND ----------------------------------------------------- */
.why__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px;
}
.why-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
}
.why-item .ic {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: rgba(204,34,41,.12); color: var(--orange);
  display: grid; place-items: center; margin-bottom: 14px;
}
.why-item h3 {
  font-family: var(--font-cond); font-weight: 700; font-size: 18px;
  text-transform: uppercase; margin-bottom: 6px;
}
.why-item p { margin: 0; font-size: 16px; color: var(--ink-soft); }


/* 10. SERVICE AREA ----------------------------------------------------------- */
.area {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.area__cities {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.area__cities span {
  font-family: var(--font-cond); font-weight: 600; font-size: 15px; letter-spacing: .5px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; color: var(--ink);
}
.area__map {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
}


/* 11. CALL-TO-ACTION BAND ---------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--orange); color: #fff;
  text-align: center; padding: clamp(48px, 7vw, 84px) 0;
}
.cta h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 5vw, 56px); text-transform: uppercase; margin-bottom: 14px;
}
.cta p { color: rgba(255,255,255,.9); max-width: 50ch; margin: 0 auto 26px; font-size: 1.1rem; }
.cta .btn {
  --btn-bg: var(--navy-900); --btn-fg: #fff; border-color: var(--navy-900);
}
.cta .btn:hover { background: #000; border-color: #000; }


/* 12. CONTACT PAGE ----------------------------------------------------------- */
.contact-wrap {
  display: grid; grid-template-columns: 1.3fr .85fr; gap: 40px; align-items: start;
}

/* The form panel */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-cond); font-weight: 600;
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink); margin-bottom: 7px;
}
.field label .req { color: var(--orange); }
.field input,
.field select,
.field textarea {
  width: 100%; font-family: var(--font-body); font-size: 17px;
  padding: 13px 14px; color: var(--ink);
  background: var(--cement); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(204,34,41,.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Inline validation error text */
.error-msg { color: var(--orange-dk); font-size: 14px; margin-top: 6px; display: none; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--orange-dk); }
.field.invalid .error-msg { display: block; }

/* Success confirmation panel (shown after submit) */
.form-success {
  display: none; text-align: center; padding: 18px 0;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(204,34,41,.12); color: var(--orange); display: grid; place-items: center;
}
.form-success h3 { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; margin-bottom: 8px; }

/* Contact sidebar */
.contact-aside .panel {
  background: var(--navy-900); color: var(--cement);
  border-radius: var(--radius); padding: 30px; margin-bottom: 20px;
}
.contact-aside h3 {
  font-family: var(--font-cond); font-weight: 700; font-size: 19px;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px;
}
.contact-aside a.email {
  font-family: var(--font-cond); font-weight: 700; font-size: 22px; color: var(--orange);
  word-break: break-all;
}
.contact-aside a.email:hover { text-decoration: underline; }
.contact-aside ul { list-style: none; padding: 0; margin: 12px 0 0; }
.contact-aside li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--navy-700); color: var(--cream-soft); }
.contact-aside li b { color: #fff; font-weight: 600; }
.contact-aside .note { font-size: 15px; color: var(--cream-soft); margin: 0; }


/* 13. FOOTER ----------------------------------------------------------------- */
.footer { background: var(--navy-900); color: var(--cream-soft); padding: 56px 0 28px; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; margin-bottom: 36px;
}
.footer h4 {
  font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #fff; margin-bottom: 14px;
}
.footer a { color: var(--cream-soft); transition: color .15s ease; }
.footer a:hover { color: var(--orange); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom {
  border-top: 1px solid var(--navy-700); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 14px; color: var(--concrete);
}


/* 14. SCROLL-REVEAL ANIMATION ------------------------------------------------ */
/* Elements tagged [data-reveal] start hidden and fade/slide in when scrolled
   into view (toggled by script.js). Respects reduced-motion preferences. */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}


/* 15. RESPONSIVE / MOBILE ---------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }                /* show the container art first on mobile */
  .sizes__grid,
  .steps { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .area { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }

  /* Collapse nav into a toggled drawer */
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-800); border-bottom: 1px solid var(--navy-700);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav__links.open { max-height: 360px; }
  .nav__links a { padding: 16px 24px; border-bottom: 1px solid var(--navy-700); }
  .nav__links .btn { margin: 14px 24px; justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .why__grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
}


/* 16. ACCEPTED MATERIALS ----------------------------------------------------- */
.materials {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px;
}
.mat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.mat-card h3 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-cond); font-weight: 700; font-size: 21px;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}
/* round badge before each list heading: navy = allowed, red = not allowed */
.mat-ic {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 17px; color: #fff;
}
.mat-ic--yes { background: var(--amber);  }   /* brand navy */
.mat-ic--no  { background: var(--orange); }    /* brand red  */

.mat-list { list-style: none; padding: 0; margin: 0; }
.mat-list li {
  position: relative; padding-left: 28px; margin-bottom: 9px;
  color: var(--ink-soft); font-size: 16px;
}
/* navy check tick for allowed items */
.mat-list--yes li::before {
  content: ""; position: absolute; left: 3px; top: 8px;
  width: 12px; height: 7px;
  border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber);
  transform: rotate(-45deg);
}
/* red cross for excluded items */
.mat-list--no li::before {
  content: "\2715"; position: absolute; left: 3px; top: 0;
  color: var(--orange); font-weight: 700;
}


/* 17. FAQ — native <details> accordion -------------------------------------- */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px;
  font-family: var(--font-cond); font-weight: 700; font-size: 20px;
  color: var(--ink); transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }   /* hide default arrow */
.faq-item summary:hover { color: var(--orange); }

/* "+" icon that turns into "–" when the item is open */
.faq-chev { position: relative; width: 16px; height: 16px; flex: none; }
.faq-chev::before, .faq-chev::after {
  content: ""; position: absolute; background: var(--orange);
  border-radius: 2px; transition: transform .2s ease;
}
.faq-chev::before { top: 7px; left: 0;  width: 16px; height: 3px; }   /* horizontal bar */
.faq-chev::after  { left: 7px; top: 0;  width: 3px;  height: 16px; }  /* vertical bar    */
.faq-item[open] .faq-chev::after { transform: scaleY(0); }            /* collapse to "–" */

.faq-a { padding: 0 4px 22px; }
.faq-a p { margin: 0; color: var(--ink-soft); max-width: 70ch; }


/* 18. RESPONSIVE additions for the new sections ----------------------------- */
@media (max-width: 900px) {
  .materials { grid-template-columns: 1fr; }
}


/* 19. FORM ERROR NOTE (shown by script.js only if a send fails) ------------- */
.form-error {
  display: none;                       /* revealed via JS on a failed submit */
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(204, 34, 41, .10);
  border: 1px solid rgba(204, 34, 41, .35);
  color: var(--orange-dk);
  font-size: 15px;
}
