/* =================================================================
   Nettles Carpentry mockup — shared styles
   ================================================================= */

:root {
  /* ===== Theme A — Warm White & Navy (default) ===== */
  --cream: #f7f4ee;
  --paper: #ece5d7;
  --ink: #26303a;
  --ink-soft: #5f6873;
  --rule: #e2dccf;
  --forest: #22384a;        /* primary dark (navy) */
  --forest-dark: #172735;
  --clay: #a2703e;          /* warm oak accent / CTA */
  --clay-dark: #8a5d31;
  --gold: #c7a05c;          /* brass highlight */
  --focus-ring: rgba(34, 56, 74, 0.16);
  --shadow: 0 4px 18px rgba(30, 35, 45, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 35, 45, 0.14);
}
:root[data-theme="b"] {
  /* ===== Theme B — Alabaster & Walnut ===== */
  --cream: #f4efe6;
  --paper: #e7dfd0;
  --ink: #352b21;
  --ink-soft: #6f6355;
  --rule: #ded4c2;
  --forest: #493a2c;        /* primary dark (walnut espresso) */
  --forest-dark: #362a20;
  --clay: #8b5e3c;          /* walnut accent / CTA */
  --clay-dark: #744c2f;
  --gold: #c0894f;          /* caramel highlight */
  --focus-ring: rgba(73, 58, 44, 0.18);
  --shadow: 0 4px 18px rgba(45, 35, 20, 0.09);
  --shadow-lg: 0 16px 40px rgba(45, 35, 20, 0.15);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin: 0 0 0.4rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
p  { margin: 0.4rem 0; color: var(--ink-soft); }
a  { color: var(--forest); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 24px; }

.mockup-banner {
  background: #fff6e0;
  border-bottom: 1px solid #e8d9a6;
  color: #6b5310;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}

/* ====== Header & Nav ====== */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: Georgia, serif; font-size: 20px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--forest); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.nav ul.menu { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; align-items: center; }
.nav a.navlink {
  color: var(--ink); text-decoration: none; font-size: 15px;
  padding: 8px 0; display: inline-flex; align-items: center; gap: 4px;
}
.nav a.navlink:hover { color: var(--forest); }
.nav a.navlink.active { color: var(--clay); font-weight: 600; }

.nav-call {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--forest); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 8px;
}
.nav-call:hover { background: var(--paper); }
.nav-call svg { flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Dropdown */
.has-drop { position: relative; }
.drop-toggle::after {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); margin-left: 2px;
  transition: transform .15s ease;
}
.has-drop.open .drop-toggle::after { transform: rotate(225deg) translate(-2px, -2px); }
@media (min-width: 901px) {
  .has-drop:hover .drop-toggle::after,
  .has-drop:focus-within .drop-toggle::after { transform: rotate(225deg) translate(-2px, -2px); }
}
.drop-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px;
  min-width: 220px;
  display: none; flex-direction: column; gap: 2px;
  margin: 0; list-style: none;
}
@media (min-width: 901px) {
  .has-drop:hover .drop-menu,
  .has-drop:focus-within .drop-menu { display: flex; }
}
.drop-menu a {
  display: block; padding: 9px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 14.5px;
}
.drop-menu a:hover { background: var(--paper); color: var(--forest); }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost { background: transparent; color: var(--forest); border: 1px solid var(--rule); }
.btn-ghost:hover { background: #fff; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-dark); }

/* ====== Sections ====== */
section { padding: 72px 0; }
.section-tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clay); font-weight: 700;
  margin-bottom: 10px;
}
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { font-size: 17px; }

/* ====== Stats hero band ====== */
.stats-band {
  background: var(--forest);
  color: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--forest-dark);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: center; text-align: center;
}
@media (max-width: 600px) {
  .stats-band { padding: 18px 0; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stats-grid .stat .num { font-size: 1.35rem; }
  .stats-grid .stat .lbl { font-size: 9.5px; letter-spacing: 0.04em; }
}
.stat .num {
  font-family: Georgia, serif; font-size: 2rem; line-height: 1;
  color: var(--gold); font-weight: 700;
}
.stat .lbl {
  font-size: 12.5px; color: rgba(255,255,255,0.78);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px;
}

/* ====== Portfolio ====== */
.portfolio { background: var(--cream); }
.featured-project {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px;
  background: #fff; border: 1px solid var(--rule);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 36px;
}
@media (max-width: 800px) { .featured-project { grid-template-columns: 1fr; } }
.featured-meta { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--rule);
}
.chip-strong { background: var(--forest); color: #fff; border-color: var(--forest); }
.spec-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.spec-list li { font-size: 14px; color: var(--ink-soft); }
.spec-list b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); font-weight: 700; margin-bottom: 2px; }

