/* constructiveco.net, version 2. Tokens and rules follow DESIGN.md.
   Three tones with jobs: NAVY carries the dark sections, ROYAL BLUE is for actions only, STONE is one quiet mid
   section. The page alternates navy / white / navy / white / navy / white so no two neighbours share a tone. */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b1f3f;
  --navy-deep: #071530;
  --blue: #0b1f3f;      /* one blue: the navy */
  --blue-deep: #071530;
  --sky: #9cc2ff;        /* the blue full stop on navy */
  --ink: #101418;
  --graphite: #4d5661;
  --stone: #e9e4db;
  --stone-deep: #d9d2c5;
  --paper: #ffffff;
  --on-navy: #ffffff;
  --on-navy-soft: #b9c6dd;
  --display: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 112px; } /* the header stays put, so a link or a focused field must land below it */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .closing :focus-visible { outline-color: var(--sky); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }

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

/* The signature: headings are plain sentences that end in the logo's blue full stop. */
.stop { color: var(--blue); }
.dark .stop, .closing .stop { color: var(--sky); }

/* Type scale. Display at 400 so headings and body sit at a comparable weight. */
.display-xl { font-weight: 400; font-size: clamp(2.25rem, 5.2vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em; }
.display-l  { font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.015em; }
.display-m  { font-weight: 500; font-size: 1.375rem; line-height: 1.25; }
.label {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 1rem;
}
.dark .label, .closing .label { color: var(--on-navy-soft); }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; }
.dark .lede-soft { color: var(--on-navy-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.7rem 1.6rem;
  background: var(--navy); color: #fff;
  font-family: var(--display); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; border: 2px solid var(--navy); border-radius: 2px; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--stone); border-color: var(--stone); color: var(--navy); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--stone); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-block: 18px; }
.logo { display: block; margin-right: auto; }
.logo img { width: clamp(168px, 20vw, 232px); height: auto; }
.site-nav { display: flex; gap: 8px; }
.menu { position: relative; }
.menu-btn {
  font: inherit; font-family: var(--display); font-size: 1.0625rem; font-weight: 500; color: var(--ink);
  background: none; border: 0; padding: 12px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.menu-btn::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.15s ease; }
.menu-btn:hover, .menu.open .menu-btn { color: var(--blue); }
/* A top-level link that sits beside the menus (Available rentals). Same type as a menu button, no caret. */
.nav-link {
  font-family: var(--display); font-size: 1.0625rem; font-weight: 500; color: var(--ink);
  padding: 12px 14px; display: inline-flex; align-items: center; text-decoration: none;
}
.nav-link:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; }
.menu.open .menu-btn::after { transform: translateY(2px) rotate(-135deg); }
.menu-panel {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 260px;
  background: var(--paper); border-top: 3px solid var(--navy); box-shadow: 0 14px 32px rgba(11, 31, 63, 0.14); padding: 8px 0;
}
.menu:hover .menu-panel, .menu:focus-within .menu-panel, .menu.open .menu-panel { display: block; }
.js .menu:hover:not(.open) .menu-panel { display: none; }
.js .menu:focus-within:not(.open) .menu-panel { display: none; }
.menu-panel a { display: block; padding: 11px 20px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--stone); color: var(--blue); }
@media (max-width: 760px) {
  html { scroll-padding-top: 150px; }
  .header-row { padding-block: 14px 6px; }
  .site-nav { order: 3; width: 100%; gap: 4px; border-top: 1px solid var(--stone); margin-top: 4px; }
  .menu-btn { padding-inline: 0 18px; }
  .nav-link { padding-inline: 0; }
  .site-nav { flex-wrap: wrap; } /* a 320 px phone drops Available rentals to a second line instead of overflowing */
  .site-nav { position: relative; }
  .menu { position: static; }
  .menu-panel { left: 0; right: 0; min-width: 0; }
  .header-cta { min-height: 44px; padding: 0.5rem 1rem; font-size: 1rem; }
}

/* Dark sections */
.dark { background: var(--navy); color: var(--on-navy); }
.dark a:not(.btn) { color: #fff; }

/* Home: hero. Navy, the words on the left, the home on the right, the photo bleeding to the edge. */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 440px; }
.hero-copy { padding-block: 48px; padding-right: clamp(24px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 span.line { display: block; }
.hero .hero-sub { margin: 1.5rem 0 0; max-width: 24rem; line-height: 1.6; }
.hero-lede { margin: 1.25rem 0 0; max-width: 32rem; color: var(--on-navy-soft); }
.hero-photo { position: absolute; top: 0; bottom: 0; left: 50%; right: 0; margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 60%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; height: auto; }
  .hero-copy { padding-block: clamp(40px, 8vw, 64px) 36px; padding-right: 0; }
  .hero-photo { position: static; height: 260px; }
}

/* Sections */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin: 0; color: var(--graphite); max-width: 34rem; }
.section-head.single p { max-width: none; }
.section-head.single { grid-template-columns: 1fr; margin-bottom: clamp(28px, 4vw, 44px); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.stone { background: var(--stone); }

/* What we handle: three parts of the work */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 56px); }
.phase { border-top: 3px solid var(--navy); padding-top: 22px; }
.phase .label { margin-bottom: 0.5rem; }
.phase h3 { margin-bottom: 16px; }
.phase li { padding-block: 10px; border-bottom: 1px solid var(--stone); }
.phase li:last-child { border-bottom: 0; }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } }

