/* ─────────────────────────────────────────────────────────────
   TRAVERSE HOMES — shared design system (v2 redesign)
   Warm editorial · typography-led · blueprint motif
   Loaded by index.html, available-homes.html,
   property-detail.html, process.html alongside Tailwind CDN.
   ───────────────────────────────────────────────────────────── */

:root {
  --teal-900: #0A3E52;   /* primary — locked */
  --teal-700: #0D5068;
  --teal-400: #4A7C8C;
  --ink:      #1F2A2E;
  --slate:    #5B6B70;
  --cream-50: #FAF7F2;
  --cream-100:#F4EEE5;
  --sand-200: #E7DDCE;
  --clay:     #B08A6A;
  --line:     #DBD3C7;
  --success:  #2F7A4D;
  --amber:    #C98A3C;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream-50);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
.font-display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.accent-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.display-hero {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--teal-900);
}
.display-xl {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--teal-900);
}
.display-lg {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--teal-900);
}
.body-lg {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--slate);
}
.body-std {
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate);
}

/* ── Eyebrow: clay rule + spaced caps ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--clay);
}
.eyebrow.centered::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--clay);
}
.eyebrow.on-dark { color: rgba(255,255,255,0.65); }
.eyebrow.on-dark::before,
.eyebrow.on-dark::after { background: var(--clay); }

/* ── Spec labels (blueprint captions) ── */
.spec-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.spec-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
  padding-top: 10px;
}
.spec-caption::before {
  content: '·';
  color: var(--clay);
  font-size: 18px;
  line-height: 1;
}
.spec-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(250,247,242,0.92);
  color: var(--teal-900);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--sand-200);
}

/* ── Blueprint frame with drafting corner ticks ── */
.blueprint-frame {
  position: relative;
  border: 1px solid var(--teal-400);
  padding: 10px;
  background: white;
}
.blueprint-frame::before,
.blueprint-frame::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.blueprint-frame::before {
  top: -5px;
  left: -5px;
  border-top: 2px solid var(--teal-900);
  border-left: 2px solid var(--teal-900);
}
.blueprint-frame::after {
  bottom: -5px;
  right: -5px;
  border-bottom: 2px solid var(--teal-900);
  border-right: 2px solid var(--teal-900);
}
.blueprint-frame img { display: block; width: 100%; }

/* ── Subtle graph-paper texture (pure CSS) ── */
.grid-texture {
  background-image:
    linear-gradient(to right, rgba(10,62,82,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,62,82,0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.grid-texture-dark {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Buttons (radius 2px — editorial) ── */
.btn-primary, .btn-secondary, .btn-on-dark, .btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--teal-900); color: white; border: 1px solid var(--teal-900); }
.btn-primary:hover { background: var(--teal-700); border-color: var(--teal-700); }
.btn-secondary { background: white; color: var(--teal-900); border: 1px solid var(--teal-900); }
.btn-secondary:hover { background: rgba(10,62,82,0.05); }
.btn-on-dark { background: white; color: var(--teal-900); border: 1px solid white; }
.btn-on-dark:hover { background: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.85); }
.btn-ghost-dark { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.12); }

.link-underline {
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.link-underline:hover { border-bottom-color: var(--clay); }

/* ── Navigation (shared across all pages) ── */
.nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-900);
}
.nav-link:hover { color: var(--teal-700); }
.nav-link.active { color: var(--teal-700); }
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }
@media (max-width: 767px) {
  .nav-logo-box { padding: 0 16px !important; height: calc(100% + 6px) !important; }
  .nav-logo-box img { height: 38px !important; }
}

/* ── Property cards ── */
.property-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(31,42,46,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  box-shadow: 0 10px 28px rgba(31,42,46,0.12);
  transform: translateY(-2px);
}
.card-spec-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay);
}

/* Status badges */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  padding: 6px 12px;
  border-radius: 2px;
}
.badge.inline-badge { position: static; }
.badge-construction { background: var(--amber); }
.badge-coming-soon { background: var(--teal-700); }
.badge-complete { background: var(--success); }

/* Card carousels (available homes) */
.carousel-viewport { position: relative; overflow: hidden; height: 230px; background: var(--cream-100); }
.carousel-track { display: flex; height: 100%; transition: transform 0.35s ease; }
.carousel-track img { flex-shrink: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  box-shadow: 0 1px 4px rgba(31,42,46,0.2);
  transition: background 0.15s; z-index: 10;
}
.carousel-arrow:hover { background: white; }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel-arrow svg { width: 14px; height: 14px; color: var(--teal-900); }

/* CTA tile that balances a short listings grid */
.cta-tile {
  background: var(--teal-900);
  border-radius: 14px;
  border: 1px solid var(--teal-900);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 32px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

/* ── Process numerals ── */
.process-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 46px;
  line-height: 1;
  color: var(--clay);
}

/* ── Promise band check icon ── */
.check-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Detail page stat blocks ── */
.stat-block { display: flex; flex-direction: column; gap: 4px; }
.stat-block .label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate);
}
.stat-block .value {
  font-size: 15px; font-weight: 600;
  color: var(--teal-900);
}
.stat-block.highlight .label { color: var(--clay); }
.stat-block.highlight .value { color: var(--teal-700); }

/* Section header (detail page card headers) */
.section-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 16px;
}

/* ── FAQ accordion ── */
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--teal-900);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ''; }
.faq-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--teal-700);
  transition: transform 0.25s ease;
}
.faq-item[open] > summary .faq-arrow { transform: rotate(180deg); }
.faq-a {
  margin: 0;
  padding: 0 0 24px;
  max-width: 92%;
}
