/* ============================================================
   Tree Felling in Pretoria — Mobile-First Stylesheet
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* === CSS VARIABLES === */
:root {
  --c-green:        #3a7d44;
  --c-green-dark:   #2a5e32;
  --c-green-light:  #4d9458;
  --c-green-pale:   #e8f3ea;
  --c-charcoal:     #1c2a1e;
  --c-charcoal-mid: #2e3d30;
  --c-earthy:       #f6f2eb;
  --c-earthy-dark:  #e8e0d2;
  --c-white:        #ffffff;
  --c-text:         #1a1a1a;
  --c-text-mid:     #4a5040;
  --c-text-light:   #6b7060;
  --c-call:         #c94a0a;
  --c-call-hover:   #a83a08;
  --c-wa:           #25d366;
  --c-wa-hover:     #1da851;
  --c-border:       #d4c9b8;
  --c-shadow:       0 2px 12px rgba(0,0,0,0.09);
  --c-shadow-lg:    0 6px 28px rgba(0,0,0,0.14);
  --radius:         6px;
  --radius-lg:      12px;
  --max-w:          1120px;
  --transition:     0.2s ease;
  --header-h:       68px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-charcoal);
}
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; color: var(--c-text-mid); }
p:last-child { margin-bottom: 0; }

/* === LAYOUT === */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 3.5rem 0; }
.section--earthy { background: var(--c-earthy); }
.section--charcoal { background: var(--c-charcoal); color: var(--c-white); }
.section--green { background: var(--c-green); color: var(--c-white); }
.section--charcoal h2,
.section--charcoal h3,
.section--green h2,
.section--green h3 { color: var(--c-white); }
.section--charcoal p,
.section--green p { color: rgba(255,255,255,0.85); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { max-width: 640px; margin: 0.75rem auto 0; }

/* === HEADER & NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-charcoal);
  height: var(--header-h);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.site-logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.site-logo span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  max-width: 180px;
}
.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-call);
  color: var(--c-white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}
.header-phone:hover { background: var(--c-call-hover); text-decoration: none; color: var(--c-white); }
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px; height: 22px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; height: 3px; background: var(--c-white);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* Mobile nav overlay */
.main-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--c-charcoal);
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
}
.main-nav.open { transform: translateX(0); }
.main-nav ul { display: flex; flex-direction: column; gap: 0; }
.main-nav ul li a {
  display: block;
  padding: 0.9rem 0;
  color: var(--c-white);
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.main-nav ul li a:hover { color: var(--c-green-light); }
.main-nav ul li a.active { color: var(--c-green-light); }
.nav-cta-wrap { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 1rem; font-weight: 700;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }
.btn-quote {
  background: var(--c-green);
  color: var(--c-white);
}
.btn-quote:hover { background: var(--c-green-dark); color: var(--c-white); text-decoration: none; box-shadow: var(--c-shadow); }
.btn-call {
  background: var(--c-call);
  color: var(--c-white);
}
.btn-call:hover { background: var(--c-call-hover); color: var(--c-white); text-decoration: none; }
.btn-wa {
  background: var(--c-wa);
  color: var(--c-white);
}
.btn-wa:hover { background: var(--c-wa-hover); color: var(--c-white); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--c-green);
  color: var(--c-green);
}
.btn-outline:hover { background: var(--c-green); color: var(--c-white); text-decoration: none; }
.btn-outline-white {
  background: transparent;
  border: 2px solid var(--c-white);
  color: var(--c-white);
}
.btn-outline-white:hover { background: var(--c-white); color: var(--c-charcoal); text-decoration: none; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-full { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* === HERO === */
.hero {
  position: relative;
  background: var(--c-charcoal);
  padding: 4rem 0 3.5rem;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(42,94,50,0.85) 0%, rgba(28,42,30,0.92) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/images/hero-bg.jpg');
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--c-white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
}
.hero h1 { color: var(--c-white); margin-bottom: 1rem; }
.hero-intro { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 1.75rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  margin-top: 1.75rem;
}
.hero-trust span {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.hero-trust span::before { content: '✓'; color: var(--c-green-light); font-weight: 700; }

/* === QUOTE NOTICE === */
.quote-notice {
  background: var(--c-earthy);
  border-left: 4px solid var(--c-green);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--c-text-mid);
  margin-top: 1rem;
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--c-green-dark);
  padding: 0.85rem 0;
}
.trust-bar-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1.5rem;
}
.trust-bar-inner span {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem;
}
.trust-bar-inner span::before { content: '✓'; color: #a8e6b0; }

/* === SERVICE GRID === */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.service-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.service-card:hover {
  box-shadow: var(--c-shadow-lg);
  border-color: var(--c-green);
  transform: translateY(-2px);
  text-decoration: none;
}
.service-card-icon { font-size: 2rem; line-height: 1; }
.service-card h3 { font-size: 0.95rem; color: var(--c-charcoal); margin: 0; }
.service-card p { font-size: 0.82rem; color: var(--c-text-light); margin: 0; line-height: 1.4; }
.service-card .card-link {
  font-size: 0.82rem; font-weight: 700; color: var(--c-green);
  margin-top: 0.25rem;
}

/* === AREA GRID === */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.area-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-decoration: none;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.9rem; font-weight: 600; color: var(--c-charcoal);
  transition: background var(--transition), border-color var(--transition);
}
.area-card:hover { background: var(--c-green-pale); border-color: var(--c-green); color: var(--c-green-dark); text-decoration: none; }
.area-card svg { width: 16px; height: 16px; opacity: 0.4; flex-shrink: 0; }

