/* ==========================================================================
   Hazardous Waste Disposal Jacksonville — styles
   ========================================================================== */

:root {
  --ink: #14201b;
  --ink-soft: #3a4a43;
  --paper: #f6f3ec;
  --paper-warm: #ede7d9;
  --rule: #d6cdb9;
  --bottle: #1f3a2e;
  --bottle-deep: #14261e;
  --moss: #4a6b57;
  --hazard: #d4a017;
  --hazard-soft: #f0d270;
  --brick: #8a3a1e;
  --meta: #6b7168;
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  font-feature-settings: "kern", "onum";
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bottle); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }

img { max-width: 100%; height: auto; display: block; }

/* --- Hazard-tape divider (signature element) ------------------------------ */
.hazard-tape {
  height: 8px;
  background-image: linear-gradient(
    135deg,
    var(--ink) 0 12px,
    var(--hazard) 12px 24px
  );
  background-size: 24px 24px;
}

/* --- Site header ---------------------------------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin-top: 2px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--hazard); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  padding: 0.4rem 0.65rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: auto;
  color: var(--ink);
  border-radius: 2px;
}

/* --- Main container ------------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
}

/* --- Homepage hero -------------------------------------------------------- */
.hero {
  padding: 3rem var(--gutter) 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 22ch;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* --- Article grid --------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}
.section-head .kicker {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.25rem 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
.card .tag {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.55rem;
}
.card h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--bottle); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card .dek {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  flex-grow: 1;
}
.card .meta {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: var(--meta);
  letter-spacing: 0.02em;
}
.card .meta strong { color: var(--ink); font-weight: 600; }

/* --- Article page --------------------------------------------------------- */
.article-header {
  padding: 3rem var(--gutter) 1rem;
  max-width: 780px;
  margin: 0 auto;
}
.crumbs {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 1.5rem;
}
.crumbs a { color: var(--meta); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 0.5rem; color: var(--rule); }

.article-header h1 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0.5rem 0 1.25rem;
}
.byline {
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  color: var(--meta);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.byline .dot { color: var(--rule); }
.byline strong { color: var(--ink); font-weight: 600; }

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
}
.article-body p {
  margin: 0 0 1.2rem;
}
.article-body h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 2.5rem 0 0.85rem;
  letter-spacing: -0.005em;
}
.article-body h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.8rem 0 0.6rem;
  letter-spacing: 0.005em;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}
.article-body li { margin-bottom: 0.45rem; }
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 0.4rem 0 0.4rem 1.25rem;
  border-left: 3px solid var(--hazard);
  color: var(--ink-soft);
  font-style: italic;
}
.article-body strong { color: var(--ink); }
.article-body code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92em;
  background: var(--paper-warm);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}
.callout {
  margin: 1.8rem 0;
  padding: 1.2rem 1.4rem;
  background: var(--paper-warm);
  border-left: 4px solid var(--moss);
}
.callout p { margin: 0; }
.callout .label {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.article-foot {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--meta);
}
.article-foot .tags a {
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--bottle);
  text-decoration: none;
}
.article-foot .tags a::before { content: "#"; opacity: 0.5; }
.article-foot .tags a:hover { color: var(--brick); }

/* --- Related ------------------------------------------------------------- */
.related {
  background: var(--paper-warm);
  padding: 3rem 0;
}
.related .container { padding-top: 0; padding-bottom: 0; }
.related h2 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list li a {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: block;
  line-height: 1.35;
}
.related-list li a:hover { color: var(--bottle); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.related-list .sub {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--bottle-deep);
  color: #d8d3c4;
  padding: 3rem var(--gutter) 2rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}
.footer-inner h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  color: #f4f0e1;
}
.footer-inner a { color: #d8d3c4; text-decoration: none; }
.footer-inner a:hover { color: var(--hazard-soft); }
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li { margin-bottom: 0.4rem; font-size: 0.94rem; }
.footer-brand p { font-size: 0.94rem; margin: 0.5rem 0 0; color: #b5b09f; max-width: 32ch; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #2c473b;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #94907f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Contact page -------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: 2rem 0;
}
.contact-grid h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.contact-block { border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-bottom: 1.5rem; }
.contact-block strong { display: block; font-family: "Inter", sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--meta); margin-bottom: 0.25rem; font-weight: 600; }
.contact-block p { margin: 0.25rem 0; }

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 800px) {
  body { font-size: 17px; }
  .site-nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0.75rem 0 0;
    border-top: 1px solid var(--rule);
    padding-top: 0.75rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
  }
  .site-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-block; }
  .brand-name { font-size: 0.95rem; }
  .brand-sub { font-size: 0.65rem; }
  .brand-mark { width: 38px; height: 38px; }

  .hero { padding: 2rem var(--gutter) 1rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-lede { font-size: 1.05rem; }

  .grid { gap: 1.75rem; }
  .card h3 { font-size: 1.18rem; }

  .article-header { padding-top: 1.5rem; }
  .article-body h2 { font-size: 1.28rem; margin-top: 2rem; }
  .article-body h3 { font-size: 1.05rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --- Print / a11y -------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--hazard);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
