/* ============================================================
   THE MERCURY BETHESDA — Global Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0d1f3c;
  --navy-light: #162a50;
  --gold:   #c9a84c;
  --gold-light: #e8c96a;
  --white:  #ffffff;
  --off-white: #f8f7f4;
  --gray-light: #f0ede8;
  --gray:   #9a9a9a;
  --gray-dark: #555555;
  --text:   #1a1a1a;

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

  --max-w: 1240px;
  --nav-h: 140px;
  --transition: 0.35s ease;

  /* Type scale — 3 sizes site-wide (Heading / Subheading / Body),
     plus the homepage hero headline and small uppercase UI labels
     (nav, buttons, badges, footer) as the two agreed exceptions. */
  --fs-hero: clamp(3.6rem, 7vw, 6.5rem);
  --fs-heading: clamp(2.4rem, 3.6vw, 3.4rem);
  --fs-subheading: 1.3rem;
  --fs-body: 1.15rem;
  --fs-label: 0.75rem;
}

html { scroll-behavior: smooth; font-size: 18px; }

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

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-serif);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.85rem;
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 100px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--off  { background: var(--off-white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-serif);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav.nav--solid {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav__inner {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav__logo img {
  height: 128px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.4));
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a[href="resident-portal.html"].active::after { width: 0; }

.nav__cta {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.6rem 1.1rem;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }

/* hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px; height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--navy);
  padding: 2rem;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav__mobile.open { display: flex; flex-direction: column; gap: 1.2rem; }
.nav__mobile a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--gold); }
.nav__mobile .btn-gold { text-align: center; margin-top: 0.5rem; color: var(--navy); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(13,31,60,0.65), rgba(13,31,60,0.65)),
    url('../images/themercury79.jpg') center/cover no-repeat;
}

/* Geometric accent */
.hero__bg::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(135deg, transparent 30%, rgba(201,168,76,0.08) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--nav-h);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero__tag::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: var(--gold);
}
.hero__tag span {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__heading {
  font-size: var(--fs-hero);
  color: var(--white);
  max-width: 680px;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.hero__heading em {
  font-style: italic;
  color: var(--gold);
}

.hero__sub {
  font-size: var(--fs-subheading);
  color: rgba(255,255,255,0.75);
  max-width: 820px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.8), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ABOUT / INTRO
   ============================================================ */
.about__text h2 { font-size: var(--fs-heading); color: var(--navy); margin-bottom: 1.5rem; }
.about__text p  { color: var(--gray-dark); margin-bottom: 1.2rem; }
.about__text .btn { margin-top: 0.75rem; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.stat {
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
  background: var(--off-white);
}
.stat__number {
  font-family: var(--font-serif);
  font-size: var(--fs-subheading);
  color: var(--navy);
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}
.stat__label {
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.about__visual {
  position: relative;
}
.about__img-wrap {
  position: relative;
  height: 540px;
  background: var(--gray-light);
  overflow: hidden;
}
.about__img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.about__img-wrap::after {
  content: '';
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  width: 60%; height: 60%;
  border: 1px solid var(--gold);
  z-index: -1;
}

/* ============================================================
   AMENITIES PREVIEW
   ============================================================ */
.amenities-preview { background: var(--navy); }
.amenities-preview .section-header { margin-bottom: 3.5rem; }
.amenities-preview .section-header h2 { color: var(--white); font-size: var(--fs-heading); }

.amenity-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
}

.amenity-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 2rem;
  transition: background var(--transition), border-color var(--transition);
}
.amenity-card:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.3);
}
.amenity-card__icon {
  display: none;
}
.amenity-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-subheading);
  color: var(--white);
  margin-bottom: 0.75rem;
}
.amenity-card__desc {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.amenities-preview__cta { text-align: center; margin-top: 3.5rem; }

/* ============================================================
   NEIGHBORHOOD HIGHLIGHT
   ============================================================ */
.neighborhood__visual {
  position: relative;
  height: 500px;
  background: var(--gray-light);
  overflow: hidden;
}
.neighborhood__visual img { width: 100%; height: 100%; object-fit: cover; }

.neighborhood__content h2 { font-size: var(--fs-heading); color: var(--navy); margin-bottom: 1.5rem; }
.neighborhood__content p  { color: var(--gray-dark); margin-bottom: 1.2rem; }

.walk-items {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.walk-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-body);
  color: var(--gray-dark);
}
.walk-item::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   LIFESTYLE / IDEAL RESIDENT
   ============================================================ */
