:root {
  --kw-red: #b40f2f;
  --ink: #20242a;
  --muted: #666f7a;
  --line: #dfe3e7;
  --mist: #f4f7f8;
  --sand: #f6f1e9;
  --teal: #007f86;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(27, 35, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background: var(--white);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  flex: 1 1 230px;
  align-items: center;
}

.brand img {
  display: block;
  width: min(260px, 48vw);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4a525b;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a,
.text-link {
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"],
.text-link:hover {
  color: var(--kw-red);
}

.phone-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.phone-button,
.button.primary {
  color: var(--white);
  background: var(--kw-red);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
}

.button.light {
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(32, 36, 42, 0.12);
}

.inline-search {
  margin-top: 8px;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 82px);
  padding: clamp(80px, 13vw, 150px) clamp(20px, 6vw, 84px) clamp(72px, 10vw, 120px);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 22, 28, 0.9), rgba(17, 22, 28, 0.58), rgba(17, 22, 28, 0.1)),
    url("assets/san-diego-hero.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent);
}

.hero-content {
  width: min(760px, 100%);
  align-self: center;
}

.page-hero {
  position: relative;
  padding: clamp(86px, 11vw, 150px) clamp(20px, 6vw, 84px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 22, 28, 0.92), rgba(17, 22, 28, 0.64), rgba(17, 22, 28, 0.22)),
    url("assets/san-diego-hero.png") center / cover;
}

.page-hero.compact {
  padding-top: clamp(66px, 8vw, 110px);
  padding-bottom: clamp(66px, 8vw, 110px);
}

.page-hero h1,
.page-hero p {
  width: min(820px, 100%);
}

.page-hero h1 {
  margin-bottom: 20px;
}

.page-hero p:not(.eyebrow) {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.page-hero .eyebrow {
  color: #9ce7e2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ce7e2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.stats-band div {
  min-height: 132px;
  padding: 28px clamp(18px, 3vw, 36px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.stats-band strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.stats-band span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 84px);
}

.section-heading {
  width: min(850px, 100%);
  margin-bottom: 34px;
}

.section-heading p,
.split p,
.feature p,
.community-grid p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature,
.community-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(27, 35, 44, 0.05);
}

.feature .text-link {
  margin-top: 4px;
}

.icon {
  display: block;
  margin-bottom: 22px;
  color: var(--teal);
  font-size: 2rem;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
  background: var(--sand);
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--kw-red);
  font-weight: 900;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 20px;
  border-left: 5px solid var(--kw-red);
  background: var(--white);
  box-shadow: var(--shadow);
}

.steps span {
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 900;
}

.steps p {
  margin: 0;
  font-weight: 800;
  line-height: 1.4;
}

.communities {
  background: var(--mist);
}

.photo-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(27, 35, 44, 0.05);
}

.photo-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.photo-feature h3 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}

.photo-feature p {
  color: var(--muted);
  line-height: 1.7;
}

.area-photo {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.area-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.5fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.area-list {
  display: grid;
  gap: 14px;
}

.area-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.area-list h3 {
  margin-bottom: 6px;
}

.area-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.community-grid {
  grid-template-columns: repeat(4, 1fr);
}

.search-section {
  padding-left: 0;
  padding-right: 0;
}

.search-section .section-heading {
  margin-left: clamp(20px, 6vw, 84px);
  margin-right: clamp(20px, 6vw, 84px);
  width: auto;
  max-width: 850px;
}

.search-frame {
  width: 100%;
  min-height: 820px;
  border-top: 1px solid var(--line);
  background: #f7f7f7;
}

.search-frame iframe {
  display: block;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 42px clamp(20px, 6vw, 84px);
  background: var(--ink);
  color: var(--white);
}

.footer img {
  width: min(260px, 70vw);
  padding: 10px;
  border-radius: 6px;
  background: var(--white);
}

.footer p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact {
  display: grid;
  gap: 8px;
  text-align: right;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.footer-contact a {
  color: var(--white);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.footer-contact .footer-schedule,
.contact-card .schedule-link {
  color: #9ce7e2;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.contact-card .schedule-link {
  margin: -12px 0 24px;
  font-size: 0.78rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.contact-card {
  padding: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-card span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.contact-card a {
  display: block;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.contact-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

/* Contact page black box: intentionally compact so the number and schedule link do not dominate. */
.contact-card a[href^="tel"] {
  font-size: 14px !important;
  line-height: 1.25;
  margin-bottom: 12px;
}

.contact-card .schedule-link {
  font-size: 11px !important;
  line-height: 1.35;
  margin: 0 0 20px;
}

.footer-contact a[href^="tel"] {
  font-size: 18px !important;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .brand {
    flex-basis: 100%;
  }

  .nav {
    flex: 1 1 auto;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .stats-band,
  .feature-grid,
  .community-grid,
  .split,
  .photo-feature,
  .area-layout,
  .contact-panel,
  .footer {
    grid-template-columns: 1fr 1fr;
  }

  .community-grid {
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
  }

  .brand img {
    width: min(240px, 82vw);
  }

  .nav {
    order: 3;
    flex-basis: 100%;
  }

  .phone-button {
    flex: 1;
  }

  .hero {
    min-height: 720px;
    padding-top: 70px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .stats-band,
  .feature-grid,
  .community-grid,
  .split,
  .photo-feature,
  .area-layout,
  .contact-panel,
  .footer {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .feature,
  .community-grid article {
    padding: 22px;
  }

  .steps div {
    grid-template-columns: 48px 1fr;
  }

  .footer-contact {
    text-align: left;
  }
}
