/* New Horizons Construction — site styles.
   Design tokens carried over from the WordPress theme (theme.json) so the site looks the same. */

/* ---- Fonts ---- */
@font-face { font-family: "Inter"; src: url("/fonts/inter-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
/* Archivo's wide ampersand reads like a backwards S; borrow Inter's for "&" only. */
@font-face { font-family: "NHC Amp"; src: url("/fonts/inter-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0026; }

/* ---- Tokens ---- */
:root {
  --brand: #0E7C80;
  --primary: #0A5F63;
  --sun: #F2A93B;
  --brand-light: #7FD6D9;
  --brand-tint: #E7F3F3;
  --ink: #0F2326;
  --slate: #3F5356;
  --sand: #F4F1EB;
  --white: #FFFFFF;
  --line: #E4DFD6;
  --line-strong: #B9B3A8;
  --ink-line: #29484b;
  --on-ink: #c9d6d7;
  --on-ink-faint: #9fb3b5;

  --shadow-soft: 0 1px 2px rgba(14,42,45,.06), 0 4px 16px rgba(14,42,45,.06);
  --shadow-lifted: 0 2px 4px rgba(14,42,45,.08), 0 16px 40px rgba(14,42,45,.14);

  --s20: 0.5rem;
  --s30: 1rem;
  --s40: clamp(1.25rem, 2.5vw, 2rem);
  --s50: clamp(2rem, 4vw, 3rem);
  --s60: clamp(3rem, 7vw, 5.5rem);
  --s70: clamp(4rem, 10vw, 8rem);

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-xl: clamp(1.4rem, 1.2rem + 0.9vw, 1.875rem);
  --fs-xxl: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  --fs-huge: clamp(2.4rem, 1.7rem + 3vw, 4rem);

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "NHC Amp", Archivo, "Helvetica Neue", Arial, sans-serif;

  --wide: 1200px;
  --measure: 760px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; letter-spacing: -0.005em; margin: 0 0 0.5em; color: inherit; }
h1 { font-size: var(--fs-huge); line-height: 1.05; font-stretch: 112%; text-wrap: balance; }
h2 { font-size: var(--fs-xxl); font-stretch: 112%; text-wrap: balance; }
h3 { font-size: var(--fs-xl); font-stretch: 105%; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary); }
a:hover { color: var(--ink); }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 0.75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--s40)); margin-inline: auto; padding-inline: var(--s40); }
.measure { max-width: var(--measure); }
.muted { color: var(--slate); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.lede { font-size: var(--fs-lg); color: var(--slate); }
.h-xl { font-size: var(--fs-xl); }
.h-md { font-size: var(--fs-md); margin-bottom: 0.25rem; }
.rounded { border-radius: 10px; }
ul.plain { list-style: none; padding: 0; margin: 0; line-height: 2; }
.strong-link { font-weight: 800; }

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--font-head);
  font-stretch: 125%;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 3px; background: var(--sun); flex-shrink: 0; }
.eyebrow--light, .section--ink .eyebrow { color: var(--brand-light); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-stretch: 110%;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--ink); color: #fff; }
.hero .btn--sun:hover, .cta-band .btn--sun:hover { background: #fff; color: var(--ink); }
.btn--outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn--small { padding: 0.65rem 1.1rem; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--s40); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s40); padding-block: 0.85rem; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 0.7rem; }
.brand:hover { color: var(--ink); }
.brand__icon { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-stretch: 125%; font-size: 1.12rem; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; display: block; white-space: nowrap; }
.brand__tag { display: block; font-family: var(--font-head); font-weight: 600; font-stretch: 125%; font-size: 0.6rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--brand); margin-top: 0.35rem; line-height: 1; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }

@media (max-width: 781px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 0.6rem; }
  .site-header__cta { display: none; }
  .brand__icon { width: 2.2rem; height: 2.2rem; }
  .brand__name { font-size: 1rem; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { gap: 1.25rem; }
}

