/* ============================================================
   Wilshire House — styles
   Clean, photography-forward, founder-house aesthetic.
   Palette: cream / near-black / single warm LA-sunset accent.
   ============================================================ */

:root {
  --bg:        #f6f4ef;   /* warm cream */
  --bg-tint:   #efece4;   /* slightly deeper cream for alt sections */
  --ink:       #14110f;   /* near-black text */
  --ink-soft:  #5c564f;   /* muted text */
  --line:      #e0dcd2;   /* hairline borders */
  --accent:    #e8533a;   /* LA-sunset coral — change this to rebrand */
  --accent-ink:#ffffff;
  --card:      #ffffff;

  --max:       1180px;
  --pad:       clamp(20px, 5vw, 64px);
  --radius:    14px;
  --radius-lg: 22px;

  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow--light { color: rgba(255,255,255,0.7); }

em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--small { padding: 9px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn--invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn--invert:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,244,239,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.nav__mark {
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 4px;
  transform: rotate(45deg);
  display: inline-block;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 0.92rem; color: var(--ink-soft); transition: color .15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { color: var(--bg) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) var(--pad) clamp(50px, 6vw, 80px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  margin: 0 0 26px;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: var(--ink-soft);
}
.hero__meta .dot { color: var(--line); }

.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 460px;
  /* Branded front-desk photo. Swap photos/hero.jpg to change it.
     The gradient underneath is the fallback until the photo exists. */
  background:
    image-set(url('photos/hero.webp') type('image/webp'), url('photos/hero.jpg') type('image/jpeg')) center / cover no-repeat,
    radial-gradient(120% 90% at 80% 10%, rgba(232,83,58,0.55), transparent 55%),
    linear-gradient(160deg, #2a2622 0%, #14110f 70%);
  box-shadow: 0 30px 60px -30px rgba(20,17,15,0.5);
  overflow: hidden;
}
.hero__photo::after {
  /* subtle window-grid texture so the placeholder reads as "office floor" */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 120% at 50% 0%, #000 40%, transparent 90%);
}
.hero__photo-tag {
  position: absolute;
  left: 20px; bottom: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 14px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

/* ============================================================
   STATS
   ============================================================ */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 38px 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.03em; }
.stat__label { color: var(--ink-soft); font-size: 0.9rem; margin-top: 6px; }

/* ============================================================
   SECTION scaffold
   ============================================================ */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--pad); }
.section--tint { max-width: none; background: var(--bg-tint); }
.section--tint > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 18px; }
.section__lede { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(20,17,15,0.4); }
.feature__icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); }

/* ============================================================
   GALLERY
   ============================================================ */
/* Masonry columns: each photo keeps its natural proportions — nothing cropped. */
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(20px, 4vw, 40px);
  column-count: 3;
  column-gap: 14px;
}
.gallery__item {
  position: relative;
  margin: 0 0 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tint);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: block;
}
.gallery__item picture { display: block; }
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item figcaption {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery__item:hover figcaption { opacity: 1; transform: none; }

@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 560px) {
  .gallery { column-count: 1; }
  .gallery__item figcaption { opacity: 1; transform: none; }
}

/* ============================================================
   SPLIT (live / work)
   ============================================================ */
.split {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 420px;
  box-shadow: 0 30px 60px -34px rgba(20,17,15,0.45);
  overflow: hidden;
}
/* Drop photos/apartment.jpg and photos/studio.jpg and they show automatically.
   The gradients underneath are fallbacks until the photos exist. */
.split__media--live {
  background:
    image-set(url('photos/apartment.webp') type('image/webp'), url('photos/apartment.jpg') type('image/jpeg')) center / cover no-repeat,
    radial-gradient(100% 80% at 20% 10%, rgba(232,83,58,0.35), transparent 60%),
    linear-gradient(150deg, #3a342d, #1c1916);
}
.split__media--work {
  background:
    image-set(url('photos/studio.webp') type('image/webp'), url('photos/studio.jpg') type('image/jpeg')) center / cover no-repeat,
    radial-gradient(100% 80% at 80% 10%, rgba(232,83,58,0.3), transparent 60%),
    linear-gradient(200deg, #2f2b26, #14110f);
}
.split__media-tag {
  position: absolute; left: 20px; bottom: 20px;
  font-size: 0.8rem; color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 14px; border-radius: 100px;
  backdrop-filter: blur(6px);
}
.split__content h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.split__content > p { color: var(--ink-soft); margin-bottom: 24px; }

/* two living options */
.live-options { display: grid; gap: 14px; margin-bottom: 28px; }
.live-option {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.live-option__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.live-option h3 { font-size: 1.15rem; margin-bottom: 7px; }
.live-option p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.ticks { list-style: none; margin: 0 0 28px; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ============================================================
   VIEW (full-bleed band)
   ============================================================ */
.view {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(20,17,15,0.15) 0%, rgba(20,17,15,0.75) 100%),
    image-set(url('photos/floor.webp') type('image/webp'), url('photos/floor.jpg') type('image/jpeg')) center / cover no-repeat;
  background-attachment: scroll, fixed; /* subtle parallax on the photo */
  color: #fff;
}
.view__inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad);
}
.view__inner h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 16em;
  margin-bottom: 18px;
}
.view__inner p {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  max-width: 40em;
}
/* background-attachment: fixed is janky on mobile — turn it off */
@media (max-width: 900px) {
  .view { background-attachment: scroll, scroll; min-height: 62vh; }
}