.lifestyle { background: var(--off-white); }
.lifestyle h2 { font-size: var(--fs-heading); color: var(--navy); margin-bottom: 1rem; }
.lifestyle .lead { font-size: var(--fs-subheading); color: var(--gray-dark); max-width: 620px; margin: 0 auto 3.5rem; }

.resident-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.resident-card {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.resident-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.resident-card h3 { font-family: var(--font-serif); font-size: var(--fs-subheading); color: var(--navy); margin-bottom: 0.75rem; }
.resident-card p  { font-size: var(--fs-body); color: var(--gray-dark); line-height: 1.75; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--navy); }
.testimonials h2 { color: var(--white); font-size: var(--fs-heading); margin-bottom: 3.5rem; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.testimonial {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  top: 1rem; left: 1.5rem;
  line-height: 1;
}
.testimonial__text { color: rgba(255,255,255,0.8); font-size: var(--fs-body); line-height: 1.8; margin-bottom: 1.5rem; margin-top: 1.5rem; }
.testimonial__author { font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  background: var(--gold);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { font-size: var(--fs-heading); color: var(--navy); margin-bottom: 1rem; }
.cta-section p  { color: rgba(13,31,60,0.75); max-width: 540px; margin: 0 auto 2.5rem; font-size: var(--fs-subheading); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: var(--fs-heading); color: var(--navy); margin-bottom: 1rem; }
.section-header p  { color: var(--gray-dark); max-width: 580px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }
.section-header--light h2 { color: var(--white); }
.section-header--light p  { color: rgba(255,255,255,0.65); }

/* Gold rule */
.gold-rule {
  display: block;
  width: 50px; height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}
.center .gold-rule { margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #080f1e;
  color: rgba(255,255,255,0.6);
  padding: 70px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}
.footer__brand-name {
  font-family: var(--font-serif);
  font-size: var(--fs-subheading);
  color: var(--white);
  display: block;
  margin-bottom: 0.3rem;
}
.footer__brand-sub {
  font-size: var(--fs-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}
.footer__tagline { font-size: var(--fs-body); line-height: 1.75; max-width: 280px; }

.footer__col h4 {
  font-family: var(--font-serif);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer__col a {
  display: block;
  font-size: var(--fs-label);
  color: rgba(255,255,255,0.6);
  padding: 0.28rem 0;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--gold); }

.footer__contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-label);
}
.footer__contact-line span { color: rgba(255,255,255,0.7); }

.footer__col--contact {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-label);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--gold); }

/* ============================================================
   PAGE: AMENITIES
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/page-hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.page-hero--floorplans::before {
  background-image: linear-gradient(rgba(13,31,60,0.75), rgba(13,31,60,0.85)), url('../images/themercury71.jpg');
  background-position: center, center 15%;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  opacity: 1;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--fs-heading); color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; font-size: var(--fs-subheading); }
.page-hero--floorplans p { max-width: 780px; }

.amenity-section { padding: 80px 0; }
.amenity-section:nth-child(even) { background: var(--off-white); }

.amenity-section h2 {
  font-size: var(--fs-heading);
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.amenity-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.amenity-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: border-color var(--transition), transform var(--transition);
}
.amenity-section:nth-child(even) .amenity-list-item { background: var(--white); }
.amenity-list-item:hover { border-color: var(--gold); transform: translateY(-2px); }

.amenity-list-item__icon { display: none; }
.amenity-list-item__text { font-size: var(--fs-body); color: var(--gray-dark); line-height: 1.5; }

/* neighborhood badge */
.neighborhood-badge {
  background: var(--navy);
  color: var(--white);
  display: inline-block;
  padding: 1.5rem 2.5rem;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--gold);
  font-size: var(--fs-body);
  line-height: 1.8;
}

