/* ═══════════════════════════════════════════
   B2R2O — Build to Rent to Own
   Shared Stylesheet
   ═══════════════════════════════════════════ */

:root {
  --navy: #1a2e3f;
  --navy-light: #243d54;
  --teal: #2a8a7a;
  --teal-light: #e8f5f2;
  --teal-dark: #1d6b5e;
  --teal-muted: #d0ece6;
  --warm-white: #faf8f5;
  --warm-gray: #f2efe9;
  --text-primary: #1a2e3f;
  --text-secondary: #5a6b7a;
  --text-light: #8a9aaa;
  --accent-coral: #d4785c;
  --border: #e2dfd8;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ─── NAV ─── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px; color: var(--navy);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 450; color: var(--text-secondary);
  text-decoration: none; padding: 8px 14px; border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--navy); background: var(--warm-gray); text-decoration: none; }
.nav-links a.active { color: var(--teal-dark); font-weight: 550; }
.nav-cta {
  font-size: 13px !important; font-weight: 550 !important;
  color: #fff !important; background: var(--teal);
  padding: 9px 20px !important; border-radius: 8px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--teal-dark) !important; color: #fff !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.3s; }

/* ─── HERO VARIANTS ─── */
.hero {
  position: relative; background: var(--navy); overflow: hidden;
}
.hero-image {
  width: 100%; height: 520px;
  object-fit: cover; object-position: center 40%;
  display: block; opacity: 0.85;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,46,63,0.15) 0%, rgba(26,46,63,0.75) 70%, rgba(26,46,63,0.95) 100%);
}
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 40px 48px;
  max-width: 1280px; margin: 0 auto;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(42,138,122,0.25); border: 1px solid rgba(42,138,122,0.4);
  color: #a8e6d8; font-size: 12px; font-weight: 550;
  padding: 5px 14px; border-radius: 20px;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: #5fd4b9; }
.hero h1 {
  font-family: var(--font-display);
  font-size: 52px; line-height: 1.1;
  color: #fff; max-width: 700px; margin-bottom: 14px;
}
.hero p {
  font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,0.78); max-width: 560px;
}
.hero-credit {
  position: absolute; bottom: 14px; right: 40px;
  font-size: 11px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}
.hero-compact {
  background: var(--navy); padding: 64px 40px 56px;
  text-align: center;
}
.hero-compact h1 {
  font-family: var(--font-display);
  font-size: 44px; line-height: 1.15;
  color: #fff; max-width: 640px; margin: 0 auto 14px;
}
.hero-compact p {
  font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto;
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: #fff; border-bottom: 1px solid var(--border); padding: 0 40px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 28px 24px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 36px; color: var(--teal-dark); line-height: 1;
}
.stat-label {
  font-size: 13px; color: var(--text-secondary);
  margin-top: 6px; font-weight: 450;
}

