/* ============================================
   Drywall Calculator — Main Stylesheet
   Aesthetic: Industrial / Utilitarian / Raw
   ============================================ */

:root {
  /* Core palette */
  --coal:       #1a1a1a;
  --charcoal:   #2b2b2b;
  --iron:       #3d3d3d;
  --steel:      #6b6b6b;
  --concrete:   #a0a0a0;
  --dust:       #d4cfc8;
  --off-white:  #f5f3f0;
  --white:      #ffffff;

  /* Accent — construction orange */
  --orange:     #e8630a;
  --orange-dk:  #c0520a;
  --orange-lt:  #ff7b20;

  /* Semantic */
  --text-dark:  #111111;
  --text-mid:   #3a3a3a;
  --text-muted: #777777;
  --border:     #e0dbd4;
  --bg-light:   #f8f6f3;
  --bg-dark:    #1a1a1a;

  /* Radii & shadows */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
  --t: 0.2s ease;

  /* Typography */
  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-body:    'Barlow', system-ui, sans-serif;
  --font-serif:   'Lora', Georgia, serif;

  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { line-height: 1.15; }

/* ────────────────────────────────────────────
   HEADER
──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--coal);
  border-bottom: 1px solid var(--iron);
}
.header-tape {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0, var(--orange) 32px,
    var(--coal) 32px, var(--coal) 40px
  );
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  font-size: 1.5rem; color: var(--orange);
  font-family: var(--font-display);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  color: var(--white); letter-spacing: 0.04em;
}
.logo-sub { color: var(--orange); margin-left: 3px; }

.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none; font-size: 0.88rem;
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px; border-radius: var(--r-sm);
  transition: var(--t);
}
.nav-link:hover, .nav-link.active {
  color: var(--white); background: var(--iron);
}
.nav-link.active { color: var(--orange); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--t); }

/* ────────────────────────────────────────────
   HERO
──────────────────────────────────────────── */
.hero {
  background: var(--coal);
  position: relative; overflow: hidden;
  padding: 72px 0 60px;
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero::after {
  content: '';
  position: absolute; right: -80px; top: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,99,10,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-display); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.14em;
  color: var(--orange); margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 5.5rem); line-height: 0.95;
  color: var(--white); margin-bottom: 22px; letter-spacing: -0.01em;
}
.hero-title em { color: var(--orange); font-style: normal; }
.hero-desc {
  color: rgba(255,255,255,0.6); font-size: 1rem;
  max-width: 440px; margin-bottom: 28px; font-weight: 300; line-height: 1.65;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 13px 28px; border-radius: var(--r-sm);
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--t);
  box-shadow: 0 4px 20px rgba(232,99,10,0.35);
}
.btn-primary:hover {
  background: var(--orange-lt); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,99,10,0.45);
}
.hero-trust {
  display: flex; gap: 20px; margin-top: 18px;
}
.hero-trust span { font-size: 0.82rem; color: rgba(255,255,255,0.45); font-weight: 500; }

/* Hero right stat block */
.hero-stat-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  border: 1px solid var(--iron); border-radius: var(--r-md); overflow: hidden;
}
.hstat {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px; background: rgba(255,255,255,0.03);
  transition: var(--t);
}
.hstat:hover { background: rgba(255,255,255,0.06); }
.hnum {
  font-family: var(--font-display); font-size: 2.2rem;
  font-weight: 800; color: var(--orange); letter-spacing: 0.02em;
}
.hlbl { font-size: 0.75rem; color: var(--steel); margin-top: 4px; text-align: center; text-transform: uppercase; letter-spacing: 0.07em; }

/* ────────────────────────────────────────────
   CALCULATOR SECTION
──────────────────────────────────────────── */
.calc-section { padding: 72px 0; background: var(--bg-light); }

.section-label {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; color: var(--orange);
  text-transform: uppercase; margin-bottom: 10px;
}
.section-heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--coal);
  margin-bottom: 40px; letter-spacing: -0.01em;
}

.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

.calc-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

/* Form */
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 0.05em;
}
input[type="number"], select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dark);
  background: var(--white); transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none; appearance: none;
}
input[type="number"]:focus, select:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,99,10,0.12);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px; cursor: pointer;
}

