/* ===========================================================
   Chupi Living — Design tokens
   Warm, light, editorial style — intentionally distinct from
   dark-photo-hero co-living templates.
=========================================================== */
:root {
  --cream: #FAF7F2;
  --cream-tint: #F0EBE1;
  --ink: #33302B;
  --ink-soft: #726C63;
  --terracotta: #BC6B4E;
  --terracotta-dark: #9C5540;
  --olive: #74815F;
  --mustard: #D9A75C;
  --dark: #262521;
  --border: #E3DCCE;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -25px rgba(43, 36, 32, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 em, h2 em { font-style: italic; color: var(--terracotta); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.br-desktop { display: none; }
@media (min-width: 760px) { .br-desktop { display: inline; } }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.section { padding: 96px 0; }
.section-tint { background: var(--cream-tint); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-lede { color: var(--ink-soft); font-size: 17px; max-width: 560px; }

h2 { font-size: clamp(30px, 4.5vw, 44px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--terracotta-dark); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--terracotta-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 78px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}
.brand span { color: var(--terracotta); font-style: italic; }
.main-nav { display: none; gap: 32px; font-size: 15px; font-weight: 500; }
.main-nav a { position: relative; padding: 4px 0; }
.main-nav a:hover { color: var(--terracotta); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 0 auto; }

@media (max-width: 420px) {
  .brand { font-size: 19px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 11px 16px; font-size: 13.5px; }
}

@media (min-width: 980px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
}

.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 20px 28px 28px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 0; }
.hero-top { max-width: 700px; text-align: left; margin-bottom: 48px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 0; }

.hero-visual {
  position: relative;
  margin-bottom: 64px;
}
.hero-photo {
  width: 100%;
  height: clamp(280px, 48vw, 520px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-stat-card {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  position: relative;
  margin: -48px auto 0 24px;
}
.hero-stat-card div {
  padding: 0 22px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero-stat-card div:last-child { border-right: none; }
.hero-stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--terracotta);
}
.hero-stat-card span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }

@media (max-width: 640px) {
  .hero-stat-card { flex-wrap: wrap; margin-left: auto; margin-right: auto; }
}

/* ---------- Personas ---------- */
.persona-section { padding-top: 40px; }
.persona-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 700px) {
  .persona-grid { grid-template-columns: 1fr 1fr; }
}
.persona-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.persona-icon {
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--cream-tint);
  border-radius: 50%;
  margin-bottom: 18px;
}
.persona-card h3 { font-size: 20px; margin-bottom: 8px; }
.persona-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* ---------- Feature tabs ---------- */
.feature-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.feature-tab {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.feature-tab:hover { border-color: var(--terracotta); color: var(--ink); }
.feature-tab.is-active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

.feature-panel-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  min-height: 140px;
}
.feature-panel {
  display: none;
  align-items: flex-start;
  gap: 28px;
}
.feature-panel.is-active { display: flex; animation: fadeIn .35s ease; }
.feature-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  width: 52px; height: 52px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.feature-panel p { color: var(--ink); font-size: 19px; margin: 0; font-family: var(--font-display); line-height: 1.4; }

@media (max-width: 640px) {
  .feature-panel-wrap { padding: 28px; }
  .feature-panel p { font-size: 17px; }
}

/* ---------- Included / checklist ---------- */
.included-layout { display: grid; gap: 40px; }
@media (min-width: 860px) {
  .included-layout { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}
.amenity-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.amenity-cloud li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 20px 11px 16px;
  font-size: 14.5px;
  font-weight: 600;
}
.amenity-cloud li::before {
  content: "✓";
  color: var(--olive);
  font-weight: 700;
  margin-right: 8px;
}

/* ---------- Rooms band ---------- */
.rooms-band { background: var(--dark); }
.rooms-band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.eyebrow-on-dark { color: var(--mustard); }
.text-on-dark { color: var(--cream); margin: 0; }
.text-on-dark strong { color: var(--mustard); }
.rooms-band .asterisk { color: #B9AF9F; font-size: 15px; }
.rooms-show-all {
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1.5px solid var(--mustard);
  padding-bottom: 2px;
  white-space: nowrap;
}
.rooms-show-all:hover { color: var(--mustard); }

/* ---------- Rooms carousel ---------- */
.room-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.room-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.room-card img { height: 210px; width: 100%; object-fit: cover; }
.room-card-body { padding: 22px; }
.room-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--terracotta-dark); background: #F6E4DB; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 10px;
}
.room-card h3 { font-size: 20px; margin-bottom: 4px; }
.room-loc { color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; }
.room-price { font-size: 15px; margin: 0; }
.room-price strong { font-family: var(--font-display); font-size: 20px; }
.asterisk { color: var(--ink-soft); }
.price-footnote { color: #B9AF9F; font-size: 13px; margin-top: 18px; }

/* ---------- Locations ---------- */
.section-sage { background: #EDF0E6; }
.location-row {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}
@media (min-width: 700px) {
  .location-row { grid-template-columns: repeat(3, 1fr); }
}
.location-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px;
  border-top: 4px solid var(--olive);
}
.location-index {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--olive);
  margin-bottom: 12px;
  font-weight: 600;
}
.location-card h3 { font-size: 19px; margin-bottom: 6px; }
.location-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ---------- Testimonials ---------- */
.quote-carousel { max-width: 720px; margin: 0 auto; text-align: center; position: relative; min-height: 180px; }
.quote-slide {
  margin: 0; display: none; opacity: 0;
}
.quote-slide.is-active { display: block; opacity: 1; animation: fadeIn .4s ease; }
.quote-slide p {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 30px);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 20px;
}
.quote-slide footer { color: var(--ink-soft); font-size: 14px; }
.quote-slide footer strong { color: var(--ink); }
.quote-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.quote-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0;
}
.quote-dot.is-active { background: var(--terracotta); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 48px; }
@media (min-width: 860px) {
  .faq-layout { grid-template-columns: 0.8fr 1.2fr; }
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  color: var(--terracotta);
  width: 22px;
  text-align: center;
}
.faq-icon::before { content: "+"; }
.faq-item[open] .faq-icon::before { content: "\2212"; }
.faq-item p { margin: 14px 0 0; color: var(--ink-soft); font-size: 15px; font-family: var(--font-body); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--terracotta); padding: 72px 0; }
.cta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-banner h2 { color: #fff; margin: 0; max-width: 460px; }
.cta-banner-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-banner .hero-actions { margin: 0; }
.cta-note { color: #F6E4DB; font-size: 13.5px; font-weight: 600; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfc6ba; padding: 72px 0 28px; }
.footer-grid { display: grid; gap: 40px; margin-bottom: 48px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid .brand { color: var(--cream); }
.footer-grid p { font-size: 14.5px; margin-top: 14px; }
.footer-grid h4 { color: var(--cream); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid #3A332B; padding-top: 24px; font-size: 12.5px; color: #948B7E; }
.footer-bottom .disclaimer { max-width: 780px; margin-bottom: 12px; }
