/* =========================================================
   Carpentry and More LLC — Stylesheet
   Organized sections: Variables, Reset, Layout, Components,
   Page Sections, Portfolio, Forms, Footer, Utilities, Media
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  /* Carpentry-inspired palette */
  --clr-cream: #f7f2e8;
  --clr-cream-alt: #efe4d1;
  --clr-white: #ffffff;
  --clr-charcoal: #2a2622;
  --clr-charcoal-soft: #4c463d;
  --clr-wood: #6b4226;
  --clr-wood-dark: #4a2d19;
  --clr-wood-light: #8a5a3c;
  --clr-tan: #c9a877;
  --clr-tan-soft: #e7d7ba;
  --clr-forest: #2c4a36;
  --clr-forest-dark: #1c3324;
  --clr-gold: #b8874a;
  --clr-border: rgba(42, 38, 34, 0.14);
  --clr-border-light: rgba(255, 255, 255, 0.18);

  /* Typography */
  --font-heading: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Shape & shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(42, 38, 34, 0.08);
  --shadow-md: 0 8px 24px rgba(42, 38, 34, 0.12);
  --shadow-lg: 0 16px 40px rgba(42, 38, 34, 0.18);

  --container-width: 1180px;
  --header-height: 92px;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--clr-charcoal);
  background: transparent;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--clr-charcoal);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-sm); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 3px solid var(--clr-gold);
  outline-offset: 2px;
}

[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: calc(var(--space-2xl) * 0.4) 0;
}
.section-alt { background: var(--clr-cream-alt); }
.section-dark {
  background: var(--clr-charcoal);
  color: var(--clr-tan-soft);
}
.section-dark h2, .section-dark h3 { color: var(--clr-white); }

.section-head {
  max-width: 760px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-forest);
  margin-bottom: var(--space-xs);
}
.section-dark .eyebrow { color: var(--clr-tan); }
.section-lede {
  font-size: 1.1rem;
  color: var(--clr-charcoal-soft);
}
.section-dark .section-lede { color: var(--clr-tan-soft); }

.wood-divider {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--clr-wood), var(--clr-gold));
  margin: var(--space-xs) auto var(--space-sm);
}
.section-head.align-left { margin-left: 0; text-align: left; }
.section-head.align-left .wood-divider { margin-left: 0; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--clr-wood);
  color: var(--clr-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--clr-wood-dark); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--clr-charcoal);
  border-color: var(--clr-charcoal);
}
.btn-secondary:hover { background: var(--clr-charcoal); color: var(--clr-white); }
.btn-outline-light {
  background: transparent;
  color: var(--clr-white);
  border-color: var(--clr-border-light);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--clr-white); }
