/* Bungalow Building — site styles
   Layout concept: photo-led pages on a cool plaster ground; the two-tone serif
   wordmark is the one loud moment, everything else stays quiet and aligned left.
   Edit colors and fonts here only — every page reads from these tokens. */

:root {
  --plaster: #eef0ec;     /* page background: off-white with a green-grey bias */
  --paper: #f8f9f6;       /* lifted surfaces: form, project rows */
  --ink: #1e2421;         /* body text and dark wordmark half */
  --muted: #5d665f;       /* secondary text */
  --sage: #8a9e90;        /* brand green from the original site header */
  --sage-deep: #4f6457;   /* links, buttons, focus */
  --slate: #525e75;       /* favicon blue-grey, used for small accents */
  --line: #cfd5cd;        /* hairlines */

  --serif: "Young Serif", "Clearface", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;

  --measure: 64ch;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--sage-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); display: grid; gap: 1em; align-content: start; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; font-weight: 300; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-header { background: var(--sage); color: #fff; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-block: 18px;
}
.brand { font-family: var(--serif); font-size: 1.35rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 400; letter-spacing: 0.08em;
  font-size: 0.95rem; padding-block: 4px; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: #fff; color: #fff; }
.nav .phone { letter-spacing: 0.02em; font-variant-numeric: tabular-nums; opacity: 0.92; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero img {
  width: 100%; height: clamp(440px, 74vh, 820px); object-fit: cover; object-position: 50% 40%;
}
.hero::after { /* soft lift so the white half of the wordmark reads */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,36,33,0.28), rgba(30,36,33,0) 55%);
}
.wordmark {
  position: absolute; inset: auto 0 clamp(28px, 6vh, 72px) 0; z-index: 1;
  font-family: var(--serif); font-weight: 400; line-height: 0.86;
  font-size: clamp(4.2rem, 15.5vw, 13.5rem); letter-spacing: -0.03em; margin: 0;
}
.wordmark span { display: block; }
.wordmark .w1 { color: #fff; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); margin-left: -0.06em; }
.wordmark .w2 { color: var(--ink); text-align: right; padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); opacity: 0.86; }
.hero-strip { background: var(--ink); color: #e9ece7; }
.hero-strip p { padding-block: 16px; font-size: 1rem; letter-spacing: 0.04em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 6vw, 88px); }
.process, .cta .wrap { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: var(--measure); }

.intro { display: grid; grid-template-columns: 1fr; gap: 40px; }
.intro .facts { display: grid; gap: 20px; align-content: start; }
.fact { border-top: 1px solid var(--line); padding-top: 14px; }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 1.6fr 1fr; gap: 80px; }
}