/* How we work */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 96px); }
.values > div { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 18px; }
.values h3 { margin-bottom: 8px; }
.values p { margin: 0; color: var(--on-navy-soft); max-width: 32rem; }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; gap: 28px; } }

/* In their words: a carousel of owner reviews. Scrolls by touch or trackpad without JavaScript; the arrows step one review. */
.carousel-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.carousel-controls { display: flex; gap: 10px; }
.carousel-btn {
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  font-size: 1.25rem; color: var(--navy); background: transparent; border: 2px solid var(--navy); border-radius: 2px;
}
.carousel-btn:hover:not(:disabled) { background: var(--navy); color: #fff; }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline-offset: 6px; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 28px) / 3); gap: 28px; }
.review { scroll-snap-align: start; }
.review figure { margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border-top: 3px solid var(--navy); padding-top: 22px; }
.review blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.review figcaption { font-family: var(--display); font-weight: 500; }
.review figcaption span { display: block; color: var(--graphite); font-weight: 400; font-size: 0.9375rem; }
@media (max-width: 960px) { .carousel-track { grid-auto-columns: calc((100% - 28px) / 2); } }
@media (max-width: 600px) { .carousel-track { grid-auto-columns: 86%; gap: 20px; } }
@media (prefers-reduced-motion: reduce) { .carousel { scroll-behavior: auto; } }

/* Closing band */
.closing { background: var(--navy); color: #fff; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.closing p { margin: 12px 0 0; color: var(--on-navy-soft); }
.closing a:not(.btn) { color: #fff; }

/* Inner pages */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.page-head .lede { margin: 1.1rem 0 0; max-width: 38rem; }
.page-head .dated { color: var(--on-navy-soft); margin-top: 1rem; }
.page-body { padding-block: clamp(48px, 6vw, 80px) var(--section); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 22px; }
.field label, fieldset legend { display: block; font-family: var(--display); font-weight: 500; font-size: 1.0625rem; margin-bottom: 6px; padding: 0; }
.field label small, fieldset legend small { font-family: var(--body); font-weight: 400; font-size: 0.9375rem; color: var(--graphite); margin-left: 6px; }
.field .hint { margin: 6px 0 0; font-size: 0.9375rem; color: var(--graphite); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #8b939d; border-radius: 2px; padding: 12px 14px; min-height: 50px;
}
textarea { min-height: 132px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding-block: 9px; }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.choice span { flex: 1; }
.consents { border-top: 1px solid var(--stone-deep); margin-top: 6px; padding-top: 14px; }
.consents .choice { font-size: 0.975rem; line-height: 1.5; }
.opt { font-family: var(--display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--graphite); border-radius: 2px; padding: 1px 6px; margin-right: 6px; white-space: nowrap; }
.err { display: block; color: #a11212; font-size: 0.9375rem; margin-top: 6px; }
.err:empty { display: none; }
[aria-invalid="true"] { border-color: #a11212 !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 26px; }
.form-status { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--blue); background: var(--stone); }
.form-status:empty { display: none; }
.form-status.is-error { border-left-color: #a11212; }
.aside-note { border-top: 3px solid var(--navy); padding-top: 18px; }
.aside-note + .aside-note { margin-top: 36px; }
.aside-note h2 { margin-bottom: 8px; }
.aside-note p { color: var(--graphite); margin-bottom: 0.6em; }

/* Residents */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.guide h2 { margin-bottom: 12px; }
.guide > p { color: var(--graphite); max-width: 38rem; margin-bottom: 28px; }
.guide details { border-top: 1px solid var(--stone-deep); }
.guide details:last-of-type { border-bottom: 1px solid var(--stone-deep); }
.guide summary { cursor: pointer; padding: 18px 36px 18px 0; font-family: var(--display); font-weight: 500; font-size: 1.25rem; list-style: none; position: relative; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); }
.guide details[open] summary::after { content: "\2212"; }
.guide dl { margin: 0 0 22px; max-width: 44rem; }
.guide dt { font-weight: 600; margin-top: 14px; }
.guide dd { margin: 4px 0 0; }

/* Legal pages */
.legal h2 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin: 2.2rem 0 0.6rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.legal li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { background: var(--paper); color: var(--graphite); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 56px); padding-block: 56px 36px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand p { margin: 0; max-width: 18rem; }
.footer-brand strong { color: var(--ink); }
.site-footer .label { color: var(--graphite); }
.site-footer li { padding-block: 5px; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--blue); }
.footer-base { border-top: 1px solid var(--stone); padding-block: 18px 28px; font-size: 0.9375rem; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* Preview only: unconfirmed facts are highlighted, and a bar says the site is not live. */
mark.tbd { background: #fff3bf; color: var(--ink); outline: 1px dashed #b9a24a; outline-offset: 1px; padding: 0 2px; cursor: help; }
.dark mark.tbd, .closing mark.tbd { background: rgba(255, 243, 191, 0.18); color: #ffe89a; outline-color: #ffe89a; }
.preview-bar { background: #fff3bf; color: #3d3100; font-size: 0.9375rem; text-align: center; padding: 8px var(--gutter); border-bottom: 1px solid #e3d48a; }

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