/* 360° Construction — luxury custom home builder */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Montserrat:wght@300;400;500;600&display=swap");

:root {
  --accent: #b8956b;
  --accent-light: #d4bc94;
  --accent-dark: #96784a;
  --black: #2c2824;
  --ink: #1e1b18;
  --paper: #f3ede4;
  --cream: #faf7f2;
  --muted: #7a736a;
  --line: #ddd5c8;
  --line-dark: #3a3530;
  --white: #ffffff;
  --sage: #6b7d6e;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.65;
  font-weight: 400;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 500;
  color: var(--accent-dark);
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: -.01em;
  line-height: 1.08;
  font-weight: 600;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--ink); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.topbar {
  background: var(--ink);
  color: #b8b0a4;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .06em;
  padding: .45rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--accent-light); text-decoration: none; }
.topbar a:hover { color: var(--white); }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 27, 24, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav {
  display: flex; align-items: center;
  gap: .75rem; min-height: 76px; position: relative;
}
.brand {
  display: flex; align-items: center; gap: .85rem; text-decoration: none; color: #fff; min-width: 0;
}
.brand img {
  width: 46px; height: 46px; object-fit: cover;
  border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: .02em;
  font-weight: 600; white-space: nowrap; color: #fff;
}
.brand-text span,
.brand-tagline {
  font-size: .62rem; color: var(--accent-light); letter-spacing: .2em;
  text-transform: uppercase; font-weight: 500;
}

@media (max-width: 767px) {
  .topbar .wrap {
    justify-content: center;
    text-align: center;
  }
  .brand-text .brand-tagline {
    display: block;
    margin-top: 0.12rem;
    white-space: nowrap;
    letter-spacing: 0.12em;
    font-size: 0.56rem;
  }
  .nav > .call {
    padding: 0.62rem 0.75rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
}

.nav-toggle { display: none; }
.burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .4rem;
  margin-left: auto;
}
.burger span { width: 22px; height: 1.5px; background: #fff; display: block; }
.menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink); border-bottom: 1px solid var(--line-dark);
  padding: .75rem 1rem 1.1rem; flex-direction: column; gap: .15rem;
}
.menu a {
  color: #fff; text-decoration: none; padding: .65rem .4rem;
  font-family: var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem; font-weight: 500;
}
.menu a:hover, .desk-nav a:hover { color: var(--accent-light); }
.nav-toggle:checked ~ .menu { display: flex; }
.desk-nav { display: none; }

.call {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent); color: var(--ink); text-decoration: none;
  font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; padding: .72rem 1.15rem; border-radius: 0;
  white-space: nowrap; font-size: .72rem;
  transition: background .2s ease, color .2s ease;
}
.call:hover { background: var(--accent-light); color: var(--ink); }
.prose a.call,
.prose .hero-actions .call {
  color: var(--ink);
  text-decoration: none;
}
.prose a.call:hover,
.prose .hero-actions .call:hover {
  color: var(--ink);
}
button.call { border: 0; cursor: pointer; }

.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.4); color: #fff; text-decoration: none;
  font-family: var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; padding: .72rem 1.15rem; font-size: .72rem;
  transition: border-color .2s ease, color .2s ease;
}
.btn-ghost:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn-ghost.dark {
  border-color: var(--line);
  color: var(--black);
}
.btn-ghost.dark:hover { border-color: var(--accent); color: var(--accent-dark); }

.hash {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--accent) 50%, transparent 95%);
  opacity: .65;
}

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 4rem 0 3.2rem;
  border-bottom: 1px solid var(--line-dark);
}
.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  max-width: 14ch; margin-top: .55rem; font-weight: 600;
}
.page-hero .lede {
  color: #c8c0b4; max-width: 48ch; margin-top: 1rem;
  font-size: 1.02rem; font-weight: 300; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

footer {
  background: var(--ink); color: #a8a098; padding: 2rem 0 2.4rem;
  font-size: .85rem; font-weight: 300;
  border-top: 1px solid var(--line-dark);
}
footer .wrap { display: grid; gap: .7rem; }
footer strong {
  color: #fff; font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: 0; font-weight: 600;
}
footer a { color: var(--accent-light); text-decoration: none; }
footer a:hover { color: var(--white); }

@media (min-width: 768px) {
  .burger { display: none; margin-left: 0; }
  .menu { display: none !important; }
  .desk-nav {
    display: flex; gap: 1.5rem; align-items: center;
    margin-left: auto;
  }
  .desk-nav a {
    color: rgba(255,255,255,.88); text-decoration: none;
    font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase;
    font-size: .72rem; font-weight: 500;
  }
  footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 1100px) {
  .wrap { width: min(var(--max), calc(100% - 3.5rem)); }
  .brand img { width: 52px; height: 52px; }
  .nav { min-height: 88px; }
  .brand-text strong { font-size: 1.25rem; }
}

/* Lead modal */
body.bid-open { overflow: hidden; }
.bid-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.bid-modal.is-open { display: flex; }
.bid-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 18, 16, .88);
}
.bid-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--line-dark);
  padding: 1.6rem 1.4rem 1.6rem;
}
.bid-modal-panel h2 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin: .4rem 0 .6rem;
}
.bid-modal-panel > p {
  color: #c8c0b4;
  font-size: .92rem;
  font-weight: 300;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.bid-modal-close {
  position: absolute; top: .7rem; right: .7rem;
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 1.5rem; line-height: 1; padding: .25rem .4rem;
}
.bid-modal-close:hover { color: var(--accent-light); }
#bidModal #leadForm { display: grid; gap: .75rem; }
#bidModal #leadForm label {
  display: grid; gap: .35rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b8b0a4;
  font-weight: 500;
}
#bidModal #leadForm label.check {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .78rem; color: #b8b0a4; text-transform: none; letter-spacing: 0;
}
#bidModal #leadForm label.check input { width: auto; margin-top: .2rem; }
#bidModal #leadForm input[type="text"],
#bidModal #leadForm input[type="tel"],
#bidModal #leadForm input[type="email"],
#bidModal #leadForm select,
#bidModal #leadForm textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark);
  color: #fff;
  padding: .7rem .8rem;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 400;
}
#bidModal #leadForm textarea { resize: vertical; min-height: 88px; }
#bidModal #leadForm .row-2 { display: grid; gap: .75rem; }
#bidModal #leadForm button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--ink); border: 0; cursor: pointer;
  font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; padding: .78rem 1rem; font-size: .72rem; margin-top: .2rem;
}
#bidModal #formStatus { color: var(--accent-light); font-size: .92rem; }