/* === COST TABLE — light background (cost guide pages) === */
.cost-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cost-table th, .cost-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--c-border); }
.cost-table th { background: var(--c-charcoal); color: var(--c-white); font-weight: 700; }
.cost-table td { background: var(--c-white); color: var(--c-charcoal); }
.cost-table tr:nth-child(even) td { background: var(--c-earthy); color: var(--c-charcoal); }
.cost-table tr:last-child td { border-bottom: none; }
.cost-table .price { font-weight: 700; color: var(--c-green-dark); }

/* === COST TABLE — dark background (homepage charcoal section) === */
.section--charcoal .cost-table th,
.section--charcoal .cost-table td { border-bottom: 1px solid rgba(255,255,255,0.12); }
.section--charcoal .cost-table th { background: transparent; color: var(--c-white); border-bottom: 2px solid rgba(255,255,255,0.25); }
.section--charcoal .cost-table td { background: transparent; color: rgba(255,255,255,0.85); }
.section--charcoal .cost-table tr:nth-child(even) td { background: transparent; }
.section--charcoal .cost-table .price { color: var(--c-green-light); }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--c-border);
}
.faq-item:first-child { border-top: 1px solid var(--c-border); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0;
  text-align: left;
  font-size: 1rem; font-weight: 700; color: var(--c-charcoal);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--c-green); }
.faq-question svg {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--c-green);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--c-text-mid);
  line-height: 1.7;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-item.open .faq-answer { display: block; }

