/* LJ Cabinetry homepage preview.
   Colours from ljcabinetry.com: logo gold #CEA964, browns #857251 / #76664A, dark wood #2B170A. */
:root {
  --wood: #2b170a;
  --wood-2: #3d2614;
  --brown: #76603a;      /* darkened #76664A for AA text on cream */
  --gold: #cea964;
  --gold-dark: #b8914a;
  --cream: #f7f2e9;
  --cream-2: #ede4d4;
  --white: #fff;
  --ink: #22160c;
  --muted: #5b4b39;
  --serif: "Roboto Slab", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 2.5rem;
  --section: 6rem;
  --radius: 12px;
  --radius-lg: 20px;
  --ribbon: 26px;
}
@media (max-width: 991px) { :root { --pad: 2rem; --section: 4.5rem; } }
@media (max-width: 479px) { :root { --pad: 1rem; --section: 3.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ribbon) + 5rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: var(--ribbon); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--heading, var(--wood)); text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.container { width: 100%; max-width: calc(76rem + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.s-cream { background: var(--cream); }
.s-white { background: var(--white); }
.s-dark { background: var(--wood); color: #f3ead9; --heading: #fff; }
.tagline { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, var(--brown)); }
.s-dark .tagline { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.measure { max-width: 42rem; }
.section-head { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 3rem; }
.section-head.center { align-items: center; text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Ribbon */
.ribbon { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--ribbon); display: flex; align-items: center; justify-content: center; padding: 0 .75rem; background: #111; color: #e8e2d6; font-size: .75rem; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) { .ribbon { font-size: .625rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: var(--wood); }
.btn-gold:hover { background: #dab872; }
.btn-ghost { border-color: var(--wood); color: var(--wood); background: transparent; }
.btn-ghost:hover { background: var(--wood); color: #fff; }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.15rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.nav { position: sticky; top: var(--ribbon); z-index: 50; background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--cream-2); backdrop-filter: blur(8px); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.logo { display: flex; text-decoration: none; }
.logo svg { width: 184px; height: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--brown); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 991px) { .nav-links { display: none; } }
@media (max-width: 479px) {
  .nav-bar { min-height: 4rem; gap: .75rem; }
  .logo svg { width: 150px; }
  .nav-call span { display: none; }
  .nav-call { width: 2.75rem; padding: 0; }
}

/* Hero */
.hero { padding-block: 4rem 4.5rem; background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 3.5rem; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.hero h1 { font-size: clamp(2.25rem, 4.3vw, 3.6rem); line-height: 1.06; letter-spacing: -0.01em; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 34rem; }
.hero .btn-row { margin-top: .5rem; }
.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 50px rgb(43 23 10 / .22); aspect-ratio: 4 / 3; background: var(--wood-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .8rem; border-radius: 999px; background: rgb(43 23 10 / .82); color: #fff; font-size: .8125rem; font-weight: 600; }
@media (max-width: 860px) {
  .hero { padding-block: 2rem 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-photo { order: -1; aspect-ratio: 16 / 9; }
  .hero-photo figcaption { display: none; }
}
@media (max-width: 479px) {
  .hero { padding-top: 1.25rem; }
  .hero-grid { gap: 1.25rem; }
  .hero h1 { font-size: 1.875rem; }
  .lead { font-size: 1.0625rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Trust strip */
.trust { background: var(--wood); color: #f3ead9; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; flex-direction: column; gap: .2rem; padding: 1.75rem 1.5rem; text-decoration: none; }
.trust-item + .trust-item { border-left: 1px solid rgb(255 255 255 / .14); }
.trust-item strong { font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.trust-item span { font-size: .9375rem; color: rgb(243 234 217 / .85); line-height: 1.4; }
.trust-google .stars { color: var(--gold); font-size: 1.125rem; letter-spacing: .12em; }
.trust-google:hover strong { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .14); }
}
@media (max-width: 479px) { .trust-item { padding: 1.25rem .875rem; } .trust-item strong { font-size: 1.0625rem; } .trust-item span { font-size: .8125rem; } }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 0 var(--cream-2), 0 10px 30px rgb(43 23 10 / .07); }
.svc-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-2); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-card:hover .svc-photo img { transform: scale(1.04); }
.svc-body { padding: 1.25rem 1.375rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.svc-body p { font-size: .9688rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* Gallery */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.work-head > div { display: flex; flex-direction: column; gap: .875rem; }
.work-head p { max-width: 22rem; color: rgb(243 234 217 / .8); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 15rem; gap: 1rem; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--wood-2); }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item figcaption { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem .875rem; background: linear-gradient(180deg, rgb(20 10 4 / 0), rgb(20 10 4 / .85)); color: #fff; font-size: .9375rem; font-weight: 600; }
.g-item:nth-child(4) { grid-column: span 2; }
@media (max-width: 860px) {
  .work-head { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 11rem; }
  .g-big, .g-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
  .g-big { grid-row: span 2; }
}
@media (max-width: 479px) { .gallery { grid-auto-rows: 9.5rem; gap: .625rem; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.step { display: flex; flex-direction: column; gap: .75rem; padding: 2rem 1.75rem; border-radius: var(--radius-lg); background: var(--cream); }
.step-num { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--gold); color: var(--wood); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .9688rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step { padding: 1.5rem; } }

/* Service area */
.area { display: flex; flex-direction: column; gap: 1.25rem; }
.towns { display: flex; flex-wrap: wrap; gap: .5rem; }
.towns li { padding: .45rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--cream-2); font-weight: 600; font-size: .9375rem; }
.contact-list { display: grid; gap: .75rem; margin-top: .5rem; }
.contact-list a { display: flex; flex-direction: column; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--white); text-decoration: none; font-size: 1.125rem; font-weight: 600; color: var(--wood); overflow-wrap: anywhere; }
.contact-list strong { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }

/* Quote form */
.quote { display: flex; flex-direction: column; gap: 1rem; padding: 2.25rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 20px 50px rgb(43 23 10 / .12); border-top: 5px solid var(--gold); }
.quote-title { font-size: 1.75rem; }
.quote label { display: flex; flex-direction: column; gap: .35rem; font-size: .9375rem; font-weight: 600; color: var(--wood); }
.quote input, .quote textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #cdbfa8; border-radius: 8px; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fffdf9; }
.quote input:focus, .quote textarea:focus { outline: 2px solid var(--gold-dark); outline-offset: 1px; border-color: var(--gold-dark); }
.quote textarea { resize: vertical; }
.form-note { padding: .875rem 1rem; border-radius: 8px; background: #f4ecd9; color: var(--wood); font-weight: 600; font-size: .9375rem; }
@media (max-width: 479px) { .quote { padding: 1.5rem 1.125rem; } }

/* Footer */
.footer { background: var(--wood); color: rgb(243 234 217 / .85); padding-block: 3rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-name { font-family: var(--serif); font-size: 1.375rem; font-weight: 700; color: var(--gold); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; position: fixed; inset: auto 0 0; z-index: 55; padding: .625rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: rgb(43 23 10 / .94); border-top: 1px solid rgb(255 255 255 / .1); backdrop-filter: blur(10px); }
  .call-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; border-radius: 10px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
  .call-bar-call { background: var(--gold); color: var(--wood); }
  .call-bar-quote { border: 1.5px solid rgb(255 255 255 / .85); color: #fff; }
}

.svc-photo img[src*=walnut] { object-position: center 20%; }