/* ─── SECTIONS ─── */
.section {
  padding: 72px 40px; max-width: 1200px; margin: 0 auto;
}
.section-warm { background: var(--warm-white); }
.section-teal { background: var(--navy); color: #fff; }
.section-teal-accent { background: var(--teal); color: #fff; }
.section-inner {
  max-width: 1200px; margin: 0 auto; padding: 72px 40px;
}

.section-header { margin-bottom: 40px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-left: auto; margin-right: auto; }

.section-eyebrow {
  font-size: 12px; font-weight: 600;
  color: var(--teal); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 10px;
}
.section-teal .section-eyebrow,
.section-teal-accent .section-eyebrow { color: #5fd4b9; }

.section-title {
  font-family: var(--font-display);
  font-size: 34px; line-height: 1.2;
  color: var(--text-primary);
}
.section-teal .section-title,
.section-teal-accent .section-title { color: #fff; }

.section-subtitle {
  font-size: 16px; line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 12px; max-width: 640px;
}
.section-teal .section-subtitle,
.section-teal-accent .section-subtitle { color: rgba(255,255,255,0.7); }

/* ─── PROSE ─── */
.prose { max-width: 720px; }
.prose.centered { margin-left: auto; margin-right: auto; }
.prose p {
  font-size: 16px; line-height: 1.85;
  color: var(--text-secondary); margin-bottom: 20px;
}
.prose p:last-child { margin-bottom: 0; }
.prose p strong { color: var(--text-primary); font-weight: 550; }
.prose h3 {
  font-family: var(--font-display);
  font-size: 22px; color: var(--text-primary);
  margin: 36px 0 12px;
}
.prose h3:first-child { margin-top: 0; }
.prose blockquote {
  border-left: 3px solid var(--teal);
  padding: 16px 0 16px 24px;
  margin: 28px 0;
  font-size: 18px; line-height: 1.6;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-style: italic;
}

/* ─── GRIDS ─── */
.overview-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.overview-text p {
  font-size: 16px; line-height: 1.8;
  color: var(--text-secondary); margin-bottom: 20px;
}
.overview-text p strong { color: var(--text-primary); font-weight: 550; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ─── CARDS ─── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
}
.card-warm { background: var(--warm-white); }
.card h4 {
  font-family: var(--font-display);
  font-size: 18px; margin-bottom: 8px; color: var(--navy);
}
.card p {
  font-size: 14px; line-height: 1.7; color: var(--text-secondary);
}
.card a.card-link {
  display: inline-block; margin-top: 10px;
  font-size: 13px; font-weight: 550; color: var(--teal);
}

.detail-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.detail-card h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 16px; color: var(--navy); }
.detail-list { list-style: none; }
.detail-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 14.5px; line-height: 1.5;
}
.detail-list li:last-child { border-bottom: none; }
.detail-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  background: var(--teal-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.detail-icon::after { content: ''; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }

/* Dark cards (for teal/navy sections) */
.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 28px;
}
.card-dark .card-num {
  font-size: 11px; font-weight: 600; color: #5fd4b9;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.card-dark h4 { font-family: var(--font-display); font-size: 19px; color: #fff; margin-bottom: 10px; }
.card-dark p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.65); }

/* Persona cards */
.persona-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; text-align: center;
}
.persona-emoji {
  width: 64px; height: 64px; background: var(--teal-light);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 14px; font-size: 28px;
}
.persona-card h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.persona-card .role { font-size: 13px; color: var(--teal-dark); font-weight: 550; margin-bottom: 10px; }
.persona-card p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ─── STEP CARDS (How It Works) ─── */
.step-row {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 24px; align-items: start;
  padding: 36px 0; border-bottom: 1px solid var(--border);
}
.step-row:last-child { border-bottom: none; }
.step-num {
  width: 56px; height: 56px;
  background: var(--teal-light); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; color: var(--teal-dark);
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 22px; color: var(--text-primary); margin-bottom: 8px;
}
.step-content p {
  font-size: 15px; line-height: 1.75; color: var(--text-secondary);
}

/* ─── TIMELINE ─── */
.timeline {
  display: flex; gap: 0; align-items: stretch;
  position: relative; margin-top: 8px;
}
.timeline::before {
  content: ''; position: absolute;
  top: 28px; left: 24px; right: 24px;
  height: 3px; background: var(--border); border-radius: 2px;
}
.tl-step { flex: 1; text-align: center; position: relative; padding-top: 48px; }
.tl-dot {
  position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--border); z-index: 2;
}
.tl-step.done .tl-dot { background: var(--teal); border-color: var(--teal); }
.tl-step.current .tl-dot { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(42,138,122,0.2); }
.tl-step h5 { font-size: 13.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.tl-step p { font-size: 12px; color: var(--text-light); line-height: 1.4; }
.tl-step.done h5 { color: var(--teal-dark); }
.tl-step.future h5 { color: var(--text-light); }

/* ─── TEAM / BIO ─── */
.bio-row {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 36px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--border);
}
.bio-row:last-child { border-bottom: none; }
.bio-photo {
  width: 200px; height: 240px;
  border-radius: 14px; object-fit: cover;
  background: var(--warm-gray);
}
.bio-content h3 {
  font-family: var(--font-display);
  font-size: 24px; color: var(--text-primary); margin-bottom: 2px;
}
.bio-content .bio-role {
  font-size: 14px; color: var(--teal-dark); font-weight: 550; margin-bottom: 14px;
}
.bio-content p {
  font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 12px;
}

/* ─── PRESS ─── */
.press-item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 24px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.press-item:last-child { border-bottom: none; }
.press-thumb {
  width: 160px; height: 100px;
  border-radius: 10px; object-fit: cover;
  background: var(--warm-gray);
}
.press-meta {
  font-size: 12px; color: var(--text-light);
  font-weight: 500; margin-bottom: 6px;
}
.press-item h3 {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.3; color: var(--text-primary);
}
.press-item h3 a { color: var(--text-primary); }
.press-item h3 a:hover { color: var(--teal); }
.press-source {
  font-size: 13px; color: var(--text-secondary); margin-top: 4px;
}