/* ============================================================
   PAGE: GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 4px;
}
.gallery-item {
  overflow: hidden;
  background: var(--gray-light);
  cursor: pointer;
  position: relative;
}
.gallery-item.tall   { grid-row: span 2; }
.gallery-item.wide   { grid-column: span 2; }
.gallery-item img    { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,31,60,0.5);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* placeholder pattern for images */
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: var(--white); font-size: 2rem;
  cursor: pointer; transition: color var(--transition);
}
.lightbox__close:hover { color: var(--gold); }

/* ============================================================
   PAGE: LOCATION
   ============================================================ */
.map-section { padding: 0; }
.map-placeholder {
  width: 100%; height: 480px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-align: center;
}
.map-placeholder p { font-size: var(--fs-body); }
.map-placeholder strong { color: var(--gold); font-family: var(--font-serif); font-size: var(--fs-subheading); display: block; }

.distance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.distance-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 1.8rem;
  transition: border-color var(--transition);
}
.distance-card:hover { border-color: var(--gold); }
.distance-card h4 { font-family: var(--font-serif); font-size: var(--fs-subheading); color: var(--navy); margin-bottom: 0.5rem; }
.distance-card .distance { font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; display: block; }
.distance-card p { font-size: var(--fs-body); color: var(--gray); }

.commute-section { background: var(--navy); }
.commute-section h2 { color: var(--white); }
.commute-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.commute-item {
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.commute-item__icon { display: none; }
.commute-item__label { font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.commute-item__value { font-family: var(--font-serif); font-size: var(--fs-subheading); color: var(--white); }

/* ============================================================
   PAGE: CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }

.contact-info h2 { font-size: var(--fs-heading); color: var(--navy); margin-bottom: 1rem; }
.contact-info p  { color: var(--gray-dark); margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-detail__icon { font-size: 1.2rem; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-detail__label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 0.25rem; }
.contact-detail__value { font-size: 1.05rem; color: var(--navy); font-weight: 500; }

.office-hours { background: var(--off-white); padding: 1.5rem; border-left: 3px solid var(--gold); }
.office-hours h4 { font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.office-hours table { width: 100%; border-collapse: collapse; }
.office-hours td { padding: 0.35rem 0; font-size: var(--fs-body); color: var(--gray-dark); }
.office-hours td:last-child { text-align: right; color: var(--navy); }

/* form */
.contact-form-wrap { background: var(--off-white); padding: 3rem; }
.contact-form-wrap h3 { font-family: var(--font-serif); font-size: var(--fs-subheading); color: var(--navy); margin-bottom: 0.5rem; }
.contact-form-wrap .form-sub { font-size: var(--fs-body); color: var(--gray); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
input:not([type="checkbox"]), select, textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  background: var(--white);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 120px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-check { display: flex; gap: 0.75rem; align-items: flex-start; }
.form-check input[type="checkbox"] { 
  width: 18px; 
  min-width: 18px; 
  height: 18px; 
  margin-top: 3px; 
  accent-color: var(--gold); 
  cursor: pointer; 
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
  pointer-events: auto;
}
.form-check label { font-size: var(--fs-body); text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--gray-dark); }

.form-submit .btn { width: 100%; text-align: center; padding: 1rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 3rem;
  color: var(--navy);
}
.form-success h3 { font-family: var(--font-serif); font-size: var(--fs-subheading); margin-bottom: 1rem; color: var(--navy); }
.form-success p  { color: var(--gray-dark); }
.form-success .check { display: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.65s ease;
}
.fade-in.visible { opacity: 1; }

/* stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .grid-2     { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3     { grid-template-columns: repeat(2, 1fr); }
  .amenity-cards { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .commute-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .about__img-wrap { height: 400px; }
  .about__img-wrap::after { display: none; }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 90px; }
  .section { padding: 70px 0; }

  .nav__logo img { height: 82px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__heading { font-size: 3rem; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; text-align: center; }

  .about__stats { grid-template-columns: 1fr 1fr; }

  .amenity-cards { grid-template-columns: 1fr; }

  .resident-cards { grid-template-columns: 1fr; }

  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-grid .testimonial:nth-child(n+2) { display: none; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item.tall { grid-row: span 1; }

  .distance-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .page-hero { padding: 140px 0 70px; }

  .neighborhood__visual { height: 320px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero__heading { font-size: 2.4rem; }
  .section { padding: 50px 0; }
  .about__stats { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
}
