/* ==========================================================================
   ABS Metal Recycling — site styles
   One stylesheet for every page. Edit colors and fonts in :root below.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no outside services) ---------- */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Abel"; src: url("../fonts/abel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "M PLUS 1"; src: url("../fonts/m-plus-1-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "M PLUS 1"; src: url("../fonts/m-plus-1-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Brand settings ---------- */
:root {
  --brown: #523800;
  --orange: #ed8a20;
  --orange-dark: #c96f0e;
  --grey-band: #d9d8d7;
  --grey-text: #898387;
  --rule: #777777;
  --white: #ffffff;

  --font-head: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Abel", "Arial Narrow", Arial, sans-serif;
  --font-small: "M PLUS 1", Arial, sans-serif;

  --page-width: 970px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f4f5f8 url("../images/bg-noise.jpg") repeat;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.25;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; margin: 0; line-height: .96; }
.wrap { width: 100%; max-width: calc(var(--page-width) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brown); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Hatch-mark strip used under the nav and under photos */
.hatch { height: 22px; background: url("../images/hatchmarks.png") repeat-x left top; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: relative; padding-top: 18px; }
.header-phone {
  text-align: right;
  font-family: var(--font-small);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 13px 0 0;
  height: 111px;
}
.header-phone strong { font-weight: 700; margin-right: 8px; }
.header-phone a { text-decoration: none; }
.header-phone a:hover { color: var(--orange); }

.nav-bar { position: relative; }
.main-nav {
  background: var(--orange);
  height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--brown);
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav a, .main-nav .soon {
  display: block;
  font-family: var(--font-head);
  font-size: 21px;
  letter-spacing: 1px;
  color: var(--white);
  text-decoration: none;
  padding: 12px 14px 8px;
  line-height: 1.2;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brown); }
.main-nav .soon { position: relative; color: rgba(255,255,255,.45); cursor: default; }
.main-nav .soon small {
  position: absolute; left: 4px; top: 13px;
  font-family: var(--font-small); font-size: 10px; letter-spacing: 1px;
  color: var(--brown); transform: rotate(-12deg); white-space: nowrap;
}

.logo {
  position: absolute;
  left: 50%;
  top: -124px;
  transform: translateX(-50%);
  width: 316px;
  z-index: 5;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.25));
}
.logo img { width: 100%; }

.menu-toggle { display: none; }

/* ==========================================================================
   HOME — hero slideshow and three columns
   ========================================================================== */
