/* ==========================================================================
   NW Premier Carpentry — Master Stylesheet
   Brand: Timber Black on Kraft Tan
   Version 1.0 · May 2026
   ========================================================================== */

/* ---------- Brand tokens ---------- */
:root {
  /* Palette */
  --c-timber-black: #0F0F0F;
  --c-kraft-tan: #D6C5A3;
  --c-timber-gold: #B8865A;
  --c-bone: #EFE8DD;
  --c-cream-paper: #F7F1E6;
  --c-deep-ink: #1A1A1A;
  --c-slate: #5A5A5A;
  --c-line: rgba(15, 15, 15, 0.12);

  /* Type stack */
  --font-display: 'Cormorant Garamond', 'Trajan Pro', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

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

  /* Layout */
  --container-max: 1240px;
  --content-max: 720px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* Transitions */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-deep-ink);
  background: var(--c-cream-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--c-timber-black); text-decoration-color: var(--c-timber-gold); text-underline-offset: 3px; }
a:hover { color: var(--c-timber-gold); }
hr { border: none; border-top: 1px solid var(--c-line); margin: var(--space-lg) 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-timber-black);
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-sm);
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.15rem; }
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-timber-gold);
  margin: 0 0 var(--space-xs);
}
.lede { font-size: 1.25rem; line-height: 1.6; color: var(--c-deep-ink); max-width: 60ch; }
p { margin: 0 0 var(--space-sm); max-width: 68ch; }
blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--c-timber-black);
  border-left: 3px solid var(--c-timber-gold);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  max-width: 60ch;
  font-style: italic;
}
.text-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-slate);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.container-narrow { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-2xl) 0; }
section.tight { padding: var(--space-xl) 0; }
section.dark { background: var(--c-timber-black); color: var(--c-bone); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--c-bone); }
section.dark .eyebrow { color: var(--c-timber-gold); }
section.tan { background: var(--c-kraft-tan); }
section.bone { background: var(--c-bone); }

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.flex { display: flex; gap: var(--space-md); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xs) var(--space-md);
  gap: var(--space-md);
}
.site-header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-header__logo svg { width: 48px; height: auto; }
.site-header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--c-timber-black);
  line-height: 1.1;
}
.site-header__logo-text span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--c-timber-gold);
  margin-top: 2px;
}
.site-nav { display: flex; gap: var(--space-md); align-items: center; }
.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-deep-ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { border-bottom-color: var(--c-timber-gold); color: var(--c-timber-black); }

.site-nav__cta {
  background: var(--c-timber-black);
  color: var(--c-bone) !important;
  padding: 10px 18px !important;
  border-radius: var(--radius-sm);
  border-bottom: none !important;
  transition: background 0.2s var(--ease);
}
.site-nav__cta:hover { background: var(--c-timber-gold); border-bottom: none !important; }

.nav-toggle {
  display: none; background: none; border: none; padding: 8px; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-cream-paper);
    padding: var(--space-md);
    border-bottom: 1px solid var(--c-line);
    gap: var(--space-sm);
  }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--c-timber-black);
  background: var(--c-timber-black);
  color: var(--c-bone);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn:hover { background: var(--c-timber-gold); border-color: var(--c-timber-gold); color: var(--c-bone); }
.btn--secondary {
  background: transparent; color: var(--c-timber-black); border-color: var(--c-timber-black);
}
.btn--secondary:hover { background: var(--c-timber-black); color: var(--c-bone); }
.btn--gold {
  background: var(--c-timber-gold); border-color: var(--c-timber-gold); color: var(--c-bone);
}
.btn--gold:hover { background: var(--c-timber-black); border-color: var(--c-timber-black); color: var(--c-bone); }
.btn--on-dark { background: var(--c-bone); border-color: var(--c-bone); color: var(--c-timber-black); }
.btn--on-dark:hover { background: var(--c-timber-gold); border-color: var(--c-timber-gold); color: var(--c-bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  padding: var(--space-2xl) 0;
  background: var(--c-timber-black);
  color: var(--c-bone);
  overflow: hidden;
}
.hero__image {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #0F0F0F 0%, #1A1A1A 50%, #2A2017 100%);
  opacity: 0.92;
}
.hero__image::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 70%, rgba(184, 134, 90, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(214, 197, 163, 0.10) 0%, transparent 60%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--c-timber-gold);
  margin-bottom: var(--space-md);
}
.hero h1 { color: var(--c-bone); max-width: 18ch; margin-bottom: var(--space-md); }
.hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem; line-height: 1.5;
  color: var(--c-bone); opacity: 0.88;
  max-width: 36ch;
  margin: 0 0 var(--space-lg);
}
.hero__trust {
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(239, 232, 221, 0.22);
}
.hero__trust-item {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-kraft-tan);
}
.hero__trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-bone);
  margin-bottom: 2px;
}

/* ---------- Page-header (for inner pages) ---------- */
.page-header {
  background: var(--c-timber-black);
  color: var(--c-bone);
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
}
.page-header h1 { color: var(--c-bone); margin-bottom: var(--space-xs); }
.page-header .eyebrow { color: var(--c-timber-gold); }
.page-header__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--c-kraft-tan);
  max-width: 55ch;
  margin: 0 auto;
}