@media (max-width: 767px) {
  .bid-modal {
    padding: 2.75rem 1.15rem 1.75rem;
    align-items: flex-start;
  }
  .bid-modal-panel {
    width: 100%;
    max-height: calc(100vh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
    padding: 0.75rem 1.15rem 1.35rem;
  }
  .bid-modal-close {
    position: sticky;
    top: 0;
    align-self: flex-end;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 0 0.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
  }
}

@media (min-width: 768px) {
  #bidModal #leadForm .row-2 { grid-template-columns: 1fr 1fr; }
  .bid-modal-panel { padding: 1.9rem 1.65rem 1.9rem; }
}

.success-modal-panel { text-align: left; }
.success-lede {
  color: #c8c0b4;
  font-size: .95rem;
  font-weight: 300;
  margin-bottom: 1.25rem;
  max-width: 42ch;
  line-height: 1.6;
}
.success-summary-wrap {
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.03);
  padding: 1rem 1.05rem 1.1rem;
  margin-bottom: 1.25rem;
}
.success-summary-wrap h3 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  color: var(--accent);
  margin-bottom: .75rem;
  font-weight: 600;
}
.success-summary { display: grid; gap: .65rem; }
.success-row {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) 1fr;
  gap: .5rem 1rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line-dark);
}
.success-row:first-child { padding-top: 0; border-top: 0; }
.success-summary dt {
  font-family: var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .62rem;
  color: #8a8278;
  font-weight: 500;
}
.success-summary dd {
  margin: 0;
  font-size: .9rem;
  color: #e8e0d4;
  line-height: 1.5;
  white-space: pre-wrap;
  font-weight: 300;
}
.success-dismiss {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

@media (min-width: 768px) {
  .success-row { grid-template-columns: 9rem 1fr; }
}

/* Homepage blocks */
.hero {
  position: relative; min-height: 92vh; display: grid; align-items: end;
  color: #fff; overflow: hidden; background: var(--ink);
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,27,24,.25) 0%, rgba(30,27,24,.75) 55%, rgba(30,27,24,.96) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 4.5rem 0 4rem; }
.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  max-width: none;
  margin-top: .6rem;
  font-weight: 600;
  line-height: 1.06;
  text-wrap: balance;
}
@media (min-width: 900px) {
  .hero h1 {
    font-size: clamp(3rem, 3.8vw, 4.1rem);
    white-space: nowrap;
  }
}
.hero .lede {
  max-width: 44ch; margin-top: 1.15rem; font-size: 1.05rem; font-weight: 300;
  color: #d8d0c4; line-height: 1.75;
}
.hero-kicker {
  font-family: var(--font-body); letter-spacing: .24em; text-transform: uppercase;
  font-size: .68rem; color: var(--accent-light); font-weight: 500;
}

.find-plan {
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
  background: var(--paper); color: var(--black);
  border-bottom: 1px solid var(--line);
}
.find-plan div {
  padding: 1.35rem .75rem;
  font-family: var(--font-display);
  letter-spacing: .04em;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 600;
  border-right: 1px solid var(--line);
}
.find-plan div:last-child { border-right: 0; }
.find-plan strong {
  color: var(--accent-dark); display: block; font-family: var(--font-body);
  font-size: .62rem; margin-bottom: .35rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 500;
}