.btn-gold {
  background: var(--clr-gold);
  color: var(--clr-charcoal);
}
.btn-gold:hover { background: #a3763c; }
.btn-forest {
  background: var(--clr-forest);
  color: var(--clr-white);
}
.btn-forest:hover { background: var(--clr-forest-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.section-head .cta-row,
.section-cta .cta-row { justify-content: center; }

/* ---------- 4. Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 242, 232, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--clr-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--clr-charcoal);
  min-width: 0;
}
.brand-emblem {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}
.brand-name { display: block; }
.logo-crop {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4.4 / 1;
  background: var(--clr-cream);
  border-radius: var(--radius-sm);
}
.logo-crop img {
  width: 100%;
  max-width: none;
  height: auto;
  transform: translateY(-28.5%);
}
.header-logo { width: clamp(280px, 30vw, 360px); }
.footer-logo { width: min(100%, 320px); }
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand-text-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-forest);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active { border-color: var(--clr-wood); color: var(--clr-wood); }
.main-nav a.nav-cta {
  background: var(--clr-wood);
  color: var(--clr-white);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border-bottom: none;
}
.main-nav a.nav-cta:hover { background: var(--clr-wood-dark); color: var(--clr-white); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--clr-charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(42,38,34,0.86), rgba(74,45,25,0.78)),
    repeating-linear-gradient(100deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px),
    url("../images/hero-carpentry-workshop.webp") center 48% / cover no-repeat;
  color: var(--clr-white);
  padding: calc(var(--space-2xl) * 0.4) 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-tan);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--clr-border-light);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}
.hero h1 {
  color: var(--clr-white);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-md);
}
.hero .cta-row { justify-content: center; }
.hero .btn-primary {
  background: var(--clr-tan);
  color: var(--clr-charcoal);
  border-color: var(--clr-tan);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.hero .btn-primary:hover {
  background: var(--clr-cream-alt);
  border-color: var(--clr-cream-alt);
}
.hero .btn-outline-light {
  background: var(--clr-cream);
  color: var(--clr-wood-dark);
  border-color: var(--clr-cream);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.hero .btn-outline-light:hover {
  background: var(--clr-white);
  color: var(--clr-charcoal);
  border-color: var(--clr-white);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border-light);
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.hero-badge svg { flex-shrink: 0; }

/* ---------- 6. Trust Bar ---------- */
.trust-bar {
  background: var(--clr-forest);
  color: var(--clr-white);
  padding: var(--space-md) 0;
}
.trust-bar ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  text-align: center;
}
.trust-bar li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-bar svg { flex-shrink: 0; }

/* ---------- 7. Service Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-md);
}
.service-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--clr-cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--clr-wood);
}
.service-card h3 { margin-bottom: 0.4rem; }
.service-card p { color: var(--clr-charcoal-soft); flex-grow: 1; }
.service-card .card-link {
  margin-top: var(--space-sm);
  font-weight: 700;
  color: var(--clr-wood);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.service-card .card-link:hover { color: var(--clr-wood-dark); text-decoration: underline; }

/* ---------- 8. Detailed Services ---------- */
.detail-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.detail-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
@media (min-width: 800px) {
  .detail-card { flex-direction: row; align-items: stretch; }
  .detail-card.reverse { flex-direction: row-reverse; }
}

.detail-card-content {
  padding: var(--space-lg);
  flex: 1 1 50%;
  min-width: 0;
}

.detail-card-media {
  order: -1;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--clr-cream-alt);
}
@media (min-width: 800px) {
  .detail-card-media {
    order: 0;
    flex: 0 0 50%;
    width: auto;
    aspect-ratio: auto;
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
  }
}
.detail-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 800px) {
  .detail-card-media img {
    height: auto;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
  }
}

.detail-card-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.detail-card-head .service-icon { margin-bottom: 0; }
.detail-card-head h3 { margin-bottom: 0.3rem; }
.detail-card-head p { color: var(--clr-charcoal-soft); margin: 0; }

@media (max-width: 799px) {
  .detail-card-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.detail-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 0 0 var(--space-md);
}

.detail-list-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--clr-charcoal);
  margin-bottom: 0.6rem;
}

.detail-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: var(--space-lg);
}
@media (min-width: 460px) { .detail-checklist { columns: 2; } }
.detail-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3rem 0;
  break-inside: avoid;
  font-size: 0.92rem;
  color: var(--clr-charcoal-soft);
}
.detail-checklist li svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--clr-forest);
}
.detail-checklist li.is-extra { display: none; }
.detail-checklist.is-expanded li.is-extra { display: flex; }

.checklist-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: var(--space-sm) auto 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--clr-border);
  background: var(--clr-cream-alt);
  color: var(--clr-wood-dark);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.checklist-toggle:hover { background: var(--clr-tan-soft); border-color: var(--clr-wood-light); }