.btn-calc {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--coal); color: var(--white);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 24px; border: none; border-radius: var(--r-sm);
  cursor: pointer; transition: var(--t); margin-top: 10px;
}
.btn-calc:hover { background: var(--orange); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-reset {
  width: 100%; background: none; border: 1.5px solid var(--border);
  color: var(--steel); font-family: var(--font-body); font-size: 0.88rem;
  padding: 9px; border-radius: var(--r-sm); cursor: pointer;
  transition: var(--t); margin-top: 14px;
}
.btn-reset:hover { border-color: var(--concrete); color: var(--text-mid); }
.calc-note { font-size: 0.76rem; color: var(--concrete); margin-top: 10px; line-height: 1.5; }

/* Results */
.results-empty { text-align: center; padding: 48px 24px; color: var(--concrete); }
.empty-icon { font-size: 3rem; color: var(--dust); margin-bottom: 14px; }
.results-empty p { font-size: 0.93rem; line-height: 1.6; }
.hidden { display: none !important; }

.results-highlight {
  display: flex; align-items: center; gap: 0;
  background: var(--coal); border-radius: var(--r-md); margin-bottom: 20px;
  overflow: hidden;
}
.rh-item { flex: 1; text-align: center; padding: 22px 16px; }
.rh-num { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--orange); }
.rh-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 3px; display: block; }
.rh-divider { width: 1px; height: 60px; background: var(--iron); flex-shrink: 0; }

/* Results table */
.results-table {
  width: 100%; border-collapse: collapse; font-size: 0.87rem; margin-bottom: 20px;
}
.results-table th {
  background: var(--bg-light); color: var(--steel);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 9px 10px; text-align: left; border-bottom: 2px solid var(--border);
}
.results-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.results-table tr.tr-accent td { background: rgba(232,99,10,0.05); font-weight: 600; color: var(--orange-dk); }
.results-table tr.tr-total td { background: var(--coal); color: var(--white); font-weight: 700; border-bottom: none; }

/* Cost breakdown */
.results-breakdown { background: var(--bg-light); border-radius: var(--r-md); padding: 18px; }
.rb-head { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); margin-bottom: 12px; }
.rb-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.87rem; color: var(--text-mid); }
.rb-row:last-child { border-bottom: none; }
.rb-row.total-row { font-weight: 700; color: var(--text-dark); border-top: 2px solid var(--border); margin-top: 4px; padding-top: 12px; }

/* ────────────────────────────────────────────
   HOW IT WORKS
──────────────────────────────────────────── */
.how-section { padding: 80px 0; background: var(--white); }
.steps-row {
  display: flex; align-items: flex-start; gap: 12px;
}
.step {
  flex: 1; background: var(--bg-light);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 22px; transition: var(--t);
}
.step:hover { border-color: var(--orange); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800;
  color: var(--orange); display: block; margin-bottom: 10px;
}
.step h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--coal); }
.step p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }
.step-arrow { color: var(--dust); font-size: 1.6rem; flex-shrink: 0; margin-top: 38px; font-weight: 300; }

/* ────────────────────────────────────────────
   REFERENCE TABLE
──────────────────────────────────────────── */
.ref-section { padding: 72px 0; background: var(--bg-light); }
.ref-table-wrap { overflow-x: auto; margin-top: 8px; }
.ref-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ref-table th {
  background: var(--coal); color: var(--white);
  padding: 13px 18px; text-align: left; font-weight: 600;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.ref-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text-mid); background: var(--white); }
.ref-table tr:last-child td { border-bottom: none; }
.ref-table tr.tr-accent td { background: rgba(232,99,10,0.05); }

/* ────────────────────────────────────────────
   FAQ
──────────────────────────────────────────── */
.faq-section { padding: 72px 0; background: var(--white); }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-width: 780px; }
.faq-item {
  border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  transition: var(--t);
}
.faq-item[open] { border-color: var(--orange); }
.faq-item summary {
  padding: 16px 20px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--orange); margin-left: 10px; }
.faq-item[open] summary::after { content: '−'; }
.faq-ans { padding: 0 20px 16px; font-size: 0.91rem; color: var(--text-mid); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 14px; }

/* ────────────────────────────────────────────
   BLOG CTA
──────────────────────────────────────────── */
.blog-cta { padding: 80px 0; background: var(--coal); }
.blog-cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.blog-cta-left h2 { font-family: var(--font-display); font-size: clamp(1.6rem,3.5vw,2.2rem); color: var(--white); font-weight: 800; margin-bottom: 14px; }
.blog-cta-left p { color: rgba(255,255,255,0.6); font-size: 0.97rem; margin-bottom: 24px; line-height: 1.65; }
.blog-cta-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); padding: 30px;
}
.card-tag {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--orange); margin-bottom: 10px;
}
.blog-cta-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.blog-cta-card p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 16px; line-height: 1.6; }
.card-link { color: var(--orange); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.card-link:hover { text-decoration: underline; }

/* ────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────── */
.site-footer { background: #111; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--steel); font-size: 0.85rem; line-height: 1.65; max-width: 280px; margin-top: 12px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--concrete); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--steel); text-decoration: none; font-size: 0.87rem; transition: var(--t); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--iron); padding: 20px 0; }
.footer-bottom p { color: var(--iron); font-size: 0.8rem; text-align: center; }

/* ────────────────────────────────────────────
   BLOG PAGE
──────────────────────────────────────────── */
.blog-body { background: var(--white); }

.blog-hero {
  background: var(--coal); padding: 52px 0 64px;
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.blog-hero .container { position: relative; }

.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 6px; }

.blog-meta-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.b-tag { background: rgba(232,99,10,0.2); color: var(--orange); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 3px; }
.b-date, .b-read { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

.blog-h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem); color: var(--white);
  max-width: 700px; margin-bottom: 18px; line-height: 1.05;
}
.blog-lead { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 620px; margin-bottom: 28px; line-height: 1.7; font-weight: 300; }
.inline-tool-cta {
  display: inline-block; background: var(--orange); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 11px 22px; border-radius: var(--r-sm); text-decoration: none; transition: var(--t);
}
.inline-tool-cta:hover { background: var(--orange-lt); transform: translateY(-1px); }

/* Blog layout */
.blog-main { padding: 60px 0 80px; }
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }

