/* Handley Lumber — Shops & Garages
   Design system lifted from the Deck Plan Pro landing page (decks.handleylumber.ca)
   so the two pages read as one family. Tokens copied verbatim from that project's
   src/styles.css. Fonts: Fraunces (display) + Inter (sans). */

:root {
  --radius: 0.5rem;

  --background: oklch(0.985 0.005 80);
  --foreground: oklch(0.22 0.012 60);
  --card: oklch(1 0 0);

  --primary: oklch(0.28 0.014 55);
  --primary-foreground: oklch(0.97 0.012 80);

  --secondary: oklch(0.94 0.014 75);
  --muted: oklch(0.95 0.010 78);
  --muted-foreground: oklch(0.48 0.015 60);

  --accent: oklch(0.72 0.095 60);
  --accent-foreground: oklch(0.20 0.012 55);

  --border: oklch(0.90 0.012 75);
  --ring: oklch(0.55 0.07 55);

  --wood: oklch(0.55 0.085 50);
  --wood-deep: oklch(0.38 0.065 45);
  --charcoal: oklch(0.22 0.012 60);
  --cream: oklch(0.97 0.012 80);
  --sand: oklch(0.92 0.018 75);
  --gold: oklch(0.72 0.095 70);

  --font-display: "Fraunces", "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --shadow-elevated: 0 30px 80px -30px color-mix(in oklab, var(--charcoal) 35%, transparent);
  --shadow-soft: 0 12px 40px -16px color-mix(in oklab, var(--charcoal) 18%, transparent);

  --maxw: 80rem;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.center { text-align: center; }
.italic-wood { font-style: italic; color: var(--wood); }
.italic-accent { font-style: italic; color: var(--accent); }

/* Section label. Plain letterspaced text, deliberately no pill and no status dot. */
.label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.label-light { color: color-mix(in oklab, var(--cream) 60%, transparent); }

.section { padding-block: 5rem; }
@media (min-width: 1024px) { .section { padding-block: 7rem; } }

.section-dark {
  background: var(--charcoal);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.section-dark .grain {
  position: absolute; inset: 0; opacity: 0.2; pointer-events: none;
  background-image: radial-gradient(oklch(0.97 0.012 80 / 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
}
.section-sand { background: color-mix(in oklab, var(--sand) 45%, var(--background)); }

.h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); line-height: 1.05; color: var(--charcoal); }
.h2 { font-size: clamp(1.875rem, 3.9vw, 3rem); line-height: 1.1; }
.h3 { font-size: 1.25rem; }
.lede {
  margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-foreground);
}
.section-dark .lede { color: color-mix(in oklab, var(--cream) 72%, transparent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: 0;
  padding: 1rem 2rem; font-size: 1rem;
  background: var(--charcoal); color: var(--cream);
  box-shadow: 0 10px 30px -10px oklch(0.22 0.012 60 / 0.45);
  transition: background .3s, box-shadow .3s, transform .3s;
}
.btn:hover {
  background: var(--wood-deep); transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px oklch(0.38 0.065 45 / 0.55);
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn svg { transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.btn-md { padding: 0.75rem 1.5rem; font-size: 0.9375rem; min-height: 2.75rem; }
/* .btn-lg was used on four buttons — including every primary conversion CTA —
   and defined in no stylesheet, so they all rendered at base .btn size. It is a
   step up from .btn, not a different button. */
.btn-lg { padding: 1.15rem 2.25rem; font-size: 1.0625rem; min-height: 3.25rem; }
.btn-accent { background: var(--accent); color: var(--on-accent, var(--charcoal)); }
.btn-accent:hover { background: var(--cream); color: var(--charcoal); }
.btn-ghost {
  background: transparent; color: var(--charcoal);
  border: 1px solid color-mix(in oklab, var(--charcoal) 20%, transparent); box-shadow: none;
}
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.5rem;
}
.site-header img { height: 2.5rem; width: auto; }
/* The brand link wraps a 40px logo, so the anchor inherited 40px and missed the
   44px target floor. */
.site-header > a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (min-width: 640px) { .site-header img { height: 3rem; } }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }

/* Hero */
.hero-eyebrow { margin-bottom: 1.25rem; }
.hero-grid { display: grid; gap: 2rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 2.5rem; margin-top: 3rem; }
}

/* Plan viewer */
.viewer {
  border: 1px solid var(--border); border-radius: 1rem; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-elevated);
}
.viewer-stage { position: relative; background: var(--sand); }
.viewer-stage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* Cycling plan loop. 16:9 to match the video block on the decks page. */
.viewer-stage-video { background: var(--charcoal); }
.viewer-stage-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.viewer-badge {
  position: absolute; left: 1rem; top: 1rem;
  background: color-mix(in oklab, var(--cream) 95%, transparent);
  color: var(--charcoal); border-radius: 999px;
  padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 500;
  box-shadow: var(--shadow-soft);
}
.viewer-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem;
  padding: 1.25rem 1.5rem 0;
}
.viewer-size { font-family: var(--font-display); font-size: 1.75rem; }
.viewer-type { color: var(--muted-foreground); font-size: 0.9375rem; }
.viewer-foot {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  padding: 1rem 1.5rem 1.5rem;
}
.thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  padding: 0 1.5rem 1.25rem;
}
@media (min-width: 640px) { .thumbs { grid-template-columns: repeat(6, 1fr); } }
.thumb {
  border: 1px solid var(--border); background: var(--card); cursor: pointer;
  border-radius: 0.5rem; padding: 0.5rem 0.25rem; font: inherit;
  font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground);
  transition: border-color .2s, color .2s, background .2s;
}
.thumb:hover { border-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.thumb[aria-pressed="true"] {
  background: var(--charcoal); color: var(--cream); border-color: var(--charcoal);
}

/* Form card */
.form-card {
  border: 1px solid var(--border); border-radius: 1rem; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-elevated);
}
.form-card-head {
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 50%, var(--card));
  padding: 1.25rem 1.5rem;
}
.form-card-head h2 { font-size: 1.375rem; color: var(--charcoal); }
.form-card-head p { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--muted-foreground); }
.form-holder { padding: 0.5rem; min-height: 560px; }
.form-holder iframe { width: 100%; min-height: 560px; border: 0; border-radius: 8px; }
.form-skeleton {
  width: 100%; min-height: 560px; border-radius: 8px;
  background: color-mix(in oklab, var(--muted) 60%, transparent);
  animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes pulse { 50% { opacity: .5; } }
.check-list { list-style: none; margin: 0; padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.check-list li {
  display: flex; gap: 0.5rem; align-items: flex-start;
  font-size: 0.9375rem; color: var(--muted-foreground);
}
.check-list li + li { margin-top: 0.5rem; }
.check-list svg { flex: 0 0 auto; margin-top: 0.15rem; color: var(--wood); }

/* Generic grids and cards */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card);
  padding: 1.75rem; transition: border-color .3s, box-shadow .3s, transform .3s;
}
.card:hover {
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: var(--shadow-soft); transform: translateY(-2px);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; color: var(--muted-foreground); line-height: 1.65; }

