/* West Coast Builders Group — builders626.com
   Rebuilt from the Squarespace site (2026-10-05). Same palette and type as the original:
   cream FFFCF2 / FAF5E4, tan BEAB7B, ink 262020, orange E0592E, Hanken Grotesk + DM Sans. */
:root {
  --cream: #fffcf2; --cream-2: #faf5e4; --tan: #beab7b; --ink: #262020; --ink-2: #4a4242;
  --orange: #e0592e; --orange-dk: #c44a22; --line: #e8e0c8; --white: #fff;
  --head: "Hanken Grotesk", system-ui, sans-serif; --body: "DM Sans", system-ui, sans-serif;
  --wrap: 1180px; --gut: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17.5px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; letter-spacing: .01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(22px, 2.6vw, 32px); }
h4 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }

/* header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; }
.site-header.solid { position: relative; background: var(--cream); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; }
.logo img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; font-size: 15px; color: var(--cream); }
.solid .nav a { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--orange); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px;
  background: var(--orange); color: #fff !important; text-decoration: none; text-transform: uppercase; letter-spacing: .05em;
  font: 500 16px/1.2 var(--body); border: 0; border-radius: 999px; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--orange-dk); }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff !important; }
.menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center; color: var(--cream); }
  .solid .menu summary { color: var(--ink); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary svg { width: 30px; height: 30px; }
  .menu[open] .panel { position: fixed; inset: 0; background: var(--cream); z-index: 30; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 28px; }
  .menu .panel a { color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 22px; }
  .menu .panel .btn { font-size: 18px; }
  .menu .close { position: absolute; top: 24px; right: var(--gut); font-size: 40px; line-height: 1; color: var(--ink); }
  .logo img { height: 60px; }
  .bar { min-height: 80px; }
}

/* hero */
.hero { position: relative; color: var(--cream); background: var(--ink) center/cover no-repeat; display: flex; align-items: center;
  min-height: 62vh; padding: 140px 0 80px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,16,16,.55), rgba(20,16,16,.45)); }
.hero > * { position: relative; }
.hero.tall { min-height: 92vh; }
.hero h1 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.chips span { border: 1px solid rgba(255,252,242,.55); background: rgba(255,252,242,.12); backdrop-filter: blur(4px);
  border-radius: 12px; padding: 10px 18px; font: 500 19px/1.2 var(--head); }

/* sections */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec.alt { background: var(--cream-2); }
.sec.tan { background: var(--tan); color: var(--cream); }
.sec.dark { background: var(--ink); color: var(--cream); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 500; font-size: 14px; color: var(--orange); margin-bottom: 10px; }
.tan .eyebrow, .dark .eyebrow { color: var(--cream); opacity: .85; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 760px; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split img, .photo { border-radius: 14px; width: 100%; object-fit: cover; aspect-ratio: 4/3; box-shadow: 0 10px 30px rgba(38,32,32,.12); }
.grid { display: grid; gap: clamp(18px, 3vw, 30px); }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 6px 20px rgba(38,32,32,.06); }
.card h4 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 14px; }
.card .thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.service { text-align: center; text-decoration: none; display: block; }
.service .icon { margin: 0 auto 12px; width: 84px; height: 84px; }
.service h4 { font-size: 20px; margin: 0; }
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 34px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--orange); color: #fff; font: 600 16px/34px var(--body); text-align: center; }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.center .cta { justify-content: center; }

/* team */
.team { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 44px); align-items: start; padding: 34px 0; border-top: 1px solid var(--line); }
.team:first-child { border-top: 0; }
.team img { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 8px 24px rgba(38,32,32,.14); }
.team .role { text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--orange); font-weight: 500; margin-bottom: 12px; }

/* contact */
.contact-btns { display: grid; gap: 12px; max-width: 520px; }
.contact-btns .btn { justify-content: flex-start; padding: 14px 22px; text-transform: none; letter-spacing: 0; font-size: 17px; border-radius: 14px; }
.contact-btns .btn svg { width: 22px; height: 22px; flex: none; }
.contact-btns small { display: block; opacity: .85; font-size: 14px; }

