/* ==========================================================================
   INSIDE & OUT CONSORTIUM - COMPONENT STYLESHEET
   ==========================================================================
   Consumes tokens from brand.css. Do not hard-code colours in here or in any
   page; always reference a var() so Lee's branding swap only touches one file.
   ========================================================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--navy-deep); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* --- Layout --- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 76px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dim { background: var(--paper-dim); }
@media (max-width: 620px) { section { padding: 56px 0; } }

/* --- Type --- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em; color: var(--navy-deep); }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.3rem); line-height: 1.1; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }
h4 { font-size: 1rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 700; color: var(--accent);
}
.lead { font-size: 1.14rem; max-width: 58ch; }
.section-head { max-width: 64ch; margin-bottom: 42px; }
.section-head p { margin-top: 14px; font-size: 1.02rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.prose p + p { margin-top: 1.1em; }
.muted { color: var(--slate); }
.small { font-size: 0.86rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy-deep); }
.btn-white:hover { background: var(--navy-deep); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* --- Header --- */
header.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; }

.logo { font-weight: 800; font-size: 1.1rem; color: var(--navy-deep); line-height: 1.1; flex: none; }
.logo span {
  display: block; font-weight: 500; font-size: 0.64rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 2px;
}

nav.primary-nav ul { display: flex; align-items: center; gap: 26px; }
nav.primary-nav a { font-weight: 600; font-size: 0.93rem; color: var(--charcoal); white-space: nowrap; }
nav.primary-nav a:hover, nav.primary-nav a[aria-current="page"] { color: var(--accent); }

/* Dropdown for member companies */
.has-sub { position: relative; }
.has-sub > button {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; font-weight: 600; font-size: 0.93rem; color: var(--charcoal);
}
.has-sub > button:hover, .has-sub[data-open="true"] > button { color: var(--accent); }
.has-sub > button::after { content: "\25BE"; font-size: 0.7em; opacity: 0.7; }
.subnav {
  position: absolute; top: calc(100% + 10px); left: -14px; min-width: 260px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 10px; display: none; flex-direction: column; gap: 2px;
}
.has-sub[data-open="true"] .subnav { display: flex; }
.subnav a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.subnav a:hover { background: var(--paper-dim); }
.subnav a b { display: block; font-weight: 700; color: var(--navy-deep); }
.subnav a em { display: block; font-style: normal; font-size: 0.78rem; color: var(--slate); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.call-link { font-weight: 700; color: var(--navy-deep); font-size: 0.95rem; white-space: nowrap; }
.call-link small {
  display: block; font-weight: 500; font-size: 0.66rem; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--navy-deep); padding: 4px 8px; }

@media (max-width: 1020px) {
  nav.primary-nav { display: none; }
  .menu-toggle { display: block; }
  nav.primary-nav[data-open="true"] {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 18px var(--gutter) 24px; box-shadow: var(--shadow-md);
  }
  nav.primary-nav[data-open="true"] ul { flex-direction: column; align-items: stretch; gap: 4px; }
  nav.primary-nav[data-open="true"] a,
  nav.primary-nav[data-open="true"] .has-sub > button { display: block; width: 100%; padding: 11px 4px; text-align: left; }
  .subnav { position: static; box-shadow: none; border: none; padding: 0 0 8px 14px; min-width: 0; }
  .has-sub[data-open="true"] .subnav { border-left: 2px solid var(--line); }
}
@media (max-width: 700px) { .call-link { display: none; } }
@media (max-width: 480px) { .header-actions .btn { padding: 11px 16px; font-size: 0.86rem; } }

/* --- Hero --- */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dim) 100%); padding: 62px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero .lead { margin: 18px 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); flex: none; }

.hero-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg);
}
.hero-panel h2 { font-size: 1.2rem; margin-bottom: 4px; }
.hero-panel > p.small { color: var(--slate); margin-bottom: 18px; }

/* Compact page hero for interior pages */
.page-hero { background: linear-gradient(180deg, var(--accent-wash) 0%, var(--paper) 100%); padding: 46px 0 42px; }
.page-hero .lead { margin-top: 16px; }

/* --- Breadcrumbs --- */
.breadcrumb { font-size: 0.8rem; color: var(--slate); margin-bottom: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: 0.5; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* --- Grids & cards --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card p { font-size: 0.93rem; margin: 10px 0 14px; }
.card ul.ticks { margin: 4px 0 16px; }
.card .card-link { margin-top: auto; font-size: 0.86rem; font-weight: 700; color: var(--accent); }
.card .card-link:hover { text-decoration: underline; }

.icon-badge {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-wash);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px; flex: none;
}
.icon-badge.solid { background: var(--accent); color: var(--white); }

