/* =============================================
   PHOENIX REALTOURS — MAIN STYLESHEET
   Bold & Modern: White/Light with Red & Black
   ============================================= */

/* --- DESIGN TOKENS --- */
:root {
  --red: #C8102E;
  --red-dark: #9B0C22;
  --red-light: #E8193A;
  --black: #111111;
  --charcoal: #222222;
  --gray-dark: #444444;
  --gray-mid: #888888;
  --gray-light: #D4D4D4;
  --gray-bg: #F5F5F5;
  --white: #FFFFFF;
  --off-white: #FAFAFA;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

  --nav-h: 80px;
  --max-w: 1280px;
  --section-pad: 100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }
p { line-height: 1.7; color: var(--gray-dark); }

/* --- UTILITIES --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--dark p { color: var(--gray-light); }
.section--gray { background: var(--gray-bg); }
.section--red { background: var(--red); color: var(--white); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}
.eyebrow--white { color: rgba(255,255,255,0.7); }
.divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 20px 0 32px;
}
.divider--center { margin: 20px auto 32px; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn--red {
  background: var(--red);
  color: var(--white);
}
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,16,46,0.3); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--black); }
.btn--outline-dark {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}
.btn--outline-dark:hover { background: var(--black); color: var(--white); }
.btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav--scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav--scrolled .nav__logo-text { color: var(--black); }
.nav--scrolled .nav__links a { color: var(--black); }
.nav--scrolled .nav__links a:hover { color: var(--red); }
.nav--scrolled .hamburger span { background: var(--black); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__logo img {
  height: 52px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a:hover { color: var(--red); }
.nav__cta { margin-left: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu__close {
  position: absolute;
  top: 28px; right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/team-3.jpg');
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.1) 30%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.82) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 80px;
  width: 100%;
}
.hero__content .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 40px;
}
.hero__headline {
  color: var(--white);
  font-size: clamp(3rem, 6.5vw, 6rem);
  max-width: 800px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hero__headline em {
  font-style: italic;
  color: var(--white);
}
.hero__sub {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-top: 20px;
  max-width: 500px;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero__badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  padding: 28px 32px;
  min-width: 200px;
  text-align: center;
}
.hero__badge-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
}
.hero__badge-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-indicator__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--red);
  padding: 0;
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
  font-weight: 700;
}
.stat-item__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* =============================================
   INTRO / ABOUT TEASER
   ============================================= */
.intro {
  padding: var(--section-pad) 0;
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro__images {
  position: relative;
  height: 560px;
}
.intro__img-main {
  position: absolute;
  top: 0; left: 0;
  width: 75%;
  height: 88%;
  object-fit: cover;
}
.intro__img-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 52%;
  height: 52%;
  object-fit: cover;
  border: 8px solid var(--white);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.intro__red-bar {
  position: absolute;
  top: 30px; right: 30px;
  width: 4px;
  height: 120px;
  background: var(--red);
}
.intro__text p { margin-bottom: 20px; }
.intro__credentials {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.credential {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.credential__dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.brokerage-logo {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-light);
}
.brokerage-logo img { height: 36px; width: auto; }

/* =============================================
   COMMUNITIES GRID
   ============================================= */
.communities { padding: var(--section-pad) 0; background: var(--black); }
.communities__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}
.communities__header h2 { color: var(--white); }
.communities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.community-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.community-card--large {
  grid-column: span 2;
  height: 460px;
}
.community-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.6);
}
.community-card:hover .community-card__bg {
  transform: scale(1.06);
  filter: brightness(0.45);
}
.community-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
}
.community-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  transform: translateY(8px);
  transition: transform var(--transition);
}
.community-card:hover .community-card__content { transform: translateY(0); }
.community-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 8px;
  display: block;
}
.community-card__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1.1;
}
.community-card--large .community-card__name { font-size: 2.4rem; }
.community-card__desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-top: 10px;
  opacity: 0;
  transition: opacity var(--transition);
  max-width: 480px;
}
.community-card:hover .community-card__desc { opacity: 1; }
.community-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}
.community-card:hover .community-card__arrow { opacity: 1; }