/* ============================================================
   COMMUNITY rhythm + quote
   ============================================================ */
.rhythm {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.rhythm__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.rhythm__day {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.rhythm__body { color: var(--ink-soft); font-size: 0.96rem; }
.rhythm__body strong { color: var(--ink); font-weight: 600; }

.quote {
  margin: 0;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.quote figcaption { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   MEMBERSHIP / plans
   ============================================================ */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
}
.plan--feature { border-color: var(--ink); box-shadow: 0 26px 50px -32px rgba(20,17,15,0.5); }
.plan__flag {
  position: absolute; top: -13px; left: 34px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 14px; border-radius: 100px;
}
.plan h3 { font-size: 1.4rem; margin-bottom: 10px; }
.plan__price { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; }
.plan__per { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.plan__sub { color: var(--ink-soft); margin: 4px 0 22px; }
.plan .ticks { margin-bottom: 28px; }

/* ============================================================
   AMENITIES / neighborhood
   ============================================================ */
.amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.amenity {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.amenity__icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 16px; }
.amenity h3 { font-size: 1.18rem; margin-bottom: 14px; }
.amenity .ticks { margin-bottom: 0; }
.amenity .ticks li { font-size: 0.95rem; margin-bottom: 9px; }

/* "Coming soon" gym card — visually distinct */
.amenity--soon {
  position: relative;
  background: linear-gradient(160deg, rgba(232,83,58,0.07), rgba(232,83,58,0.02));
  border: 1px dashed var(--accent);
}
.amenity--soon p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.amenity__badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 11px;
  border-radius: 100px;
}

@media (max-width: 900px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .amenities { grid-template-columns: 1fr; } }

/* ============================================================
   LOCATION
   ============================================================ */
.location {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.location__info h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }
.location__info p { color: var(--ink-soft); margin-bottom: 22px; }
.location__address { font-style: normal; line-height: 1.7; margin-bottom: 24px; }
.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -34px rgba(20,17,15,0.4);
}
.location__map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(0.25) contrast(1.05); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 40px 24px 0;
  font-size: 1.12rem;
  font-weight: 500;
  position: relative;
  transition: color .15s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute; right: 0; top: 22px;
  font-size: 1.5rem; font-weight: 300;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__item p { color: var(--ink-soft); padding: 0 40px 24px 0; }

/* ============================================================
   APPLY
   ============================================================ */
.apply {
  background: var(--ink);
  color: var(--bg);
}
.apply__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad);
  text-align: center;
}
.apply h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; }
.apply > .apply__inner > p { color: rgba(255,255,255,0.7); }
.apply__inner > p { color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.apply__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 0.98rem;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.35); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}
.field select option { color: #14110f; }
.apply__form .btn--block { grid-column: 1 / -1; margin-top: 6px; }
.apply__note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-tint); border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer__addr { color: var(--ink-soft); font-size: 0.9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer__links a { font-size: 0.9rem; color: var(--ink-soft); transition: color .15s ease; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { width: 100%; color: var(--ink-soft); font-size: 0.82rem; padding-top: 18px; border-top: 1px solid var(--line); }
.footer__powered { float: right; }
.footer__powered a { color: var(--accent); font-weight: 500; }
.footer__powered a:hover { text-decoration: underline; }
@media (max-width: 560px) { .footer__powered { float: none; display: block; margin-top: 8px; } }

/* ============================================================
   REVEAL animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { min-height: 320px; order: -1; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
  .features { grid-template-columns: 1fr; }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; order: 0; }
  .split__media { order: -1 !important; min-height: 280px; }
  .rhythm { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 60px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    box-shadow: 0 20px 40px -30px rgba(0,0,0,0.4);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 12px; }
  .nav__toggle { display: flex; }
  .apply__form { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .stats__inner { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
  .rhythm { grid-template-columns: 1fr; }
}
