/* Preston Homes LLC — "Quiet" look
   Layout: phone-first single column; light serif headings, hairline rules, lots of white space, big photos.
   One accent (burnt orange from the logo) for links and the estimate button. */
:root {
  --ink: #1e1e1e;
  --ink-soft: #55524e;
  --muted: #77726c;
  --line: #e4e1dc;
  --paper: #ffffff;
  --stone: #f6f5f2;
  --amber: #da8838;
  --ember: #c85229;
  --red: #b3272f;
  --accent: #b5461f;
  --accent-hover: #8f3716;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.1; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 5.25rem); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.5rem); font-weight: 400; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: grid; gap: 1rem; align-content: start; }
.stack > * { min-width: 0; }
.measure { max-width: 62ch; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 .75rem/1.5 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ember); flex: none; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 50ch; }
.rule { display: block; width: 28px; height: 1px; background: var(--ember); }

.text-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 1rem; white-space: nowrap; }
.text-link.accent, a.accent { color: var(--accent); }
.text-link.accent:hover { color: var(--accent-hover); }
.links { display: flex; flex-wrap: wrap; gap: 14px 30px; }

/* Buttons (used for the form) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.4rem; border-radius: 2px; border: 1px solid transparent;
  font: 500 1rem/1.1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; margin-right: auto; flex: none; }
.brand img { height: 32px; width: auto; }
@media (max-width: 380px) { .brand img { height: 27px; } }
.nav { display: none; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: .9rem; letter-spacing: .04em; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ember); }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.hdr-call { font-size: .92rem; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hdr-est { display: none; font-size: .92rem; text-decoration: none; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; white-space: nowrap; }
.menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 0; }
.menu-toggle svg { width: 22px; height: 22px; stroke-width: 1.5; }
@media (max-width: 420px) { .hdr-call { display: none; } }
@media (min-width: 980px) {
  .nav { display: flex; gap: 1.75rem; }
  .menu-toggle { display: none; }
  .hdr-est { display: inline; }
}
.mobile-nav { border-top: 1px solid var(--line); background: var(--paper); padding-block: .5rem 1.5rem; }
.mobile-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 300 1.6rem/1.2 var(--font-display); }
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav a.btn { margin-top: 1.25rem; width: 100%; display: flex; justify-content: center; border-bottom: 0; color: #fff; font: 500 1rem/1.1 var(--font-body); padding: .85rem 1rem; }
.mobile-nav a.btn:hover { color: #fff; }
@media (min-width: 980px) { .mobile-nav { display: none !important; } }

/* Phone action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.action-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; height: 56px; text-decoration: none; font-weight: 500; color: var(--ink); }
.action-bar a + a { border-left: 1px solid var(--line); }
.action-bar a.accent { color: var(--accent); }
.action-bar svg { width: 17px; height: 17px; stroke-width: 1.6; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* Photos and placeholders */
.ph {
  position: relative; overflow: hidden; width: 100%; max-width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
  background-color: #e9e6e1;
  background-image: repeating-linear-gradient(135deg, rgba(30,30,30,.05) 0 1px, transparent 1px 14px);
  display: grid; place-items: center; padding: 1rem;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-label { max-width: 34ch; text-align: center; background: rgba(255,255,255,.94); border: 1px dashed #9a958e; padding: .7rem .9rem; font: 500 .74rem/1.45 ui-monospace, Menlo, monospace; }
.ph-label b { display: block; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); margin-bottom: .2rem; }
.svc-art { background: var(--stone) url("../img/elevation.svg") no-repeat 50% 60% / 150% auto; }
.svc-art::after { content: ""; position: absolute; inset: 0; background: rgba(246,245,242,.9); }

.todo { background: #fff4d6; color: #6b4a00; border: 1px dashed #d8a73a; padding: .05em .35em; border-radius: 2px; font-family: ui-monospace, Menlo, monospace; font-size: .84em; }
.todo-block { border: 1px dashed #d8a73a; background: #fffaf0; padding: 1.25rem; color: #5b4200; font-size: .98rem; }
.todo-block strong { font: 600 .75rem/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: .4rem; }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section.line-top, .section.cta { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.section-head.split { grid-template-columns: 1fr auto; align-items: baseline; }

/* Home hero */
.hero-q { padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-q .wrap { display: grid; gap: 1.5rem; justify-items: start; }
.hero-q h1 { max-width: 14ch; }
.hero-q .links { margin-top: .5rem; }
.bigphoto .ph { aspect-ratio: 4 / 3; }
@media (min-width: 700px) { .bigphoto .ph { aspect-ratio: 21 / 9; } }
.caption { font-size: .82rem; color: var(--muted); margin-top: .6rem; }

/* What we build */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list a { display: grid; gap: .25rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.svc-list b { font: 400 1.5rem/1.2 var(--font-display); }
.svc-list span { color: var(--ink-soft); font-size: .98rem; }
.svc-list a:hover b { color: var(--accent); }
@media (min-width: 800px) { .svc-list a { grid-template-columns: 300px 1fr; align-items: baseline; gap: 2rem; } }

/* Recent work */
.recent { display: grid; gap: 2.5rem; }
.recent > * { min-width: 0; }
.recent a { display: grid; gap: .6rem; text-decoration: none; color: var(--ink); }
.recent .img .ph { aspect-ratio: 3 / 2; }
.recent .big .img .ph { aspect-ratio: 4 / 5; }
.recent small { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }
.recent b { font: 400 1.4rem/1.2 var(--font-display); }
.recent a:hover b { color: var(--accent); }
.stack-col { display: grid; gap: 2.5rem; align-content: start; }
@media (min-width: 800px) { .recent { grid-template-columns: 1.35fr 1fr; } }

/* Points */
.points { display: grid; gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.point { display: grid; gap: .5rem; align-content: start; }
.point p { color: var(--ink-soft); font-size: 1rem; }

/* Client review */
.review { display: grid; gap: 1.5rem; }
.review blockquote { margin: 0; display: grid; gap: 1.25rem; max-width: 900px; }
.review blockquote p { font: 300 clamp(1.35rem, 2.4vw, 1.85rem)/1.45 var(--font-display); color: var(--ink); text-wrap: pretty; }
.review blockquote p::before { content: "\201C"; color: var(--accent); margin-right: .05em; }
.review blockquote p::after { content: "\201D"; color: var(--accent); }
.review footer { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Inner page hero */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 1.25rem; justify-items: start; }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.25rem); max-width: 18ch; }
.page-hero .rule { display: none; }

/* Grids */
.grid { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.grid > * { min-width: 0; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Project cards */
.proj-card { display: grid; gap: .6rem; text-decoration: none; color: var(--ink); align-content: start; }
.proj-card h3 { font-size: 1.35rem; }
.proj-card:hover h3 { color: var(--accent); }
.proj-meta { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.status { color: var(--accent); }

/* Services page rows */
.svc-row { display: grid; gap: 1.75rem; align-items: center; padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.svc-row:last-child { border-bottom: 0; }
.svc-row > * { min-width: 0; }
.svc-row .copy { display: grid; gap: 1rem; }
.svc-row .copy .rule { display: none; }
.svc-row ul { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--line); }
.svc-row li { padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .98rem; }
@media (min-width: 860px) { .svc-row { grid-template-columns: 1.1fr 1fr; gap: 4rem; } .svc-row.flip .ph { order: 2; } }

/* Steps (About) */
.steps { display: grid; gap: 1.75rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: step; display: grid; gap: .45rem; align-content: start; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font: italic 300 1.6rem/1 var(--font-display); color: var(--accent); }
.steps p { color: var(--ink-soft); font-size: 1rem; }

/* License panel */
.license { padding: 0; }
.license dl { margin: 0; display: grid; border-top: 1px solid var(--line); }
.license dl > div { padding: .9rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
.license dt, .contact-list dt, .facts dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.license dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Contact */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.contact-grid > * { min-width: 0; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
.contact-list { display: grid; gap: 1.1rem; margin: .75rem 0 0; }
.contact-list dd { margin: .3rem 0 0; }
.phone-big { font: 300 clamp(2.1rem, 5vw, 3.25rem)/1 var(--font-display); text-decoration: none; color: var(--ink); font-variant-numeric: lining-nums; }
.phone-big:hover { color: var(--accent); }
.ig-link { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.ig-link svg { flex: none; width: 16px; height: 16px; stroke-width: 1.6; }
.social-list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

.form { display: grid; gap: 1.1rem; align-content: start; }
.form h3 { font-size: 1.6rem; font-weight: 300; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .3rem; min-width: 0; }
.field label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  padding: .6rem 0; border: 0; border-bottom: 1px solid #c9c5bf; border-radius: 0;
}
.field select { -webkit-appearance: none; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355524e' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.form .btn { justify-self: start; margin-top: .5rem; }
.form-note { font-size: .9rem; color: var(--ink-soft); }
.form-status { font-size: .95rem; padding: .85rem 1rem; background: #fff8e6; color: #5b4200; border: 1px dashed #d8a73a; }

/* Project galleries */
.gallery { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery .wide { grid-column: 1 / -1; } }
.gallery-6 { display: grid; gap: 10px; grid-template-columns: 1fr; }
.gallery-6 a { display: block; min-width: 0; cursor: zoom-in; }
.gallery-6 img { transition: transform .4s ease; }
.gallery-6 a:hover img { transform: scale(1.015); }
@media (min-width: 700px) {
  .gallery-6 { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .gallery-6 .g-wide { grid-column: span 6; }
  .gallery-6 .g-wide .ph { aspect-ratio: 16 / 9; }
  .gallery-6 .g-third { grid-column: span 2; }
  .gallery-6 .g-half { grid-column: span 3; }
  .gallery-6 .g-half .ph { aspect-ratio: 4 / 3; }
}
.facts { display: grid; gap: 1rem; margin: 0; padding: 1.5rem 0; border-block: 1px solid var(--line); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts dd { margin: .35rem 0 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(15,15,15,.9); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; }
.lb-close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; }

/* Closing call to action */
.cta-band { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.3fr 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.footer-grid { display: grid; gap: 2.25rem; padding-block: 3.5rem 2.5rem; }
.footer-grid > * { min-width: 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer-grid h4 { font: 500 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid p + p { margin-top: .6rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-logo { width: 190px; height: auto; margin-bottom: 1.1rem; }
.footer-social { margin-top: 1rem !important; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .8rem; color: var(--muted); }