/* ─── CONTACT FORM ─── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 550;
  color: var(--text-primary); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--text-primary); background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,138,122,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  padding: 13px 28px; border-radius: 10px;
  text-decoration: none; cursor: pointer;
  transition: all 0.2s; border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-white { background: #fff; color: var(--teal-dark); }
.btn-white:hover { background: var(--warm-white); }
.btn-outline-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 12px 28px;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── CTA SECTIONS ─── */
.cta-section {
  background: var(--teal); padding: 64px 40px; text-align: center;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 34px; color: #fff; margin-bottom: 12px;
}
.cta-section p {
  font-size: 16px; color: rgba(255,255,255,0.8);
  max-width: 520px; margin: 0 auto 28px; line-height: 1.6;
}
.cta-section .btn-group { justify-content: center; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy); padding: 48px 40px 32px;
  color: rgba(255,255,255,0.5); font-size: 13px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 18px; color: #fff; margin-bottom: 8px;
}
.footer-brand span { color: #5fd4b9; }
.footer-left p { color: rgba(255,255,255,0.4); line-height: 1.6; }
.footer-links { display: flex; gap: 40px; }
.footer-col h5 {
  color: rgba(255,255,255,0.7); font-size: 12px;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.45);
  text-decoration: none; font-size: 13.5px; padding: 3px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ─── HOME-SPECIFIC ─── */
.home-hero {
  background: var(--navy); padding: 100px 40px 80px;
  position: relative; overflow: hidden;
}
.home-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: 48px; line-height: 1.12;
  color: #fff; margin-bottom: 18px;
}
.home-hero p {
  font-size: 17px; line-height: 1.65;
  color: rgba(255,255,255,0.72); margin-bottom: 28px;
  max-width: 480px;
}
.home-hero-image {
  width: 100%; border-radius: 16px;
  object-fit: cover; height: 360px;
  border: 1px solid rgba(255,255,255,0.08);
}
.home-mission {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: -40px;
  position: relative; z-index: 2;
  max-width: 1200px; margin-left: auto; margin-right: auto;
  padding: 0 40px;
}
.home-mission-card {
  background: #fff; border-radius: 14px;
  padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}
.home-mission-card .card-icon {
  width: 48px; height: 48px; background: var(--teal-light);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; font-size: 22px;
}
.home-mission-card h3 {
  font-family: var(--font-display);
  font-size: 19px; color: var(--text-primary); margin-bottom: 8px;
}
.home-mission-card p {
  font-size: 14px; line-height: 1.7; color: var(--text-secondary);
}

/* ─── SUPPORT PAGE ─── */
.support-highlight {
  background: var(--teal-light);
  border: 1px solid var(--teal-muted);
  border-radius: 14px; padding: 28px;
}
.support-highlight h4 {
  font-family: var(--font-display);
  font-size: 18px; color: var(--teal-dark); margin-bottom: 8px;
}
.support-highlight p {
  font-size: 14.5px; line-height: 1.7; color: var(--text-secondary);
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px 20px; gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }

  .hero h1, .hero-compact h1 { font-size: 34px; }
  .hero-image { height: 320px; }
  .hero-content { padding: 0 20px 32px; }
  .home-hero { padding: 60px 20px 50px; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .home-hero h1 { font-size: 36px; }
  .home-mission { grid-template-columns: 1fr; margin-top: -20px; padding: 0 20px; }
  .home-hero-image { height: 240px; }

  .section, .section-inner { padding: 48px 20px; }
  .section-title { font-size: 28px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

  .overview-grid, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .structure-cards { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  .partner-row { flex-direction: column; }
  .bio-row { grid-template-columns: 1fr; }
  .bio-photo { width: 140px; height: 170px; }
  .press-item { grid-template-columns: 1fr; }
  .press-thumb { width: 100%; height: 180px; }

  .timeline { flex-wrap: wrap; gap: 0; }
  .timeline::before { display: none; }
  .tl-step {
    flex: none; width: 50%; padding: 16px 8px 16px 28px;
    text-align: left;
  }
  .tl-dot { position: absolute; top: 18px; left: 0; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; }
  .cta-section { padding: 48px 20px; }
  .cta-section h2 { font-size: 28px; }
}