.ba {
  position: relative; user-select: none; overflow: hidden;
  aspect-ratio: 4 / 3; background: #ddd;
}
.ba img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block; pointer-events: none;
}
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
  pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 38px; height: 38px; transform: translate(-50%, -50%);
  background: #fff; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  background-image:
    linear-gradient(90deg, transparent 45%, var(--ink) 45% 47%, transparent 47% 53%, var(--ink) 53% 55%, transparent 55%);
}
.ba-label {
  position: absolute; top: 12px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(15, 15, 12, 0.7); color: #fff; border-radius: 4px;
  pointer-events: none;
}
.ba-label.left  { left: 12px; }
.ba-label.right { right: 12px; }

.proj-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.proj-thumb { aspect-ratio: 4 / 3; background: #ddd; position: relative; overflow: hidden; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-thumb .corner-tag { display: none; }
.proj-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.proj-body .where { font-size: 13px; color: var(--ink-soft); }
.proj-body .where::before { content: "📍 "; }
.proj-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule); padding: 12px 18px;
  font-size: 13px; color: var(--ink-soft);
}
.proj-foot a { color: var(--forest); font-weight: 600; text-decoration: none; }

/* ====== Project-type swipeable strip ====== */
.field label .hint { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.strip-label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
}
.swipe-hint { display: none; font-size: 12px; color: var(--clay); font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { .swipe-hint { display: inline; } }
.strip-wrap { position: relative; }
.proj-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 258px;
  gap: 18px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 2px 16px; scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.proj-strip::-webkit-scrollbar { height: 8px; }
.proj-strip::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 999px; }
.type-card {
  scroll-snap-align: start; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--forest); }
.type-thumb { aspect-ratio: 4 / 3; background: #ddd; overflow: hidden; }
.type-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.type-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.type-body h3 { font-size: 1.15rem; margin: 0; }
.type-body span { font-size: 13px; color: var(--ink-soft); }
.strip-nav {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 4;
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: #fff; color: var(--ink);
  font-size: 22px; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.strip-nav:hover { background: var(--paper); border-color: var(--forest); }
.strip-nav.prev { left: -8px; }
.strip-nav.next { right: -8px; }
@media (max-width: 700px) {
  .strip-nav { display: none; }
  .proj-strip { grid-auto-columns: 80%; }
}

/* ====== Process ====== */
.process { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.step-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 24px;
}
@media (max-width: 900px) { .step-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .step-grid { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  padding: 22px; position: relative;
}
.step-num {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--forest); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-family: Georgia, serif;
  font-size: 18px; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: 14px; line-height: 1.5; }
.step ul { padding-left: 18px; margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }
.step ul li { margin: 3px 0; }

.promise-strip {
  margin-top: 36px;
  background: var(--forest); color: #fff;
  border-radius: 14px; padding: 22px 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 800px) { .promise-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promise-strip { grid-template-columns: 1fr; } }
.promise { display: flex; gap: 12px; align-items: flex-start; }
.promise svg { flex-shrink: 0; margin-top: 2px; }
.promise b { display: block; font-size: 14px; }
.promise span { font-size: 13px; color: rgba(255,255,255,0.78); }

/* ====== FAQ (inline & dedicated page) ====== */
.faq-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
details.faq { border-bottom: 1px solid var(--rule); padding: 14px 0; }
details.faq summary {
  list-style: none; cursor: pointer; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 22px; color: var(--clay); font-weight: 400;
  transition: transform .2s ease;
}
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: 10px; font-size: 14.5px; }

/* Dedicated FAQ page enlargements */
body.faq-page details.faq { padding: 18px 0; }
body.faq-page details.faq summary { font-size: 17px; }
body.faq-page details.faq summary::after { font-size: 24px; line-height: 1; }
body.faq-page details.faq p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; max-width: 760px; }
.faq-category {
  font-family: Georgia, serif; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-soft); font-weight: 700;
  margin: 36px 0 8px; padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.faq-category:first-of-type { margin-top: 0; }

/* ====== Estimate form ====== */
.estimate { background: var(--cream); }
.estimate-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px;
  align-items: start;
}
@media (max-width: 880px) { .estimate-grid { grid-template-columns: 1fr; } }

