/* Shaggy Mane Carpentry - site styles. Plain CSS, no build step.
   Colors and fonts live in :root so they are easy to change. */

@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #1f3a2e;
  --forest-deep: #162a21;
  --bark: #3d281a;
  --charcoal: #2b2622;
  --wood: #a9743f;
  --tan: #d3a96f;
  --tan-soft: #ead9bb;
  --cream: #faf2e1;
  --paper: #fffaf0;
  --muted: #5d5247;
  --line: #e0d2b6;
  --radius: 10px;
  --shadow: 0 6px 22px rgba(43, 38, 34, 0.12);
  --slab: "Roboto Slab", Rockwell, "Rockwell Nova", "Courier New", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--wood); }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 {
  font-family: var(--slab);
  font-weight: 800;
  line-height: 1.2;
  color: var(--bark);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); font-weight: 900; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--forest); color: var(--cream); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 0.75rem; color: var(--cream); }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--slab); text-transform: uppercase; line-height: 1; color: var(--bark);
  text-decoration: none; font-size: 1.5rem; /* the whole lockup scales from this one size */
}
.wm-top { font-weight: 900; font-size: 1em; letter-spacing: 0.04em; }
/* CARPENTRY is spaced out so it is as wide as SHAGGY MANE */
.wm-bot { font-weight: 600; font-size: 0.56em; letter-spacing: 0.99em; margin-right: -0.99em; margin-top: 0.5em; }
.wordmark.on-dark { color: var(--cream); }
.wordmark.big { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.footer-brand .wordmark { font-size: 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--bark);
  position: sticky; top: 0; z-index: 50;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.nav-toggle { display: none; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 6px;
  font-weight: 700; color: var(--bark); text-decoration: none;
}
.nav a:hover { background: var(--tan-soft); color: var(--bark); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--wood); border-radius: 0; }
.nav a.nav-cta { background: var(--forest); color: var(--cream); }
.nav a.nav-cta:hover { background: var(--wood); color: #fff; }

/* JS adds .js to <html>; without JS the menu just stays visible and wraps */
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 2px solid var(--bark); color: var(--bark);
  font: inherit; font-weight: 800; padding: 0.4rem 0.8rem; border-radius: 8px; cursor: pointer;
}
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; }
  .js .nav { display: none; width: 100%; }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; align-items: stretch; padding: 0.4rem 0 0.8rem; }
  .nav ul { justify-content: flex-start; }
  .nav { width: 100%; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--wood); }
}
@media (min-width: 861px) { .nav-toggle { display: none !important; } .js .nav { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--slab); font-weight: 800; font-size: 1rem;
  padding: 0.8rem 1.4rem; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--tan); color: var(--forest-deep); border-color: var(--tan); }
.btn-primary:hover { background: #e2bd86; color: var(--forest-deep); }
.btn-dark { background: var(--forest); color: var(--cream); }
.btn-dark:hover { background: var(--wood); color: #fff; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--tan); }
.btn-ghost:hover { background: rgba(211, 169, 111, 0.18); color: #fff; }
.btn-ghost.on-light { color: var(--forest); border-color: var(--forest); }
.btn-ghost.on-light:hover { background: var(--tan-soft); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 2rem; align-items: center; padding: clamp(2.5rem, 7vw, 5rem) 0; }
.hero h1 { color: var(--cream); margin: 1.5rem 0 0.6rem; }
.hero .lead { font-size: 1.2rem; max-width: 34em; color: #f0e6cf; }
.hero .eyebrow { color: var(--tan); }
.hero-mark { justify-self: center; width: min(320px, 70%); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35)); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-mark { order: -1; justify-self: start; width: 150px; }
}
.eyebrow { font-family: var(--slab); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; font-size: 0.85rem; color: var(--wood); margin: 0 0 0.5rem; }

.page-hero { background: var(--forest); color: var(--cream); padding: clamp(2rem, 5vw, 3.2rem) 0; border-bottom: 4px solid var(--wood); }
.page-hero h1 { color: var(--cream); margin-bottom: 0.3em; }
.page-hero p { margin: 0; max-width: 40em; font-size: 1.15rem; color: #f0e6cf; }
.page-hero .eyebrow { color: var(--tan); }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.2rem) 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section.dark { background: var(--forest); color: var(--cream); }
.section.dark h2, .section.dark h3 { color: var(--cream); }
.section-head { max-width: 40em; margin-bottom: 2rem; }

.grid { display: grid; gap: 1.2rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--wood);
  border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; box-shadow: 0 2px 0 rgba(61, 40, 26, 0.06);
}
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 800; }
.section.alt .card { background: var(--cream); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.9rem; height: 0.5rem;
  border-left: 3px solid var(--wood); border-bottom: 3px solid var(--wood); transform: rotate(-45deg) translateY(-50%);
}