/* ---------- Cards ---------- */
.card {
  background: var(--c-cream-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(15,15,15,0.08); }
.card__eyebrow { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-timber-gold); margin-bottom: var(--space-xs); }
.card h3 { margin-bottom: var(--space-xs); }
.card__meta { font-family: var(--font-ui); font-size: 0.85rem; color: var(--c-slate); }

/* ---------- Product cards (services sold as products) ---------- */
.product-card {
  background: var(--c-cream-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.product-card:hover { transform: translateY(-2px); border-color: var(--c-timber-gold); }
.product-card__image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0F0F0F 0%, #2A2017 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-timber-gold);
}
.product-card__body { padding: var(--space-md); display: flex; flex-direction: column; flex-grow: 1; }
.product-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-timber-gold);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2xs);
}
.product-card h3 { font-size: 1.3rem; margin-bottom: var(--space-xs); }
.product-card__desc { font-size: 0.95rem; color: var(--c-deep-ink); flex-grow: 1; }
.product-card__cta {
  margin-top: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-timber-black);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.product-card__cta::after { content: "→"; transition: transform 0.2s var(--ease); }
.product-card:hover .product-card__cta::after { transform: translateX(4px); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-strip__item {
  background: var(--c-cream-paper);
  padding: var(--space-md);
  text-align: center;
}
.stat-strip__num { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--c-timber-black); line-height: 1; margin-bottom: 6px; }
.stat-strip__label { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-slate); }
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process steps ---------- */
.process-step {
  display: flex; gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--c-line);
}
.process-step:last-child { border-bottom: none; }
.process-step__num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--c-timber-gold);
  line-height: 1;
  width: 70px;
}
.process-step h3 { margin-bottom: 4px; }
.process-step__meta { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-slate); margin-bottom: var(--space-xs); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--space-md); max-width: 560px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-deep-ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-cream-paper);
  color: var(--c-deep-ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-timber-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 90, 0.15);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-help { font-family: var(--font-ui); font-size: 0.78rem; color: var(--c-slate); }

/* ---------- Estimator (multi-step form) ---------- */
.estimator {
  background: var(--c-bone);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.estimator__progress {
  display: flex; gap: 6px;
  margin-bottom: var(--space-md);
}
.estimator__progress-bar {
  flex: 1; height: 4px;
  background: rgba(15, 15, 15, 0.10);
  border-radius: 2px;
}
.estimator__progress-bar.is-active { background: var(--c-timber-gold); }
.estimator__step { display: none; }
.estimator__step.is-active { display: block; }
.estimator__step-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-timber-gold);
  margin-bottom: var(--space-2xs);
}
.estimator__choices {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin: var(--space-md) 0;
}
@media (max-width: 600px) { .estimator__choices { grid-template-columns: 1fr; } }
.estimator__choice {
  background: var(--c-cream-paper);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.estimator__choice:hover { border-color: var(--c-timber-gold); }
.estimator__choice.is-selected {
  border-color: var(--c-timber-black);
  background: var(--c-timber-black);
  color: var(--c-bone);
}
.estimator__nav { display: flex; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-md); }

/* ---------- Testimonial / quote block ---------- */
.testimonial {
  padding: var(--space-lg);
  background: var(--c-bone);
  border-left: 4px solid var(--c-timber-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.testimonial__quote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; margin: 0 0 var(--space-md); }
.testimonial__attr { font-family: var(--font-ui); font-size: 0.85rem; color: var(--c-slate); letter-spacing: 0.06em; }
.testimonial__attr strong { color: var(--c-timber-black); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-timber-black);
  color: var(--c-bone);
  padding: var(--space-2xl) 0 var(--space-md);
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
@media (max-width: 880px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-timber-gold);
  margin-bottom: var(--space-sm);
}
.site-footer a {
  color: var(--c-bone);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 0.92rem;
}
.site-footer a:hover { color: var(--c-timber-gold); }
.site-footer__bottom {
  max-width: var(--container-max);
  margin: var(--space-lg) auto 0;
  padding: var(--space-md) var(--space-md) 0;
  border-top: 1px solid rgba(239, 232, 221, 0.18);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--c-kraft-tan);
  letter-spacing: 0.08em;
}
.legal-marks { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.legal-marks span {
  padding: 4px 10px;
  border: 1px solid rgba(184, 134, 90, 0.4);
  border-radius: 3px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-gold { color: var(--c-timber-gold); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.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;
}

/* ---------- Image placeholders (for owner to swap with real photos) ---------- */
.img-placeholder {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, var(--c-timber-black) 0%, #2A2017 100%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(184,134,90,0.05) 10px 20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-timber-gold);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
}
.img-placeholder--portrait { aspect-ratio: 3 / 4; }
.img-placeholder--wide { aspect-ratio: 21 / 9; }
.img-placeholder--square { aspect-ratio: 1 / 1; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
