/* ============================================================
   Shop Design Build — site design system  (v2: blue-forward, big-block)
   Keene, NH · design-build · general contracting · showroom
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- ground + ink ---- */
  --paper: #FFFFFF;
  --ground: #F3F1EC;          /* warm greige — 2026 leans warm */
  --ground-dim: #E9E5DD;
  --sand: #EDE7DC;            /* subtle warm fill for callouts */
  --ink: #16212C;             /* blue-black */
  --ink-soft: #4B5A67;

  /* ---- brand blue (the logo) ---- */
  --blue: #3A668C;
  --blue-600: #33587A;
  --blue-700: #2A4A67;
  --blue-900: #1B354C;        /* dark bands */
  --navy: #10222F;            /* darkest — hero / footer */
  --sky: #E7EEF4;             /* pale blue fill */
  --sky-line: #C9D8E4;

  /* ---- single warm signal, used sparingly ---- */
  --ember: #D5852E;
  --ember-dark: #B96E1E;

  --ok: #1E7B4D;

  --line: rgba(22, 33, 44, 0.14);
  --line-soft: rgba(22, 33, 44, 0.08);
  --line-dark: rgba(255, 255, 255, 0.18);

  --shadow-block: 0 1px 0 rgba(22,33,44,0.04), 0 18px 40px -24px rgba(16,34,47,0.35);

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max-w: 1320px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 10vw, 148px);
  --r: 4px;      /* buttons / small */
  --r-lg: 12px;  /* cards / media */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.1vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(48px, 7vw, 92px) 0; }