.hero { position: relative; aspect-ratio: 970 / 405; margin-top: -136px; z-index: 0; overflow: hidden; background: #333; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero img.is-active { opacity: 1; }
.nav-bar { z-index: 2; }

.home-cols { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; margin-top: 18px; }
/* One continuous grey band runs behind all three headings; the flags hang over it */
.home-cols::before { content: ""; position: absolute; left: 84px; right: 0; top: 12px; height: 66px; background: var(--grey-band); }
.home-col { position: relative; padding-left: 100px; min-height: 260px; }
.home-col .flag {
  position: absolute; left: 0; top: 0; width: 84px; height: 207px; z-index: 1;
  background: url("../images/flag.png") no-repeat;
  display: flex; flex-direction: column; align-items: center; padding-top: 40px;
  padding-right: 8px; /* centers icons on the ribbon body, not the folded corner */
}
.home-col .flag img { width: 64px; height: auto; }
.home-col .flag img.icon-overhang { width: 106px; max-width: none; flex: none; }
.home-col .flag img.icon-recycle { margin-top: 6px; }
.home-col .flag img.icon-quality { margin-left: -16px; margin-top: 16px; } /* puts the badge circle (not the wings) on the ribbon's center */
.home-col h2 {
  position: relative;
  color: var(--brown);
  font-size: 27px;
  line-height: 1;
  height: 66px;
  margin: 12px 0 16px;
  display: flex; align-items: center;
}
.home-col p { font-size: 18px; line-height: 1.2; margin-bottom: .9em; }
.nowrap { white-space: nowrap; }
.home-col h3 { color: var(--orange); font-size: 20px; margin-top: 1.4em; white-space: nowrap; }
.home-col h3 a { text-decoration: none; }
.home-col h3 a:hover { color: var(--brown); }
.home-col .plain-list { list-style: none; padding: 0; margin: 0 0 .8em; font-size: 18px; line-height: 1.2; }
.home-col .plain-list li:first-child { margin-bottom: 1.1em; }
.text-link { color: var(--orange); font-family: var(--font-head); font-size: 20px; text-decoration: underline; }
.text-link:hover { color: var(--brown); }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page { padding-top: 70px; padding-bottom: 30px; }
.page-title { font-size: 48px; color: var(--brown); padding: 5px 0; margin-bottom: 6px; }
.lead { font-size: 18px; line-height: 1.15; margin-bottom: 2.4em; }

/* Photo with orange bar + hatch underneath */
.framed { margin: 0; }
.framed::after {
  content: "";
  display: block;
  height: 55px;
  background:
    linear-gradient(var(--orange), var(--orange)) top / 100% 22px no-repeat,
    url("../images/hatchmarks.png") 0 22px repeat-x;
}
.framed img { width: 100%; aspect-ratio: 330 / 193; object-fit: cover; }

/* About */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Commercial */
.materials { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
.materials-group { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.materials-group h2 { color: var(--orange); font-size: 26px; padding: 5px 0 8px; }
.bullets { list-style: none; margin: 0; padding: 0; font-size: 18px; }
.bullets li { padding-left: 12px; text-indent: -12px; margin-bottom: 8px; line-height: 1.05; }
.bullets li::before { content: "•"; margin-right: 4px; }

/* Consumers */
.recycle-graphic { width: 267px; margin: 0 auto 30px; }
.center-head { text-align: center; font-size: 29px; margin-bottom: 26px; }
.household { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-around; list-style: none; padding: 0; margin: 0 0 20px; font-size: 18px; line-height: 1.22; }
.household ul { list-style: none; margin: 0; padding: 0; }

/* Locations */
.location-grid { display: grid; grid-template-columns: 310px 1fr; gap: 15px; align-items: start; }
.contact-card { background: var(--brown); color: var(--white); padding: 12px 10px 10px; min-height: 387px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.contact-card h1 { font-size: 38px; padding: 5px 0 14px; }
.contact-card h2 { color: var(--orange); font-size: 26px; padding-bottom: 4px; }
.contact-card p { font-size: 19px; line-height: 1.2; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--orange); }
.contact-card .hours { margin-top: 1.2em; }
.location-grid .framed-card::after {
  content: ""; display: block; height: 55px;
  background: linear-gradient(var(--orange), var(--orange)) top / 100% 22px no-repeat, url("../images/hatchmarks.png") 0 22px repeat-x;
}
.map { border: 3px solid var(--orange); background: #ddd; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.directions-btn { display: inline-block; margin-top: 14px; background: var(--orange); color: #fff; font-family: var(--font-head); font-size: 20px; letter-spacing: 1px; padding: 8px 16px 6px; text-decoration: none; }
.directions-btn:hover { background: var(--brown); }

/* Responsibility */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 20px 0 70px; }
.pillars a { text-decoration: none; font-size: 20px; text-transform: uppercase; }
.pillars .icon { display: block; width: 91px; height: 91px; margin: 0 auto 18px; background-repeat: no-repeat; background-size: contain; }
.pillars a:hover { color: var(--orange); }
.icon-community { background-image: url("../images/resp-community.png"); }
.icon-customers { background-image: url("../images/resp-customers.png"); }
.icon-environment { background-image: url("../images/resp-environment.png"); }
a:hover .icon-community { background-image: url("../images/resp-community-hover.png"); }
a:hover .icon-customers { background-image: url("../images/resp-customers-hover.png"); }
a:hover .icon-environment { background-image: url("../images/resp-environment-hover.png"); }

.resp-section { margin-bottom: 70px; scroll-margin-top: 20px; }
.resp-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 4px double var(--brown); padding-bottom: 6px; margin-bottom: 30px; }
.resp-head h2 { color: var(--orange); font-size: 26px; }
.to-top { font-family: var(--font-head); font-size: 15px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.to-top img { width: 40px; margin: -10px -8px -10px 0; }
.to-top:hover { color: var(--orange); }
.resp-body { display: grid; grid-template-columns: 335px 1fr; gap: 16px; align-items: start; }
.resp-body p { font-size: 16px; line-height: 1.3; margin-top: 8px; }
.resp-body .framed img { aspect-ratio: 420 / 235; }

/* 404 */
.not-found { text-align: center; padding: 120px 0 80px; }
.not-found p { font-size: 20px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { margin-top: 10px; }
.footer-inner {
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
  padding: 10px 0 24px;
}
.footer-info { font-family: Helvetica, Arial, sans-serif; color: var(--grey-text); font-size: 9.5px; letter-spacing: 1px; line-height: 1.4; text-align: center; margin: 0; }
.footer-info a { text-decoration: none; }
.footer-info a:hover { color: var(--orange); }
.footer-badges { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-family: Helvetica, Arial, sans-serif; color: var(--grey-text); font-size: 9.5px; letter-spacing: 1px; line-height: 1.4; }
.footer-badges .badge { width: 42px; height: 42px; border-radius: 50%; background: #c8c8c8; display: grid; place-items: center; flex: none; }
.footer-badges .badge img { width: 28px; }
.footer-badges > span:first-child { white-space: nowrap; }
.footer-badges a.badge:hover { background: var(--orange); }

/* ==========================================================================
   TABLET / PHONE
   ========================================================================== */
@media (max-width: 1000px) {
  .main-nav a, .main-nav .soon { font-size: 18px; padding-left: 9px; padding-right: 9px; }
  .logo { width: 260px; top: -100px; }
  .hero { margin-top: -120px; }
}

@media (max-width: 860px) {
  .site-header { padding-top: 0; }
  .header-phone { height: auto; padding: 8px 0; text-align: center; }
  .logo { position: static; transform: none; width: 230px; margin: 0 auto 10px; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; background: var(--orange); color: #fff; border: 0; border-bottom: 3px solid var(--brown);
    font-family: var(--font-head); font-size: 22px; letter-spacing: 1px; padding: 10px; cursor: pointer;
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 22px; height: 3px; background: #fff; position: relative; content: ""; }
  .menu-toggle .bars::before { position: absolute; top: -7px; }
  .menu-toggle .bars::after { position: absolute; top: 7px; }
  .main-nav { display: none; height: auto; flex-direction: column; border-bottom: 3px solid var(--brown); }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; width: 100%; text-align: center; }
  .main-nav li + li, .main-nav ul + ul { border-top: 1px solid rgba(82,56,0,.25); }
  .main-nav a, .main-nav .soon { font-size: 22px; padding: 12px; }
  .main-nav .soon small { position: static; display: inline-block; margin-left: 8px; transform: none; }
  .main-nav .nav-right { order: 2; }
  .hero { margin-top: 0; }

  .home-cols { grid-template-columns: 1fr; gap: 30px; }
  .home-col { min-height: 0; }
  .home-cols::before { display: none; }
  .home-col h2 { background: var(--grey-band); margin-left: -16px; padding-left: 16px; height: auto; min-height: 66px; }
  .home-col .flag img.icon-overhang { width: 80px; }
  .home-col .flag img.icon-quality { margin-left: -12px; }
  .footer-info, .footer-badges { font-size: 11px; }
  .page { padding-top: 40px; }
  .logo { top: auto; }
  .page-title { font-size: 40px; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  .materials { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 0; }
  .pillars { grid-template-columns: 1fr 1fr 1fr; gap: 30px 10px; }
  .pillars a { font-size: 16px; }
  .resp-body { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-spacer { display: none; }
  .footer-badges { justify-content: center; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .photo-row { grid-template-columns: 1fr; }
  .household { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .materials-group { grid-template-columns: 64px 1fr; gap: 14px; }
  .resp-head h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero img { transition: none; }
}

/* Added Oct 2026: two-paragraph intros and photo rows under lists */
.lead:has(+ .lead) { margin-bottom: .8em; }
.photo-row-spaced { margin-top: 44px; }
