/* ===========================================================================
   Design 4 — Editorial / Magazine
   Warm paper, high-contrast Playfair Display headlines, Spectral body serif.
   Asymmetric, hairline rules, numbered index, drop caps. Refined & quiet.
   =========================================================================== */
:root {
  --paper:    #f7f1e5;
  --paper-2:  #efe6d4;
  --ink:      #211f1a;
  --ink-soft: #57524a;
  --rule:     #d9cdb6;
  --terra:    #bd5a3c;
  --terra-dk: #9b4327;
  --sage:     #7c8557;
  --gold:     #c2883b;
  --gold2:    #c2883b;
  --maxw:     1180px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Spectral", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper);
  line-height: 1.7; counter-reset: sec; -webkit-font-smoothing: antialiased; position: relative;
}
/* grain/paper texture */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.06; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--terra-dk); text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.narrow { max-width: 760px; }
.accent { color: var(--terra); font-style: italic; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: .02em; padding: .75rem 1.5rem; border-radius: 2px; border: 1px solid var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .15s; white-space: nowrap; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--terra-dk); border-color: var(--terra-dk); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { transform: translateY(-2px); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,241,229,.93); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.site-header.is-stuck { border-color: var(--ink); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 80px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-logo-footer { height: 118px; width: auto; margin-bottom: .8rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.9rem; }
.nav a { color: var(--ink); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; }
.nav a:hover { color: var(--terra); }
.nav .nav-cta { display: none; }
.header-call { display: none; }
.nav-toggle { display: none; }

/* hero */
.hero { padding: clamp(2.5rem,6vw,5rem) 0 clamp(3rem,7vw,6rem); border-bottom: 1px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem,5vw,4rem); align-items: end; }
.eyebrow { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; color: var(--terra); margin-bottom: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: -.01em; }
.hero h1 .accent { font-weight: 500; }
.hero .lead { font-size: clamp(1.15rem,2vw,1.4rem); color: var(--ink-soft); max-width: 32ch; margin-top: 1.4rem; }
.hero .lead::first-letter { initial-letter: 2; -webkit-initial-letter: 2; font-family: var(--font-display); font-weight: 700; color: var(--terra); margin-right: .5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.4rem; }
.trust { list-style: none; display: flex; flex-direction: column; gap: .5rem; padding: 0; margin: 0; color: var(--ink-soft); font-size: .92rem; }
.trust li { padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.trust li:first-child { color: var(--gold); }
.hero-media { position: relative; }
.hero-media img { width: 100%; filter: grayscale(.15) sepia(.08); border: 1px solid var(--ink); }
.hero-media::after { content: "Recent work — Phoenix, AZ"; display: block; font-style: italic; font-size: .82rem; color: var(--ink-soft); margin-top: .5rem; }
.hero-badge { display: none; }

/* sections */
.section { padding: clamp(3rem,7vw,6rem) 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 760px; margin: 0 0 clamp(2rem,4vw,3rem); }
.kicker { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; color: var(--terra); margin: 0 0 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--ink); }
.kicker::before { counter-increment: sec; content: counter(sec, decimal-leading-zero) "  —  "; color: var(--ink); }
.section h2 { font-size: clamp(2rem,4.4vw,3.2rem); }
.section-sub { color: var(--ink-soft); font-size: 1.15rem; font-style: italic; }
.subhead { font-size: 1.7rem; margin: 3rem 0 1.4rem; }

/* services as numbered editorial index */
.cards { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: svc; }
.card { counter-increment: svc; display: grid; grid-template-columns: 4.5rem 1fr 1.6fr; gap: 1.5rem; align-items: baseline; padding: 1.6rem 0; border-top: 1px solid var(--rule); transition: padding-left .2s; }
.cards .card:last-child { border-bottom: 1px solid var(--rule); }
.card:hover { padding-left: .6rem; }
.card::before { content: counter(svc, decimal-leading-zero); font-family: var(--font-display); font-size: 1.6rem; color: var(--terra); font-style: italic; }
.card-icon { display: none; }
.card h3 { font-size: 1.5rem; }
.card:hover h3 { color: var(--terra-dk); }
.card p { margin: 0; color: var(--ink-soft); }

/* before/after */
.ba-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.ba { --pos: 50%; position: relative; aspect-ratio: 3/2; overflow: hidden; border: 1px solid var(--ink); margin: 0; background: var(--paper-2); }
.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: 1px; background: var(--paper); transform: translateX(-50%); pointer-events: none; }
.ba-handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 50%; display: grid; place-content: center; font-size: .9rem; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; top: 10px; font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); background: var(--ink); padding: .2rem .55rem; pointer-events: none; }
.ba-before-tag { left: 10px; }
.ba-after-tag { right: 10px; }
.ba figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(33,31,26,.85)); color: var(--paper); font-style: italic; padding: 1.6rem .9rem .6rem; font-size: .88rem; }