.form-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: 28px; box-shadow: var(--shadow);
}
.form-card h3 { font-family: Georgia, serif; font-size: 1.35rem; margin-bottom: 4px; }
.form-card .lead { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--ink);
}
.field .req { color: var(--clay); }
fieldset.field { border: 0; margin: 0 0 16px; padding: 0; }
fieldset.field legend { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--rule);
  border-radius: 8px; background: #fff; font: inherit; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-input { position: relative; }
.chip-input input { position: absolute; opacity: 0; pointer-events: none; }
.chip-input label {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--rule);
  border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500;
  background: #fff; color: var(--ink); transition: all .12s ease; margin: 0;
}
.chip-input input:checked + label {
  background: var(--forest); color: #fff; border-color: var(--forest);
}
.chip-input label:hover { border-color: var(--forest); }

.dropzone {
  border: 2px dashed var(--rule); border-radius: 10px;
  padding: 22px; text-align: center; color: var(--ink-soft);
  cursor: pointer; transition: all .15s ease; background: #fafafa;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--forest); background: #f1f5f2; color: var(--ink);
}
.dropzone .big { font-size: 22px; }
.dropzone .sub { font-size: 12.5px; margin-top: 4px; }
.dropzone input { display: none; }
.file-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.file-pill {
  font-size: 12px; padding: 4px 10px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 999px; color: var(--ink);
}

.submit-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; gap: 14px; flex-wrap: wrap;
}
.submit-row .small { font-size: 12.5px; color: var(--ink-soft); }

.side-rail {
  background: var(--forest); color: #fff; border-radius: 14px;
  padding: 28px; position: sticky; top: 88px;
}
.side-rail h3 { color: #fff; font-family: Georgia, serif; font-size: 1.3rem; }
.side-rail .promise-line {
  display: flex; gap: 10px; align-items: center;
  background: rgba(255,255,255,0.08); padding: 10px 14px;
  border-radius: 8px; margin: 14px 0 22px; font-size: 14px;
}
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative; padding-left: 38px; padding-bottom: 22px;
  font-size: 14px; color: rgba(255,255,255,0.85);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: 11px; top: 0; bottom: 0;
  width: 2px; background: rgba(255,255,255,0.2);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 4px; top: 4px;
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--gold); border: 3px solid var(--forest);
  box-shadow: 0 0 0 2px var(--gold);
}
.side-foot {
  margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px; color: rgba(255,255,255,0.75);
}
.side-foot a { color: #fff; }

/* ====== Page hero (FAQ + service-area pages) ====== */
.page-hero {
  padding: 64px 0 32px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--rule);
}
.page-hero .tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clay); font-weight: 700;
  margin-bottom: 12px;
}
.page-hero p.lead { font-size: 17px; max-width: 640px; }
.page-hero .quick-stats {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px;
  font-size: 14px; color: var(--ink-soft);
}
.page-hero .quick-stats b { color: var(--ink); }