.card-dark {
  border: 1px solid color-mix(in oklab, var(--cream) 10%, transparent);
  background: color-mix(in oklab, var(--cream) 5%, transparent);
  border-radius: 0.75rem; padding: 1.75rem;
  transition: border-color .3s, background .3s;
}
.card-dark:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  background: color-mix(in oklab, var(--cream) 10%, transparent);
}
.card-dark h3 { font-size: 1.25rem; }
.card-dark p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.65;
  color: color-mix(in oklab, var(--cream) 70%, transparent); }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.step-n { font-family: var(--font-display); font-size: 1.875rem; color: var(--accent); }
.step-rule { height: 1px; width: 2.5rem; background: color-mix(in oklab, var(--cream) 20%, transparent); }

/* Numbered problem list */
.pointlist { list-style: none; margin: 0; padding: 0; }
.pointlist li { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.pointlist li:last-child { border-bottom: 1px solid var(--border); }
.pointlist .n {
  font-family: var(--font-display); font-size: 0.875rem; color: var(--accent);
  flex: 0 0 auto; padding-top: 0.2rem; letter-spacing: 0.05em;
}
.pointlist h3 { font-size: 1.0625rem; }
.pointlist p { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--muted-foreground); }

/* Plan library cards */
.plan-card {
  border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden;
  background: var(--card); display: flex; flex-direction: column;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.plan-card:hover {
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: var(--shadow-soft); transform: translateY(-2px);
}
.plan-card img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.plan-card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.plan-card-size { font-family: var(--font-display); font-size: 1.5rem; }
.plan-card-type { font-size: 0.9375rem; color: var(--muted-foreground); }
.plan-card-links { margin-top: auto; padding-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.textlink {
  font-size: 0.9375rem; font-weight: 500; color: var(--wood);
  text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--wood) 35%, transparent);
  padding-bottom: 1px;
}
.textlink:hover { color: var(--wood-deep); border-bottom-color: currentColor; }