/* Unsplash-sourced background images for community cards */
.bg-scottsdale { background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1200&q=80'); }
.bg-paradise-valley { background-image: url('https://images.unsplash.com/photo-1613977257363-707ba9348227?w=1200&q=80'); }
.bg-sun-city { background-image: url('https://images.unsplash.com/photo-1571939228382-b2f2b585ce15?w=800&q=80'); }
.bg-tempe { background-image: url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=800&q=80'); }
.bg-glendale { background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=800&q=80'); }
.bg-mesa { background-image: url('https://images.unsplash.com/photo-1580587771525-78b9dba3b914?w=800&q=80'); }

/* =============================================
   SPECIALTIES
   ============================================= */
.specialties { padding: var(--section-pad) 0; }
.specialties__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
}
.specialty-card {
  background: var(--gray-bg);
  padding: 48px 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.specialty-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.specialty-card:hover { background: var(--white); box-shadow: 0 20px 60px rgba(0,0,0,0.1); transform: translateY(-4px); }
.specialty-card:hover::before { transform: scaleX(1); }
.specialty-card__icon {
  width: 56px; height: 56px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.specialty-card__icon svg { width: 28px; height: 28px; color: var(--white); }
.specialty-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.specialty-card p { font-size: 0.9rem; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { padding: var(--section-pad) 0; background: var(--black); }
.testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 40px 36px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--red);
  opacity: 0.4;
  position: absolute;
  top: 12px; left: 28px;
  line-height: 1;
}
.testimonial-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.testimonial-card__stars svg { width: 16px; height: 16px; color: var(--red); fill: var(--red); }
.testimonial-card__text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 28px;
}
.testimonial-card__author { font-weight: 700; color: var(--white); font-size: 0.85rem; }
.testimonial-card__location { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* =============================================
   FEATURED LISTING
   ============================================= */
.listing-spotlight { padding: var(--section-pad) 0; background: var(--gray-bg); }
.listing-spotlight__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  box-shadow: 0 20px 80px rgba(0,0,0,0.1);
  overflow: hidden;
}
.listing-spotlight__image {
  position: relative;
  min-height: 480px;
  background: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=900&q=80') center/cover;
}
.listing-spotlight__badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--red);
  color: var(--white);
  padding: 8px 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.listing-spotlight__info { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.listing-spotlight__price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.listing-spotlight__address { font-size: 0.85rem; color: var(--gray-mid); margin-bottom: 32px; }
.listing-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 32px;
}
.listing-spec__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--black);
}
.listing-spec__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  margin-top: 4px;
}
.listing-spotlight__desc { font-size: 0.9rem; margin-bottom: 32px; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: 120px 0;
  background: var(--red);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); max-width: 700px; margin: 0 auto 12px; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 40px; }
.cta-section .btn--outline { border-color: rgba(255,255,255,0.6); }
.cta-contact {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.cta-contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}
.cta-contact__item svg { width: 20px; height: 20px; opacity: 0.7; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--charcoal); padding: 72px 0 36px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand img { height: 60px; width: auto; margin-bottom: 24px; }
.footer__brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); max-width: 280px; line-height: 1.7; }
.footer__brokerage { margin-top: 24px; }
.footer__brokerage img { height: 28px; width: auto; opacity: 0.7; }
.footer__heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--red); }
.footer__social { display: flex; gap: 14px; margin-top: 8px; }
.footer__social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer__social a:hover { border-color: var(--red); color: var(--red); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer__bottom a { color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--white); }

/* =============================================
   PAGE HEADERS (interior pages)
   ============================================= */
.page-header {
  padding: 160px 0 80px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.6); max-width: 600px; margin-top: 16px; font-size: 1.05rem; }

/* =============================================
   ABOUT PAGE
   ============================================= */
