/* Tim Chong Realtor - shared styles */
:root {
  --ink: #1c2b2a;
  --ink-soft: #4a5a58;
  --paper: #faf8f4;
  --paper-alt: #f1ede4;
  --accent: #2f4a3e;
  --accent-light: #5c7c68;
  --gold: #b08d57;
  --line: #e2ddd0;
  --white: #ffffff;
  --radius: 10px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}
h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
}
.brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700; font-size: 1.15rem; color: var(--ink);
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand small {
  font-weight: 400; font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-light); margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 26px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.btn {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600; font-size: 0.88rem;
  padding: 11px 22px; border-radius: 999px;
  background: var(--accent); color: var(--white) !important;
  border: 1px solid var(--accent);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white) !important; }
.btn-outline {
  background: transparent; color: var(--accent) !important; border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white) !important; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,26,0.55), rgba(20,30,26,0.72));
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 0 24px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.78rem; color: var(--gold); margin-bottom: 14px;
}
.hero h1 {
  color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 18px;
}
.hero p { font-size: 1.1rem; color: #eee; max-width: 560px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero.small { min-height: 42vh; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.76rem; color: var(--accent-light); margin-bottom: 10px; display: block;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(28,43,42,0.08); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; }
.card-link { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: 0.86rem; }

.cta-band {
  background: var(--accent); color: var(--white); text-align: center; padding: 64px 24px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dfe8e2; max-width: 560px; margin: 0 auto 26px; }

/* Footer */
.site-footer { background: var(--ink); color: #d9ddd6; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: #bfc8bf; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  font-size: 0.78rem; color: #98a198; text-align: center; line-height: 1.6;
}

/* Forms */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; max-width: 560px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.85rem; font-weight: 600; display: block; margin: 14px 0 6px; }
input, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.95rem; background: var(--paper);
}
textarea { min-height: 120px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; font-weight: 400; }
.form-submit { margin-top: 10px; width: 100%; text-align: center; border: none; cursor: pointer; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }

/* Breadcrumb / page hero */
.page-hero {
  padding: 56px 0 40px; text-align: center; border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.76rem; color: var(--accent-light); display: block; margin-bottom: 10px;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* Blog / neighborhood article */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body img { border-radius: var(--radius); margin: 24px 0; }
.article-meta {
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.82rem; color: var(--ink-soft);
  text-align: center; margin-bottom: 8px;
}
.article-body h2 { margin-top: 1.6em; font-size: 1.35rem; }
.article-body h3 { margin-top: 1.2em; font-size: 1.1rem; }
.tag-badge {
  display: inline-block; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em; background: var(--paper-alt);
  color: var(--accent); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* Listing page */
.listing-banner {
  background: #7a5a2a; color: var(--white); text-align: center; padding: 10px 20px;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.listing-price { font-size: 1.6rem; color: var(--accent); font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.listing-facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 18px 0 30px; font-family: "Helvetica Neue", Arial, sans-serif; }
.listing-facts div strong { display: block; font-size: 1.25rem; color: var(--ink); }
.listing-facts div span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.photo-grid img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.feature-list { columns: 2; gap: 32px; margin: 20px 0; }
.feature-list li { margin-bottom: 8px; break-inside: avoid; }

/* Neighborhood list on hub */
.neigh-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.neigh-links a {
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.85rem;
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; color: var(--ink-soft);
}
.neigh-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .feature-list { columns: 1; }
  section { padding: 52px 0; }
}
