:root {
  --ink: #1a2633;
  --paper: #ffffff;
  --paper-2: #eef3f8;
  --oak: #dde8f2;
  --oak-line: #b8cbdd;
  --walnut: #2e5c86;
  --walnut-deep: #1c3347;
  --blue: #27465f;
  --blue-deep: #1c3347;
  --line: #d3dce6;
  --muted: #4e5c6a;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.05rem/1.7 "Playfair Display", Georgia, "Times New Roman", serif;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: "Archivo", Arial, Helvetica, sans-serif;
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.2rem; line-height: 1.6; color: #2f3d4b; }

/* Draft banner (remove at launch) */
.draft-note {
  background: var(--walnut);
  color: #fff;
  font: 600 0.85rem/1.3 "Archivo", Arial, sans-serif;
  padding: 8px 20px;
  text-align: center;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px;
  max-width: var(--wrap); margin: 0 auto; padding: 20px 20px 0;
}
.brand {
  text-decoration: none; color: var(--ink);
  font: italic 600 2rem/1.1 Baskerville, "Libre Baskerville", "Baskerville Old Face", Georgia, serif;
}
@media (max-width: 600px) { .brand { font-size: 1.5rem; } }
.brand { padding-bottom: 16px; }
.brand:hover { color: var(--ink); }
.brand small {
  display: block; margin-top: 5px;
  font: normal 400 1rem/1.3 "Playfair Display", Georgia, serif; color: var(--muted);
}
.nav {
  display: flex; gap: 26px; align-items: center; flex-basis: 100%;
  border-top: 1px solid var(--line); padding: 10px 0;
}
.nav a.nav-cta { margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none;
  font: 600 0.95rem/1.2 "Archivo", Arial, sans-serif;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--walnut); }