/* ---- Sections ---- */
.section { padding-block: var(--s70); }
.section--tight-top { padding-top: 0; }
.section--ink { background: var(--ink); color: #fff; }
.section-intro { max-width: 720px; margin-bottom: var(--s50); }
.section-intro h2 { margin-bottom: 0.4em; }
.section-intro--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s30) var(--s40); }
.section-intro--split > div { max-width: 780px; }

.page-header { background: var(--sand); padding-block: var(--s60); }
.page-header h1 { margin-bottom: 0.35em; }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: 88vh; display: flex; align-items: center; padding-block: var(--s70); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,35,38,0.94) 0%, rgba(15,35,38,0.78) 45%, rgba(15,35,38,0.25) 100%); }
.hero h1 { max-width: 15ch; }
.hero__lede { max-width: 38rem; font-size: var(--fs-lg); color: #dbe6e7; }
@media (max-width: 781px) {
  .hero { min-height: 0; }
  .hero::before { background: rgba(15, 35, 38, 0.84); }
}

/* ---- Trust strip ---- */
.trust { background: var(--sand); padding-block: var(--s50); }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s30) var(--s40); font-size: var(--fs-sm); line-height: 1.45; }
.trust__list li { display: grid; grid-template-columns: 1.15rem 1fr; column-gap: 0.7rem; }
.trust__list li::before { grid-row: span 2; }
.trust__list strong { font-family: var(--font-head); font-stretch: 105%; }

/* Checkmark tile shared by the trust strip and checklists. */
.trust__list li::before,
.checklist li::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.5rem; }
.checklist li { display: flex; gap: 0.7rem; font-weight: 600; }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: var(--s40); }
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: var(--s40); }
@media (min-width: 900px) { .sectors { grid-template-columns: 1fr 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lifted); border-color: transparent; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: var(--s40); }
.card h3 { font-size: var(--fs-lg); margin-bottom: 0.4rem; }
.card--sector .card__body { padding: var(--s50); }
.card--sector h3 { font-size: var(--fs-xl); }

/* ---- Numbered steps ---- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s50); }
.step { counter-increment: step; position: relative; padding-top: 3rem; border-top: 2px solid var(--line); }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; top: 1rem; left: 0; font-family: var(--font-head); font-stretch: 125%; font-weight: 800; font-size: 1rem; line-height: 1; letter-spacing: 0.06em; color: var(--brand); }
.step h3 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.step p { font-size: var(--fs-sm); color: var(--slate); }
.steps--dark .step { border-top-color: var(--ink-line); }
.steps--dark .step::before { color: var(--sun); }
.steps--dark .step p { color: var(--on-ink); }
.steps--stacked { grid-template-columns: 1fr; gap: var(--s40); margin-top: var(--s40); }
.steps--stacked .step { padding-top: 2.5rem; }

/* ---- Services page ---- */
.service-group + .service-group { margin-top: var(--s70); padding-top: var(--s60); border-top: 1px solid var(--line); }
.service-group .section-intro { margin-bottom: var(--s50); }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; scroll-margin-top: 6rem; }
.feature + .feature { margin-top: var(--s70); }
.feature__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.feature__body { padding: var(--s40) var(--s50); }
.feature__body h3 { font-size: var(--fs-xl); }
.feature--flip .feature__img { order: 2; }
.service-group { scroll-margin-top: 6rem; }
@media (max-width: 781px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__img { order: 0; }
  .feature__body { padding: var(--s40) 0 0; }
}

