/* JJ Zhang Real Estate Team — jjteamusa.com
   Colors: Black #1A1A1A · Terracotta #C4593C · Warm White #FAF7F2
   Fonts: Cormorant Garamond (headings) · Montserrat (body) */

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

:root {
  --black: #1A1A1A;
  --terra: #B22234;
  --terra-light: #CC3344;
  --warm-white: #FAF7F2;
  --warm-gray: #E8E3DC;
  --text: #2C2C2C;
  --text-light: #6B6560;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terra-light); }

/* ——— Typography ——— */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--black); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }
p + p { margin-top: 1rem; }

/* ——— Layout ——— */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--warm-gray);
}
.header-inner {
  display: flex; align-items: center;
  max-width: none; margin: 0;
  padding: 1.25rem 2rem;
  gap: 2rem;
}
.header-right {
  display: flex; align-items: center; gap: 2rem; margin-left: auto;
}
.header-logo img { height: 72px; width: auto; flex: 0 0 auto; object-fit: contain; max-width: none; }
.header-logo { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
@media (max-width: 1150px) {
  .header-inner { flex-wrap: wrap; row-gap: 1rem; }
}

/* Nav */
.main-nav ul { display: flex; gap: 2rem; list-style: none; align-items: center; }
.main-nav a {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--black); padding: 0.25rem 0;
  border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--terra); border-bottom-color: var(--terra);
}

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

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--warm-white); border-bottom: 1px solid var(--warm-gray); padding: 1rem var(--gutter); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--warm-gray); }
  .main-nav a { display: block; padding: 0.75rem 0; border-bottom: none; }
}

/* ——— Hero ——— */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .subtitle {
  font-family: var(--font-body); font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-light); font-weight: 400; max-width: 560px;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

.hero-headshot {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-headshot img {
  width: 100%; max-width: 375px;
  aspect-ratio: 1; object-fit: cover;
}

/* ——— Buttons ——— */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: 2px solid var(--terra); color: var(--terra);
  transition: background 0.2s, color 0.2s; cursor: pointer;
}
.btn:hover { background: var(--terra); color: #fff; }
.btn-filled { background: var(--terra); color: #fff; }
.btn-filled:hover { background: var(--terra-light); border-color: var(--terra-light); color: #fff; }

/* ——— Services Grid ——— */
.services-grid.services-grid-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}
@media (max-width: 700px) {
  .services-grid.services-grid-2col { grid-template-columns: 1fr; grid-template-rows: auto; grid-auto-flow: row; }
}

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.service-card {
  padding: 2.5rem 2rem; border: 1px solid var(--warm-gray);
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--terra); }
.service-card h3 { font-size: 1.4rem; }
.service-card .card-number {
  font-family: var(--font-heading); font-size: 3rem; color: var(--warm-gray);
  font-weight: 300; line-height: 1; margin-bottom: 1rem;
}

/* ——— Areas Grid ——— */
.areas-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.area-card {
  display: block; padding: 2rem; border: 1px solid var(--warm-gray);
  color: var(--black); transition: border-color 0.2s, transform 0.2s;
}
.area-card:hover { border-color: var(--terra); transform: translateY(-2px); }
.area-card h3 { margin-bottom: 0.5rem; }
.area-card p { font-size: 0.9rem; color: var(--text-light); }

/* ——— Two-column layout ——— */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ——— Step list ——— */
.step-list { list-style: none; counter-reset: steps; }
.step-list li {
  counter-increment: steps; position: relative;
  padding: 1.5rem 0 1.5rem 4rem;
  border-bottom: 1px solid var(--warm-gray);
}
.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute; left: 0; top: 1.5rem;
  font-family: var(--font-heading); font-size: 1.8rem; color: var(--terra);
  font-weight: 600; line-height: 1;
}
.step-list li h3 { margin-bottom: 0.25rem; }
.step-list li p { font-size: 0.95rem; color: var(--text-light); }

/* ——— Neighborhood detail ——— */
.neighborhood-header {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--warm-gray);
}
.neighborhood-header .overline {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 0.5rem;
}
.neighborhood-content { padding: clamp(2rem, 5vw, 4rem) 0; }
.neighborhood-content h2 { margin-top: 2.5rem; }
.neighborhood-content h2:first-child { margin-top: 0; }
.neighborhood-content ul { margin: 0.75rem 0 0 1.25rem; }
.neighborhood-content li { margin-bottom: 0.4rem; }