/* Article */
.blog-article { min-width: 0; }

.toc {
  background: var(--bg-light); border-left: 4px solid var(--orange);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 24px; margin-bottom: 44px;
}
.toc-title { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--coal); margin-bottom: 12px; }
.toc-list { padding-left: 18px; }
.toc-list li { margin-bottom: 7px; }
.toc-list a { color: var(--orange); font-size: 0.88rem; text-decoration: none; font-weight: 500; }
.toc-list a:hover { text-decoration: underline; }

.a-section { margin-bottom: 52px; }
.a-section h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.65rem; color: var(--coal);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.a-section h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin: 22px 0 10px; }
.a-section p { color: var(--text-mid); font-size: 0.96rem; line-height: 1.75; margin-bottom: 14px; }
.a-section a { color: var(--orange); text-decoration: underline; }

.styled-list { list-style: none; padding: 0; margin: 14px 0; }
.styled-list li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--border); font-size: 0.93rem; color: var(--text-mid); line-height: 1.65; }
.styled-list li::before { content: '▸'; position: absolute; left: 0; color: var(--orange); font-size: 0.9rem; }
.styled-list li strong { color: var(--text-dark); }

.callout-box {
  background: rgba(232,99,10,0.07); border-left: 4px solid var(--orange);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 20px;
  font-size: 0.91rem; color: var(--text-mid); line-height: 1.65; margin: 20px 0;
}
.callout-box strong { color: var(--coal); }
.callout-box a { color: var(--orange); }

.formula-box {
  background: var(--coal); border-radius: var(--r-md); padding: 24px; margin: 20px 0;
}
.formula-label { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.formula-text { font-family: 'Courier New', monospace; font-size: 1rem; color: var(--white); line-height: 1.5; }
.formula-sub { font-size: 0.8rem; color: var(--steel); margin-top: 8px; }

.cta-inline {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; margin: 28px 0; text-align: center;
}
.cta-inline p { font-size: 0.95rem; color: var(--text-mid); }

/* Article tags */
.article-tags { margin-top: 48px; padding-top: 22px; border-top: 2px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-label { font-size: 0.8rem; font-weight: 600; color: var(--steel); text-transform: uppercase; letter-spacing: 0.06em; }
.tag { background: var(--bg-light); border: 1px solid var(--border); color: var(--steel); font-size: 0.79rem; padding: 4px 12px; border-radius: 3px; }

/* Sidebar */
.blog-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.sw { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; }
.sw-dark { background: var(--coal); border-color: var(--coal); }
.sw-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 10px; }
.sw-dark .sw-title { color: var(--white); }
.sw p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.55; }
.sw-dark p { color: rgba(255,255,255,0.55); }
.sw-btn { display: block; text-align: center; }
.sw-facts { list-style: none; }
.sw-facts li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.sw-facts li span { color: var(--text-muted); }
.sw-facts li strong { color: var(--text-dark); }
.sw-links { list-style: none; }
.sw-links li { margin-bottom: 8px; }
.sw-links a { color: var(--orange); font-size: 0.87rem; text-decoration: none; }
.sw-links a:hover { text-decoration: underline; }

/* ────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .steps-row { flex-wrap: wrap; }
  .step { flex: 1 1 40%; }
  .step-arrow { display: none; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
  .blog-cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .input-row { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--coal); flex-direction: column;
    padding: 16px 24px; gap: 4px;
    transform: translateY(-110%); transition: transform 0.3s ease;
    border-bottom: 1px solid var(--iron);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
}
@media (max-width: 480px) {
  .hero { padding: 52px 0 44px; }
  .hero-trust { flex-wrap: wrap; gap: 10px; }
  .step { flex: 1 1 100%; }
}

/* ── Entrance animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.5s ease both 0.05s; }
.hero-title   { animation: fadeUp 0.5s ease both 0.15s; }
.hero-desc    { animation: fadeUp 0.5s ease both 0.25s; }
.btn-primary  { animation: fadeUp 0.5s ease both 0.35s; }
.hero-trust   { animation: fadeUp 0.5s ease both 0.45s; }
