/* ============================================================
   REVIVE REAL ESTATE GROUP — DESIGN SYSTEM
   Concept: the visual language of a site plan / land plat —
   parcel boundaries, coordinate marks, survey linework —
   because that's the literal artifact this business works from.
   ============================================================ */

/* Fonts are loaded via <link> + <link rel="preconnect"> in each page's <head> for faster rendering (see index.html etc.) rather than @import here, which blocks rendering until discovered. */

:root {
  /* Color — navy/blue corporate palette matching the brand logo */
  --ink:        #14213D;   /* deep indigo-navy — primary text, dark sections */
  --paper:      #F7F8FA;   /* clean cool white — background */
  --paper-dim:  #EDF1F6;   /* subtle blue-gray tint for alternating panels */
  --steel:      #446080;   /* secondary accent — labels, tags, links (darkened for WCAG AA contrast on small text) */
  --blue:       #2955A3;   /* primary brand blue — CTA buttons, primary accent */
  --blue-dark:  #1E3F7A;   /* CTA hover state */
  --line:       #D8DEE6;   /* hairline rule color */
  --line-dark:  #2B3A5C;   /* rule color on dark backgrounds */
  --charcoal:   #20242E;   /* body text */
  --white:      #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-outline-light {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-dark);
}
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img { height: 40px; width: auto; display: block; }
.footer-logo img { height: 34px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-nav a {
  color: var(--ink);
  opacity: 0.7;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s ease;
}
.main-nav a:hover { opacity: 1; }
.main-nav a.active { opacity: 1; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-phone {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-cta { display: none; }

@media (max-width: 900px) {
  .main-nav { position: fixed; top: 65px; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--paper); flex-direction: column; padding: 40px 32px; align-items: flex-start; gap: 24px; font-size: 1rem; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .header-actions .btn-primary { display: none; }
  .mobile-cta { display: inline-flex; margin-top: 12px; }
}

/* ---------- Hero / plat-line motif ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-photo { padding: 0; min-height: 560px; display: flex; align-items: center; }
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(100deg, var(--paper) 0%, var(--paper) 46%, rgba(247,248,250,0.97) 56%, rgba(247,248,250,0.82) 68%, rgba(247,248,250,0.4) 84%, rgba(247,248,250,0.12) 100%);
  z-index: 1;
}
.hero-photo .hero-inner { padding: 90px 0; }
.hero-inner .lede { text-shadow: 0 1px 14px var(--paper), 0 1px 4px var(--paper); }

@media (max-width: 860px) {
  .hero-photo { min-height: 0; }
  .hero-scrim { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, rgba(247,248,250,0.95) 74%, rgba(247,248,250,0.82) 100%); }
  .hero-bg { background-position: center 30%; }
  .hero-photo .hero-inner { padding: 56px 0 40px; }
}

.plat-frame {
  position: absolute;
  top: 24px; left: 24px; right: 24px; bottom: 24px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 2;
}
.plat-frame::before,
.plat-frame::after,
.plat-frame .c3,
.plat-frame .c4 {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--blue);
}
.plat-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.plat-frame::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.plat-frame .c3 { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.plat-frame .c4 { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 { margin: 22px 0 24px; }
.hero .lede { font-size: 1.15rem; color: var(--charcoal); opacity: 0.85; margin-bottom: 36px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Proof strip ---------- */
.proof-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper-dim);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 0;
}
.proof-item {
  text-align: center;
  padding: 10px 18px;
  border-left: 1px solid var(--line);
}
.proof-item:first-child { border-left: none; }
.proof-num { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }
.proof-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); margin-top: 4px; }

@media (max-width: 760px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .proof-item:nth-child(3) { border-left: none; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 16px; opacity: 0.85; }

.section-alt { background: var(--paper-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2, .section-dark h3, .section-dark .eyebrow { color: var(--paper); }
.section-dark .eyebrow { color: #8FADD9; }
.section-dark p { color: rgba(247,248,250,0.78); }

/* ---------- Card grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.card {
  background: var(--paper);
  padding: 34px 30px;
  position: relative;
  transition: background 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -18px rgba(20, 33, 61, 0.28);
  z-index: 2;
}
.community-card:hover img { filter: saturate(1.08); }
.card .tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.card h3 { margin: 12px 0 12px; }
.card p { font-size: 0.94rem; opacity: 0.82; margin-bottom: 16px; }
.card ul { list-style: none; font-size: 0.9rem; }
.card ul li { padding: 6px 0 6px 18px; position: relative; opacity: 0.82; border-top: 1px solid var(--line); }
.card ul li:first-child { border-top: none; }
.card ul li::before { content: "—"; position: absolute; left: 0; color: var(--steel); }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.03em; }

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

/* ---------- Coordinate label (signature micro-element) ---------- */
.coord {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--steel);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

/* ---------- Community / result cards ---------- */
.status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid currentColor;
}
.status-selling { color: #3E7B4F; }
.status-soldout { color: #8A8577; }
.status-coming { color: #B4790C; }

.community-card { padding: 0; overflow: hidden; }
.community-card img { height: 210px; object-fit: cover; width: 100%; transition: transform 0.4s ease, filter 0.4s ease; }
.community-card:hover img { transform: scale(1.05); }
.community-body { padding: 24px 26px; }
.community-body h3 { margin: 10px 0 10px; }
.community-body p { font-size: 0.9rem; opacity: 0.82; }

/* ---------- Team ---------- */
.team-card { padding: 34px 30px; }
.team-photo { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); margin-bottom: 18px; }
.team-card h3 { margin-bottom: 4px; }
.team-role { font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; display: block; }
.team-card p { font-size: 0.9rem; opacity: 0.82; margin-bottom: 12px; }

/* ---------- Builder wordmark strip ---------- */
.builder-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--line);
}
.builder-strip span {
  background: var(--paper);
  padding: 16px 22px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  opacity: 0.75;
  flex: 1 1 auto;
  text-align: center;
  border-right: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 70px 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-band h2 { color: var(--paper); margin-bottom: 18px; }
.cta-band p { max-width: 520px; margin: 0 auto 32px; color: rgba(247,248,250,0.78); }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.form-field textarea { resize: vertical; min-height: 110px; font-family: var(--font-body); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.form-note { font-size: 0.82rem; opacity: 0.65; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4 {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid ul li a { opacity: 0.75; transition: opacity 0.2s; }
.footer-grid ul li a:hover { opacity: 1; }
.footer-brand p { font-size: 0.88rem; opacity: 0.7; margin-top: 14px; max-width: 32ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Long-form text rhythm ---------- */
.prose p { max-width: 68ch; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- In-page jump nav (long pages) ---------- */
.jump-nav {
  position: sticky;
  top: 73px;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow-x: auto;
}
.jump-nav-inner {
  display: flex;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.jump-nav-inner a { color: var(--steel); opacity: 0.75; transition: opacity 0.2s; }
.jump-nav-inner a:hover { opacity: 1; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-header h1 { margin-top: 16px; }
.page-header .lede { margin-top: 18px; font-size: 1.05rem; opacity: 0.85; max-width: 640px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
