/* paulinemassrecycling.com — Massachusetts IT Equipment Recycling Resource */

:root {
  --green: #2d7a4f;
  --green-light: #e8f5ee;
  --navy: #1a2744;
  --ink: #1c2330;
  --muted: #5a6478;
  --hairline: #dce3ec;
  --cream: #f8faf9;
  --white: #ffffff;
  --accent: #2d7a4f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

/* Layout */
.container { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header {
  border-bottom: 1px solid var(--hairline);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
}
.site-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-name .leaf { color: var(--green); font-size: 1.2rem; }
nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
nav a:hover { color: var(--green); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #243b55 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
}
.hero .container { max-width: 1040px; margin: 0 auto; }
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3b0;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.1rem;
  color: #b8c9d9;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.3); }

/* Alert banner */
.update-banner {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--ink);
}
.update-banner .container { max-width: 1040px; margin: 0 auto; }

/* Sections */
section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--hairline); }
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
h2 { font-size: 1.75rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--ink); }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.1rem; color: var(--muted); line-height: 1.7; }

/* Certification badges */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.cert-r2 { background: #dbeafe; color: #1e40af; }
.cert-estewards { background: #d1fae5; color: #065f46; }
.cert-naid { background: #fef3c7; color: #92400e; }
.cert-iso { background: #ede9fe; color: #5b21b6; }

/* Directory grid */
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.recycler-card {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.recycler-card:hover { border-color: var(--green); box-shadow: 0 2px 12px rgba(45,122,79,0.08); }
.recycler-name { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.recycler-location { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }
.recycler-certs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.recycler-desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.75rem; line-height: 1.5; }
.recycler-link { font-size: 0.8rem; font-weight: 600; }

/* Quick nav grid */
.nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.nav-card {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.nav-card:hover { border-color: var(--green); background: var(--green-light); color: var(--ink); }
.nav-card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.nav-card-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.nav-card-desc { font-size: 0.8rem; color: var(--muted); }

/* Info boxes */
.info-box {
  background: var(--green-light);
  border: 1px solid #a7d3b9;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.warning-box {
  background: #fff8e6;
  border: 1px solid #f0c040;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.warning-box h4 { color: #7a5c00; }

/* Definition list */
.def-list { list-style: none; }
.def-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--hairline); }
.def-list li:last-child { border-bottom: none; }
.def-term { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.def-desc { font-size: 0.875rem; color: var(--muted); margin-top: 0.2rem; }

/* Requirements table */
.req-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.875rem; }
.req-table th { background: var(--navy); color: var(--white); padding: 0.6rem 1rem; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.req-table td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.req-table tr:nth-child(even) { background: var(--cream); }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: #b8c9d9; max-width: 540px; margin: 0 auto 1.5rem; }

/* Footer */
footer {
  background: var(--ink);
  color: #c0cfe0;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { color: var(--white); font-weight: 600; margin-bottom: 0.4rem; }
footer a { color: #7dd3b0; }
footer a:hover { color: var(--white); }
footer p { color: #c0cfe0; }
.footer-note { font-size: 0.75rem; max-width: 380px; line-height: 1.5; color: #c0cfe0; }

/* Page header (inner pages) */
.page-header {
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
  padding: 2.5rem 1.5rem;
}
.page-header .container { max-width: 1040px; margin: 0 auto; }
.page-header h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.5rem; }
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

/* Responsive */
@media (max-width: 640px) {
  nav { display: none; }
  .directory-grid { grid-template-columns: 1fr; }
  .nav-grid { grid-template-columns: 1fr 1fr; }
  .req-table { font-size: 0.8rem; }
  .req-table th, .req-table td { padding: 0.5rem 0.6rem; }
}