/* ---- About ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s60); align-items: center; }
@media (max-width: 781px) { .split { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band { background: var(--brand); color: #fff; padding-block: var(--s60); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s40); }
.cta-band__inner > div { max-width: 660px; }
.cta-band p { font-size: var(--fs-lg); }

/* ---- Contact & form ---- */
.contact { display: grid; grid-template-columns: 38fr 62fr; gap: var(--s60); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.note { background: var(--brand-tint); border-radius: 10px; padding: var(--s40); margin-top: var(--s50); }
.note .h-md + p { margin-bottom: 1.25rem; }
.note p:last-child { margin-bottom: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s50); box-shadow: var(--shadow-soft); }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 0; }
.form button { justify-self: start; }
.form__hp { position: absolute !important; left: -9999px !important; }
.notice { padding: 1rem 1.25rem; border-radius: 4px; font-weight: 600; }
.notice--ok { background: var(--brand-tint); color: var(--ink); border-left: 4px solid var(--brand); }
.notice--err { background: #fdecea; color: #7a1c12; border-left: 4px solid #c0392b; }

/* ---- Prose pages (privacy, SMS terms) ---- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-xl); margin-top: 2em; }
.prose h2:first-of-type { margin-top: 1em; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #fff; padding-block: var(--s60) var(--s40); font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer p { color: var(--on-ink); }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand__tag { color: var(--brand-light); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: var(--s50); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__heading { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 0.75rem; }
.site-footer__phone { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-md); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem var(--s40); border-top: 1px solid var(--ink-line); margin-top: var(--s50); padding-top: var(--s30); }
.site-footer__legal p { color: var(--on-ink-faint); font-size: var(--fs-xs); margin: 0; }
.site-footer__legal a { color: var(--on-ink-faint); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* ---- Plans ---- */
.plan-card a { display: block; text-decoration: none; color: inherit; }
.plan-card__mark { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--sand); color: var(--ink); }
.plan-card__mark svg { width: 4rem; height: 4rem; }
.plan-card__title { display: block; font-family: var(--font-head); font-weight: 800; font-size: var(--fs-lg); margin-bottom: 0.25rem; }
.plan-card__price { display: block; font-weight: 700; margin-top: 0.4rem; }
.plan-detail { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s50); align-items: start; }
@media (max-width: 900px) { .plan-detail { grid-template-columns: 1fr; } }
.plan-detail__side { background: var(--sand); border-radius: 10px; padding: var(--s40); }
.plan-detail__price { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-xl); }
.specs { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.specs th, .specs td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.specs th { width: 45%; color: var(--slate); font-weight: 600; }
.lib-panel { margin-top: var(--s50); border: 2px dashed var(--brand); border-radius: 10px; padding: var(--s40); background: var(--brand-tint); }
.lib-panel__head { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--fs-xs); color: var(--primary); }
.lib-panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 1rem 0; font-size: var(--fs-sm); }
.lib-panel dt { font-weight: 700; }
.lib-panel dd { margin: 0; }

/* ---- Library ---- */
.lib-gate__card { max-width: 34rem; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s50); box-shadow: var(--shadow-soft); }
.lib-gate__ms { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 1.5rem 0 1rem; padding: 0.85rem 1rem; border: 1px solid var(--line-strong); border-radius: 4px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.lib-gate__ms:hover { border-color: var(--ink); color: var(--ink); }
.lib__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem var(--s40); padding-bottom: var(--s40); border-bottom: 2px solid var(--ink); margin-bottom: var(--s40); }
.lib__head h1 { margin-bottom: 0.25rem; }
.lib__who { text-align: right; }
.lib__filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin-bottom: var(--s40); }
.lib__filters label { display: grid; gap: 0.3rem; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); }
.lib__filters input, .lib__filters select { font: inherit; font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); padding: 0.55rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; min-width: 10rem; }
.lib__search input { min-width: 16rem; }
.lib__count { margin-left: auto; color: var(--slate); }
.lib__rows { border-top: 1px solid var(--line); }
.lib__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem); gap: var(--s30) var(--s40); padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 781px) { .lib__row { grid-template-columns: 1fr; } .lib__who { text-align: left; } }
.lib__title { font-size: var(--fs-lg); margin-bottom: 0.25rem; }
.lib__title a { color: var(--ink); text-decoration: none; }
.lib__title a:hover { color: var(--brand); }
.lib__facts { font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.4rem; }
.lib__badge { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem; }
.lib__badge.is-sell { background: #e1f2e8; color: #1d7a4e; }
.lib__badge.is-public { background: var(--brand-tint); color: var(--primary); }
.lib__badge.is-private { background: #f1ede6; color: var(--slate); }
.lib__links a { margin-right: 0.9rem; font-weight: 700; }
.lib__empty { padding: var(--s40) 0; }
.lib__pipeline { margin-top: var(--s60); padding-top: var(--s50); border-top: 1px solid var(--line); }
.lib__pipegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s40); margin-top: var(--s40); }