/* Member company card - the umbrella model's main navigation device */
.co-card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--co-accent, var(--accent));
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.co-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.co-card .co-kicker {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--co-accent, var(--accent)); margin-bottom: 8px;
}
.co-card h3 { font-size: 1.18rem; }
.co-card p { font-size: 0.93rem; margin: 10px 0 16px; }
.co-card .card-link { margin-top: auto; font-weight: 700; font-size: 0.88rem; color: var(--co-accent, var(--accent)); }
.co-card .card-link:hover { text-decoration: underline; }
.co-card[data-co="general-contracting"]  { --co-accent: var(--co-gc-accent); }
.co-card[data-co="cleaning"]             { --co-accent: var(--co-clean-accent); }
.co-card[data-co="landscaping"]          { --co-accent: var(--co-land-accent); }
.co-card[data-co="property-maintenance"] { --co-accent: var(--co-pm-accent); }
.co-card[data-co="handyman"]             { --co-accent: var(--co-handy-accent); }

/* --- Tick lists --- */
ul.ticks li { position: relative; padding-left: 26px; font-size: 0.93rem; margin-bottom: 9px; }
ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
ul.plain li { padding-left: 18px; position: relative; font-size: 0.93rem; margin-bottom: 8px; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }

/* --- Feature rows --- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 34px; }
@media (max-width: 740px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: 14px; }
.why-item .icon-badge { width: 38px; height: 38px; font-size: 1.05rem; margin-bottom: 0; background: var(--navy-deep); color: var(--white); }
.why-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.why-item p { font-size: 0.9rem; }

/* --- Process steps --- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 1000px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step .num {
  counter-increment: step; display: block; font-size: 0.76rem; font-weight: 800;
  color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
}
.process-step .num::before { content: "Step " counter(step); }
.process-step h3 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: 0.88rem; }

/* --- Stats --- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 800px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat span { display: block; font-size: 0.85rem; margin-top: 8px; color: var(--charcoal); }

/* --- Portfolio placeholder tiles --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
.portfolio-item {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, var(--paper-warm), var(--paper-warm) 12px, var(--paper-dim) 12px, var(--paper-dim) 24px);
  display: flex; align-items: flex-end; padding: 14px; overflow: hidden;
}
.portfolio-item span {
  background: rgba(14, 24, 38, 0.84); color: var(--white);
  font-size: 0.76rem; font-weight: 700; padding: 6px 10px; border-radius: 6px;
}

/* --- Placeholder notice (so nothing fake ships silently) --- */
.placeholder-note {
  font-size: 0.8rem; color: var(--slate); margin-top: 16px;
  border-left: 3px solid var(--paper-warm); padding-left: 12px;
}

/* --- Testimonial --- */
.testimonial-box {
  background: var(--navy-deep); color: var(--white); border-radius: var(--radius);
  padding: 42px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
}
@media (max-width: 700px) { .testimonial-box { grid-template-columns: 1fr; padding: 30px; } }
.testimonial-box h2, .testimonial-box h3 { color: var(--white); }
.quote-mark { font-size: 3.4rem; color: var(--accent-soft); font-weight: 800; line-height: 1; }
.testimonial-box .quote { font-size: 1.12rem; font-style: italic; }
.testimonial-box .attribution { font-size: 0.85rem; opacity: 0.75; font-weight: 600; margin-top: 14px; }

/* --- Chips --- */
.chip-list { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 20px; }
.chip {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 18px; font-size: 0.87rem; font-weight: 700; color: var(--navy-deep);
}
a.chip:hover { border-color: var(--accent); color: var(--accent); }

/* --- CTA band --- */
.cta-band { background: var(--accent); color: var(--white); padding: 52px 0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 12px auto 26px; max-width: 58ch; opacity: 0.95; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-outline { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--navy-deep); }

/* --- FAQ --- */
.faq-list { border-top: 1px solid var(--line); max-width: 78ch; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  padding: 18px 0; font-weight: 700; color: var(--navy-deep); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); flex: none; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 0 20px; font-size: 0.95rem; max-width: 70ch; }
.faq-item .faq-body p + p { margin-top: 0.9em; }

/* --- Forms --- */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.field { margin-bottom: 15px; }
.field > label, .fieldset-label {
  display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 5px; color: var(--navy-deep);
}
.field .hint { font-size: 0.76rem; color: var(--slate); font-weight: 500; margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.93rem; background: var(--paper); color: var(--charcoal);
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; margin: 6px 0 4px; }
.check input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--accent); }

.form-note { font-size: 0.78rem; color: var(--slate); margin-top: 12px; }
.form-note.center { text-align: center; }