.featured { padding: 4.5rem 0; background: var(--cream); }
.featured-head { margin-bottom: 2rem; }
.featured-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16ch; }
.featured-split { display: grid; gap: 2.5rem; align-items: center; }
.featured-copy .eyebrow { color: var(--accent-dark); }
.featured-copy h2 { color: var(--black); margin-top: .5rem; }
.featured-copy p {
  color: var(--black);
  margin-bottom: 1rem;
  max-width: 52ch;
  font-weight: 400;
  line-height: 1.75;
  opacity: .88;
}
.featured-copy .stat-row div strong { color: var(--black); font-family: var(--font-display); }
.featured-copy .stat-row div span { color: #5c564e; font-family: var(--font-body); }
.featured-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.featured-visual .caption {
  font-size: .75rem; color: var(--muted); margin-top: .65rem; letter-spacing: .04em; font-weight: 300;
}

.units { padding: 4.5rem 0; background: var(--paper); }
.units h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .5rem; color: var(--black); }
.units .sub {
  color: var(--black);
  max-width: 48ch;
  margin-bottom: 2.25rem;
  font-weight: 400;
  line-height: 1.75;
  opacity: .85;
  text-wrap: pretty;
}
.units .unit-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
}
.units .unit-card.sold { opacity: 1; }
.units .unit-card-photo { margin: 0; }
.units .unit-card-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.units .unit-card-body { padding: 1.35rem 1.4rem 1.5rem; }
.units .unit-card .tag {
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}
.units .unit-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: .35rem 0 .55rem;
  color: var(--black);
}
.units .unit-card p {
  color: #3a3530;
  font-weight: 400;
  line-height: 1.7;
  font-size: .94rem;
}
.units .unit-card .meta {
  font-size: .84rem;
  color: #5c564e;
  margin-top: .85rem;
  line-height: 1.55;
  font-weight: 500;
}

.units .unit-cards,
.units .grid-3 { display: grid; gap: 1.25rem; }

.portfolio-strip { padding: 4.5rem 0; background: var(--cream); }
.portfolio-strip .grid-3 { margin-top: 1.5rem; }

.cta-band {
  background: var(--ink); color: #fff; padding: 4rem 0; text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  max-width: none;
  margin: .5rem auto 1rem;
  white-space: nowrap;
}
.cta-band p { color: #c8c0b4; max-width: 42ch; margin: 0 auto 1.75rem; font-weight: 300; line-height: 1.7; }

.cta-band.light {
  background: var(--paper); color: var(--black);
  text-align: center;
}
.cta-band.light p { color: var(--muted); }

@media (min-width: 768px) {
  .featured-split { grid-template-columns: 1fr 1.08fr; }
  .units .unit-cards,
  .units .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Project case study hero */
.case-hero {
  position: relative; min-height: 62vh; display: grid; align-items: end;
  color: #fff; background: var(--ink);
}
.case-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,27,24,.2) 0%, rgba(30,27,24,.92) 100%);
}
.case-hero .wrap { position: relative; z-index: 1; padding: 3.5rem 0 3rem; }
.case-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-top: .45rem; }
.case-hero .lede { color: #d8d0c4; max-width: 52ch; margin-top: .85rem; font-weight: 300; line-height: 1.7; }

.prose p { margin-bottom: 1rem; color: var(--muted); max-width: 62ch; font-weight: 300; line-height: 1.75; }
.prose p:first-of-type { font-size: 1.08rem; color: var(--black); font-weight: 400; }
.prose p.lead { font-size: 1.08rem; color: var(--black); font-weight: 400; max-width: 48ch; }
.section.dark .prose h2 { color: #fff; font-size: clamp(1.85rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.section.dark .prose p { color: #c8c0b4; max-width: 58ch; }

.johanna-hero { min-height: 72vh; }
.johanna-hero h1 { max-width: 16ch; }

.unit-detail { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.unit-detail:nth-child(even) { background: var(--paper); }
.unit-block { align-items: start; gap: 2.5rem; }
.unit-block.flip .unit-copy { order: 2; }
.unit-block.flip .unit-gallery { order: 1; }
.unit-copy h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin: .35rem 0 .75rem;
  font-weight: 600;
}
.unit-copy .unit-status {
  font-family: var(--font-body);
  font-size: .55em;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  vertical-align: middle;
}
.unit-highlights {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: .55rem;
}
.unit-highlights li {
  padding-left: 1.15rem;
  position: relative;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.55;
}
.unit-highlights li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
}
.unit-stats { margin-top: .5rem; }
.unit-gallery .eyebrow { margin-bottom: .75rem; }
.unit-g-grid { margin-top: 0; }
.gallery-count {
  margin-top: .85rem;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .06em;
  font-weight: 400;
}
.units .unit-card h3 a { text-decoration: none; color: inherit; }
.units .unit-card h3 a:hover { color: var(--accent-dark); }
.units .unit-card-photo { display: block; text-decoration: none; }

@media (max-width: 767px) {
  .unit-block.flip .unit-copy,
  .unit-block.flip .unit-gallery { order: unset; }
  .cta-band h2 { white-space: normal; font-size: clamp(1.75rem, 7vw, 2.25rem); }
}