.nav a.nav-cta {
  background: var(--blue); color: #fff; padding: 10px 16px; border-bottom: 0; border-radius: 2px;
}
.nav a.nav-cta:hover { background: var(--blue-deep); }
.menu-btn {
  display: none; background: none; border: 1.5px solid var(--ink); color: var(--ink);
  font: 600 0.95rem "Archivo", Arial, sans-serif; padding: 8px 14px; border-radius: 2px; cursor: pointer;
}
@media (max-width: 900px) {
  .bar { padding-bottom: 0; }
  .brand { padding-bottom: 12px; }
  .menu-btn { margin-bottom: 14px; }
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; z-index: 5;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { margin-top: 12px; margin-left: 0; text-align: center; }
  .nav { flex-basis: auto; }
  .site-header { position: relative; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none; cursor: pointer;
  font: 600 1rem/1.2 "Archivo", Arial, sans-serif; padding: 0.85em 1.4em; border: 0; border-radius: 2px;
}
.btn:hover { background: var(--blue-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Placeholder images: cabinet elevation line drawings, replaced by photos */
.ph {
  position: relative; width: 100%;
  background-color: var(--oak); background-repeat: no-repeat; background-position: center; background-size: contain;
  border: 1px solid var(--oak-line);
}
.ph::after {
  content: "Photo placeholder"; position: absolute; left: 10px; bottom: 8px;
  font: 600 0.72rem/1 "Archivo", Arial, sans-serif; color: #3d5a75;
}
.ph-a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='none' stroke='%235a3b26' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='24' y='26' width='352' height='96'/%3E%3Cpath d='M112 26v96M200 26v96M288 26v96'/%3E%3Cpath d='M104 100v14M120 100v14M192 100v14M208 100v14M280 100v14M296 100v14' stroke-width='2.4'/%3E%3Crect x='24' y='150' width='352' height='8'/%3E%3Crect x='24' y='158' width='352' height='108'/%3E%3Cpath d='M130 158v108M236 158v108M24 196h106M236 196h140M24 232h106M236 232h140'/%3E%3Cpath d='M70 176h14M70 214h14M290 176h14M290 214h14M170 200h24M206 200h24' stroke-width='2.4'/%3E%3C/svg%3E"); }
.ph-b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='none' stroke='%235a3b26' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='130' y='24' width='140' height='104'/%3E%3Cpath d='M138 32h124v88H138z'/%3E%3Crect x='60' y='158' width='280' height='9'/%3E%3Crect x='60' y='167' width='280' height='108'/%3E%3Cpath d='M200 167v108M60 208h140M200 208h140M60 242h140M200 242h140'/%3E%3Cpath d='M118 188h24M258 188h24M118 226h24M258 226h24M118 259h24M258 259h24' stroke-width='2.4'/%3E%3Cpath d='M200 158v-16h12' stroke-width='2.4'/%3E%3C/svg%3E"); }
.ph-c { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='none' stroke='%235a3b26' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='50' y='22' width='300' height='256'/%3E%3Cpath d='M50 82h300M50 142h300M50 202h300M200 22v180'/%3E%3Crect x='50' y='202' width='300' height='76'/%3E%3Cpath d='M125 202v76M200 202v76M275 202v76'/%3E%3Cpath d='M108 232h10M132 232h10M183 232h10M207 232h10M258 232h10M282 232h10' stroke-width='2.4'/%3E%3C/svg%3E"); }
.ph-d { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='none' stroke='%235a3b26' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='30' y='22' width='340' height='256'/%3E%3Cpath d='M140 22v256M260 22v256'/%3E%3Cpath d='M44 62h84M274 62h84M44 150h84M274 150h84' stroke-width='2.4'/%3E%3Cpath d='M154 40h92M154 80h92'/%3E%3Cpath d='M140 150h120M140 190h120M140 230h120M140 270h120'/%3E%3Cpath d='M190 168h20M190 208h20M190 248h20' stroke-width='2.4'/%3E%3C/svg%3E"); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: 56px 0 72px;
}
.hero .ph { aspect-ratio: 4 / 3.2; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 48px; }
}

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.page-head { padding: 48px 0 32px; }
.page-head .lede { max-width: 56ch; margin-bottom: 0; }
@media (max-width: 700px) { .section { padding: 44px 0; } }

/* Room tiles */
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.room a { display: block; color: inherit; text-decoration: none; }
.room .ph { aspect-ratio: 4 / 3; }
.room h3 { margin: 14px 0 4px; }
.room p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.room a:hover h3 { text-decoration: underline; text-underline-offset: 0.18em; }

/* Project cards with a title block */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 28px; }
.card .ph { aspect-ratio: 4 / 3; }
.card .card-title {
  margin: 0; padding: 9px 10px; border: 1px solid var(--ink); border-top: 0;
  font: 650 1rem/1.3 "Archivo", Arial, sans-serif; font-stretch: 90%; color: var(--muted);
}
.tb {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink); border-top: 0;
  font: 500 0.82rem/1.3 "Archivo", Arial, sans-serif; color: var(--muted);
}
.tb span { padding: 7px 10px; border-left: 1px solid var(--ink); }
.tb span:first-child { border-left: 0; color: var(--ink); font-weight: 600; }

/* Spec rows */
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts > div {
  display: grid; grid-template-columns: minmax(170px, 1fr) 2.2fr; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.facts dt { font: 650 1.1rem/1.3 "Archivo", Arial, sans-serif; font-stretch: 90%; }
.facts dd { margin: 0; max-width: 60ch; }
@media (max-width: 700px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* Styles page */
.style-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.style-block:first-of-type { border-top: 0; padding-top: 8px; }
.style-block .ph { aspect-ratio: 4 / 3; }
.style-block ul { margin: 0; padding-left: 1.2em; }
.style-block li { margin-bottom: 0.35em; }
.style-block:nth-of-type(even) .style-text { order: 2; }
@media (max-width: 860px) {
  .style-block { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .style-block:nth-of-type(even) .style-text { order: 0; }
}

/* Hardware list */
.hardware { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.hardware h3 { margin-bottom: 6px; }
.hardware p { margin-bottom: 8px; color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* Notes and callouts */
.draft-box {
  border: 1.5px dashed var(--walnut); background: #eef4fa; padding: 18px 20px; max-width: 62ch;
  font-size: 1rem; line-height: 1.5;
}
.draft-box strong { font-family: "Archivo", Arial, sans-serif; }
.draft-box ul { margin: 8px 0 0; padding-left: 1.2em; }

.cta-band { background: var(--walnut-deep); color: #eaf1f8; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e2ee; }
.cta-band a { color: #fff; }
.cta-band .btn { background: #fff; color: var(--walnut-deep); }
.cta-band .btn:hover { background: var(--oak); color: var(--walnut-deep); }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; padding-bottom: 72px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; gap: 36px; } }
.form-row { margin-bottom: 20px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-pair { grid-template-columns: 1fr; gap: 0; } }
label, .label {
  display: block; margin-bottom: 6px;
  font: 600 0.95rem/1.3 "Archivo", Arial, sans-serif;
}
.hint { display: block; font: 400 0.9rem/1.4 "Playfair Display", Georgia, serif; color: var(--muted); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea, input[type="file"] {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; padding: 0.7em 0.8em;
}
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { border-top: 2px solid var(--ink); padding-top: 18px; }
.contact-card h2 { font-size: 1.3rem; }
.contact-card p { margin-bottom: 0.7em; }
address { font-style: normal; }

/* Footer */
.site-footer { background: var(--walnut-deep); color: #d6e2ee; padding: 48px 0 32px; font-size: 1rem; line-height: 1.55; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.site-footer p { margin: 0 0 0.5em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid #3e5871; font-size: 0.9rem; color: #b9c9da; }

/* Photos */
.hero-img { width: 100%; max-height: 640px; object-fit: cover; object-position: center 40%; border: 1px solid var(--line); }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.style-block img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hardware img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; border: 1px solid var(--line); }
.build-grid { display: grid; grid-template-columns: minmax(220px, 0.8fr) 2fr; gap: 40px; align-items: start; }
.build-grid > img { width: 100%; border: 1px solid var(--line); }
@media (max-width: 760px) { .build-grid { grid-template-columns: 1fr; } .build-grid > img { max-width: 360px; } }

/* Project cards and photo grids */
.card-open, .grid-open {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in;
  overflow: hidden;
}
.card-open img, .grid-open img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.35s ease, opacity 0.2s;
}
.card-open:hover img, .grid-open:hover img { transform: scale(1.03); }
.card-open { border: 1px solid var(--ink); }
.card .tb span:last-child { color: var(--walnut); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }

/* Photo viewer */
.viewer {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(16, 26, 38, 0.96); color: #fff;
}
.viewer[open] { display: grid; grid-template-rows: 1fr auto; }
.viewer::backdrop { background: rgba(16, 26, 38, 0.96); }
.viewer figure { margin: 0; display: grid; place-items: center; padding: 56px 64px 8px; min-height: 0; }
.viewer img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.viewer figcaption { text-align: center; padding: 10px 20px 22px; font: 500 0.95rem/1.3 "Archivo", Arial, sans-serif; color: #d6e2ee; }
.viewer button {
  position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.35);
  font: 600 1rem/1 "Archivo", Arial, sans-serif; cursor: pointer; border-radius: 2px;
}
.viewer button:hover { background: rgba(255,255,255,0.22); }
.viewer .v-close { top: 14px; right: 14px; padding: 10px 14px; }
.viewer .v-prev, .viewer .v-next { top: 50%; transform: translateY(-50%); padding: 18px 14px; font-size: 1.4rem; }
.viewer .v-prev { left: 12px; } .viewer .v-next { right: 12px; }
@media (max-width: 600px) { .viewer figure { padding: 56px 8px 8px; } .viewer .v-prev, .viewer .v-next { top: auto; bottom: 14px; transform: none; } }

/* "View all" in the card title block opens the same gallery as the photo */
.view-all {
  font: inherit; color: var(--walnut); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.18em;
}
.view-all:hover { color: var(--blue-deep); }
.card .card-title { cursor: pointer; }

/* About page */
.about-text { max-width: 66ch; }
.about-text h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 1.6em; }
.about-text h2:first-child { margin-top: 0; }
.signoff {
  margin-top: 2em; font: italic 600 1.5rem/1.2 Baskerville, "Libre Baskerville", Georgia, serif; color: var(--ink);
}
.signoff span { font: normal 400 1rem/1.4 "Playfair Display", Georgia, serif; color: var(--muted); }