.checklist-toggle svg { flex-shrink: 0; transition: transform 0.2s ease; }
.checklist-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- 9. Service Area ---------- */
.area-layout {
  display: grid;
  align-items: start;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
.area-map-note {
  align-self: start;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  background: var(--clr-forest);
  color: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.area-map-note h3 { color: var(--clr-white); }
.area-map-note .btn {
  align-self: center;
  margin-inline: auto;
}
.area-cta-short { display: none; }
.area-radius-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--clr-border-light);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.city-columns {
  columns: 2;
  column-gap: var(--space-lg);
}
@media (min-width: 640px) { .city-columns { columns: 3; } }
.city-columns li {
  padding: 0.3rem 0;
  break-inside: avoid;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--clr-border);
}
.county-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}
.county-list li {
  background: var(--clr-cream-alt);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-wood-dark);
}
.area-note {
  background: var(--clr-cream-alt);
  border-left: 4px solid var(--clr-gold);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin: var(--space-md) 0;
  font-size: 0.95rem;
  text-align: center;
  color: var(--clr-charcoal-soft);
}
.area-note strong { color: var(--clr-charcoal); }

/* ---------- 10. Why Choose / Process / Featured Types ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-md);
}
.reason-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.reason-item .service-icon { width: 42px; height: 42px; }
.reasons-grid-centered .reason-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.reasons-grid-centered .reason-item .service-icon { margin-left: auto; margin-right: auto; }
.reason-item h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.reason-item p { color: var(--clr-charcoal-soft); font-size: 0.94rem; margin: 0; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  padding-top: var(--space-lg);
  text-align: center;
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-wood);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.process-step h3 { margin-top: var(--space-xs); }
.process-step p { color: var(--clr-charcoal-soft); font-size: 0.94rem; margin: 0; }

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.type-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  color: var(--clr-white);
  background: linear-gradient(160deg, var(--clr-wood-light), var(--clr-charcoal));
  box-shadow: var(--shadow-sm);
}
.type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
}
.type-card > * { position: relative; z-index: 1; }
.type-card h3 { color: var(--clr-white); margin-bottom: 0.25rem; }
.type-card p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin: 0; }
.type-card.alt-1 { background: linear-gradient(160deg, var(--clr-forest), var(--clr-charcoal)); }
.type-card.alt-2 { background: linear-gradient(160deg, var(--clr-gold), var(--clr-wood-dark)); }

/* ---------- 11. Portfolio Preview (homepage) ---------- */
.portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.preview-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.preview-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.preview-card-body { padding: var(--space-sm); }
.preview-card-body h3 { font-size: 1.02rem; margin-bottom: 0.15rem; text-align: center; }