/* ---- Estimates viewer ---- */
.est { border: 1px solid var(--line); border-radius: 10px; padding: var(--s40); margin-bottom: var(--s30); background: #fff; }
.est__head h2 { margin-bottom: 0.2rem; }
.est__facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.25rem; margin: 1rem 0; font-size: var(--fs-sm); }
.est__facts dt { font-weight: 700; color: var(--slate); }
.est__facts dd { margin: 0; overflow-wrap: anywhere; }
.est__msg { white-space: pre-wrap; font-size: var(--fs-sm); background: var(--sand); border-radius: 6px; padding: 0.9rem 1rem; max-height: 22rem; overflow: auto; }
.est__delete { margin-top: 0.75rem; }
.btn--danger { background: #fff; color: #9b2c1f; border-color: #e3b5ae; }
.btn--danger:hover { background: #9b2c1f; color: #fff; }
code { font-size: 0.9em; background: var(--sand); padding: 0.1em 0.35em; border-radius: 3px; }

/* ---- House concepts review (admin) ---- */
.cx-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--s40); }
.cx-tab { display: inline-flex; gap: 0.45rem; align-items: center; padding: 0.45rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; }
.cx-tab span { font-size: var(--fs-xs); color: var(--slate); }
.cx-tab:hover { border-color: var(--ink); }
.cx-tab.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.cx-tab.is-current span { color: var(--on-ink); }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--s40); }
.cx { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--line-strong); border-radius: 10px; overflow: hidden; scroll-margin-top: 6rem; }
.cx.is-approved { border-top-color: #1d7a4e; }
.cx.is-maybe { border-top-color: var(--sun); }
.cx.is-rejected { border-top-color: #9b2c1f; }
.cx.is-rejected .cx__img img { opacity: 0.55; }
.cx__img { display: block; aspect-ratio: 1600 / 893; background: var(--sand); }
.cx__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cx__img--none { display: grid; place-items: center; color: var(--slate); font-size: var(--fs-sm); }
.cx__body { display: flex; flex-direction: column; gap: 0.5rem; padding: var(--s30) var(--s30) 1.1rem; flex: 1; }
.cx__top { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); font-weight: 700; }
.cx__num { color: var(--slate); letter-spacing: 0.08em; }
.cx__state { padding: 0.15rem 0.6rem; border-radius: 999px; background: #f1ede6; color: var(--slate); }
.cx__state.is-approved { background: #e1f2e8; color: #1d7a4e; }
.cx__state.is-maybe { background: #fdf1dc; color: #7a5310; }
.cx__state.is-rejected { background: #fdecea; color: #9b2c1f; }
.cx__name { font-size: var(--fs-lg); margin: 0; }
.cx__facts { font-weight: 600; font-size: var(--fs-sm); margin: 0; }
.cx__hl { margin: 0; padding-left: 1.1rem; }
.cx__form { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; }
.cx__note { display: grid; gap: 0.3rem; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); }
.cx__note textarea { font: inherit; font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); padding: 0.5rem 0.65rem; border: 1px solid var(--line-strong); border-radius: 4px; resize: vertical; }
.cx__btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cx__btn { font: inherit; font-size: var(--fs-sm); font-weight: 700; padding: 0.5rem 0.95rem; border-radius: 4px; border: 2px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; }
.cx__btn.is-approved { border-color: #9fd0b5; color: #1d7a4e; }
.cx__btn.is-maybe { border-color: #f0cf95; color: #7a5310; }
.cx__btn.is-rejected { border-color: #e3b5ae; color: #9b2c1f; }
.cx__btn.is-approved:hover, .cx__btn.is-approved.is-on { background: #1d7a4e; border-color: #1d7a4e; color: #fff; }
.cx__btn.is-maybe:hover, .cx__btn.is-maybe.is-on { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.cx__btn.is-rejected:hover, .cx__btn.is-rejected.is-on { background: #9b2c1f; border-color: #9b2c1f; color: #fff; }
.cx__btn--undo { margin-left: auto; border-color: transparent; color: var(--slate); text-decoration: underline; padding-inline: 0.4rem; }
.cx__who { margin: 0; }

/* ---- Design briefs (admin) ---- */
.brief h2 { margin-top: var(--s50); padding-top: var(--s30); border-top: 1px solid var(--line); }
.brief__nav { margin-bottom: var(--s30); color: var(--slate); }
.brief__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--s40); align-items: start; padding-bottom: var(--s40); border-bottom: 2px solid var(--ink); }
@media (max-width: 781px) { .brief__head { grid-template-columns: 1fr; } }
.brief__img { width: 100%; height: auto; border-radius: 8px; }
.brief__facts { font-weight: 700; margin-bottom: 0.3rem; }
.brief__status { background: var(--sand); border-radius: 6px; padding: 0.8rem 1rem; margin-top: var(--s30); }
.brief__table { width: 100%; }
.brief__table th { width: 13rem; vertical-align: top; }
.brief__rooms th, .brief__index th { width: auto; }
.brief__rooms td:nth-child(3), .brief__rooms td:nth-child(4) { white-space: nowrap; }
.brief__list { padding-left: 1.2rem; }
.brief__list li { margin-bottom: 0.35rem; }
.brief__code { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; font-size: var(--fs-sm); }
.brief__code dt { font-weight: 700; color: var(--ink); }
.brief__code dd { margin: 0; }
@media (max-width: 600px) { .brief__code { grid-template-columns: 1fr; } .brief__code dd { margin-bottom: 0.6rem; } .brief__rooms { font-size: var(--fs-xs); } }
.cx__brief { font-weight: 700; font-size: var(--fs-sm); }
@media print {
  .site-header, .site-footer, .skip-link, .no-print { display: none !important; }
  .section { padding: 0 !important; }
  .brief h2 { break-after: avoid; }
  .brief__table tr, .brief__code dt, .brief__code dd { break-inside: avoid; }
  body { background: #fff; }
}

/* ---- Home designs (public) ---- */
.plan-card__img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 447; object-fit: cover; background: var(--sand); }
.plan-card .card__body { display: grid; gap: 0.2rem; }
.designs__filters { align-items: flex-end; }
.designs__note { margin-top: var(--s40); max-width: 60rem; }
.designs__more { margin-top: var(--s60); margin-bottom: var(--s40); }
.design__crumb { margin-bottom: var(--s30); }
.design__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s50); align-items: start; }
@media (max-width: 900px) { .design__grid { grid-template-columns: 1fr; } }
.design__fig { margin: 0; }
.design__fig img { display: block; width: 100%; height: auto; border-radius: 10px; }
.design__fig figcaption { margin-top: 0.5rem; }
.design__facts { list-style: none; padding: 0; margin: 0 0 var(--s30); display: flex; flex-wrap: wrap; gap: 0.4rem; }
.design__facts li { background: var(--brand-tint); color: var(--primary); font-weight: 700; font-size: var(--fs-sm); padding: 0.25rem 0.7rem; border-radius: 999px; }
.design__hl { padding-left: 1.2rem; }
.design__call { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.design__call:hover { border-color: var(--ink); }

/* ---- Ad landing pages ---- */
.lp-hero { background: var(--sand); padding-block: var(--s50); }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s50); align-items: center; }
@media (max-width: 860px) { .lp-hero__grid { grid-template-columns: 1fr; } .lp-hero { padding-block: var(--s40); } }
.lp-hero h1 { font-size: var(--fs-xxl); line-height: 1.1; margin-bottom: 0.6rem; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0.5rem; }
.lp-call { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.lp-call:hover { border-color: var(--ink); color: var(--ink); }
.lp-hero__fig { margin: 0; }
.lp-hero__fig img { display: block; width: 100%; height: auto; border-radius: 10px; }
.lp-hero__fig figcaption { margin-top: 0.4rem; }
.lp-promises { padding-block: var(--s40); }
.lp-promises__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s30) var(--s40); }
.lp-promises__grid li { display: grid; gap: 0.2rem; border-top: 3px solid var(--brand); padding-top: 0.7rem; }
.lp-section + .lp-section { padding-top: 0; }
.lp-towns { background: var(--sand); }