/* ====== Service Area pages ====== */
.areas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 28px;
}
@media (max-width: 900px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .areas-grid { grid-template-columns: 1fr; } }
.area-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  padding: 22px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}
.area-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--forest); }
.area-card .town { font-family: Georgia, serif; font-size: 1.4rem; color: var(--ink); }
/* Location pin next to each real city (not the "Not in this list?" card) */
.area-card.area-city .town { display: inline-flex; align-items: center; gap: 8px; }
.area-card.area-city { cursor: default; }
.area-card.area-city:hover { transform: none; box-shadow: var(--shadow); border-color: var(--rule); }
.area-card.area-city .town::before {
  content: ""; width: 19px; height: 19px; flex-shrink: 0;
  background-color: var(--clay);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.area-card .meta { font-size: 13px; color: var(--ink-soft); }
.area-card .arrow { margin-top: 8px; color: var(--clay); font-weight: 600; font-size: 14px; }

.local-notes {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
  padding: 24px; margin-top: 32px;
}
.local-notes h3 { font-family: Georgia, serif; margin-bottom: 8px; }
.local-notes dl { margin: 12px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.local-notes dt { font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.local-notes dd { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ====== "Still stuck" / page-bottom CTA ====== */
.still-stuck {
  margin: 32px 0 72px;
  background: var(--forest); color: #fff;
  border-radius: 14px; padding: 36px;
  display: grid; grid-template-columns: 1.2fr auto; gap: 24px; align-items: center;
}
@media (max-width: 680px) {
  .still-stuck { grid-template-columns: 1fr; text-align: center; }
  .still-stuck .actions { justify-content: center; }
}
.still-stuck h2 { color: #fff; margin-bottom: 6px; }
.still-stuck p { color: rgba(255,255,255,0.78); margin: 0; }
.still-stuck .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.still-stuck .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.still-stuck .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ====== Why this matters / 3 mistakes band ====== */
.why-band { background: var(--cream); border-top: 1px solid var(--rule); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 28px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  padding: 26px 24px 22px; position: relative;
  box-shadow: var(--shadow);
}
.why-card .why-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--clay); color: #fff;
  font-family: Georgia, serif; font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
}
.why-card h3 {
  font-family: Georgia, serif; font-size: 1.15rem; line-height: 1.25;
  margin-bottom: 8px;
}
.why-card p { font-size: 14.5px; line-height: 1.55; }
.why-card .we-do {
  display: flex; gap: 8px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--forest); font-weight: 600;
}
.why-card .we-do svg { flex-shrink: 0; margin-top: 2px; }

/* ====== Mobile menu + responsive overrides ====== */
.menu-toggle {
  display: none;
  background: none; border: 0;
  padding: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  border-radius: 8px;
}
.menu-toggle:hover { background: var(--paper); }
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translate(0, 7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translate(0, -7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    padding: 14px 0; gap: 6px;
    flex-wrap: nowrap; align-items: center;
    position: relative;
  }
  .brand { font-size: 17px; min-width: 0; }
  .brand-mark { width: 32px; height: 32px; }
  .menu-toggle { display: block; order: 3; margin-left: 4px; }
  .nav-actions { order: 2; gap: 6px; margin-left: auto; }
  .nav-actions .nav-call { padding: 8px; }
  .nav-actions .nav-call .phone-text { display: none; }
  .nav-actions .btn-primary { padding: 9px 14px; font-size: 14px; }

  .nav ul.menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 60;
    margin: 0;
  }
  .nav ul.menu.open { display: flex; }
  .nav ul.menu > li { width: 100%; }
  .nav ul.menu > li > a.navlink {
    display: block; padding: 14px; border-radius: 6px;
    width: 100%; font-size: 16px;
  }
  .nav ul.menu > li > a.navlink:hover { background: var(--paper); }

  .has-drop .drop-menu {
    position: static;
    box-shadow: none; border: none;
    padding: 0;
    margin: 0; min-width: 0;
    background: transparent;
    display: none;
  }
  .has-drop.open .drop-menu {
    display: flex;
    padding: 4px 0 10px 18px;
  }
  .has-drop .drop-menu a { padding: 10px 12px; font-size: 14.5px; }

  section { padding: 48px 0; }
  .page-hero { padding: 44px 0 24px; }
  h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.9rem); }

  .side-rail { position: static; top: auto; }
  .featured-meta { padding: 22px; }
  .featured-meta .spec-list { grid-template-columns: 1fr; gap: 6px 0; }
  .featured-meta .spec-list li { font-size: 13.5px; }

  .btn { padding: 12px 18px; font-size: 15px; }
  .mockup-banner { font-size: 12px; padding: 6px 12px; line-height: 1.3; }
}

@media (max-width: 600px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .featured-meta { padding: 20px; }
  .why-card { padding: 22px 18px 18px; }
  .step { padding: 18px; }
  .form-card { padding: 22px 18px; }
  .side-rail { padding: 22px; }
  .still-stuck { padding: 24px 20px; gap: 16px; }
  .promise-strip { padding: 18px 18px; }
  .form-card h3 { font-size: 1.2rem; }
  .field input, .field select, .field textarea { font-size: 16px; } /* prevents iOS zoom */
  .nav-actions .btn-primary { padding: 9px 12px; font-size: 13px; }
}

@media (max-width: 400px) {
  .brand div:last-child { display: none; } /* hide "Nettles Carpentry" text, keep mark */
  h1 { font-size: 1.6rem; }
}

footer {
  background: var(--forest-dark); color: rgba(255,255,255,0.7);
  padding: 28px 0; font-size: 13px; text-align: center;
}
footer a { color: rgba(255,255,255,0.9); }

/* ====== Featured build (full-width) ====== */
.featured-project.featured-solo { grid-template-columns: 1fr; }
.featured-solo .ba { aspect-ratio: 16 / 9; }
.featured-caption { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; }
@media (max-width: 600px) { .featured-solo .ba { aspect-ratio: 4 / 3; } }