/* What we build */
.offers { display: grid; gap: 48px; grid-template-columns: 1fr; }
.offer { display: grid; gap: 14px; align-content: start; min-width: 0; }
.offer img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.offer p { color: var(--muted); }
@media (min-width: 760px) { .offers { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* Process — a real sequence, so it is numbered */
.process { background: var(--ink); color: #e9ece7; }
.process h2 { color: #fff; }
.process .muted { color: #b9c2bb; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid #3c4540; padding-top: 18px; display: grid; gap: 8px; min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2.4rem; color: var(--sage); line-height: 1; }
.steps h3 { color: #fff; font-size: 1.3rem; }
.steps p { color: #b9c2bb; font-size: 0.98rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Photo band */
.band { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.band img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) {
  .band { grid-template-columns: 2fr 1fr 1fr; }
  .band img:first-child { aspect-ratio: auto; }
}
@media (max-width: 899px) { .band img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

/* ---------- Projects ---------- */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 4vw, 48px); }
.page-head .prose { margin: 0; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); margin-bottom: 20px; }

.group-title { margin-bottom: 24px; }
.group + .group { margin-top: clamp(56px, 7vw, 96px); }
.project-grid { display: grid; gap: 48px 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .project-grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { display: grid; gap: 10px; align-content: start; color: var(--ink); text-decoration: none; min-width: 0; }
.card:hover { color: var(--ink); }
.card .frame { position: relative; overflow: hidden; background: var(--line); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-top: 6px; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.card .meta { color: var(--muted); font-size: 0.95rem; }
.card p { color: var(--muted); }
.chip {
  position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--ink);
  font-size: 0.85rem; padding: 3px 10px; border-radius: 2px;
}
.chip.upcoming { background: var(--sage-deep); color: #fff; }
.project-grid .wide { grid-column: 1 / -1; }
.project-grid .wide img { aspect-ratio: 16 / 9; }
@media (max-width: 719px) { .project-grid .wide img { aspect-ratio: 3 / 2; } }

.spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; font-variant-numeric: tabular-nums; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

/* Project detail */
.pd-cover img { width: 100%; max-height: 78vh; aspect-ratio: 16 / 9; object-fit: cover; }
.pd-body { display: grid; gap: 40px; grid-template-columns: 1fr; }
.pd-body aside { display: grid; gap: 24px; align-content: start; border-top: 1px solid var(--line); padding-top: 20px; }
@media (min-width: 900px) { .pd-body { grid-template-columns: 1.6fr 1fr; gap: 80px; } }
.pd-gallery { display: grid; gap: 8px; grid-template-columns: 1fr; }
.pd-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 720px) {
  .pd-gallery { grid-template-columns: 1fr 1fr; }
  .pd-gallery img:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
.back { display: inline-block; margin-bottom: 18px; }

.gallery { columns: 2 260px; column-gap: 8px; }
.gallery img { width: 100%; margin-bottom: 8px; break-inside: avoid; }

/* ---------- About ---------- */
.person { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; max-width: 520px; }
.person h2 { margin-bottom: 4px; }
.role { color: var(--muted); margin-bottom: 20px; }
.person blockquote { margin: 8px 0 0; padding-left: 20px; border-left: 2px solid var(--sage); font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
@media (min-width: 860px) { .person { grid-template-columns: 1fr 1.25fr; gap: 72px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.5fr 1fr; gap: 80px; } }
.form { display: grid; gap: 18px; background: var(--paper); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); }
.form .row2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.95rem; font-weight: 450; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  border: 1px solid #b9c1b8; border-radius: 2px; padding: 11px 12px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage-deep); outline-offset: 0; border-color: var(--sage-deep); }
.hidden-field { position: absolute; left: -9999px; }

.button {
  display: inline-block; font: inherit; font-weight: 450; letter-spacing: 0.04em;
  background: var(--sage-deep); color: #fff; border: 0; border-radius: 2px;
  padding: 13px 26px; cursor: pointer; text-decoration: none; justify-self: start;
}
.button:hover { background: var(--ink); color: #fff; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button.ghost:hover { background: var(--ink); color: #fff; }

.details { display: grid; gap: 28px; align-content: start; }
.details h3 { font-size: 1.15rem; margin-bottom: 6px; }

/* CTA strip */
.cta { background: var(--sage); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-block: clamp(48px, 7vw, 88px); }
.cta h2 { color: #fff; max-width: 18ch; }
.cta .button { background: #fff; color: var(--ink); }
.cta .button:hover { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4ccc6; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 1fr; padding-block: 48px 36px; }
.site-footer a { color: #fff; }
.site-footer .brand { font-size: 1.6rem; }
.foot-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-cols p + p { margin-top: 4px; }
.legal { border-top: 1px solid #3c4540; padding-top: 18px; font-size: 0.85rem; color: #98a39b; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Listing details (for-sale and upcoming project pages) */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 18px; }
.highlights li { padding-left: 18px; position: relative; }
.highlights li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--sage-deep); }
.openhouse { margin-bottom: 20px; font-size: 1.1rem; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.units { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.units th, .units td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.units thead th { font-weight: 450; color: var(--muted); font-size: 0.95rem; }
.units tbody th { font-weight: 450; }
.units .num { text-align: right; padding-right: 32px; }
.units-sec .muted { margin-top: 14px; }
.skip-label { position: absolute; left: -9999px; }
.inquire { background: var(--paper); border-top: 1px solid var(--line); }
.inquire .form { background: #fff; }

/* Project card without photos yet: typographic placeholder */
.card .placeholder {
  aspect-ratio: 3 / 2; display: grid; align-content: end; gap: 6px; padding: clamp(18px, 3vw, 28px);
  background: var(--slate); color: #fff;
}
.card .placeholder span { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.card .placeholder small { font-size: 0.95rem; opacity: 0.85; }
.card .placeholder + * { display: none; }

/* Floor plans */
.plans { display: grid; gap: 28px; }
.plans figure { margin: 0; background: #fff; border: 1px solid var(--line); padding: clamp(10px, 2vw, 24px); overflow-x: auto; }
.plans img { width: 100%; min-width: 520px; }
.plans figcaption { margin-top: 10px; font-family: var(--serif); font-size: 1.2rem; }

/* Four-up "What we build" */
@media (min-width: 640px) and (max-width: 1079px) { .offers.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .offers.four { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

/* Landowner band (home) and landowners page */
.landband { background: var(--paper); border-block: 1px solid var(--line); }
.landband-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
.landband-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 860px) { .landband-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.paths { display: grid; gap: 24px; grid-template-columns: 1fr; }
.path { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 3vw, 32px); background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.path h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
@media (min-width: 760px) { .paths { grid-template-columns: 1fr 1fr; gap: 32px; } }
.lookfor { max-width: var(--measure); border-top: 0; padding-top: 0; }