.service-block { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: 0; }
.service-block h2 { font-size: 1.6rem; margin: 0; }
@media (max-width: 700px) { .service-block { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ---------- Gallery ---------- */
.job {
  padding: clamp(2.5rem, 6vw, 4.2rem) 0;
  scroll-margin-top: 5.5rem;
}
.job + .job { border-top: 1px solid var(--line); }
.job.muted { background: var(--paper); }
.job-head { max-width: 42em; margin-bottom: 1.6rem; }
.job-head h2 { margin-bottom: 0.4em; }

.job-photos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}
.job-photos > li { min-width: 0; }

.shot { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 rgba(61, 40, 26, 0.06); }
.shot img, .shot .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.job-photos > li.landscape { grid-column: span 2; }
.job-photos > li.portrait { grid-column: span 3; }
.job-photos > li.cover { grid-column: span 6; }
.shot.cover img { aspect-ratio: 16 / 9; }
.shot.landscape img { aspect-ratio: 16 / 9; }
.shot.portrait img { aspect-ratio: 3 / 4; }

.shot button.zoom { all: unset; display: block; width: 100%; cursor: zoom-in; }
.shot button.zoom:focus-visible { outline: 3px solid var(--wood); outline-offset: -3px; }
.shot a.shot-link { display: block; color: inherit; text-decoration: none; }
.shot a.shot-link:hover img { filter: brightness(1.05); }
.shot a.shot-link:focus-visible { outline: 3px solid var(--wood); outline-offset: -3px; }

.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  background: repeating-linear-gradient(135deg, var(--tan-soft) 0 14px, #f1e4c8 14px 28px);
  color: var(--muted); text-align: center; padding: 1rem;
}
.ph img { width: 64px; opacity: 0.55; aspect-ratio: auto; }
.ph span { font-family: var(--slab); font-weight: 700; font-size: 0.95rem; }
.shot figcaption { padding: 0.75rem 1rem 0.9rem; font-size: 0.97rem; }
.shot figcaption strong { display: block; font-family: var(--slab); color: var(--bark); }
.shot figcaption span { color: var(--muted); }

/* Equal portrait grids (no wide cover). */
.job-photos.grid-2 { grid-template-columns: repeat(2, 1fr); }
.job-photos.grid-3 { grid-template-columns: repeat(3, 1fr); }
.job-photos.grid-4 { grid-template-columns: repeat(2, 1fr); }
.job-photos.grid-2 > li,
.job-photos.grid-2 > li.cover,
.job-photos.grid-2 > li.portrait,
.job-photos.grid-2 > li.landscape,
.job-photos.grid-3 > li,
.job-photos.grid-3 > li.cover,
.job-photos.grid-3 > li.portrait,
.job-photos.grid-3 > li.landscape,
.job-photos.grid-4 > li,
.job-photos.grid-4 > li.cover,
.job-photos.grid-4 > li.portrait,
.job-photos.grid-4 > li.landscape {
  grid-column: auto;
}
.job-photos.grid-2 .shot.cover img,
.job-photos.grid-2 .shot img,
.job-photos.grid-3 .shot.cover img,
.job-photos.grid-3 .shot img,
.job-photos.grid-4 .shot.cover img,
.job-photos.grid-4 .shot img {
  aspect-ratio: 3 / 4;
}

.shot { position: relative; }
.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
  font-family: var(--slab);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  pointer-events: none;
  line-height: 1;
}
.badge-before { background: var(--bark); color: var(--cream); }
.badge-after { background: var(--forest); color: var(--cream); }

/* Wide cover, then three photos in one row (two landscape, one portrait is fine). */
/* Wide cover, then two photos side by side (landscape + portrait is fine). */
.job-photos.cover-plus-2 > li:not(.cover) { grid-column: span 3; }
@media (max-width: 860px) {
  .job-photos.cover-plus-2 > li:not(.cover) { grid-column: span 1; }
  .job-photos.cover-plus-2 > li.cover { grid-column: span 2; }
}

.job-photos.cover-plus-3 > li:not(.cover) { grid-column: span 2; }
@media (max-width: 860px) {
  .job-photos.cover-plus-3 > li:not(.cover) { grid-column: span 1; }
  .job-photos.cover-plus-3 > li.cover { grid-column: span 2; }
}

@media (max-width: 860px) {
  .job-photos { grid-template-columns: repeat(2, 1fr); }
  .job-photos > li.landscape, .job-photos > li.portrait { grid-column: span 1; }
  .job-photos > li.cover { grid-column: span 2; }
}
@media (max-width: 520px) {
  .job-photos { grid-template-columns: 1fr; }
  .job-photos > li.cover,
  .job-photos > li.landscape,
  .job-photos > li.portrait { grid-column: auto; }
}