/* posts / downloads */
.post-card { display: grid; grid-template-columns: 300px 1fr; gap: 26px; text-decoration: none; align-items: center; }
.post-card img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }
.meta { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.article { max-width: 760px; margin: 0 auto; }
.article img { border-radius: 14px; margin: 0 0 28px; }
.dl { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-decoration: none; }
.dl strong { font: 500 21px/1.25 var(--head); display: block; }
.dl span { color: var(--ink-2); font-size: 15px; }
.dl .arrow { font-size: 26px; color: var(--orange); flex: none; }
.dl.feature { border: 2px solid var(--orange); }
.map { width: 100%; height: min(70vh, 640px); border: 0; border-radius: 14px; background: var(--cream-2); }

/* footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 64px 0 28px; font-size: 16px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr; gap: 32px; }
.site-footer h4 { font-size: 19px; color: #fff; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--tan); }
.site-footer p { margin: 0 0 .4em; color: #e9e2cf; }
.site-footer nav a { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; margin-bottom: 10px; color: #e9e2cf; }
.copy { border-top: 1px solid rgba(255,252,242,.15); margin-top: 40px; padding-top: 20px; font-size: 13px; text-transform: uppercase;
  letter-spacing: .08em; color: #bdb4a0; }

@media (max-width: 900px) {
  .split, .g2, .g3 { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr; text-align: center; }
  .team img { width: 180px; margin: 0 auto; }
  .post-card { grid-template-columns: 1fr; }
  .hero { min-height: 52vh; padding: 120px 0 56px; }
  .hero.tall { min-height: 86vh; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .foot { grid-template-columns: 1fr; }
  .chips span { font-size: 16px; padding: 8px 14px; }
  .g4 { gap: 14px; }
  .card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ── Phone makeover (2026-10-05) — phone width only; desktop unchanged ─────────────────────── */
.callbar, .proof, .more, .swipe-hint { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* always-there Call / Text bar */
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,252,242,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(38,32,32,.08); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px;
    background: var(--orange); color: #fff; text-decoration: none; font: 600 17px/1 var(--body); }
  .callbar a + a { background: var(--ink); }
  .callbar svg { width: 20px; height: 20px; }
  /* proof in numbers */
  .proof { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 16px; background: var(--ink); color: var(--cream);
    font-size: 14px; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .proof::-webkit-scrollbar { display: none; }
  .proof span { flex: none; border: 1px solid rgba(255,252,242,.25); border-radius: 999px; padding: 6px 12px; }
  .proof b { color: var(--tan); }
  /* shorter heroes, tighter sections */
  .hero { min-height: 40vh; padding: 110px 0 40px; }
  .hero.tall { min-height: 74vh; }
  .sec { padding: 44px 0; }
  .split { gap: 20px; }
  .split img, .photo { aspect-ratio: 16/10; }
  /* headline first, details folded */
  .fold.folded .fold-body { max-height: 6.4em; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .more { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 8px 0; min-height: 44px; background: none; border: 0;
    color: var(--orange); font: 600 16px/1 var(--body); cursor: pointer; }
  .more::after { content: "▾"; font-size: 13px; }
  .fold:not(.folded) .more::after { content: "▴"; }
  /* swipe through card rows instead of scrolling past them */
  .grid.swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-left: calc(-1 * var(--gut));
    margin-right: calc(-1 * var(--gut)); padding: 18px var(--gut) 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .grid.swipe::-webkit-scrollbar { display: none; }
  .grid.swipe > .card { flex: 0 0 82%; scroll-snap-align: start; }
  .steps.swipe .card { margin-top: 0; }
  .swipe-hint { display: block; margin: 2px 0 0; font-size: 14px; color: var(--ink-2); text-align: right; }
  .team { padding: 26px 0; }
  .team img { width: 150px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) { .grid.swipe { scroll-behavior: smooth; } }
@media (max-width: 760px) {
  /* Remodeling's four photo blocks → one swipe row of cards */
  .stack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 24px calc(-1 * var(--gut)) 0;
    padding: 0 var(--gut) 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .stack::-webkit-scrollbar { display: none; }
  .stack > .split { flex: 0 0 82%; scroll-snap-align: start; display: block; margin-top: 0 !important; background: var(--white);
    border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
  .stack > .split img { margin-bottom: 12px; }
}
/* Services: numbered service headers + the single "first step" card (2026-10-05) */
.svc-h { display: flex; align-items: center; gap: 14px; }
.svc-h span { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center;
  font: 600 22px/1 var(--body); }
.first-step { max-width: 900px; margin-top: 26px; }
/* Home service tiles (2026-10-05): a short line under each title, and a hover lift so they read as links */
.service .svc-sub { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.service { transition: transform .15s ease, box-shadow .15s ease; }
.service:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(38,32,32,.12); }
@media (max-width: 900px) { .grid.g3 > .service { display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; text-align: left; align-items: center; }
  .grid.g3 > .service .icon { grid-row: span 2; margin: 0; width: 64px; height: 64px; } .grid.g3 > .service h4 { align-self: end; } .grid.g3 > .service .svc-sub { margin: 0; align-self: start; } }
@media (prefers-reduced-motion: reduce) { .service { transition: none; } }
/* Blog posts (2026-10-05) */
.article h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.6em; }
.article ul, .article ol { padding-left: 1.25em; margin: 0 0 1em; }
.article li { margin-bottom: .55em; }
.article .post-box { background: var(--cream-2); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 14px; padding: 20px 22px; margin: 28px 0; }
.article .post-box p { margin-bottom: 14px; }
.article .source { font-size: 14px; color: var(--ink-2); margin-top: 28px; }
/* 5 nav items + button (Updates added 2026-10-05): tighten on mid-size screens so it stays one row */
@media (max-width: 1200px) { .nav { gap: 20px; } .nav a { letter-spacing: .06em; font-size: 14px; } .nav .btn { padding: 10px 18px; } .logo img { height: 60px; } }
/* "make it obvious so they click and read" (Harrison 2026-10-05): new-article banner + featured card */
.pill { display: inline-block; background: var(--orange); color: #fff; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; vertical-align: 2px; }
.newbar { display: flex; align-items: center; gap: 12px; padding: 14px var(--gut); background: var(--cream-2); border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); }
.newbar .nb-t { flex: 1; font: 600 16px/1.3 var(--body); }
.newbar .nb-go { flex: none; color: var(--orange); font-weight: 700; white-space: nowrap; }
.newbar:hover .nb-t { text-decoration: underline; }
@media (min-width: 761px) { .newbar { justify-content: center; } .newbar .nb-t { flex: 0 1 auto; } }
.post-card.featured { border: 2px solid var(--orange); box-shadow: 0 14px 34px rgba(224,89,46,.14); }
.post-card.featured h3 { font-size: clamp(24px, 2.8vw, 32px); }
.post-card.featured .excerpt { color: var(--ink-2); margin: 8px 0 18px; }
.post-card.featured .btn { pointer-events: none; }
/* Field Notes (2026-10-05) */
.tag { display: inline-block; border: 1px solid var(--tan); color: var(--ink-2); font: 600 12px/1 var(--body); letter-spacing: .04em;
  padding: 5px 9px; border-radius: 999px; vertical-align: 2px; margin-right: 4px; }
.hero-sub { margin: 12px 0 0; font-size: 19px; opacity: .92; }
.post-card .excerpt { color: var(--ink-2); margin: 6px 0 12px; }
.article .post-box.has-qr { display: flex; gap: 20px; align-items: center; }
.article .post-box .post-qr { flex: none; width: 120px; height: 120px; border-radius: 8px; background: #fff; padding: 6px; }
@media (max-width: 760px) { .article .post-box .post-qr { display: none; } }   /* a QR is for scanning FROM a screen — not on the phone itself */