/* === CONTACT FORM === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.9rem; font-weight: 700; color: var(--c-charcoal); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--c-text);
  background: var(--c-white);
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(58,125,68,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--c-text-light); margin-top: 0.25rem; }
.form-disclaimer {
  font-size: 0.8rem;
  color: var(--c-text-light);
  background: var(--c-earthy);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  line-height: 1.55;
}

/* === BREADCRUMB === */
.breadcrumb-wrap { background: var(--c-earthy-dark); padding: 0.6rem 0; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem;
  list-style: none; padding: 0; margin: 0;
  font-size: 0.82rem; color: var(--c-text-light);
}
.breadcrumb a { color: var(--c-green); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span.sep { opacity: 0.5; }

/* === INFO BOXES === */
.info-box {
  background: var(--c-green-pale);
  border-left: 4px solid var(--c-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.info-box p { color: var(--c-text-mid); margin: 0; font-size: 0.95rem; }
.warning-box {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.warning-box p { color: #7c5a00; margin: 0; font-size: 0.95rem; }

/* === CTA BAND === */
.cta-band { background: var(--c-green); padding: 3rem 0; }
.cta-band-inner { text-align: center; }
.cta-band h2 { color: var(--c-white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 1.5rem; }
.cta-band .btn-group { justify-content: center; }

/* === ICON LIST === */
.icon-list { display: flex; flex-direction: column; gap: 0.65rem; }
.icon-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.95rem; color: var(--c-text-mid);
}
.icon-list li::before {
  content: '✓'; color: var(--c-green); font-weight: 700;
  flex-shrink: 0; margin-top: 0.05rem;
}

/* === TWO-COL LAYOUT === */
.two-col { display: flex; flex-direction: column; gap: 2.5rem; }
.two-col-sticky .sticky-card {
  background: var(--c-earthy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--c-border);
}

/* === ARTICLE === */
.article-body { font-size: 1rem; line-height: 1.8; color: var(--c-text-mid); }
.article-body h2 { margin: 2rem 0 0.75rem; }
.article-body h3 { margin: 1.5rem 0 0.6rem; }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.1rem 1.25rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.toc {
  background: var(--c-earthy);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.toc h4 { color: var(--c-charcoal); margin-bottom: 0.6rem; font-size: 0.95rem; }
.toc ol { margin: 0 0 0 1.1rem; }
.toc li { margin-bottom: 0.35rem; }
.toc a { color: var(--c-green); font-size: 0.9rem; }

/* === RELATED LINKS === */
.related-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.related-link-card {
  background: var(--c-earthy);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  text-decoration: none;
}
.related-link-card:hover { border-color: var(--c-green); background: var(--c-green-pale); text-decoration: none; }
.related-link-card span { font-size: 0.9rem; font-weight: 600; color: var(--c-charcoal); }
.related-link-card .arr { color: var(--c-green); font-size: 1.1rem; }

/* === FOOTER === */
.site-footer { background: var(--c-charcoal); color: rgba(255,255,255,0.75); }
.footer-main { padding: 3rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-col h4 { color: var(--c-white); font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--c-green-light); }
.footer-logo-wrap { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-logo-wrap svg { width: 32px; height: 32px; }
.footer-logo-wrap span { color: var(--c-white); font-weight: 700; font-size: 1rem; }
.footer-desc { font-size: 0.88rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-contact-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; margin-bottom: 0.5rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.75); }
.footer-contact-item a:hover { color: var(--c-green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 0.8rem;
}
.footer-legal { color: rgba(255,255,255,0.45); line-height: 1.5; }
.footer-legal a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.footer-bottom-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
}
.footer-bottom-links a { color: rgba(255,255,255,0.55); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--c-green-light); }

/* === STICKY CALL BAR (mobile) === */
.sticky-call-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  background: var(--c-charcoal);
  border-top: 2px solid var(--c-green);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.sticky-call-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 0.5rem;
  font-weight: 700; font-size: 0.9rem; color: var(--c-white);
  text-decoration: none;
}
.sticky-call-bar a:first-child { background: var(--c-call); border-right: 1px solid rgba(0,0,0,0.2); }
.sticky-call-bar a:last-child  { background: var(--c-wa); }
body { padding-bottom: 60px; }

/* === MISC UTILITIES === */
.text-center { text-align: center; }
.text-green  { color: var(--c-green); }
.fw-bold     { font-weight: 700; }
.mb-0        { margin-bottom: 0; }
.mt-1        { margin-top: 1rem; }
.mt-2        { margin-top: 2rem; }
.placeholder-block {
  background: var(--c-earthy);
  border: 1.5px dashed var(--c-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--c-text-light);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.65;
}

/* === TABLET (600px+) === */
@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .area-grid     { grid-template-columns: repeat(3, 1fr); }
  .form-row      { flex-direction: row; }
  .form-row .form-group { flex: 1; }
  .related-links-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

/* === DESKTOP (900px+) === */
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .hamburger      { display: none; }
  .main-nav {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    overflow: visible;
    display: flex; align-items: center;
  }
  .main-nav ul {
    flex-direction: row; gap: 0.15rem;
  }
  .main-nav ul li a {
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem; font-weight: 600;
    border-bottom: none;
    border-radius: var(--radius);
  }
  .main-nav ul li a:hover { background: rgba(255,255,255,0.1); }
  .nav-cta-wrap { display: none; }
  .header-phone  { display: flex; }
  .header-inner  { gap: 1.5rem; }
  body           { padding-bottom: 0; }
  .sticky-call-bar { display: none; }
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .area-grid     { grid-template-columns: repeat(5, 1fr); }
  .two-col       { flex-direction: row; }
  .two-col > *:first-child { flex: 1 1 62%; }
  .two-col > *:last-child  { flex: 1 1 34%; }
  .two-col-sticky .sticky-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .footer-grid   { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero          { padding: 5.5rem 0 5rem; min-height: 520px; }
  .section       { padding: 5rem 0; }
  .related-links-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* === ARTICLE PAGE LAYOUT === */
@media (min-width: 900px) {
  .article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
  .article-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.sidebar-card {
  background: var(--c-earthy);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h4 { color: var(--c-charcoal); margin-bottom: 0.75rem; font-size: 0.95rem; }
.sidebar-card ul { display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar-card ul li a { color: var(--c-green); font-size: 0.88rem; }
.sidebar-card ul li a:hover { text-decoration: underline; }

/* === HERO VARIANTS === */
.hero-short { padding: 3rem 0 2.75rem; min-height: 0; }
.hero-emergency .hero-bg { background-color: #1a0f0f; }
.hero-badge-emergency {
  background: var(--c-call) !important;
  color: #fff !important;
}

/* === TOC BOX (article table of contents) === */
.toc-box {
  background: var(--c-earthy);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}
.toc-title { font-size: 0.95rem; color: var(--c-charcoal); margin-bottom: 0.6rem; }
.toc-list { margin: 0 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.toc-list li a { color: var(--c-green); font-size: 0.9rem; }
.toc-list li a:hover { text-decoration: underline; }

/* === ARTICLE CARDS (articles hub listing) === */
.article-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.article-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.article-card:hover { border-color: var(--c-green); box-shadow: var(--shadow); }
.article-card-body { padding: 1.25rem 1.5rem; }
.article-card-body h3 { font-size: 1.05rem; margin: 0.4rem 0 0.5rem; }
.article-card-body h3 a { color: var(--c-charcoal); text-decoration: none; }
.article-card-body h3 a:hover { color: var(--c-green); }
.article-card-body p { font-size: 0.9rem; color: var(--c-text-light); margin: 0 0 0.75rem; line-height: 1.55; }
.article-tag {
  display: inline-block;
  background: var(--c-green-pale);
  color: var(--c-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.article-read-more { font-size: 0.88rem; font-weight: 600; color: var(--c-green); text-decoration: none; }
.article-read-more:hover { text-decoration: underline; }

/* === INLINE CTA === */
.cta-inline {
  background: var(--c-green-pale);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}
.cta-inline h3 { margin-bottom: 0.5rem; color: var(--c-charcoal); }
.cta-inline p { font-size: 0.95rem; color: var(--c-text-light); margin-bottom: 1.25rem; }

/* === ARTICLE RELATED NAV === */
.article-nav {
  border-top: 1px solid var(--c-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.article-nav h3 { font-size: 1rem; color: var(--c-charcoal); margin-bottom: 0.75rem; }
.article-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.article-nav ul li a { color: var(--c-green); font-size: 0.92rem; }
.article-nav ul li a:hover { text-decoration: underline; }

/* === CONTACT FORM === */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 0.88rem; font-weight: 600; color: var(--c-charcoal); }
.required { color: var(--c-call); }
.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--c-charcoal);
  background: var(--c-white);
  transition: border-color var(--transition);
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(58,125,68,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.85rem; color: var(--c-text-light); line-height: 1.55; }
.form-check-group { flex-direction: row; align-items: center; gap: 0; }
.form-check-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: var(--c-text-mid); cursor: pointer;
}
.form-check { width: 1.1rem; height: 1.1rem; accent-color: var(--c-green); cursor: pointer; }
.form-submit { margin-top: 0.5rem; cursor: pointer; border: none; font-family: inherit; }
.form-disclaimer {
  font-size: 0.8rem;
  color: var(--c-text-light);
  line-height: 1.55;
  text-align: center;
}
.form-disclaimer a { color: var(--c-green); }
.form-success-msg {
  background: var(--c-green-pale);
  border: 1.5px solid var(--c-green);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.form-success-msg h3 { color: var(--c-green); margin-bottom: 0.5rem; }
.form-success-msg p { color: var(--c-text-mid); font-size: 0.95rem; }

/* === PROSE PAGE (privacy policy, terms) === */
.prose-page { max-width: 720px; }
.prose-page h1 { margin-bottom: 0.5rem; }
.prose-page h2 { margin: 2rem 0 0.75rem; font-size: 1.15rem; }
.prose-page p { color: var(--c-text-mid); line-height: 1.75; margin-bottom: 1rem; font-size: 0.97rem; }
.prose-page ul, .prose-page ol { margin: 0 0 1rem 1.5rem; color: var(--c-text-mid); font-size: 0.97rem; }
.prose-page li { margin-bottom: 0.4rem; line-height: 1.65; }
.prose-page a { color: var(--c-green); }
.text-muted { color: var(--c-text-light); font-size: 0.88rem; margin-bottom: 2rem; }