/* ====== Meet Jacob ====== */
.meet-jacob { background: var(--cream); border-top: 1px solid var(--rule); }
.meet-grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 820px) { .meet-grid { grid-template-columns: 1fr; gap: 28px; } }
.meet-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); display: block; }
@media (max-width: 820px) { .meet-photo img { aspect-ratio: 4 / 5; } }
.meet-text .section-tag { margin-bottom: 10px; }
.meet-text h2 { margin-bottom: 14px; }
.meet-text p { font-size: 16px; margin-bottom: 12px; }
.meet-actions { margin-top: 20px; }

/* ====== Site footer (injected by nav.js) ====== */
.site-footer { background: var(--forest-dark); color: rgba(255,255,255,0.72); padding: 48px 0 0; font-size: 14px; text-align: left; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-family: Georgia, serif; font-weight: 600; font-size: 15px; margin: 0 0 12px; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,0.72); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .footer-logo img { width: 44px; height: 44px; flex-shrink: 0; }
.footer-brand .footer-logo span { font-family: Georgia, serif; color: #fff; font-size: 15px; line-height: 1.2; letter-spacing: 0.04em; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 13.5px; max-width: 260px; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ====== Brand logo (injected by nav.js) ====== */
.brand.has-logo { gap: 0; }
.brand-logo { height: 64px; width: auto; display: block; }
@media (max-width: 900px) { .brand-logo { height: 52px; } }
@media (max-width: 380px) {
  .brand-logo { height: 46px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn-primary { padding: 8px 10px; font-size: 12.5px; }
}

/* Theme the accent (gold/brass) inline icons so they follow the palette */
.promise svg, .side-rail svg { stroke: var(--gold); }

/* Compact primary CTA on small screens: "Request Estimate" -> "Estimate" */
@media (max-width: 900px) { .cta-word { display: none; } }

/* ====== Deck callout (Cortex explainer) ====== */
.deck-callout {
  margin: 28px auto 0; max-width: 920px;
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  padding: 24px 28px; box-shadow: var(--shadow);
}
.deck-callout h3 { font-family: Georgia, serif; font-size: 1.2rem; margin: 0 0 8px; }
.deck-callout p { font-size: 15px; line-height: 1.6; margin: 0; }

/* ====== Testimonials ====== */
.testimonials { background: var(--cream); border-top: 1px solid var(--rule); }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
@media (max-width: 720px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  padding: 24px 26px; margin: 0; box-shadow: var(--shadow);
}
.testimonial .stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p { font-size: 15.5px; line-height: 1.6; color: var(--ink); font-style: italic; margin: 0 0 12px; }
.testimonial cite { font-style: normal; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.testimonial-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.bbb-badge img { height: 56px; width: auto; display: block; border-radius: 6px; }
@media (max-width: 720px) { .testimonial-cta { justify-content: center; text-align: center; } }

/* ====== Footer BBB badge (injected by nav.js) ====== */
.footer-bbb { display: inline-block; margin-top: 8px; }
.footer-bbb img { height: 46px; width: auto; border-radius: 5px; display: block; }

/* ====== Mobile safety: bigger logo + callout/testimonial padding ====== */
@media (max-width: 340px) { .brand-logo { height: 40px; } }
@media (max-width: 600px) {
  .deck-callout { padding: 20px 18px; }
  .testimonial { padding: 20px 18px; }
  .testimonial-cta { gap: 14px; }
}

/* ====== Services dropdown toggle (no page) ====== */
.drop-toggle { cursor: pointer; }

/* ====== Project gallery / carousel (service pages) ====== */
.gallery { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #000; margin-top: 8px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { min-width: 100%; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: center; display: block; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.9); color: var(--ink);
  font-size: 24px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.gallery-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,0.5); }
.gallery-dot.is-active { background: #fff; }
.gallery-single .gallery-nav, .gallery-single .gallery-dots { display: none; }

/* ====== Estimate form: honeypot + success panel ====== */
.hp-field { position: absolute; left: -9999px; }
.form-success { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 40px 32px; box-shadow: var(--shadow); text-align: center; }
.form-success .fs-check { width: 56px; height: 56px; border-radius: 999px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--forest); color: #fff; }
.form-success h3 { font-family: Georgia, serif; font-size: 1.5rem; margin: 0 0 8px; }
.form-success p { font-size: 15.5px; margin: 0 0 6px; }
.form-success .fs-alt { color: var(--ink-soft); font-size: 14px; margin-top: 10px; }
@media (max-width: 600px) {
  .gallery-track img { aspect-ratio: 4 / 3; }
  .gallery-nav { width: 38px; height: 38px; font-size: 20px; }
}