/* ---------- 12. Quote / Final CTA ---------- */
.final-cta {
  background: linear-gradient(120deg, var(--clr-wood-dark), var(--clr-forest-dark));
  color: var(--clr-white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  margin: 0 var(--space-md);
}
.final-cta h2 { color: var(--clr-white); }
.final-cta p { color: rgba(255,255,255,0.88); max-width: 62ch; margin-left: auto; margin-right: auto; }
.final-cta .cta-row { justify-content: center; }

/* ---------- 13. Forms ---------- */
.form-wrapper {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.form-wrapper form,
.form-grid,
.form-field,
.form-fieldset { min-width: 0; }
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm) var(--space-md);
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full-width { grid-column: 1 / -1; }
}
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 700; font-size: 0.92rem; }
.form-field .required { color: var(--clr-wood); }
.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-cream);
  color: var(--clr-charcoal);
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--clr-wood);
  background: var(--clr-white);
}
.form-status {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  display: none;
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(44,74,54,0.12); color: var(--clr-forest-dark); border: 1px solid var(--clr-forest); }
.form-status.error { background: rgba(139,42,26,0.1); color: #7a2717; border: 1px solid #7a2717; }
.form-fieldset { border: none; padding: 0; margin: 0 0 var(--space-sm); }
.radio-row { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; }

/* Contact info cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.contact-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}
.contact-card .service-icon { margin: 0 auto var(--space-sm); }
.contact-card a, .contact-card p { color: var(--clr-charcoal-soft); }
.contact-card strong { display: block; color: var(--clr-charcoal); margin-bottom: 0.2rem; }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--clr-charcoal);
  color: rgba(255,255,255,0.78);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-lg);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
}
.footer-about { text-align: center; }
.footer-about .footer-brand { justify-content: center; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--clr-white); margin-bottom: var(--space-xs); }
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--clr-white);
}
.footer-brand-emblem {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}
.site-footer h3 { color: var(--clr-white); font-size: 1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-sm); }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer a:hover { color: var(--clr-white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-credit {
  margin: var(--space-sm) 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
}
.footer-credit a {
  color: var(--clr-tan);
  font-weight: 700;
}
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--clr-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--clr-white);
  color: var(--clr-forest-dark);
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.footer-social a:hover {
  background: var(--clr-white);
  border-color: var(--clr-white);
  color: var(--clr-wood);
  box-shadow: 0 5px 14px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* ---------- 15. Portfolio Page Specific ---------- */
.portfolio-hero {
  background:
    linear-gradient(120deg, rgba(42,38,34,0.86), rgba(74,45,25,0.78)),
    repeating-linear-gradient(100deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px),
    url("../images/hero-carpentry-workshop.webp") center 48% / cover no-repeat;
  color: var(--clr-white);
  padding: calc(var(--space-2xl) * 0.4) 0 calc(var(--space-lg) * 0.4);
  text-align: center;
}
.portfolio-hero h1 { color: var(--clr-white); max-width: 26ch; margin-inline: auto; }
.portfolio-hero p { max-width: 62ch; margin-inline: auto; color: rgba(255,255,255,0.85); }

/* Main project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}
.project-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.project-card[hidden] { display: none; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--clr-cream-alt);
  border: none;
  padding: 0;
  width: 100%;
  display: block;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-thumb .view-gallery-hint {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  color: var(--clr-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 1.4rem 0.8rem 0.6rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-align: left;
}
.project-card:hover .view-gallery-hint { opacity: 1; }
.project-card-body { padding: var(--space-sm); display: flex; flex-direction: column; gap: 0.4rem; flex-grow: 1; }
.project-card-body h3 { font-size: 1.05rem; margin: 0; text-align: center; }
.project-card-body p { font-size: 0.9rem; color: var(--clr-charcoal-soft); margin: 0; flex-grow: 1; }

/* ---------- 16. Modal / Lightbox ---------- */
.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(20, 17, 14, 0.86);
}
.pf-modal.is-open { display: flex; }
.pf-modal-dialog {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.pf-modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.pf-modal-close:hover { background: var(--clr-wood); color: var(--clr-white); border-color: var(--clr-wood); }
.pf-modal-gallery {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--clr-charcoal);
}
.pf-modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.pf-modal-gallery img.is-active { display: block; }
.pf-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.pf-modal-nav:hover { background: var(--clr-white); }
.pf-modal-nav.prev { left: var(--space-sm); }
.pf-modal-nav.next { right: var(--space-sm); }
.pf-modal-dots {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}
.pf-modal-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  padding: 0;
}
.pf-modal-dots button.is-active { background: var(--clr-white); width: 22px; border-radius: 4px; }
.pf-modal-body { padding: var(--space-lg); text-align: center; }
.pf-modal-actions { margin-top: var(--space-md); }
body.modal-open { overflow: hidden; }

/* ---------- 17. Utilities ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--clr-wood);
  color: var(--clr-white);
  padding: 0.75rem 1.2rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}
.lazy-fade {
  background: var(--clr-cream-alt);
}

/* ---------- Mobile quick actions ---------- */
.mobile-action-bar { display: none; }

