/* ============================================
   Clearview Real Estate — shared stylesheet
   ============================================ */

:root {
  --navy: #1f3864;
  --navy-dark: #142544;
  --navy-tint: #eef1f7;
  --gold: #b8860b;
  --gold-light: #d4a017;
  --cream: #faf8f3;
  --white: #ffffff;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --border: #e4e0d6;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(31, 56, 100, 0.08);
  --shadow-lg: 0 12px 34px rgba(31, 56, 100, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}
.section--tint { background: var(--navy-tint); }
.section--navy { background: var(--navy); color: #dfe6f2; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c7d1e6; }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo span { color: var(--gold); }

/* logo image lockup (header) */
.logo-img {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 2px 0;
}
.logo-img img {
  display: block;
  height: 52px;
  width: auto;
}
@media (max-width: 860px) {
  .logo-img img { height: 42px; }
}
@media (max-width: 400px) {
  .logo-img img { height: 36px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a.active { color: var(--gold); }
.nav-cta {
  padding: 10px 22px;
  font-size: 0.88rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    width: 100%;
    border-top: 1px solid var(--border);
  }
  .nav-cta { margin: 14px 24px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 0 100px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.1rem;
  color: #c7d1e6;
  max-width: 520px;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge-row {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #dfe6f2;
}
.hero-badge strong { display: block; color: var(--white); font-size: 1rem; }

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 30px;
}
.hero-panel h3 { color: var(--white); font-size: 1.05rem; }
.hero-panel ul { margin: 0; padding-left: 18px; color: #c7d1e6; }
.hero-panel li { margin-bottom: 10px; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.1rem; }
.page-hero p { color: #c7d1e6; max-width: 560px; margin: 0 auto; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 46px;
  height: 46px;
  color: var(--gold);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Founder profile ---------- */
.founder {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 34px;
  align-items: start;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.founder-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  border: 3px solid var(--gold);
  overflow: hidden;
}
.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.founder h3 { margin-bottom: 2px; }
.founder .role {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: block;
}
.founder-links { margin-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; }
.founder-links a {
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
}
.founder-links a:hover { border-color: var(--gold); }
.pending-badge {
  display: inline-block;
  background: #fdf3e0;
  color: #8a6100;
  border: 1px solid #f0d9a3;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
@media (max-width: 700px) {
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder-avatar { margin: 0 auto; }
  .founder-links { justify-content: center; }
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 30px 22px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  margin-bottom: 14px;
}
.step h3 { font-size: 1rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Area / list tags ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag {
  background: var(--navy-tint);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gold);
  color: var(--white);
  border-radius: 16px;
  padding: 44px;
  text-align: center;
  margin-top: 20px;
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: #fff3dc; margin-bottom: 26px; }
.cta-banner .btn-primary { background: var(--navy); }
.cta-banner .btn-primary:hover { background: var(--navy-dark); }

/* ---------- Notice / placeholder box ---------- */
.notice {
  border: 1px dashed var(--gold);
  background: #fdf6e8;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: #6b5100;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-info-item .icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-info-item h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info-item p { margin-bottom: 0; color: var(--muted); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b7c1d8;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-grid .logo { color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer-grid p { font-size: 0.9rem; color: #96a3c2; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b7c1d8; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 0.82rem;
  color: #7c88a6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
