/* ============================================
   Homepage-Specific Styles
   ============================================ */

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: clamp(4rem, 10vh, 8rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 28, 26, 0.2) 0%,
    rgba(30, 28, 26, 0.35) 40%,
    rgba(30, 28, 26, 0.75) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__content .eyebrow {
  color: var(--color-gold-light);
  margin-bottom: var(--space-lg);
  display: block;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-style: italic;
  color: var(--color-gold-light);
}

.hero__subtitle {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.hero__scroll-hint span {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-lr;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--color-gold) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; height: 60px; }
  50% { opacity: 1; height: 80px; }
}

@media (max-width: 768px) {
  .hero {
    align-items: flex-end;
    padding-bottom: var(--space-3xl);
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }
  .hero__scroll-hint {
    display: none;
  }
}


/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar {
  padding-block: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-bar .grid--4 {
  gap: 0;
}

.stats-bar .stat {
  position: relative;
}

.stats-bar .stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .stats-bar .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar .stat:not(:last-child)::after {
    display: none;
  }
}


/* ================================================================
   NEIGHBORHOOD CARDS
   ================================================================ */
.neighborhood-card {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.neighborhood-card__image {
  position: absolute;
  inset: 0;
}

.neighborhood-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.neighborhood-card:hover .neighborhood-card__image img {
  transform: scale(1.08);
}

.neighborhood-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(
    0deg,
    rgba(30, 28, 26, 0.85) 0%,
    rgba(30, 28, 26, 0.4) 60%,
    transparent 100%
  );
  z-index: 2;
}

.neighborhood-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--color-white);
  margin-bottom: var(--space-2xs);
}

.neighborhood-card__text {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .neighborhood-card {
    aspect-ratio: 16 / 9;
  }
}


/* ================================================================
   SERVICES SPLIT
   ================================================================ */
.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.services-split__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-2xl);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-white);
}

.services-split__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services-split__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.services-split__panel:hover .services-split__bg img {
  transform: scale(1.05);
}

.services-split__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 28, 26, 0.6);
  transition: background var(--duration-normal) var(--ease-out);
  z-index: 1;
}

.services-split__panel:hover .services-split__overlay {
  background: rgba(30, 28, 26, 0.5);
}

.services-split__content {
  position: relative;
  z-index: 2;
  max-width: 380px;
}

.services-split__content .eyebrow {
  color: var(--color-gold-light);
  display: block;
}

.services-split__content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.services-split__content p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .services-split {
    grid-template-columns: 1fr;
  }
  .services-split__panel {
    min-height: 400px;
  }
}


/* ================================================================
   VALUE CARDS
   ================================================================ */
.value-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.value-card__icon {
  color: var(--accent);
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: center;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
}

.value-card__text {
  color: var(--text-secondary);
  max-width: 300px;
  margin-inline: auto;
}


/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  position: relative;
  padding-block: var(--space-5xl);
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 28, 26, 0.75);
  z-index: 1;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
}

.cta-banner__content .eyebrow {
  color: var(--color-gold-light);
  display: block;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.cta-banner__text {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 550px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-banner {
    padding-block: var(--space-4xl);
  }
  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-banner__actions .btn {
    width: 100%;
    max-width: 320px;
  }
}


/* ================================================================
   DARK SECTION TESTIMONIAL OVERRIDES
   ================================================================ */
.section--dark .testimonial__quote {
  color: var(--text-on-dark);
}

.section--dark .testimonial__quote::before {
  color: var(--accent);
  opacity: 0.4;
}

.section--dark .testimonial__author {
  color: var(--color-white);
}

.section--dark .testimonial__detail {
  color: var(--color-mid-gray);
}