.team-section { padding: var(--section-pad) 0; }
.team-member {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.team-member:last-child { margin-bottom: 0; }
.team-member--reverse { direction: rtl; }
.team-member--reverse > * { direction: ltr; }
.team-member__image {
  position: relative;
}
.team-member__img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: top;
}
.team-member__accent {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  background: var(--red);
  z-index: -1;
}
.team-member--reverse .team-member__accent {
  right: auto;
  left: -20px;
}
.team-member__bio p { margin-bottom: 16px; }
.team-member__name { font-size: 2.8rem; margin-bottom: 4px; }
.team-member__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}
.team-member__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tag {
  padding: 8px 18px;
  background: var(--gray-bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dark);
}

/* =============================================
   COMMUNITIES PAGE
   ============================================= */
.communities-page { padding: var(--section-pad) 0; }
.community-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 4px;
  min-height: 480px;
  overflow: hidden;
}
.community-detail:nth-child(even) .community-detail__image { order: 2; }
.community-detail:nth-child(even) .community-detail__info { order: 1; }
.community-detail__image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
  position: relative;
}
.community-detail__info {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.community-detail:nth-child(even) .community-detail__info { background: var(--gray-bg); }
.community-detail__info h3 { font-size: 2.2rem; margin-bottom: 16px; }
.community-detail__info p { margin-bottom: 16px; }
.community-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.highlight-pill {
  padding: 6px 16px;
  border: 1px solid var(--gray-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dark);
}

/* =============================================
   BLOG PAGE
   ============================================= */
.blog-grid { padding: var(--section-pad) 0; }
.blog-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}
.blog-card { display: flex; flex-direction: column; }
.blog-card__image {
  height: 240px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}
.blog-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.05); }
.blog-card__cat {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--red);
  color: var(--white);
  padding: 5px 14px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.blog-card__body { padding: 28px 0; flex: 1; }
.blog-card__date { font-size: 0.72rem; color: var(--gray-mid); margin-bottom: 10px; }
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.2;
  transition: color var(--transition);
}
.blog-card:hover .blog-card__title { color: var(--red); }
.blog-card__excerpt { font-size: 0.88rem; color: var(--gray-dark); }
.blog-card__read-more {
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section { padding: var(--section-pad) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info__item {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-info__icon {
  width: 48px; height: 48px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg { width: 22px; height: 22px; color: var(--white); }
.contact-info__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 6px;
}
.contact-info__value {
  font-size: 1rem;
  color: var(--black);
  font-weight: 600;
}
.contact-form { background: var(--gray-bg); padding: 48px; }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: 10px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--black);
  transition: border-color var(--transition);
  outline: none;
  border-radius: 0;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 16px;
  font-size: 0.9rem;
  margin-top: 16px;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--left {
  transform: translateX(-32px);
}
.reveal--left.visible {
  transform: translateX(0);
}
.reveal--right {
  transform: translateX(32px);
}
.reveal--right.visible {
  transform: translateX(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }
  .container { padding: 0 28px; }
  .intro__grid { gap: 48px; }
  .communities__grid { grid-template-columns: 1fr 1fr; }
  .community-card--large { grid-column: span 2; }
  .testimonials__track { grid-template-columns: 1fr 1fr; }
  .testimonials__track .testimonial-card:last-child { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team-member { grid-template-columns: 1fr; gap: 40px; }
  .team-member--reverse { direction: ltr; }
  .community-detail { grid-template-columns: 1fr; }
  .community-detail__image { min-height: 300px; }
  .community-detail:nth-child(even) .community-detail__image { order: 0; }
  .community-detail:nth-child(even) .community-detail__info { order: 1; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; }
  .container { padding: 0 20px; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .nav__links, .nav__cta { display: none; }
  .hamburger { display: flex; }
  .hero__content .container { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__images { height: 360px; }
  .communities__grid { grid-template-columns: 1fr; }
  .community-card--large { grid-column: span 1; height: 300px; }
  .community-card { height: 280px; }
  .specialties__grid { grid-template-columns: 1fr; }
  .testimonials__track { grid-template-columns: 1fr; }
  .testimonials__track .testimonial-card:last-child { display: block; }
  .listing-spotlight__card { grid-template-columns: 1fr; }
  .listing-spotlight__image { min-height: 280px; }
  .listing-spotlight__info { padding: 36px 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-posts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .communities__header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
}