@media (max-width: 799px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }

  .mobile-action-bar {
    position: fixed;
    z-index: 900;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 0.5rem;
    padding: 0.65rem max(0.75rem, env(safe-area-inset-left)) calc(0.65rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-right));
    background: rgba(247, 242, 232, 0.97);
    border-top: 1px solid var(--clr-border);
    box-shadow: 0 -8px 24px rgba(30, 28, 25, 0.15);
    backdrop-filter: blur(10px);
  }

  .mobile-action-bar .btn {
    min-width: 0;
    min-height: 48px;
    gap: 0.35rem;
    padding: 0.7rem 0.5rem;
    font-size: 0.88rem;
  }

  .mobile-action-bar svg { flex-shrink: 0; }
}

/* ---------- 18. Responsive ---------- */
@media (min-width: 881px) and (max-width: 1500px) {
  .hero,
  .portfolio-hero {
    background-image:
      linear-gradient(120deg, rgba(42,38,34,0.86), rgba(74,45,25,0.78)),
      repeating-linear-gradient(100deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px),
      url("../images/hero-carpentry-workshop-1440.webp");
  }
}

@media (max-width: 880px) {
  .hero,
  .portfolio-hero {
    background-image:
      linear-gradient(120deg, rgba(42,38,34,0.86), rgba(74,45,25,0.78)),
      repeating-linear-gradient(100deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px),
      url("../images/hero-carpentry-workshop-768.webp");
  }
  .header-logo { width: 250px; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--clr-cream);
    border-bottom: 1px solid var(--clr-border);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: var(--space-xs);
  }
  .main-nav a { display: block; padding: 0.85rem 0.5rem; }
  .main-nav a.nav-cta { text-align: center; margin-top: var(--space-xs); }
  .menu-toggle { display: flex; }
}

@media (min-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .area-layout { grid-template-columns: 1fr 1.1fr; }
}

/* Small phones: tighten header, spacing, and touch targets */
@media (max-width: 600px) {
  :root {
    --space-xl: 2.75rem;
    --space-2xl: 3.75rem;
  }
  .brand { font-size: 1.02rem; gap: 0.45rem; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-text-sub { display: none; }
  .hero { padding: calc(var(--space-xl) * 0.4) 0; }
  .hero-eyebrow {
    font-size: clamp(0.64rem, 3vw, 0.74rem);
    letter-spacing: 0;
    padding-inline: 0.4rem;
  }
  .hero-badge-primary {
    gap: 0.35rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .area-map-note {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
  }
  .area-map-note h3 {
    font-size: 1.3rem;
    text-align: center;
  }
  .area-map-note .btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.6rem;
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: nowrap;
    text-align: center;
  }
  .area-cta-full { display: none; }
  .area-cta-short { display: inline; }
  .community-heading,
  .county-heading { text-align: center; }
  .city-columns {
    columns: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
  }
  .city-columns li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.3rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: var(--clr-cream-alt);
    color: var(--clr-wood-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
  }
  .county-list {
    align-items: stretch;
    justify-content: center;
  }
  .county-list li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    text-align: center;
  }
  .type-card {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .form-wrapper {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
  }
  .site-footer { text-align: center; }
  .footer-grid { justify-items: center; }
  .footer-grid > div { width: 100%; }
  .footer-brand,
  .footer-social { justify-content: center; }
  .footer-brand-link { justify-content: center; }
  .site-footer .btn { margin-inline: auto; }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .header-inner {
    position: relative;
    justify-content: center;
  }
  .header-logo { width: 225px; }
  .menu-toggle {
    position: absolute;
    right: 8px;
  }
  .final-cta { padding: var(--space-lg) var(--space-md); margin: 0 var(--space-sm); }
  .checklist-toggle { padding: 0.55rem 1.1rem; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .hero h1 { font-size: clamp(1.65rem, 7.2vw, 1.85rem); }
  .pf-modal-body { padding: var(--space-md); }
  .pf-modal-nav { width: 38px; height: 38px; }
}

@media (max-width: 400px) {
  .brand { font-size: 0.78rem; gap: 0.35rem; }
  .brand-emblem { width: 38px; height: 38px; border-radius: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .header-logo { width: 220px; }
  .menu-toggle { right: 0; }
}
