/* Precision Floor Plans — public site */
:root {
  --carmine: #a10b2b;
  --carmine-dark: #7c0820;
  --sage: #b5d1cc;
  --sage-light: #e8f0ee;
  --ink: #000000;
  --paper: #fbfcfb;
  --muted: #444c4a;
  --rule: #c9d6d3;
  --wide: 125;
  --measure: 68ch;
  --radius: 4px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--carmine); text-underline-offset: 3px; }
a:hover { color: var(--carmine-dark); }
:focus-visible { outline: 3px solid var(--carmine); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }

h1, h2, h3 { font-stretch: 125%; font-variation-settings: 'wdth' 125; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }

/* header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand span { font-variation-settings: 'wdth' 125; font-weight: 800; font-size: 1.05rem; line-height: 1.05; }
.brand small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); font-variation-settings: 'wdth' 100; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--carmine); }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: var(--radius); padding: .45rem .75rem; font: inherit; font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 2px solid var(--carmine); background: var(--carmine); color: #fff; font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--carmine-dark); border-color: var(--carmine-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.nav .btn { padding: .55rem 1rem; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 1.8rem; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-facts li::before { content: ''; display: inline-block; width: 10px; height: 2px; background: var(--carmine); margin-right: .55rem; vertical-align: middle; }
.plan-panel { background: var(--sage); border-radius: 6px; padding: clamp(1rem, 2.5vw, 2rem); }
.plan-panel figcaption { font-size: .85rem; margin-top: .6rem; color: #1d2624; }

/* the floor plan drawing */
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linejoin: miter; }
.plan .iwall { fill: none; stroke: var(--ink); stroke-width: 3; }
.plan .door { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.plan .gap { stroke: var(--sage); stroke-width: 8; }
.plan .room { font: 650 17px 'Archivo', sans-serif; fill: var(--ink); text-anchor: middle; }
.plan .roomsz { font: 400 14px 'Archivo', sans-serif; fill: #24302d; text-anchor: middle; }
.plan .dim { stroke: var(--carmine); stroke-width: 1.4; fill: none; }
.plan .dimtxt { font: 700 16px 'Archivo', sans-serif; fill: var(--carmine); text-anchor: middle; }
.plan .garage { fill: url(#hatch); stroke: var(--ink); stroke-width: 3; }
.plan .gla-box { fill: var(--carmine); }
.plan .gla-txt { font: 800 24px 'Archivo', sans-serif; font-variation-settings: 'wdth' 125; fill: #fff; }
.plan .gla-sub { font: 500 13px 'Archivo', sans-serif; fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .plan .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,0,.2,1) forwards; }
  .plan .iwall.draw { animation-delay: .7s; }
  .plan .dim.draw { animation-delay: 1.3s; animation-duration: .9s; }
  .plan .late { opacity: 0; animation: appear .5s ease-out 1.9s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band { background: var(--sage-light); }
.dark { background: var(--ink); color: #fff; }
.dark .lede, .dark p { color: #d6dedc; }
.dark a:not(.btn) { color: var(--sage); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }

/* deliverable list */
.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.included li { border-top: 2px solid var(--ink); padding-top: .9rem; }
.included strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.included span { color: var(--muted); font-size: .98rem; }

/* steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 1.4rem 0 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 2px solid var(--carmine); color: var(--carmine); font-weight: 800; margin-bottom: 1rem; background: var(--paper); position: relative; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 1.2rem; left: 2.4rem; right: 0; border-top: 2px dashed var(--carmine); opacity: .5; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .97rem; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.tier { border: 2px solid var(--ink); border-radius: 6px; padding: 2rem; background: var(--paper); display: flex; flex-direction: column; }
.tier.featured { border-color: var(--carmine); box-shadow: 8px 8px 0 var(--sage); }
.tier h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.tier .price { font-variation-settings: 'wdth' 125; font-weight: 800; font-size: 3rem; line-height: 1; margin: 1rem 0 .3rem; }
.tier .turn { color: var(--carmine); font-weight: 700; margin-bottom: 1.2rem; }
.tier ul { padding-left: 1.1rem; margin: 0 0 1.6rem; }
.tier li { margin-bottom: .35rem; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.addons { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.addons div { border-left: 3px solid var(--carmine); padding-left: 1rem; }
.addons strong { display: block; }
.addons span { color: var(--muted); font-size: .95rem; }

/* tables */
table.zones { width: 100%; border-collapse: collapse; margin-top: 1rem; }
table.zones th, table.zones td { text-align: left; padding: .9rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.zones th { font-size: .9rem; color: var(--muted); font-weight: 600; }
table.zones td:last-child { font-weight: 700; white-space: nowrap; }

/* faq */
.faq details { border-top: 1px solid var(--rule); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--carmine); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* CTA strip */
.cta-strip { background: var(--sage); }
.cta-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-strip h2 { margin: 0; max-width: 22ch; }

/* forms */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0 0 2.2rem; }
legend { font-variation-settings: 'wdth' 125; font-weight: 750; font-size: 1.3rem; margin-bottom: 1rem; padding: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.fields .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1.5px solid #8a9693; border-radius: var(--radius); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--carmine); box-shadow: 0 0 0 3px rgba(161, 11, 43, .18); }
textarea { min-height: 96px; resize: vertical; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.choice label { border: 2px solid #8a9693; border-radius: 6px; padding: 1rem 1.1rem; cursor: pointer; font-weight: 400; margin: 0; display: flex; gap: .8rem; align-items: flex-start; }
.choice label:has(input:checked) { border-color: var(--carmine); background: #fff; box-shadow: 4px 4px 0 var(--sage); }
.choice input { width: auto; margin-top: .3rem; accent-color: var(--carmine); }
.choice b { display: block; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: .35rem; accent-color: var(--carmine); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary { position: sticky; top: 96px; background: var(--sage-light); border-radius: 6px; padding: 1.6rem; }
.summary h2 { font-size: 1.3rem; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 0; margin: 0 0 1rem; }
.summary dt { padding-right: 1rem; }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { border-top: 2px solid var(--ink); padding-top: .7rem; font-weight: 800; font-size: 1.2rem; }
.summary p { font-size: .9rem; color: var(--muted); }
.form-error { background: #fde8ec; border-left: 4px solid var(--carmine); padding: .9rem 1rem; margin-bottom: 1.2rem; display: none; }
.form-error.show { display: block; }

/* footer */
.site-footer { background: var(--ink); color: #cfd8d6; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #2c3331; padding-top: 1.4rem; margin-top: 1rem; font-size: .85rem; color: #98a4a1; max-width: none; }
.biz-phone-wrap[hidden] { display: none; }

/* page header (inner pages) */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); }

@media (max-width: 900px) {
  .hero .wrap, .form-grid, .grid-2, .tiers { grid-template-columns: 1fr; }
  .grid-3, .addons { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .steps li:nth-child(2)::after { display: none; }
  .summary { position: static; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--rule); gap: 1rem; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .addons, .fields, .choice, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .tier { padding: 1.5rem; }
}
