/* Heartwood Carpentry - warm craftsman marketing site */
:root {
  --paper: #f6efe3;
  --paper-2: #efe5d4;
  --card: #fffdf8;
  --ink: #211a14;
  --ink-2: #574a3c;
  --ink-3: #7d6e5d;
  --walnut: #5a3a21;
  --walnut-deep: #34200f;
  --amber: #b4742e;
  --amber-deep: #985e29;
  --brass: #c9962f;
  --forest: #2f4a3a;
  --line: #e6dbc6;
  --line-2: #d8cab1;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(52, 32, 15, .06), 0 8px 22px -12px rgba(52, 32, 15, .22), 0 28px 50px -34px rgba(52, 32, 15, .26);
  --shadow-soft: 0 10px 30px -18px rgba(52, 32, 15, .35);
  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: .98rem;
  padding: .72em 1.25em; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn i, .btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: linear-gradient(180deg, var(--amber), var(--amber-deep)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(152, 94, 41, .7); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-lg { font-size: 1.05rem; padding: .85em 1.5em; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -18px rgba(52,32,15,.5); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { flex: none; filter: drop-shadow(0 2px 4px rgba(52,32,15,.18)); }
.brand-word { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.45rem; color: var(--walnut); line-height: .95; display: flex; flex-direction: column; }
.brand-word small { font-family: "Inter", sans-serif; font-weight: 600; font-size: .58rem; letter-spacing: .32em; color: var(--amber-deep); margin-top: 3px; }
.site-nav { display: flex; gap: 28px; margin-left: 14px; }
.site-nav a { font-weight: 500; font-size: .96rem; color: var(--ink-2); position: relative; padding: 4px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--amber); transition: width .22s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--walnut); }
.phone-link i, .phone-link svg { width: 18px; height: 18px; color: var(--amber-deep); }
.phone-link:hover { color: var(--amber-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; line-height: 0; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }
.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 8px 24px 22px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 24px 44px -24px rgba(52, 32, 15, .55); }

/* Laddr demo ribbon */
.demo-ribbon { background: #2563eb; color: #fff; font-size: .82rem; }
.demo-ribbon-inner { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.demo-tag { flex: none; font-weight: 800; letter-spacing: .12em; font-size: .68rem; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .5); padding: 3px 9px; border-radius: 6px; }
.demo-ribbon p { margin: 0; line-height: 1.4; color: rgba(255, 255, 255, .96); }
.demo-ribbon a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mobile-nav a { padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 10px; justify-content: center; }
.mobile-nav .phone-link { border-bottom: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(28,18,10,.34) 0%, rgba(28,18,10,.05) 38%, rgba(28,18,10,.55) 78%, rgba(20,12,6,.82) 100%),
  linear-gradient(90deg, rgba(28,18,10,.55), rgba(28,18,10,0) 60%); }
.hero-content { position: relative; padding: 110px 24px 64px; max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.hero-sub { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 580px; color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow { font-family: "Inter", sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-deep); margin: 0 0 14px; }
.hero .eyebrow { color: var(--brass); }
.eyebrow--light { color: var(--brass); }

/* ---------- trust ---------- */
.trust { background: var(--walnut-deep); color: #f3e7d4; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 20px 24px; font-weight: 500; font-size: .95rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 9px; }
.trust-row i, .trust-row svg { width: 18px; height: 18px; color: var(--brass); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--paper { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: var(--ink); }
.section-lede { margin-top: 16px; font-size: 1.12rem; color: var(--ink-2); }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--shadow-card); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(52,32,15,.06), 0 16px 34px -16px rgba(52,32,15,.32); }
.service-icon { width: 30px; height: 30px; color: var(--amber-deep); margin-bottom: 16px; }
.service-card h3 { font-size: 1.22rem; color: var(--ink); }
.service-card p { margin-top: 9px; color: var(--ink-2); font-size: .96rem; }
.price-hint { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: .85rem; color: var(--amber-deep); letter-spacing: .01em; }
.service-card--cta { background: linear-gradient(165deg, var(--walnut), var(--walnut-deep)); border: none; color: #f6ead6; justify-content: center; }
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: rgba(246,234,214,.82); }
.service-card--cta .btn { margin-top: 18px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 18px; }
.gallery-item { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px;
  color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(transparent, rgba(20,12,6,.78)); text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.about-media::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--amber); border-radius: var(--r-lg); z-index: -1; opacity: .5; }
.about-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.about-copy p { color: var(--ink-2); font-size: 1.06rem; }
.about-list { margin: 24px 0; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.about-list i, .about-list svg { flex: none; width: 22px; height: 22px; color: #fff; background: var(--forest); border-radius: 50%; padding: 4px; margin-top: 2px; }
.about-stats { display: flex; gap: 36px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.about-stats strong { font-family: "Fraunces", serif; font-size: 2.1rem; color: var(--walnut); display: block; line-height: 1; }
.about-stats span { font-size: .88rem; color: var(--ink-3); }

/* ---------- process ---------- */
.section--ink { background: radial-gradient(120% 140% at 80% -10%, #3a2614, var(--walnut-deep)); color: #f3e7d4; position: relative; }
.section--ink::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); }
.section--ink .section-head h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { background: rgba(255,255,255,.04); border: 1px solid rgba(243,231,212,.14); border-radius: var(--r-lg); padding: 28px 22px; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(180deg, var(--brass), var(--amber-deep)); color: #2a1a0c; font-family: "Fraunces", serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 16px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); }
.step h3 { font-size: 1.2rem; color: #fff; }
.step p { margin-top: 8px; color: rgba(243,231,212,.78); font-size: .96rem; }

/* ---------- service area ---------- */
.area-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.area-copy h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 16px; }
.area-copy p { color: var(--ink-2); font-size: 1.06rem; }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.area-list li { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 8px 16px; font-weight: 600; font-size: .92rem; color: var(--walnut); }
.area-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; text-align: center; box-shadow: var(--shadow-card); }
.area-card > i, .area-card > svg { width: 40px; height: 40px; color: var(--amber-deep); margin-bottom: 8px; }
.area-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.area-card p { color: var(--ink-2); margin-bottom: 20px; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; box-shadow: var(--shadow-card); }
.stars { display: flex; gap: 3px; color: var(--brass); margin-bottom: 16px; }
.stars i, .stars svg { width: 19px; height: 19px; fill: var(--brass); }
.review blockquote { margin: 0; font-size: 1.05rem; color: var(--ink); font-family: "Fraunces", serif; font-weight: 400; line-height: 1.5; }
.review figcaption { margin-top: 18px; font-weight: 700; color: var(--walnut); }
.review figcaption span { display: block; font-weight: 500; font-size: .85rem; color: var(--ink-3); margin-top: 2px; }

/* ---------- estimate ---------- */
.section--cta { background: radial-gradient(120% 120% at 10% 0%, #6b4423, var(--walnut-deep)); color: #f3e7d4; }
.estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.estimate-copy h2 { font-size: clamp(2.1rem, 4vw, 3rem); color: #fff; margin-bottom: 16px; }
.estimate-copy > p { color: rgba(243,231,212,.84); font-size: 1.08rem; }
.phone-cta { display: inline-flex; align-items: center; gap: 14px; margin: 26px 0 14px; color: #fff; }
.phone-cta i, .phone-cta svg { width: 30px; height: 30px; color: var(--brass); }
.phone-cta small { display: block; font-size: .82rem; color: rgba(243,231,212,.7); }
.phone-cta strong { font-family: "Fraunces", serif; font-size: 1.9rem; line-height: 1; }
.estimate-hours { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: rgba(243,231,212,.72); }
.estimate-hours i, .estimate-hours svg { width: 16px; height: 16px; }
.estimate-form { background: var(--card); border-radius: var(--r-lg); padding: 30px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); color: var(--ink); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 11px; background: #fffefb; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(180,116,46,.18); }
.field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: .8rem; color: var(--ink-3); text-align: center; }
.form-success { margin-top: 14px; padding: 12px 14px; background: #eef5ee; border: 1px solid #cfe3cf; border-radius: 11px; color: var(--forest); font-weight: 500; font-size: .94rem; }
.form-success a { color: var(--amber-deep); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--walnut-deep); color: #d9c9b2; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-word { color: #fff; font-size: 1.5rem; }
.footer-word small { color: var(--brass); }
.footer-brand p { margin-top: 14px; color: rgba(217,201,178,.8); font-size: .95rem; max-width: 280px; }
.footer-lic { font-size: .85rem !important; color: rgba(217,201,178,.6) !important; }
.footer-col h4 { font-family: "Inter", sans-serif; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.footer-col a, .footer-contact p { display: flex; align-items: center; gap: 8px; color: rgba(217,201,178,.85); padding: 5px 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-col i, .footer-col svg { width: 16px; height: 16px; color: var(--brass); flex: none; }
.footer-phone { font-weight: 700; color: #fff !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(217,201,178,.16); font-size: .85rem; color: rgba(217,201,178,.6); }
.powered a { color: var(--brass); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { max-width: 460px; }
  .estimate-grid { grid-template-columns: 1fr; gap: 34px; }
  .area-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .mobile-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 76px); overflow-y: auto; }
  .mobile-nav:not([hidden]) { display: flex; }
  .demo-ribbon { font-size: .76rem; }
  .demo-ribbon-inner { gap: 9px; }
  .section { padding: 68px 0; }
  .hero { min-height: 560px; }
  .hero-content { padding-top: 80px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; }
}
@media (max-width: 420px) {
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .area-list li { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .gallery-item img, .btn, .service-card { transition: none !important; }
}
