/* ==========================================================================
   PISO — livepiso.com
   Palette, type and layout per the One-Page Site Build Reference
   ========================================================================== */

:root {
  --charcoal:    #2B2B2B;
  --marble:      #F5F3EF;
  --white:       #FFFFFF;
  --wood:        #B8875A;
  --orange:      #E2622B; /* display / accents / focus */
  --orange-btn:  #C4501E; /* button fills (AA with white) */
  --stone:       #6E6A65;

  --maxw: 1200px;
  --gutter: 24px;
  --section-y: 120px;
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--marble);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* Layout ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }

.section--marble   { background: var(--marble); }
.section--charcoal { background: var(--charcoal); color: var(--white); }

/* Type helpers ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wood);
  margin: 0 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--orange-btn);
  color: var(--white);
  padding: 16px 32px;
}
.btn--primary:hover { background: var(--charcoal); color: var(--white); }

.btn--nav {
  background: var(--orange-btn);
  color: var(--white);
  padding: 12px 22px;
}
.btn--nav:hover { background: var(--white); color: var(--charcoal); }

.btn--block { display: block; width: 100%; text-align: center; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* 01 Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease;
}
.site-header.is-scrolled { background: var(--charcoal); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--white);
}
.wordmark__accent { color: var(--orange); }

/* 02 Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #2B2B2B;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(43,43,43,0.78) 0%, rgba(43,43,43,0.45) 55%, rgba(43,43,43,0.25) 100%),
    linear-gradient(to bottom, rgba(43,43,43,0.35) 0%, rgba(43,43,43,0.2) 45%, rgba(43,43,43,0.85) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-bottom: 96px;
  max-width: 820px;
}
.hero__eyebrow { color: var(--wood); }
.hero__headline {
  font-size: 64px;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__subhead {
  font-size: 20px;
  max-width: 620px;
  margin: 0 0 32px;
}
.hero__note {
  font-size: 14px;
  color: #D8D5D0;
  margin: 16px 0 0;
}

/* 03 Intro ---------------------------------------------------------------- */
.intro__inner { max-width: 820px; }
.intro__heading { font-size: 44px; margin-bottom: 24px; }
.intro__body { font-size: 20px; color: var(--charcoal); max-width: 70ch; }

/* 04 Features -------------------------------------------------------------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.feature-card {
  background: var(--white);
  border-top: 1px solid var(--wood);
  padding: 32px 28px;
}
.feature-card__icon {
  display: block;
  width: 32px; height: 32px;
  color: var(--wood);
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 100%; height: 100%; }
.feature-card__title { font-size: 20px; margin-bottom: 12px; }
.feature-card__text { font-size: 16px; color: var(--stone); margin: 0; }

/* 05 Residences ----------------------------------------------------------- */
.residences__heading {
  font-size: 44px;
  color: var(--white);
  margin-bottom: 56px;
}
.residences__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.residence__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 24px;
  object-fit: cover;
  background: #2f2b29;
}
.residence__title { font-size: 24px; color: var(--white); margin-bottom: 12px; }
.residence__text { font-size: 16px; color: #C9C6C1; margin: 0; }

/* 06 Neighborhood --------------------------------------------------------- */
.neighborhood__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.neighborhood__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #3b3835;
}
.neighborhood__heading { font-size: 40px; margin-bottom: 20px; }
.neighborhood__body { font-size: 18px; color: var(--charcoal); margin: 0; }

/* 07 Waitlist ------------------------------------------------------------- */
.waitlist__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.waitlist__intro { display: flex; flex-direction: column; }
.waitlist__heading { font-size: 44px; color: var(--white); margin-bottom: 20px; }
.waitlist__body { font-size: 18px; color: #C9C6C1; max-width: 46ch; }

.waitlist__facts {
  list-style: none;
  margin: auto 0 0;
  padding: 32px 0 0;
  border-top: 1px solid rgba(184,135,90,0.35);
}
.waitlist__fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.waitlist__fact:last-child { border-bottom: none; }
.waitlist__fact-k {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wood);
}
.waitlist__fact-v { font-size: 17px; color: var(--white); }

.waitlist__panel { background: var(--white); padding: 40px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--stone); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(226,98,43,0.25);
}
.field textarea { resize: vertical; }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__fineprint {
  font-size: 13px;
  color: var(--stone);
  margin: 16px 0 0;
  line-height: 1.5;
}
.form__status {
  font-size: 15px;
  margin: 12px 0 0;
  min-height: 1em;
}
.form__status.is-error { color: var(--orange-btn); }
.form__success p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: var(--charcoal);
  margin: 0;
}

/* 08 Footer --------------------------------------------------------------- */
.site-footer { padding: 56px 0; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.footer__line { margin: 0; font-size: 15px; color: #C9C6C1; }
.footer__line--brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--white);
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.footer__meta a { color: #C9C6C1; }
.footer__meta a:hover { color: var(--white); }
.eho { display: inline-flex; align-items: center; gap: 7px; }
.eho svg { width: 18px; height: 18px; color: var(--wood); }
.footer__fineprint {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--stone);
  margin: 12px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Motion ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* Responsive -------------------------------------------------------------- */
/* Tablet: 768–1199 — desktop layout, two feature cards per row */
@media (max-width: 1199px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: under 768 */
@media (max-width: 767px) {
  :root { --section-y: 72px; --gutter: 20px; }
  body { font-size: 16px; }

  .hero__headline { font-size: 40px; }
  .hero__subhead { font-size: 18px; }
  .hero__content { padding-bottom: 64px; }

  .intro__heading,
  .residences__heading,
  .waitlist__heading { font-size: 32px; }
  .intro__body { font-size: 18px; }

  .features__grid { grid-template-columns: 1fr; }
  .residences__grid { grid-template-columns: 1fr; }
  .residences__heading { margin-bottom: 40px; }

  .neighborhood__inner,
  .waitlist__inner { grid-template-columns: 1fr; gap: 40px; }
  .neighborhood__heading { font-size: 30px; }

  .waitlist__panel { padding: 28px 24px; }
}
