/* ===========================================================================
   Design 8 — Studio
   Fixed left sidebar for nav + contact; content scrolls beside it.
   Instrument Serif display · Figtree body. Refined gallery/portfolio feel.
   Structurally distinct: no top nav bar at all.
   =========================================================================== */
:root {
  --bg:       #fcfbf8;
  --bg-alt:   #f1eee6;
  --sidebar:  #f6f3ea;
  --ink:      #23241e;
  --ink-soft: #5e5f54;
  --sage:     #6f7d52;
  --sage-dk:  #54602f;
  --terra:    #c25a3c;
  --terra-dk: #a8492d;
  --line:     #e6e1d6;
  --gold:     #cf9a3c;
  --sb:       284px;
  --radius:   14px;
  --shadow:   0 16px 38px -22px rgba(35,36,30,.32);
  --shadow-lg:0 28px 60px -26px rgba(35,36,30,.42);
  --maxw:     1080px;
  --font-display:"Instrument Serif", Georgia, serif;
  --font-body:"Figtree", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { margin: 0 0 .4em; line-height: 1.1; }
h1,h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
h3,h4 { font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--terra-dk); text-decoration: none; }
img { display: block; max-width: 100%; }
.accent { color: var(--terra); }
.narrow { max-width: 760px; margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-body); font-weight: 700; font-size: .96rem; padding: .8rem 1.4rem; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn-primary { background: var(--terra); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--terra-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--terra-dk); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== sidebar ===== */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sb); background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 2rem 1.7rem; overflow-y: auto; z-index: 50; }
.brand { display: block; }
.brand-logo { width: 100%; max-width: 216px; height: auto; display: block; }
.nav { display: flex; flex-direction: column; gap: .1rem; margin-top: 2.4rem; }
.nav a { padding: .7rem 0; font-weight: 600; font-size: 1.02rem; color: var(--ink); border-bottom: 1px solid var(--line); transition: color .15s, padding-left .15s; }
.nav a:hover { color: var(--terra); padding-left: .4rem; }
.nav .nav-cta { color: var(--terra); }
.sidebar-foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.sidebar-foot .btn { width: 100%; }
.sidebar-note { font-size: .86rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.sidebar-back { font-size: .85rem; color: var(--ink-soft); }
.sidebar-back:hover { color: var(--terra); }
.nav-toggle { display: none; }

/* ===== content ===== */
.content { margin-left: var(--sb); }
.section { padding: clamp(3rem,6vw,5.5rem) clamp(1.5rem,4vw,4.5rem); }
.section > * { max-width: var(--maxw); margin-inline: auto; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(1.8rem,3.5vw,2.6rem); }
.kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--terra); margin: 0 0 .6rem; }
h2 { font-size: clamp(2rem,4vw,3rem); }
.section-sub { color: var(--ink-soft); font-size: 1.06rem; }

/* hero */
.hero { padding: clamp(3rem,6vw,5.5rem) clamp(1.5rem,4vw,4.5rem) clamp(2rem,4vw,3rem); }
.hero > * { max-width: var(--maxw); margin-inline: auto; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; color: var(--sage-dk); margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.8rem,6vw,5rem); line-height: 1.02; }
.hero h1 em { color: var(--terra); font-style: italic; }
.hero .lead { font-size: clamp(1.1rem,1.8vw,1.3rem); color: var(--ink-soft); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 2.4rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; bottom: -16px; right: 24px; background: var(--ink); color: #fff; border-radius: 12px; padding: .8rem 1.1rem; text-align: center; box-shadow: var(--shadow); line-height: 1.1; }
.hero-badge strong { display: block; font-size: 1.2rem; color: var(--gold); }
.hero-badge span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #cfc8bb; }

/* services — list cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.card { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: transform .18s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { display: inline-grid; place-content: center; width: 50px; height: 50px; border-radius: 12px; background: #ecefe2; color: var(--sage-dk); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* gallery */
.ba-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.ba { --pos: 50%; position: relative; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; background: var(--bg-alt); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.ba-handle::after { content: "⇄"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; background: #fff; color: var(--terra); border-radius: 50%; display: grid; place-content: center; box-shadow: var(--shadow); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; top: 11px; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: rgba(35,36,30,.7); padding: .22rem .55rem; border-radius: 999px; pointer-events: none; }
.ba-before-tag { left: 11px; } .ba-after-tag { right: 11px; }
.ba figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(35,36,30,.8)); color: #fff; font-weight: 600; padding: 1.5rem .9rem .6rem; font-size: .86rem; }
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.2rem; }
.work-grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); transition: transform .18s; }
.work-grid img:hover { transform: scale(1.02); }

/* area */
.area-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.area-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; color: var(--ink); }
.area-list li::before { content: "•"; color: var(--terra); margin-right: .4rem; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.review { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); }
.stars { color: var(--gold); letter-spacing: .1em; margin-bottom: .6rem; }
.review p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--ink); }
.review cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--ink-soft); font-size: .88rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0; }
.contact-list li { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.ci-label { font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; color: var(--terra); }
.ci-value { font-weight: 600; color: var(--ink); }
a.ci-value:hover { color: var(--terra); }
.estimate { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.2rem); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1/-1; }
.estimate label { font-weight: 700; font-size: .82rem; color: var(--ink-soft); }
.estimate input, .estimate select, .estimate textarea { font: inherit; padding: .72rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-alt); color: var(--ink); width: 100%; }
.estimate input:focus, .estimate select:focus, .estimate textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(194,90,60,.14); }
.estimate .btn { grid-column: 1/-1; }
.form-note { grid-column: 1/-1; margin: 0; color: var(--sage-dk); font-weight: 700; }
.form-fineprint { grid-column: 1/-1; margin: 0; font-size: .82rem; color: var(--ink-soft); }

/* faq */
.faq { display: grid; gap: .7rem; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); padding: 1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-i { position: relative; flex: none; width: 18px; height: 18px; }
.faq-i::before, .faq-i::after { content: ""; position: absolute; background: var(--terra); border-radius: 2px; transition: transform .2s; }
.faq-i::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-i::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-q[aria-expanded="true"] .faq-i::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* cta */
.cta-band { padding: 0 clamp(1.5rem,4vw,4.5rem); }
.cta-inner { max-width: var(--maxw); margin: 0 auto; background: var(--ink); color: #fff; border-radius: var(--radius); text-align: center; padding: clamp(2.6rem,5vw,4rem) 2rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfc8bb; font-size: 1.1rem; margin-bottom: 1.5rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem clamp(1.5rem,4vw,4.5rem); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); }
.footer-meta { margin: 0; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--terra); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== responsive: sidebar -> top bar ===== */
@media (max-width: 980px) {
  .sidebar { position: sticky; inset: 0 0 auto 0; width: auto; height: auto; flex-direction: row; align-items: center; padding: .7rem 1.2rem; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-logo { max-width: 190px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--sidebar); border-bottom: 1px solid var(--line); padding: .6rem 1.2rem 1rem; gap: 0; transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow-lg); z-index: 40; }
  body.nav-open .nav { transform: none; }
  .sidebar-foot { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 46px; height: 46px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .25s, opacity .2s; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .content { margin-left: 0; }
}
@media (max-width: 820px) {
  .cards, .ba-grid, .work-grid, .reviews { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .ba-grid, .work-grid, .reviews, .estimate { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4/3; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } [data-reveal] { opacity: 1; transform: none; transition: none; } }
