:root {
  --lake: #0e5e63;
  --lake-2: #123f45;
  --ink: #16232a;
  --muted: #5b6b72;
  --cream: #f5f7f6;
  --card: #ffffff;
  --border: #e1e6e4;
  --accent: #d97b4f;
  --accent-2: #e89a72;
  --success: #2f7a4f;
  --success-bg: #e7f3ea;
  --danger: #b1463f;
  --danger-bg: #fbeae8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(14, 40, 43, 0.1);
  --shadow-sm: 0 2px 8px rgba(14, 40, 43, 0.07);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --lake: #4fb3ac;
  --lake-2: #0c1f21;
  --ink: #e9efee;
  --muted: #9fb0ac;
  --cream: #0d1416;
  --card: #142023;
  --border: #253335;
  --accent: #e6935f;
  --accent-2: #f0b083;
  --success: #6fbf8c;
  --success-bg: #163524;
  --danger: #e08a83;
  --danger-bg: #3a2020;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lake: #4fb3ac;
    --lake-2: #0c1f21;
    --ink: #e9efee;
    --muted: #9fb0ac;
    --cream: #0d1416;
    --card: #142023;
    --border: #253335;
    --accent: #e6935f;
    --accent-2: #f0b083;
    --success: #6fbf8c;
    --success-bg: #163524;
    --danger: #e08a83;
    --danger-bg: #3a2020;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.32);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 10px; line-height: 1.2; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }
p { line-height: 1.6; color: var(--ink); margin: 0 0 12px; }

a { color: var(--lake); }
:root[data-theme="dark"] a { color: var(--lake); }

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

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--lake-2);
}
:root[data-theme="dark"] .brand { color: var(--ink); }
.brand .logo { width: 30px; height: 30px; color: var(--lake); }
.brand-text { font-size: 1.05rem; }
.brand-text .accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--lake); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--lake-2); border: 1.5px solid var(--border); }
:root[data-theme="dark"] .btn-outline { color: var(--ink); }
.btn-outline:hover { border-color: var(--lake); color: var(--lake); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--lake-2) 0%, var(--lake) 100%);
  color: #fff;
  padding: 72px 24px 84px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 720px; margin: 0 auto 14px; }
.hero p.lead { color: rgba(255,255,255,0.88); max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }
.hero .hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn-outline:hover { border-color: #fff; }

/* Sections */
section { padding: 64px 24px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.section-head p { color: var(--muted); }

/* Why Eastlake cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 42px; height: 42px;
  color: var(--lake);
  margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* About / agent */
.about-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) { .about-wrap { grid-template-columns: 1fr; text-align: center; } }

.avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--lake) 0%, var(--lake-2) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.about-copy .badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lake);
  background: color-mix(in srgb, var(--lake) 12%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.about-copy h2 { margin-bottom: 2px; }
.about-copy .title { color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.about-copy .contact-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.92rem;
}
.about-copy .contact-row a { text-decoration: none; font-weight: 600; }

/* CTA banner */
.cta-banner {
  background: var(--lake-2);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 30px;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 22px; }

/* Contact / lead form */
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 14px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--lake);
}
textarea { resize: vertical; min-height: 80px; }

.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--success-bg); color: var(--success); }
.form-status.err { background: var(--danger-bg); color: var(--danger); }

/* Footer */
footer {
  background: var(--lake-2);
  color: rgba(255,255,255,0.82);
  padding: 40px 24px 30px;
  font-size: 0.86rem;
}
footer .container { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
footer a { color: #fff; }
footer .fh-note { max-width: 560px; color: rgba(255,255,255,0.6); font-size: 0.78rem; margin-top: 8px; }
footer .copyright { color: rgba(255,255,255,0.5); font-size: 0.78rem; margin-top: 6px; }

/* Breadcrumb */
.breadcrumb {
  padding: 14px 24px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--lake); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

/* Sub-page hero (smaller than homepage hero) */
.hero-sub { padding: 40px 24px 56px; text-align: left; }
.hero-sub .container { max-width: 780px; }
.hero-sub h1 { max-width: none; margin: 0 0 10px; }
.hero-sub p.lead { margin: 0; max-width: none; }

/* Neighborhood detail content */
.neighborhood-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.neighborhood-content h2 { margin-top: 28px; }

.framing-note {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.fact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fact-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
}
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.related-link {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lake) 10%, transparent);
  color: var(--lake-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
:root[data-theme="dark"] .related-link { color: var(--ink); }
.related-link:hover { background: color-mix(in srgb, var(--lake) 18%, transparent); }

/* Neighborhoods index */
.category-section { padding-top: 20px; padding-bottom: 20px; }
.category-section .group-heading {
  max-width: 1080px;
  margin: 0 auto 22px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--border);
}
.category-section .group-heading h2 { margin: 0; }

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) { .neighborhoods-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .neighborhoods-grid { grid-template-columns: 1fr; } }

.neighborhood-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.neighborhood-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.neighborhood-card h3 { color: var(--lake-2); margin-bottom: 6px; }
:root[data-theme="dark"] .neighborhood-card h3 { color: var(--ink); }
.neighborhood-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