.work-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-flow: dense; gap: 1rem; }
.work-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--ink); filter: grayscale(.12) sepia(.06); transition: filter .25s; }
.work-grid img:first-child { grid-column: span 2; aspect-ratio: 8/3; }
.work-grid img:hover { filter: none; }

/* service area */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.area-list { list-style: none; padding: 0; margin: 0; columns: 2; gap: 1rem; }
.area-list li { padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; break-inside: avoid; }
.area-list li::before { content: "— "; color: var(--terra); }

/* reviews — pull quotes */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; }
.review { margin: 0; position: relative; padding-top: 2.4rem; }
.review::before { content: "\201C"; position: absolute; top: -1rem; left: -.3rem; font-family: var(--font-display); font-size: 5rem; color: var(--terra); opacity: .35; line-height: 1; }
.stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .6rem; font-size: .95rem; }
.review p { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; line-height: 1.35; color: var(--ink); }
.review cite { display: block; margin-top: 1.1rem; font-style: normal; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }

/* contact — underline inputs */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0; }
.contact-list li { display: grid; grid-template-columns: 80px 1fr; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.ci-label { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; font-size: .7rem; letter-spacing: .14em; color: var(--terra); }
.ci-value { font-size: 1.1rem; color: var(--ink); }
a.ci-value:hover { color: var(--terra); }
.estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field-full { grid-column: 1/-1; }
.estimate label { font-family: var(--font-body); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.estimate input, .estimate select, .estimate textarea { font: inherit; font-size: 1.05rem; padding: .5rem 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); width: 100%; border-radius: 0; }
.estimate input:focus, .estimate select:focus, .estimate textarea:focus { outline: none; border-bottom-color: var(--terra); }
.estimate .btn { grid-column: 1/-1; justify-self: start; }
.form-note { grid-column: 1/-1; margin: 0; color: var(--sage); font-weight: 600; }
.form-fineprint { grid-column: 1/-1; margin: 0; font-size: .85rem; font-style: italic; color: var(--ink-soft); }

/* faq */
.faq { display: grid; gap: 0; }
.faq-item { border-top: 1px solid var(--rule); }
.faq:last-child { border-bottom: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); padding: 1.2rem 0; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.faq-q:hover { color: var(--terra-dk); }
.faq-i { position: relative; flex: none; width: 16px; height: 16px; align-self: center; }
.faq-i::before, .faq-i::after { content: ""; position: absolute; background: var(--terra); transition: transform .2s; }
.faq-i::before { top: 7px; left: 0; width: 16px; height: 1.5px; }
.faq-i::after { top: 0; left: 7px; width: 1.5px; height: 16px; }
.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 0 1.3rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }

/* cta */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-inner { text-align: center; padding: clamp(3rem,7vw,5rem) 0; }
.cta-band h2 { color: var(--paper); font-size: clamp(2rem,4.5vw,3.2rem); font-style: italic; }
.cta-band p { color: #cdc4b3; font-size: 1.2rem; font-style: italic; margin-bottom: 1.6rem; }

/* footer */
.site-footer { background: var(--ink); color: #c8bfae; padding: clamp(2.5rem,5vw,3.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-meta { color: #948b7c; font-size: .9rem; }
.site-footer h4 { color: var(--paper); font-family: var(--font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: .8rem; }
.site-footer a { color: #c8bfae; }
.site-footer a:hover { color: var(--paper); }
.site-footer p { margin: .3rem 0; }
.footer-areas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .8rem; color: #c8bfae; font-size: .92rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .86rem; color: #948b7c; }

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

/* responsive */
@media (max-width: 900px) {
  .ba-grid, .work-grid, .reviews { grid-template-columns: repeat(2,1fr); }
  .work-grid img:first-child { grid-column: span 2; aspect-ratio: 16/7; }
  .hero-grid, .areas-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--ink); padding: 1rem 32px 1.4rem; gap: 0; transform: translateY(-130%); transition: transform .3s ease; }
  body.nav-open .nav { transform: none; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
  .nav .nav-cta { display: block; color: var(--terra); }
  .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(--ink); cursor: pointer; }
  .nav-toggle span { display: block; width: 22px; height: 1.5px; 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); }
  .card { grid-template-columns: 3rem 1fr; }
  .card p { grid-column: 2; }
}
@media (max-width: 560px) {
  .ba-grid, .work-grid, .reviews, .footer-grid, .estimate { grid-template-columns: 1fr; }
  .work-grid img:first-child { grid-column: span 1; aspect-ratio: 4/3; }
  .area-list { columns: 1; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } [data-reveal] { opacity: 1; transform: none; transition: none; } }