@media (max-width: 860px) {
  .job-photos.grid-2,
  .job-photos.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .job-photos.grid-2 > li.cover,
  .job-photos.grid-3 > li.cover,
  .job-photos.grid-4 > li.cover { grid-column: auto; }
}
@media (max-width: 700px) {
  .job-photos.grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .job-photos.grid-2,
  .job-photos.grid-3,
  .job-photos.grid-4 { grid-template-columns: 1fr; }
}

/* Home page teaser: full-width cover, then two supporting photos */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "main main" "stair ext";
  gap: 1rem;
}
.teaser-main { grid-area: main; }
.teaser-ext { grid-area: ext; }
.teaser-stair { grid-area: stair; }
.teaser-grid .shot-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.teaser-grid .shot { height: 100%; display: flex; flex-direction: column; }
.teaser-grid .shot img { width: 100%; }
.teaser-main img { aspect-ratio: 16 / 9; object-fit: cover; }
.teaser-ext img { aspect-ratio: 3 / 4; object-fit: cover; }
.teaser-stair img { aspect-ratio: 3 / 4; object-fit: cover; }
.teaser-grid .shot-link:hover img { filter: brightness(1.05); }
.teaser-grid .shot-link:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }
@media (max-width: 700px) {
  .teaser-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "stair" "ext";
  }
  .teaser-main img { aspect-ratio: 16 / 9; }
  .teaser-ext img, .teaser-stair img { aspect-ratio: 3 / 4; }
}

.lightbox { border: 0; padding: 1rem; background: var(--forest-deep); border-radius: 12px; max-width: min(1000px, 94vw); }
.lightbox::backdrop { background: rgba(22, 42, 33, 0.88); }
.lightbox img { max-height: 80vh; width: auto; max-width: min(100%, 90vw); height: auto; display: block; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.lightbox p { color: var(--cream); text-align: center; margin: 0.7rem 0 0; }
.lightbox button { display: block; margin: 0 0 0.8rem auto; }

/* ---------- Reviews ---------- */
.stars { letter-spacing: 0.15em; color: var(--wood); font-size: 1.15rem; line-height: 1; margin: 0 0 0.55rem; }
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0 0 1.2rem;
  background: var(--paper);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .map-embed { aspect-ratio: 4 / 3; } }
.reviews-toolbar { margin: 0 0 1.8rem; }

/* ---------- Reviews ---------- */
.review { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--tan); border-radius: var(--radius); padding: 1.3rem; margin: 0; }
.review blockquote { margin: 0 0 0.8rem; font-family: var(--slab); font-size: 1.1rem; color: var(--bark); }
.review.placeholder blockquote { color: var(--muted); font-style: italic; font-weight: 500; }
.review figcaption { color: var(--muted); font-size: 0.95rem; }
.stars-ph { letter-spacing: 0.2em; color: var(--line); font-size: 1.2rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.2rem; align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.portrait.ph { aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--line); }
.about-photo { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.facts dt { font-weight: 800; color: var(--bark); }
.facts dd { margin: 0; }
.todo { background: #fff3cf; border: 2px dashed var(--wood); border-radius: 6px; padding: 0.1rem 0.45rem; font-size: 0.92em; color: #5a3b12; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form.quote { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--wood); border-radius: var(--radius); padding: 1.4rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 800; margin-bottom: 0.3rem; color: var(--bark); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--charcoal); background: #fff;
  border: 2px solid #cdbd9c; border-radius: 8px; padding: 0.65rem 0.75rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: 3px solid rgba(169, 116, 63, 0.35); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.side-card { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 1.4rem; }
.side-card h2 { color: var(--cream); font-size: 1.4rem; }
.side-card a { color: var(--tan); font-weight: 800; }
.side-card a:hover { color: #fff; }
.side-card .big { font-family: var(--slab); font-size: 1.5rem; font-weight: 800; display: block; margin-bottom: 0.4rem; text-decoration: none; }
.notice { background: var(--tan-soft); border-left: 5px solid var(--wood); padding: 0.8rem 1rem; border-radius: 6px; margin-bottom: 1.2rem; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--wood); color: #fff; padding: 2.4rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0.3rem 0 0; color: #fdf2de; }
.cta-band .btn-primary { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--cream); }
.cta-band .btn-primary:hover { background: #000; color: #fff; }

.site-footer { background: var(--forest-deep); color: #e8dcc2; padding: 2.4rem 0 1.4rem; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }
.site-footer a { color: var(--tan); }
.site-footer a:hover { color: #fff; }
.site-footer h2 { font-size: 1rem; color: var(--cream); text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.footer-brand { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.8rem; }
.footer-brand img { width: 56px; }
.legal { border-top: 1px solid rgba(232, 220, 194, 0.2); margin-top: 1.8rem; padding-top: 1rem; font-size: 0.88rem; color: #bfb299; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .site-header, .cta-band, .nav-toggle { display: none; } body { background: #fff; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) { .facts dl { grid-template-columns: 1fr; gap: 0.1rem; } .facts dd { margin-bottom: 0.7rem; } }