/* ——— Blog ——— */
.blog-list { list-style: none; }
.blog-list li { border-bottom: 1px solid var(--warm-gray); padding: 2rem 0; }
.blog-list li:first-child { padding-top: 0; }
.blog-list .post-date {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 0.25rem;
}
.blog-list h2 { font-size: 1.5rem; }
.blog-list h2 a { color: var(--black); }
.blog-list h2 a:hover { color: var(--terra); }
.blog-list p { margin-top: 0.5rem; font-size: 0.95rem; color: var(--text-light); }

.post-header { padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.post-hero { padding: 0 var(--gutter); max-width: 900px; margin: 2rem auto 0; }
.post-hero img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .post-hero { padding: 0 0.5rem; }
}
.post-header .post-date {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 0.75rem;
}
.post-body { padding: clamp(2rem, 5vw, 3rem) 0; max-width: 760px; }
.post-body h2 { margin-top: 2.5rem; }
.post-body h2:first-child { margin-top: 0; }
.post-body ul, .post-body ol { margin: 0.75rem 0 1rem 1.25rem; }
.post-body li { margin-bottom: 0.4rem; }

/* ——— Contact ——— */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info h3 { margin-top: 2rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { margin-top: 0.25rem; }
.contact-form label {
  display: block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.4rem; margin-top: 1.25rem;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.75rem 1rem;
  font-family: var(--font-body); font-size: 0.95rem;
  border: 1px solid var(--warm-gray); background: #fff;
  color: var(--text); transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--terra);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { margin-top: 1.5rem; width: 100%; text-align: center; border: none; }

/* ——— Footer ——— */
.site-footer {
  background: var(--black); color: #ccc;
  padding: clamp(3rem, 6vw, 4rem) 0 2rem; font-size: 0.85rem; line-height: 1.6;
}
.site-footer a { color: #ddd; }
.site-footer a:hover { color: var(--terra-light); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-grid h4 {
  font-family: var(--font-heading); font-size: 1.1rem;
  color: #fff; margin-bottom: 0.75rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-legal {
  border-top: 1px solid #333; padding-top: 2rem;
  font-size: 0.8rem; color: #999; line-height: 1.8;
}
.footer-legal p + p { margin-top: 0.75rem; }
.eho { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; }
.eho img { display: block; flex-shrink: 0; height: 46px; width: auto; filter: invert(1); }

/* ——— Breadcrumb ——— */
.breadcrumb {
  font-size: 0.8rem; color: var(--text-light);
  padding: 1rem 0; border-bottom: 1px solid var(--warm-gray);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb span { margin: 0 0.4rem; }

/* ——— Accent line ——— */
.accent-line {
  width: 48px; height: 2px; background: var(--terra); margin-bottom: 1.5rem;
}

/* ——— Image placeholder ——— */
.img-placeholder {
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Courier New', monospace; font-size: 0.8rem; color: var(--text-light);
  text-align: center; padding: 2rem; aspect-ratio: 16/9;
}

/* ——— Pull quote ——— */
.pull-quote {
  border-left: 3px solid var(--terra); padding: 1.5rem 0 1.5rem 2rem;
  margin: 2rem 0;
}
.pull-quote p {
  font-family: var(--font-heading); font-size: 1.4rem;
  color: var(--black); line-height: 1.4; font-style: italic;
}

/* ——— Utility ——— */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ——— Homepage compliance links ——— */
.compliance-links {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  padding: 2rem 0; border-top: 1px solid var(--warm-gray);
  font-size: 0.85rem;
}
.compliance-links a { color: var(--terra); font-weight: 500; }

/* ——— Language badge ——— */
.lang-badge {
  display: inline-flex; gap: 0.5rem; align-items: center;
  font-size: 0.85rem; color: var(--text-light); margin-top: 1rem;
}
.lang-badge span,
.lang-badge .lang-btn {
  padding: 0.2rem 0.5rem; border: 1px solid var(--warm-gray);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
  background: none; cursor: pointer; font-family: var(--font-body);
  color: var(--text-light); transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-align: center;
}
.lang-btn.active {
  border-color: var(--terra); color: var(--terra); background: rgba(178,34,52,0.06);
}

/* Print */
@media print {
  .site-header, .nav-toggle { display: none; }
  body { font-size: 12pt; }
}

/* ——— Aerial hero ——— */
.hero.hero-aerial {
  position: relative;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.55)), url('../images/hero-aerial.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 11rem; padding-bottom: 11rem;
}
.hero.hero-aerial h1, .hero.hero-aerial .subtitle {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.btn.btn-on-dark { color: #fff; border-color: rgba(255,255,255,0.7); }
.btn.btn-on-dark:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
@media (max-width: 700px) {
  .hero.hero-aerial { padding-top: 6rem; padding-bottom: 6rem; }
}