.center { text-align: center; }
.measure { max-width: 62ch; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--ember); }
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow, .eyebrow--light { color: #9FC0DA; }

.section-head { max-width: 30ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--wide { max-width: 46ch; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.18rem; max-width: 52ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.005em;
  padding: 19px 34px;
  border: 2px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }
.btn--ember { background: var(--ember); color: var(--navy); }
.btn--ember:hover { background: var(--ember-dark); color: #fff; }
.btn--outline { border-color: currentColor; color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--ghost-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem; color: var(--blue);
  transition: gap .18s ease;
}
.link-arrow::after { content: '\2192'; transition: transform .18s ease; }
.link-arrow:hover { gap: 13px; }
.on-dark .link-arrow { color: #fff; }

/* ---------- Grain ---------- */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   Header
   ============================================================ */
/* One continuous blue banner: the utility strip and the main header share
   the logo's exact blue (#3A668C) so the logo mark blends straight in. */
.topbar {
  background: var(--blue); color: rgba(255,255,255,0.9);
  font-size: 0.85rem; letter-spacing: 0.005em; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px var(--gutter); }
.topbar a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 1px; }
.topbar a:hover { border-bottom-color: #fff; }
.topbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7FE3AF; margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(127,227,175,0.22); }
.topbar-links { display: flex; gap: 24px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue); color: #fff;
  box-shadow: 0 16px 34px -24px rgba(16,34,47,0.6);
}
.site-header .wrap { display: flex; align-items: center; gap: 30px; padding-top: 11px; padding-bottom: 11px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 60px; display: block; }
.brand-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.header-cta { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-phone { font-weight: 800; font-size: 0.98rem; white-space: nowrap; color: #fff; }
.header-phone:hover { color: var(--clay-light, #E7C79B); }
.header-cta .btn { padding: 13px 24px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 26px; height: 2.5px; background: #fff; margin: 6px 0; }

/* ---------- Mega nav (SHOP / DESIGN / BUILD) ---------- */
.nav > .nav-item { position: static; }
.nav .nav-trigger {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.02rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; padding: 10px 2px;
  display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 3px solid transparent;
}
.nav .nav-trigger::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; opacity: .7; }
.nav .nav-link { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; padding: 10px 2px; border-bottom: 3px solid transparent; }
.nav .nav-item.open .nav-trigger,
.nav .nav-trigger:hover,
.nav .nav-link:hover { border-bottom-color: var(--ember); }
.nav .nav-item.open .nav-trigger::after { transform: rotate(-135deg) translateY(-2px); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 32px 48px -28px rgba(16,34,47,0.4);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 90;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__inner {
  max-width: var(--max-w); margin: 0 auto; padding: clamp(28px, 3.5vw, 48px) var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: clamp(24px, 3vw, 48px);
}
.mega__inner--4 { grid-template-columns: repeat(4, 1fr); }
.mega__col h5 { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.mega__col a { display: block; padding: 7px 0; font-size: 0.98rem; color: var(--ink-soft); font-weight: 500; }
.mega__col a:hover { color: var(--blue); }
.mega__feature { background: var(--sky); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.mega__feature b { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.mega__feature p { font-size: 0.92rem; color: var(--ink-soft); margin: 10px 0 0; }
.mega__feature .link-arrow { margin-top: auto; padding-top: 18px; font-size: 0.94rem; }

@media (max-width: 1180px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-header .wrap { gap: 16px; }
  .nav.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .nav.is-open .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav.is-open .nav-trigger, .nav.is-open .nav-link { width: 100%; justify-content: space-between; font-size: 1.15rem; padding: 18px 0; border: 0; color: var(--ink); }
  .nav.is-open .nav-trigger::after { border-color: var(--blue); }
  .nav.is-open .mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; display: none; padding-bottom: 10px;
  }
  .nav.is-open .nav-item.open .mega { display: block; }
  .nav.is-open .mega__inner { display: block; padding: 0 0 12px; }
  .nav.is-open .mega__col { margin-bottom: 16px; }
  .nav.is-open .mega__col h5 { margin-bottom: 8px; }
  .nav.is-open .mega__feature { display: none; }
}
@media (max-width: 640px) { .topbar-links { display: none; } }

/* ============================================================
   Hero — split: blue panel + photo
   ============================================================ */
.hero { background: var(--navy); color: #fff; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: clamp(480px, 66vh, 660px); }
.hero__panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 6vw, 84px) clamp(28px, 6vw, 80px); }
.hero h1 { margin: 22px 0 0; position: relative; padding-left: 22px; }
.hero h1::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; background: var(--ember); border-radius: 2px; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero p { margin-top: 26px; font-size: 1.28rem; line-height: 1.55; color: rgba(255,255,255,0.85); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero__media { position: relative; overflow: hidden; background: #000; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 140px rgba(16,34,47,0.5); }
.hero__strip { background: var(--blue-900); }
.hero__strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 30px; padding-bottom: 30px; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: 2rem; display: block; letter-spacing: -0.03em; color: #fff; }
.stat span { font-size: 0.86rem; color: rgba(255,255,255,0.72); }
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { min-height: 320px; order: -1; }
}
@media (max-width: 680px) {
  .hero__strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
}

/* ============================================================
   Pillars — big blocks
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-block); display: flex; flex-direction: column;
}
.pillar__img { aspect-ratio: 3 / 2; overflow: hidden; }
.pillar__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pillar:hover .pillar__img img { transform: scale(1.05); }
.pillar__body { padding: clamp(24px, 3vw, 40px); flex: 1; display: flex; flex-direction: column; }
.pillar__num { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.08em; color: var(--blue); }
.pillar h3 { margin: 12px 0 10px; }
.pillar p { color: var(--ink-soft); font-size: 1.02rem; }
.pillar .link-arrow { margin-top: auto; padding-top: 22px; }
@media (max-width: 940px) { .pillars { grid-template-columns: 1fr; } }

/* ============================================================
   Split feature
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.split__body h2 { margin: 18px 0 20px; }
.split__body p { color: var(--ink-soft); font-size: 1.14rem; }
.on-dark .split__body p { color: rgba(255,255,255,0.82); }
.feature-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 15px; }
.feature-list li { display: flex; gap: 13px; font-size: 1.04rem; }
.feature-list li::before { content: ''; flex-shrink: 0; width: 10px; height: 10px; margin-top: 9px; background: var(--ember); border-radius: 2px; }
.split__body .btn { margin-top: 34px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--flip .split__media { order: 0; }
}

/* ============================================================
   Portfolio grid — big tiles
   ============================================================ */
.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.proj { position: relative; overflow: hidden; background: var(--navy); border-radius: var(--r-lg); }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.proj:hover img { transform: scale(1.05); opacity: 0.85; }
.proj__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; color: #fff; background: linear-gradient(0deg, rgba(10,22,31,0.86), transparent); }
.proj__meta b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; display: block; letter-spacing: -0.02em; }
.proj__meta span { font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.proj--lg { grid-column: span 6; aspect-ratio: 16 / 11; }
.proj--md { grid-column: span 4; aspect-ratio: 1 / 1; }
.proj--sm { grid-column: span 3; aspect-ratio: 4 / 5; }
@media (max-width: 900px) {
  .proj--lg { grid-column: span 12; }
  .proj--md { grid-column: span 6; }
  .proj--sm { grid-column: span 6; }
}

/* ============================================================
   Shop tiles
   ============================================================ */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { position: relative; display: block; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-block); }
.tile__img { aspect-ratio: 3 / 2; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile__label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 20px 22px; }
.tile__label b { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.tile__label span { font-size: 0.76rem; color: var(--blue); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ============================================================
   Dark band
   ============================================================ */
.band-blue { background: var(--blue-900); color: #fff; }
.band-navy { background: var(--navy); color: #fff; }
.band-blue h2, .band-navy h2 { color: #fff; }
.band-sky { background: var(--sky); }

/* ============================================================
   Process steps — big numbered blocks
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--paper); border-radius: var(--r-lg); padding: clamp(30px, 4vw, 52px); box-shadow: var(--shadow-block); }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--sky-line); letter-spacing: -0.04em; }
.step h3 { margin: 14px 0 12px; }
.step p { color: var(--ink-soft); font-size: 1.02rem; }
.band-blue .step, .band-navy .step { background: rgba(255,255,255,0.06); box-shadow: none; border: 1px solid var(--line-dark); }
.band-blue .step p, .band-navy .step p { color: rgba(255,255,255,0.8); }
.band-blue .step__num, .band-navy .step__num { color: rgba(255,255,255,0.35); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   Brand strip
   ============================================================ */
.brandstrip { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brandstrip .wrap { display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; justify-content: center; padding-top: 38px; padding-bottom: 38px; }
.brandstrip img { height: 30px; width: auto; opacity: 0.5; filter: grayscale(1); transition: opacity .2s ease; }
.brandstrip img:hover { opacity: 0.95; }

/* ============================================================
   Testimonials
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--paper); border-radius: var(--r-lg); border-top: 4px solid var(--blue); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-block); }
.quote p { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.42; letter-spacing: -0.015em; }
.quote footer { margin-top: auto; padding-top: 24px; font-size: 0.88rem; color: var(--ink-soft); }
.quote footer b { color: var(--ink); display: block; font-family: var(--font-body); font-weight: 700; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ============================================================
   Sister brands
   ============================================================ */
.family { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.family a { background: var(--paper); border-radius: var(--r-lg); padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-block); transition: transform .16s ease; }
.family a:hover { transform: translateY(-3px); }
.family b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.family span { font-size: 0.96rem; color: var(--ink-soft); }
.family em { margin-top: auto; padding-top: 16px; font-style: normal; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 940px) { .family { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .family { grid-template-columns: 1fr; } }

/* ============================================================
   Consult / contact
   ============================================================ */
.consult { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); }
.consult__aside h2 { margin: 16px 0 20px; }
.consult__aside p { color: rgba(255,255,255,0.82); font-size: 1.14rem; }
.consult__contact { margin-top: 34px; display: grid; gap: 8px; font-size: 1.02rem; }
.consult__contact a { color: #fff; font-weight: 700; }
.form-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(26px, 3.5vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field > span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--ground); border: 2px solid var(--line-soft);
  padding: 14px 15px; border-radius: var(--r);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.84rem; color: var(--ink-soft); margin-top: 16px; }
@media (max-width: 900px) { .consult { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); font-size: 0.95rem; }
.site-footer .wrap { padding-top: clamp(64px, 8vw, 104px); padding-bottom: 44px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 44px 26px; }
@media (max-width: 1180px) and (min-width: 941px) { .footer-top { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { width: 52px; height: 52px; border-radius: 6px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: rgba(255,255,255,0.5); }
@media (max-width: 940px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   Interior page hero
   ============================================================ */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.page-hero--img .page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero--img .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero--img .page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(16,34,47,0.78) 50%, rgba(16,34,47,0.5) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.page-hero__crumb { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.page-hero__crumb a { color: rgba(255,255,255,0.75); }
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); max-width: 18ch; }
.page-hero p { margin-top: 22px; font-size: 1.24rem; line-height: 1.55; color: rgba(255,255,255,0.85); max-width: 52ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ============================================================
   Generic content bits
   ============================================================ */
.lede { font-size: 1.3rem; line-height: 1.55; color: var(--ink-soft); max-width: 54ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-block);
  padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column;
}
.card > img, .card__img { border-radius: calc(var(--r-lg) - 4px); aspect-ratio: 3/2; object-fit: cover; width: 100%; margin-bottom: 20px; }
.card__kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); }
.card h3 { margin: 10px 0 10px; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .link-arrow { margin-top: auto; padding-top: 18px; font-size: 0.96rem; }
@media (max-width: 960px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }

.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec-list div { background: var(--paper); padding: 22px 24px; }
.spec-list dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 0 0 6px; }
.spec-list dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
@media (max-width: 600px) { .spec-list { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; color: var(--blue); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { padding: 0 0 24px; margin: 0; color: var(--ink-soft); max-width: 68ch; }

.town-list { columns: 4; column-gap: 32px; font-size: 0.98rem; }
.town-list a { display: block; padding: 5px 0; color: var(--ink-soft); }
.town-list a:hover { color: var(--blue); }
@media (max-width: 900px) { .town-list { columns: 2; } }

.cta-strip { background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-strip h2 { color: #fff; max-width: 20ch; }
.cta-strip p { color: rgba(255,255,255,0.85); margin-top: 10px; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   Calculators
   ============================================================ */
.calc { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-block); overflow: hidden; margin-top: 28px; scroll-margin-top: 120px; }
.calc__head { padding: clamp(22px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.calc__head .card__kicker { color: var(--blue); }
.calc__head h3 { margin-top: 8px; }
.calc__head p { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; max-width: 62ch; }
.calc__grid { display: grid; grid-template-columns: 1.3fr 1fr; }
.calc__inputs { padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; }
.calc__inputs .row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.calc__out { background: var(--navy); color: #fff; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 4px; }
.calc__out .out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.calc__out .out-row:last-of-type { border-bottom: 0; }
.calc__out .out-row span { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.calc__out .out-row b { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__out .out-lead b { font-size: 1.9rem; color: var(--ember); }
.calc__out .fine { margin-top: auto; padding-top: 18px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.calc__out .btn { margin-top: 16px; }
.seg { display: flex; border: 2px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.seg button { flex: 1; appearance: none; background: var(--paper); border: 0; border-left: 2px solid var(--line-soft); padding: 12px 8px; cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
@media (max-width: 820px) { .calc__grid { grid-template-columns: 1fr; } .calc__inputs .row { grid-template-columns: 1fr; } }

.calc-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-nav a { border: 2px solid var(--line); border-radius: var(--r); padding: 10px 16px; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.calc-nav a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Tool dashboard ---------- */
.tool-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-hub a {
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-block);
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column;
  transition: transform .16s ease;
}
.tool-hub a:hover { transform: translateY(-4px); }
.tool-hub .ic {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue); margin-bottom: 18px;
}
.tool-hub .ic svg { width: 26px; height: 26px; }
.tool-hub h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tool-hub p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.tool-hub .go { margin-top: 16px; font-weight: 700; color: var(--blue); font-size: 0.92rem; }
.tool-hub a:hover .go { text-decoration: underline; }
@media (max-width: 940px) { .tool-hub { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tool-hub { grid-template-columns: 1fr; } }

/* ============================================================
   Trust bar (under hero) — research: trust signals above the fold
   ============================================================ */
.trustbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 36px; padding-top: 20px; padding-bottom: 20px; }
.trust { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; font-weight: 600; color: var(--ink); }
.trust svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue); }
.trust .stars { color: var(--ember); letter-spacing: 1px; }
.trust span { color: var(--ink-soft); font-weight: 500; }
@media (max-width: 680px){ .trustbar .wrap { gap: 12px 22px; } .trust { font-size: 0.86rem; } }

/* ============================================================
   Quick-start strip — low-friction entry (Sweeten pattern)
   ============================================================ */
.starter { background: var(--sand); }
.starter .wrap { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px); }
.starter form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.starter .field { flex: 1 1 180px; }
.starter .field input, .starter .field select { background: var(--paper); border: 2px solid var(--line); color: var(--ink); }
.starter .btn { flex: 0 0 auto; }
.starter h3 { flex-basis: 100%; margin-bottom: 4px; }
.starter p.form-note { flex-basis: 100%; color: var(--ink-soft); }

/* ============================================================
   Sticky mobile action bar
   ============================================================ */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    box-shadow: 0 -6px 24px -12px rgba(16,34,47,0.4);
  }
  .mobile-cta a { padding: 15px 10px; text-align: center; font-weight: 700; font-size: 0.95rem; }
  .mobile-cta .m-call { background: var(--paper); color: var(--blue); border-top: 1px solid var(--line); }
  .mobile-cta .m-book { background: var(--ember); color: var(--navy); }
  body { padding-bottom: 54px; }
}

/* ============================================================
   Review cards
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-block); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; }
.review .stars { color: var(--ember); letter-spacing: 2px; font-size: 1rem; }
.review p { margin-top: 14px; font-size: 1.04rem; line-height: 1.55; }
.review footer { margin-top: auto; padding-top: 20px; font-size: 0.86rem; color: var(--ink-soft); }
.review footer b { display: block; color: var(--ink); font-weight: 700; }
@media (max-width: 940px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Blog
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-block); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 3/2; object-fit: cover; }
.post-card .body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); }
.post-card h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.post-card p { color: var(--ink-soft); font-size: 0.96rem; }
.post-card .link-arrow { margin-top: auto; padding-top: 16px; font-size: 0.94rem; }
@media (max-width: 940px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.article { max-width: 720px; margin: 0 auto; }
.article__hero { background: var(--navy); color: #fff; }
.article__hero .wrap { max-width: 780px; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 64px); }
.article__hero .tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); }
.article__hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin: 14px 0 0; max-width: 22ch; }
.article__hero .meta { margin-top: 16px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.article__lead img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-lg); margin: clamp(28px,4vw,44px) auto 0; max-width: 900px; }
.prose { font-size: 1.12rem; line-height: 1.72; color: #26313b; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.28rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--ember); padding: 6px 0 6px 22px; margin-left: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.prose .callout { background: var(--sand); border-radius: var(--r-lg); padding: 22px 24px; font-size: 1rem; }
.prose a { color: var(--blue); border-bottom: 1px solid currentColor; }
.article__foot { border-top: 1px solid var(--line); margin-top: clamp(36px,5vw,56px); padding-top: 28px; }

/* ============================================================
   Rooms feature (kitchens & baths on the homepage)
   ============================================================ */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.room { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; background: var(--navy); }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; transition: transform .5s ease, opacity .3s ease; }
.room:hover img { transform: scale(1.04); opacity: 0.5; }
.room__body { position: relative; padding: clamp(26px, 3.5vw, 40px); color: #fff; }
.room__body h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.room__body p { margin-top: 10px; color: rgba(255,255,255,0.88); font-size: 1rem; max-width: 40ch; }
.room__body .link-arrow { color: #fff; margin-top: 16px; }
.room__body .pill { display: inline-block; margin-bottom: 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--navy); background: var(--ember); padding: 5px 10px; border-radius: 3px; }
@media (max-width: 820px) { .rooms { grid-template-columns: 1fr; } .room { min-height: 300px; } }

/* ============================================================
   Featured brand band
   ============================================================ */
.featured-brand { background: var(--blue-900); color: #fff; }
.featured-brand .wrap { display: flex; align-items: center; gap: clamp(24px, 5vw, 60px); flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.featured-brand img { height: 42px; width: auto; flex-shrink: 0; }
.featured-brand .fb-copy { flex: 1 1 340px; }
.featured-brand .eyebrow { color: var(--ember); margin-bottom: 8px; }
.featured-brand p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin: 0; }
.featured-brand .btn { flex-shrink: 0; }
@media (max-width: 620px) { .featured-brand img { height: 34px; } }

/* ============================================================
   Brand directory
   ============================================================ */
.brand-cat { margin-top: clamp(40px, 5vw, 64px); }
.brand-cat:first-of-type { margin-top: 0; }
.brand-cat > h3 { display: flex; align-items: baseline; gap: 12px; }
.brand-cat > h3 small { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: none; }
.brand-cat > p { color: var(--ink-soft); margin: 8px 0 20px; max-width: 60ch; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.logo-wall > div, .logo-wall > a { background: var(--paper); aspect-ratio: 5 / 3; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; }
.logo-wall img { max-width: 100%; max-height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: opacity .2s ease, filter .2s ease; }
.logo-wall a:hover img { filter: none; opacity: 1; }
.logo-wall .featured::after { content: '★'; position: absolute; top: 8px; right: 10px; font-size: 0.7rem; color: var(--ember); }
.logo-wall .name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--ink); text-align: center; letter-spacing: -0.01em; }

/* ============================================================
   Comparison table
   ============================================================ */
.table { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.table th { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; background: var(--sand); }
.table td:first-child, .table th:first-child { border-right: 1px solid var(--line); }
.table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--sand) 35%, transparent); }
.table td:nth-child(2) { color: var(--blue); font-weight: 600; }

/* ============================================================
   Photo gallery (masonry-ish grid)
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery a, .gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--navy); aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery .tall { aspect-ratio: 2 / 3; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; font-size: 0.82rem; background: linear-gradient(0deg, rgba(10,22,31,0.8), transparent); }

/* ============================================================
   Style quiz
   ============================================================ */
#quiz { max-width: 860px; margin: 0 auto; }
.quiz__bar { height: 6px; background: var(--ground-dim); border-radius: 3px; overflow: hidden; }
.quiz__bar i { display: block; height: 100%; background: var(--blue); transition: width .3s ease; }
.quiz__step { margin: 18px 0 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.quiz__q { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 24px; }
.quiz__blurb { font-size: 1.14rem; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; margin-bottom: 28px; }
.quiz__opts { display: grid; gap: 12px; }
.quiz__opts--img { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.quiz__opt {
  text-align: left; font-family: inherit; font-size: 1.05rem; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.quiz__opt:hover { border-color: var(--blue); }
.quiz__opt.is-on { border-color: var(--blue); background: var(--sky); }
.quiz__opt--img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.quiz__opt--img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.quiz__opt--img span { padding: 14px 16px; font-size: 0.96rem; }
.quiz__nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
.quiz__result { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-top: 12px; }
.quiz__recs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.quiz__recs li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: 0.98rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.quiz__recs b { color: var(--blue); }
.quiz__recs a { color: var(--ink); border-bottom: 1px solid var(--line); }
.quiz__cta { background: var(--sand); border-radius: var(--r-lg); padding: 26px; }
.quiz__cta h3 { margin-bottom: 8px; }
.quiz__cta p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 16px; }
.quiz__scores { margin-top: 24px; font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.02em; }
@media (max-width: 720px) { .quiz__result { grid-template-columns: 1fr; } .quiz__recs li { grid-template-columns: 1fr; gap: 2px; } }

/* ============================================================
   Plan-your-project hub
   ============================================================ */
.plan-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.plan-steps a { background: var(--paper); padding: 28px 24px; display: flex; flex-direction: column; transition: background .15s ease; }
.plan-steps a:hover { background: var(--sand); }
.plan-steps .n { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--sky-line); }
.plan-steps h3 { font-size: 1.15rem; margin: 8px 0 6px; }
.plan-steps p { font-size: 0.94rem; color: var(--ink-soft); flex: 1; }
.plan-steps .go { margin-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--blue); }
@media (max-width: 900px) { .plan-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plan-steps { grid-template-columns: 1fr; } }

/* ---------- utilities ---------- */
.tint { background: var(--paper); }
.warm { background: var(--sand); }
.pad-b0 { padding-bottom: 0; }
[hidden] { display: none !important; }
