/* San Jose Commercial Real Estate Agent — site styles
   Palette: midnight blue base with electric teal accent */
:root {
  --midnight: #0a1128;
  --midnight-2: #101c3d;
  --ink: #1c2a44;
  --teal: #0fd6c2;
  --teal-deep: #089e90;
  --mist: #eef4f6;
  --paper: #ffffff;
  --gray-text: #45566e;
  --hero-text: #c3d2e4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

/* ---------- Header / nav ---------- */
.site-head {
  background: var(--midnight);
  padding: 0.9rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--teal);
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand em { color: var(--teal); font-style: normal; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.site-nav a {
  color: #a8b8d0;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(15,214,194,0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(15,214,194,0.10), transparent 40%),
    linear-gradient(150deg, var(--midnight) 0%, var(--midnight-2) 65%, #0d2247 100%);
  color: #fff;
  padding: 5rem 6% 4.5rem;
  text-align: left;
}
.hero-inner { max-width: 62rem; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.2;
  font-weight: 800;
  max-width: 52rem;
}
.hero h1 mark {
  background: none;
  color: var(--teal);
}
.hero p {
  margin: 1.2rem 0 2rem;
  max-width: 44rem;
  color: var(--hero-text);
  font-size: 1.06rem;
}
.hero-kickline {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- Hero skyline artwork ---------- */
.hero { padding-bottom: 0; position: relative; overflow: hidden; }
.hero-inner { padding-bottom: 3rem; position: relative; z-index: 2; }
.hero-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto -4px;
  pointer-events: none;
}

/* ---------- Circuit-trace divider ---------- */
.circuit-divider {
  display: block;
  width: 100%;
  max-width: 66rem;
  height: auto;
  margin: 0 auto;
  padding: 0 5%;
  opacity: 0.85;
  pointer-events: none;
}
.circuit-foot {
  display: block;
  width: min(24rem, 80%);
  height: auto;
  margin: 0 auto 1.2rem;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.cta {
  display: inline-block;
  background: var(--teal);
  color: var(--midnight);
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 6px;
  font-size: 0.98rem;
}
.cta:hover { background: #3ee6d5; }
.cta-ghost {
  display: inline-block;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.7rem;
  border-radius: 6px;
  margin-left: 0.8rem;
  font-size: 0.98rem;
}
.cta-ghost:hover { background: rgba(15,214,194,0.12); }

/* ---------- Main layout ---------- */
main { max-width: 66rem; margin: 0 auto; padding: 3.2rem 5%; }

section { margin-bottom: 3.4rem; }

h2 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin-bottom: 1.1rem;
  position: relative;
  padding-left: 0.9rem;
}
h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.25rem; bottom: 0.25rem;
  width: 4px;
  background: var(--teal);
  border-radius: 2px;
}

section > p { margin-bottom: 1rem; color: var(--gray-text); max-width: 60rem; }
section ul { margin: 0 0 1rem 1.4rem; color: var(--gray-text); }
section li { margin-bottom: 0.45rem; }

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--mist);
  border-top: 3px solid var(--teal);
  border-radius: 8px;
  padding: 1.3rem 1.25rem;
}
.card h3 { font-size: 1.03rem; margin-bottom: 0.5rem; color: var(--midnight); }
.card p { font-size: 0.92rem; color: var(--gray-text); margin: 0; }

/* ---------- Submarket blocks ---------- */
.submarket {
  background: var(--paper);
  border: 1px solid #dce6ec;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 1.6rem 1.7rem;
  margin-bottom: 1.4rem;
}
.submarket h3 { color: var(--midnight); font-size: 1.15rem; margin-bottom: 0.55rem; }
.submarket p { color: var(--gray-text); margin-bottom: 0.6rem; }
.submarket .tags { font-size: 0.8rem; color: var(--teal-deep); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Dark tile links ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1.1rem;
}
.tile-grid a {
  display: block;
  background: var(--midnight-2);
  border-radius: 8px;
  padding: 1.35rem 1.2rem;
  text-decoration: none;
  transition: transform 0.12s ease;
}
.tile-grid a:hover { transform: translateY(-3px); outline: 2px solid var(--teal); }
.tile-grid strong { display: block; color: var(--teal); margin-bottom: 0.3rem; font-size: 1rem; }
.tile-grid span { color: #b9c7da; font-size: 0.86rem; line-height: 1.5; display: block; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid #dce6ec;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  padding: 1rem 1.2rem;
  background: var(--paper);
}
.faq details[open] { border-color: var(--teal); background: var(--mist); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--midnight);
  font-size: 0.98rem;
}
.faq details p { margin: 0.7rem 0 0; color: var(--gray-text); }

/* ---------- Stat strip ---------- */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  background: var(--midnight);
  border-radius: 10px;
  padding: 1.8rem 1.6rem;
}
.fact-strip div { text-align: center; }
.fact-strip strong { display: block; color: var(--teal); font-size: 1.45rem; font-weight: 800; }
.fact-strip span { color: #a8b8d0; font-size: 0.84rem; }

/* ---------- Contact panel ---------- */
.contact-panel {
  background: var(--mist);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  border-top: 4px solid var(--teal);
}
.contact-panel dt { font-weight: 800; color: var(--midnight); margin-top: 1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-panel dt:first-child { margin-top: 0; }
.contact-panel dd { margin: 0.2rem 0 0; color: var(--gray-text); font-size: 1.05rem; }
.contact-panel a { color: var(--teal-deep); font-weight: 700; text-decoration: none; }
.contact-panel a:hover { text-decoration: underline; }

/* ---------- Closing CTA band ---------- */
.close-band {
  background: linear-gradient(120deg, var(--midnight) 0%, #0d2247 100%);
  color: #fff;
  text-align: center;
  padding: 3.2rem 8%;
}
.close-band h2 { color: #fff; padding-left: 0; }
.close-band h2::before { display: none; }
.close-band p { color: var(--hero-text); margin-bottom: 1.6rem; max-width: 40rem; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-foot {
  background: #060b1a;
  color: #7e91ab;
  font-size: 0.82rem;
  padding: 2.2rem 6%;
  text-align: center;
  line-height: 2;
}
.site-foot a { color: var(--teal); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .dre { color: #a8b8d0; font-weight: 700; }

/* ---------- Inline text links ---------- */
main a { color: var(--teal-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .site-head { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
  .hero { padding: 3.2rem 6%; text-align: center; }
  .hero h1, .hero p { margin-left: auto; margin-right: auto; }
  .cta-ghost { margin-left: 0; margin-top: 0.7rem; }
  main { padding: 2.4rem 6%; }
}