.field-error { color: #a11c1c; font-size: 0.78rem; font-weight: 600; margin-top: 4px; display: none; }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a11c1c; }

/* A required checkbox needs its own error treatment. Tinting the border of a
   17px box is not noticeable, so highlight the whole row instead. */
.field.has-error .check {
  background: #fdf1f0;
  border-left: 3px solid #a11c1c;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.field.has-error .check label { color: #8f2b22; }

.form-status { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.form-status[data-state="sending"] { display: block; background: var(--paper-dim); color: var(--charcoal); }
.form-status[data-state="ok"]      { display: block; background: var(--co-land-wash); color: var(--co-land-accent); font-weight: 600; }
.form-status[data-state="error"]   { display: block; background: #fbeeec; color: #8f2b22; font-weight: 600; }
.form-status a { text-decoration: underline; font-weight: 700; }

/* Routing preview - shows the homeowner which company will handle them */
.route-preview {
  display: none; margin: 4px 0 16px; padding: 13px 15px;
  background: var(--accent-wash); border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.route-preview[data-visible="true"] { display: block; }
.route-preview b { color: var(--navy-deep); }

/* --- Estimator --- */
.est-shell { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
@media (max-width: 940px) { .est-shell { grid-template-columns: 1fr; } }

.est-progress { display: flex; gap: 8px; margin-bottom: 26px; }
.est-progress li { flex: 1; }
.est-progress .bar { height: 5px; border-radius: 3px; background: var(--paper-warm); }
.est-progress li[data-state="done"] .bar, .est-progress li[data-state="current"] .bar { background: var(--accent); }
.est-progress .lbl { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-top: 7px; display: block; }
.est-progress li[data-state="current"] .lbl { color: var(--accent); }
@media (max-width: 620px) { .est-progress .lbl { display: none; } }

.est-step { display: none; }
.est-step[data-active="true"] { display: block; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.est-step h2 { font-size: 1.4rem; }
.est-step > p.muted { margin: 8px 0 22px; font-size: 0.94rem; }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 13px; }
.opt {
  position: relative; background: var(--white); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 17px 18px; text-align: left; width: 100%;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.opt:hover { border-color: var(--accent-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }
.opt .opt-ico { font-size: 1.4rem; display: block; margin-bottom: 9px; }
.opt b { display: block; color: var(--navy-deep); font-size: 0.98rem; }
.opt em { display: block; font-style: normal; font-size: 0.81rem; color: var(--slate); margin-top: 4px; line-height: 1.45; }

.est-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.est-summary {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: sticky; top: 96px;
}
.est-summary h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate); margin-bottom: 14px; }
.est-summary dl { font-size: 0.87rem; }
.est-summary dl div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.est-summary dt { color: var(--slate); }
.est-summary dd { font-weight: 700; color: var(--navy-deep); text-align: right; }
.est-summary .est-empty { font-size: 0.86rem; color: var(--slate); }

.est-range {
  background: var(--navy-deep); color: var(--white); border-radius: var(--radius);
  padding: 30px; text-align: center; margin-bottom: 22px;
}
.est-range .est-num { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 800; line-height: 1.1; }
.est-range .est-cap { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.72; margin-bottom: 10px; }
.est-range .est-sub { font-size: 0.87rem; opacity: 0.85; margin-top: 12px; max-width: 46ch; margin-left: auto; margin-right: auto; }

.est-breakdown { font-size: 0.9rem; }
.est-breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.est-breakdown div:last-child { border-bottom: none; }
.est-breakdown span:last-child { font-weight: 700; color: var(--navy-deep); white-space: nowrap; }

.disclaimer {
  background: var(--paper-dim); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 0.85rem; color: var(--charcoal);
}
.disclaimer b { color: var(--navy-deep); }

/* --- Estimator lead capture ---
   The low-friction ask: one field, on a single line where there is room.
   Deliberately lighter than the quote form below it so the two read as a small
   ask followed by a bigger one, rather than as two competing forms. */
.est-save {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.est-save form { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: end; }
.est-save .est-save-copy { grid-column: 1 / -1; }
.est-save h3 { font-size: 1.02rem; }
.est-save .est-save-copy p { margin-top: 4px; }
.est-save .field { margin-bottom: 0; }
.est-save .form-status { grid-column: 1 / -1; margin-top: 2px; }
@media (max-width: 560px) {
  .est-save form { grid-template-columns: 1fr; }
  .est-save button { width: 100%; justify-content: center; }
}
.est-save-done h3 { font-size: 1.02rem; color: var(--co-land-accent); }
.est-save-done p { margin-top: 4px; }

/* The full quote request, inline on the result. A white card on purpose: an
   inverted dark form means restyling every input and is a contrast trap, and the
   navy range panel above already carries the visual weight. */
.est-capture { border-top: 4px solid var(--accent); }
.est-capture h3 { font-size: 1.25rem; margin-top: 6px; }

/* Location step: postal code beside the area it resolves to. */
.est-loc { display: grid; grid-template-columns: 200px 1fr; gap: 16px 20px; max-width: 620px; }
.est-loc .field { margin-bottom: 0; }
.est-loc input { text-transform: uppercase; letter-spacing: 0.05em; }
.est-loc input::placeholder { text-transform: none; letter-spacing: 0; }
@media (max-width: 560px) { .est-loc { grid-template-columns: 1fr; } }

.est-captured {
  background: var(--co-land-wash); border: 1px solid var(--co-land-accent);
  border-radius: var(--radius); padding: 26px 28px;
}
.est-captured h3 { color: var(--co-land-accent); }
.est-captured p { font-size: 0.93rem; margin-top: 8px; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 520px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--paper-dim); font-weight: 700; color: var(--navy-deep); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:last-child td { border-bottom: none; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- Blog --- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 940px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-thumb {
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(135deg, var(--paper-warm), var(--paper-warm) 12px, var(--paper-dim) 12px, var(--paper-dim) 24px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.post-card .post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tag-color, var(--accent)); margin-bottom: 8px;
}
.post-card h3 { font-size: 1.06rem; line-height: 1.3; }
.post-card p { font-size: 0.89rem; margin: 9px 0 14px; }
.post-meta { margin-top: auto; font-size: 0.78rem; color: var(--slate); }

.article { max-width: 72ch; margin: 0 auto; }
.article header.article-head { margin-bottom: 32px; }
.article h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.article .article-meta { font-size: 0.85rem; color: var(--slate); margin-top: 14px; }
.article h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.article h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.article p { margin-bottom: 1.05em; }
.article ul, .article ol { margin: 0 0 1.2em 0; }
.article ul li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.article ul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.article ol { counter-reset: n; }
.article ol li { position: relative; padding-left: 30px; margin-bottom: 10px; counter-increment: n; }
.article ol li::before { content: counter(n) "."; position: absolute; left: 2px; font-weight: 800; color: var(--accent); }
.article strong { color: var(--navy-deep); }
.article a:not(.btn) { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article blockquote {
  border-left: 4px solid var(--accent); background: var(--accent-wash);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-size: 0.97rem;
}
.article .callout {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 26px 0;
}
.article .callout h3 { margin-top: 0; }
.article .table-wrap { margin: 24px 0; }
.article figure { margin: 26px 0; }
.article figcaption { font-size: 0.8rem; color: var(--slate); margin-top: 8px; }

.article-cta {
  background: var(--navy-deep); color: var(--white); border-radius: var(--radius);
  padding: 30px; margin: 42px 0 0; text-align: center;
}
.article-cta h3 { color: var(--white); font-size: 1.2rem; }
.article-cta p { margin: 10px auto 20px; max-width: 48ch; font-size: 0.93rem; opacity: 0.86; }

/* --- Footer --- */
footer.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.82); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 34px; padding-bottom: 38px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 {
  color: var(--white); font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 15px;
}
footer.site-footer .logo { color: var(--white); }
footer.site-footer .logo span { color: var(--accent-soft); }
footer.site-footer p.tagline { font-size: 0.88rem; margin: 12px 0 16px; max-width: 34ch; opacity: 0.8; }
footer.site-footer li { margin-bottom: 9px; font-size: 0.88rem; }
footer.site-footer a:hover { color: var(--accent-soft); text-decoration: underline; }
footer.site-footer .credentials { font-size: 0.82rem; opacity: 0.8; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.79rem; opacity: 0.72;
}
.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.social-row a:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--white); }

/* --- Utility --- */
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

@media print {
  header.site-header, footer.site-footer, .cta-band, .menu-toggle { display: none; }
  body { background: var(--white); }
}

/* ---- Delivered-by lockup -------------------------------------------------
   Used on a member company page to credit the company that actually delivers
   that trade (ShineCo Cleaning on the cleaning page). The logo is a supplied
   brand asset, so it sits on a white plate rather than on --paper: ShineCo's
   mark carries its own white background and would otherwise show a seam. */
.delivered-by {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; max-width: 640px;
}
.delivered-by img { width: 155px; height: auto; flex: none; }
.delivered-by span { font-size: 0.88rem; color: var(--charcoal); flex: 1 1 240px; }
@media (max-width: 460px) { .delivered-by { gap: 12px; } .delivered-by img { width: 130px; } }