/* Spec columns */
.spec-cols { display: grid; gap: 2rem; }
@media (min-width: 900px) { .spec-cols { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.spec-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.spec-list li {
  font-size: 0.9375rem; color: var(--muted-foreground);
  padding: 0.5rem 0 0.5rem 1.25rem; position: relative;
}
.spec-list li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--accent);
}

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.5rem 2.5rem 1.5rem 0;
  font-family: var(--font-display); font-size: 1.125rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 1.9rem;
  width: 0.6rem; height: 0.6rem; border-right: 1.5px solid var(--muted-foreground);
  border-bottom: 1.5px solid var(--muted-foreground); transform: rotate(45deg);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding: 0 0 1.5rem; font-size: 0.9375rem; color: var(--muted-foreground); line-height: 1.7; }

/* Sticky CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: color-mix(in oklab, var(--charcoal) 96%, transparent);
  color: var(--cream); padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  transform: translateY(100%); transition: transform .35s ease;
  box-shadow: 0 -10px 30px -12px oklch(0.22 0.012 60 / 0.5);
}
.sticky-cta.show { transform: translateY(0); }
/* The bar is fixed and shown for almost the whole page, so nothing accounted
   for its 70px. It was covering the top third of end-of-section disclosures. */
html { scroll-padding-bottom: 5.5rem; }
body { padding-bottom: 4.5rem; }
.sticky-cta p { font-size: 0.9375rem; }
@media (max-width: 640px) { .sticky-cta p { display: none; } }

/* Footer */
.site-footer {
  background: var(--charcoal); color: color-mix(in oklab, var(--cream) 90%, transparent);
  padding-block: 3rem; font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid color-mix(in oklab, var(--cream) 12%, transparent);
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  font-size: 0.9375rem; color: color-mix(in oklab, var(--cream) 78%, transparent);
}
.footer-logo { height: 3rem; width: auto; margin-bottom: 1rem; }

/* Placeholder marker for content awaiting client sign-off. */
.placeholder {
  border: 1px dashed color-mix(in oklab, var(--wood) 45%, transparent);
  background: color-mix(in oklab, var(--sand) 40%, var(--background));
  border-radius: 0.75rem; padding: 1.5rem;
}
.placeholder p { font-size: 0.875rem; color: var(--muted-foreground); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── header call + consent + Google reviews (v1.8.2) ───────────────────── */
.header-actions{ display:flex; align-items:center; gap:1rem; }
/* Icon-only at small widths, so it must carry its own 44px target — it was
   measuring 16x16, the one-tap "call the yard" affordance on a phone. */
.header-tel{ display:inline-flex; align-items:center; justify-content:center;
  min-width:2.75rem; min-height:2.75rem; gap:.45rem; font-family:var(--font-sans);
  font-weight:600; font-size:.9375rem; text-decoration:none; white-space:nowrap; }
.consent-note{ margin-top:.75rem; font-family:var(--font-sans); font-size:.8125rem; line-height:1.55; opacity:.75; text-align:left; }
.gr-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; margin-top:2.5rem; text-align:left; }
@media (max-width:820px){ .gr-grid{ grid-template-columns:1fr; } }
.gr-card{ border:1px solid var(--border); border-radius:var(--radius); background:#fff; padding:1.5rem; display:flex; flex-direction:column; gap:.75rem; }
.gr-stars{ letter-spacing:.15em; font-size:.9375rem; }
.gr-card blockquote{ margin:0; font-size:.9375rem; line-height:1.6; flex:1; }
/* 15px floor: this line only renders for members with verified Google reviews,
   so it stayed below the floor until an audit ran against one of them. */
.gr-who{ font-family:var(--font-sans); font-size:.9375rem; opacity:.7; }
