/* ==========================================================================
   Hardie Siding Chicagoland — stylesheet
   Cool, crisp, contemporary: ink navy, white, vivid blue, coral accents.
   ========================================================================== */

:root {
  --ink-navy: #0c1a2e;
  --deep-blue: #1a3a5c;
  --vivid-blue: #2563eb;
  --sky: #dbeafe;
  --coral: #e8553d;
  --coral-hover: #c9432d;
  --blush: #fde8e4;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --maxw: 1120px;
  --maxw-article: 720px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 46, 0.05);
  --shadow-md: 0 6px 24px rgba(12, 26, 46, 0.08);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ----- Reset / base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--vivid-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink-navy);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1.25em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--coral);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--vivid-blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  flex: 0 0 auto;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: #fff;
  letter-spacing: 0.2px;
}

.brand__tag {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--coral);
  text-decoration: none;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(37, 99, 235, 0.28), transparent 60%),
    linear-gradient(160deg, var(--ink-navy) 0%, var(--deep-blue) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  /* fine grid pattern */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 120% at 50% 0%, #000 55%, transparent 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
}

.hero__inner {
  max-width: 760px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.pill-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  margin: 1.25rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.hero__lede {
  font-size: 1.18rem;
  color: #cbd5e1;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
}

.topic-pills li {
  background: var(--sky);
  color: var(--ink-navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
}

.stat {
  flex: 1 1 0;
  min-width: 150px;
  padding-right: 1.5rem;
}

.stat + .stat {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat__num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* ----- Section heads ----- */
.section {
  padding: 3.5rem 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 0.4rem;
}

.section__head h2 {
  font-size: 2rem;
  margin: 0;
}

.section__count {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ----- Card grid ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--coral);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}

.card__tag {
  background: var(--sky);
  color: var(--ink-navy);
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.card h3 a {
  color: var(--ink-navy);
}

.card h3 a:hover {
  color: var(--vivid-blue);
  text-decoration: none;
}

.card__excerpt {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1.25rem;
}

.card__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--vivid-blue);
  font-size: 0.95rem;
}

.card__link:hover {
  text-decoration: none;
  color: var(--coral);
}

/* ----- Generic page intro ----- */
.page-head {
  background: linear-gradient(160deg, var(--ink-navy) 0%, var(--deep-blue) 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.page-head h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.page-head p {
  color: #cbd5e1;
  max-width: 640px;
  margin: 0;
  font-size: 1.1rem;
}

/* ----- Breadcrumbs ----- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1.1rem 0 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.45rem;
  color: var(--text-light);
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--ink-navy);
  font-weight: 600;
}

/* ----- Article ----- */
.article-wrap {
  padding: 1rem 0 3.5rem;
}

.article {
  max-width: var(--maxw-article);
  margin: 0 auto;
}

.article__header {
  margin: 1.5rem 0 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.article__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.article h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article__byline .dot {
  color: var(--text-light);
}

.article__body {
  font-size: 1.08rem;
}

.article__body h2 {
  font-size: 1.6rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.25rem;
}

.article__body h3 {
  font-size: 1.22rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--deep-blue);
}

.article__body ul,
.article__body ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}

.article__body li {
  margin-bottom: 0.5rem;
}

.article__body strong {
  color: var(--ink-navy);
}

.lead {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--deep-blue);
  font-weight: 400;
}

blockquote {
  margin: 1.75rem 0;
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-left: 4px solid var(--coral);
  color: var(--deep-blue);
  font-style: italic;
  font-size: 1.1rem;
}

.callout {
  background: var(--sky);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
  border-left: 4px solid var(--vivid-blue);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--coral {
  background: var(--blush);
  border-left-color: var(--coral);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Related links box */
.related {
  margin: 2.75rem 0 0;
  padding: 1.5rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.related h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.related ul {
  margin: 0;
  padding-left: 1.1rem;
}

.related li {
  margin-bottom: 0.45rem;
}

/* ----- About specifics ----- */
.prose {
  max-width: var(--maxw-article);
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 2.25rem 0 0.6rem;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
  padding: 0;
  list-style: none;
}

.coverage-grid li {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.97rem;
}

.coverage-grid strong {
  display: block;
  color: var(--ink-navy);
  font-family: var(--font-display);
  margin-bottom: 0.15rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink-navy);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.95rem;
  color: #94a3b8;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.footer-brand .brand__name {
  font-size: 1.1rem;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-note a {
  color: #94a3b8;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1.01rem;
  }
  .site-header .container {
    min-height: 64px;
  }
  .brand__tag {
    display: none;
  }
  .main-nav {
    gap: 1.1rem;
  }
  .hero .container {
    padding-top: 3rem;
    padding-bottom: 2.75rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .coverage-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .stat + .stat {
    padding-left: 0;
    border-left: 0;
  }
  .stat {
    flex-basis: 50%;
    margin-bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
