/* ========================================
   Heritage Summerlin — 55+ Community
   Warm & Natural Desert Palette
   ======================================== */

/* --- Design Tokens --- */
:root {
  --color-primary: #865022;
  --color-primary-dark: #72441D;
  --color-primary-light: #9A6C42;
  --color-accent: #A27A48;
  --color-accent-dark: #8A6338;
  --color-accent-light: #BA9568;
  --color-dark: #2D3B36;
  --color-text: #3D4A45;
  --color-text-light: #6B7B75;
  --color-cream: #F8F5F0;
  --color-sand: #EDE6DB;
  --color-white: #FFFFFF;
  --color-border: #DDD5CA;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(45, 59, 54, 0.08);
  --shadow-md: 0 4px 12px rgba(45, 59, 54, 0.1);
  --shadow-lg: 0 8px 30px rgba(45, 59, 54, 0.12);
  --shadow-xl: 0 16px 50px rgba(45, 59, 54, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 100px;

  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-dark);
  line-height: 1.2;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 20px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav-logo img {
  height: 44px;
  width: auto;
  transition: opacity var(--transition);
}

/* Default (transparent/top): show white logo, hide black */
.nav-logo-black {
  display: none;
}

.nav-logo-white {
  display: block;
}

/* Scrolled navbar: show black logo, hide white */
.navbar.scrolled .nav-logo-black {
  display: block;
}

.navbar.scrolled .nav-logo-white {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--color-dark);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('/images/Website%20picture%20sample%20whole%20view%20front.jpg');
  background-color: #8B7355;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: var(--color-white);
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45, 59, 54, 0.4) 0%,
    rgba(45, 59, 54, 0.55) 50%,
    rgba(45, 59, 54, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(4px, 4px); }
}

/* --- Fade-up Animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-content > :nth-child(1) { animation-delay: 0.2s; }
.hero-content > :nth-child(2) { animation-delay: 0.4s; }
.hero-content > :nth-child(3) { animation-delay: 0.6s; }
.hero-content > :nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Lifestyle Section
   ======================================== */
.lifestyle {
  padding: 100px 0;
  background: var(--color-white);
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.lifestyle-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-cream);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

.lifestyle-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.lifestyle-card-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.lifestyle-card:hover .lifestyle-card-image {
  transform: none;
}

.lifestyle-card {
  overflow: hidden;
}

.lifestyle-card-content {
  padding: 28px;
}

.lifestyle-card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.lifestyle-card-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   Stats Banner
   ======================================== */
.stats-banner {
  padding: 60px 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 140px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  display: inline;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ========================================
   Amenities Section
   ======================================== */
.amenities {
  padding: 100px 0;
  background: var(--color-cream);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 32px;
}

.amenity-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid var(--color-border);
}

.amenity-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border);
}

.amenity-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--color-primary);
  transition: color var(--transition);
}

.amenity-card:hover .amenity-icon {
  color: var(--color-primary);
}

.amenity-icon svg {
  width: 100%;
  height: 100%;
}

.amenity-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.amenity-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ========================================
   Homes Section
   ======================================== */
.homes {
  padding: 100px 0;
  background: var(--color-white);
}

.homes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.home-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-cream);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid var(--color-border);
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.home-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.home-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.home-badge.featured {
  background: var(--color-accent);
}

.home-content {
  padding: 24px;
}

.home-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.home-name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.home-address {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.home-details {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.home-details span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
}

.home-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.homes-cta {
  text-align: center;
  margin-top: 48px;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
  padding: 100px 0;
  background: var(--color-sand);
}

.gallery-carousel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-carousel::-webkit-scrollbar {
  display: none;
}

.gallery-spacer {
  flex: 0 0 max(8px, calc((100vw - 1200px) / 2 + 8px));
}

.gallery-item {
  flex: 0 0 auto;
  width: 420px;
  height: 456px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-carousel-wrapper {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.gallery-arrow.visible {
  opacity: 1;
  visibility: visible;
}

.gallery-arrow:hover {
  background: var(--color-cream);
}

.gallery-arrow svg {
  width: 22px;
  height: 22px;
  color: var(--color-dark);
}

.gallery-arrow--left {
  left: max(16px, calc((100vw - 1200px) / 2));
}

.gallery-arrow--right {
  right: 16px;
}

/* ========================================
   Gallery Lightbox
   ======================================== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.gallery-lightbox-image {
  position: relative;
  z-index: 1;
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: opacity 0.3s ease;
}

.gallery-lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 1.8rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.gallery-lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox-arrow svg {
  width: 22px;
  height: 22px;
  color: var(--color-white);
}

.gallery-lightbox-arrow--left {
  left: 24px;
}

.gallery-lightbox-arrow--right {
  right: 24px;
}


/* ========================================
   Your Neighborhood Section
   ======================================== */
.neighborhood {
  padding: 100px 0;
  background: var(--color-cream);
}

.neighborhood-map {
  width: 100%;
  height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.neighborhood-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: 100px 0;
  background: var(--color-cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-title {
  text-align: left;
}

.contact-info > p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-cream);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(91, 123, 111, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 12px;
  text-align: center;
}

/* ========================================
   Community Resources Page
   ======================================== */
.resources-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 140px 0 60px;
  text-align: center;
}

.resources-hero .section-label {
  color: var(--color-accent-light);
}

.resources-hero .section-title {
  color: var(--color-white);
  margin-bottom: 16px;
}

.resources-hero .section-description {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.resources-section {
  padding: 60px 0;
}

.resources-section:nth-child(odd) {
  background: var(--color-cream);
}

.resources-section:nth-child(even) {
  background: var(--color-white);
}

.resources-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.resources-section-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 700px;
}

.resources-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.resources-doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.resources-doc-card:hover {
  box-shadow: var(--shadow-md);
}

.resources-doc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resources-doc-icon svg {
  width: 22px;
  height: 22px;
}

.resources-doc-icon--newsletter,
.resources-doc-icon--minutes,
.resources-doc-icon--financial,
.resources-doc-icon--governing {
  background: rgba(91, 123, 111, 0.12);
  color: var(--color-primary);
}

.resources-doc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resources-doc-info strong {
  font-size: 0.9rem;
  color: var(--color-dark);
  line-height: 1.4;
}

.resources-doc-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.resources-section-action {
  margin-top: 32px;
}

.resources-platform-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-bottom: 20px;
}

.resources-platform-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 700px;
}

.resources-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resources-feature {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.resources-section:nth-child(even) .resources-feature {
  background: var(--color-cream);
}

.resources-section:nth-child(odd) .resources-feature {
  background: var(--color-white);
}

.resources-feature h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.resources-feature p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   Contact Us Page
   ======================================== */
.contact-page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 140px 0 60px;
  text-align: center;
}

.contact-page-hero .section-label {
  color: var(--color-accent-light);
}

.contact-page-hero .section-title {
  color: var(--color-white);
  margin-bottom: 16px;
}

.contact-page-hero .section-description {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.contact-page-section {
  padding: 60px 0;
}

.contact-page-section:nth-child(odd) {
  background: var(--color-cream);
}

.contact-page-section:nth-child(even) {
  background: var(--color-white);
}

.contact-page-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-page-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-page-primary-card {
}

.contact-page-card-header {
  background: var(--color-cream);
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-border);
}

.contact-page-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-dark);
  margin: 0;
}

.contact-page-card-body {
  padding: 28px;
}

.contact-page-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.contact-page-primary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-page-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-page-detail svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.contact-page-detail strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.contact-page-detail span {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.contact-page-detail a {
  color: var(--color-primary);
  transition: color var(--transition);
}

.contact-page-detail a:hover {
  color: var(--color-accent);
}

.contact-page-service-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(91, 123, 111, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.contact-page-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.contact-page-inline-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
}

.contact-page-inline-details a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-page-inline-details a:hover {
  color: var(--color-accent);
}

.contact-page-time-badge {
  display: inline-block;
  font-family: Inter, -apple-system, "system-ui", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(91, 123, 111, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  vertical-align: middle;
}

.contact-page-emergency-card {
}

.contact-page-phone {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-dark);
  display: block;
  margin-top: 8px;
  transition: color var(--transition);
}

.contact-page-phone:hover {
  color: var(--color-accent);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-brand > p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.7;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  opacity: 0.8;
}

/* ========================================
   Reveal Animation
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Form Success State
   ======================================== */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.form-success h3 {
  margin-bottom: 12px;
}

.form-success p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .lifestyle-grid,
  .amenities-grid,
  .homes-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
    width: 380px;
    height: 456px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 0;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    color: var(--color-text) !important;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero {
    background-attachment: scroll;
    min-height: 90vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .lifestyle-grid,
  .amenities-grid,
  .homes-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    padding: 60px 0;
  }

  .gallery-item {
    width: 300px;
    height: 380px;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-arrow svg {
    width: 18px;
    height: 18px;
  }

  .gallery-arrow--left {
    left: 12px;
  }

  .gallery-arrow--right {
    right: 12px;
  }

  /* Lightbox mobile */
  .gallery-lightbox-arrow {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.55);
  }

  .gallery-lightbox-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
  }

  .gallery-lightbox-arrow--left {
    left: 12px;
  }

  .gallery-lightbox-arrow--right {
    right: 12px;
  }

  .gallery-lightbox-image {
    max-width: 95vw;
    max-height: 80vh;
  }

  .gallery-lightbox-caption {
    bottom: 16px;
    font-size: 0.85rem;
  }

  .gallery-lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    background: rgba(0, 0, 0, 0.55);
  }

  .gallery-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.75);
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper {
    padding: 28px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .contact-page-hero {
    padding: 120px 0 40px;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-primary-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-inline-details {
    flex-direction: column;
    gap: 8px;
  }

  /* Community Resources - Mobile */
  .resources-hero {
    padding: 120px 0 40px;
  }

  .resources-section {
    padding: 40px 0;
  }

  .resources-docs-grid {
    grid-template-columns: 1fr;
  }

  .resources-features-grid {
    grid-template-columns: 1fr;
  }

  .resources-section-desc {
    margin-bottom: 24px;
  }

  .resources-platform-desc {
    margin-bottom: 20px;
  }

  .resources-section-action {
    margin-top: 24px;
  }

  .resources-section-action .btn {
    display: block;
    width: 100%;
    text-align: center;
    max-width: none;
  }

  /* Contact Us - Mobile */
  .contact-page-section {
    padding: 40px 0;
  }

  .contact-page-card-header {
    padding: 16px 20px;
  }

  .contact-page-card-header h2 {
    font-size: 1.2rem;
  }

  .contact-page-card-body {
    padding: 20px;
  }

  .contact-page-card-body h3 {
    font-size: 1.05rem;
  }

  .contact-page-phone {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .gallery-item {
    width: 260px;
    height: 340px;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
  }

  .gallery-arrow svg {
    width: 16px;
    height: 16px;
  }

  .gallery-arrow--left {
    left: 8px;
  }

  .gallery-arrow--right {
    right: 8px;
  }

  /* Lightbox small mobile */
  .gallery-lightbox-arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-lightbox-arrow--left {
    left: 8px;
  }

  .gallery-lightbox-arrow--right {
    right: 8px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  /* Community Resources - Small mobile */
  .resources-hero {
    padding: 110px 0 32px;
  }

  .resources-section {
    padding: 32px 0;
  }

  .resources-doc-card {
    padding: 16px;
    gap: 12px;
  }

  .resources-doc-icon {
    width: 38px;
    height: 38px;
  }

  .resources-doc-icon svg {
    width: 18px;
    height: 18px;
  }

  .resources-doc-info strong {
    font-size: 0.85rem;
  }

  .resources-feature {
    padding: 16px;
  }

  /* Contact Us - Small mobile */
  .contact-page-hero {
    padding: 110px 0 32px;
  }

  .contact-page-section {
    padding: 32px 0;
  }

  .contact-page-card-body {
    padding: 16px;
  }

  .contact-page-card-header {
    padding: 14px 16px;
  }

  .contact-page-detail {
    gap: 10px;
  }

  .contact-page-detail svg {
    width: 18px;
    height: 18px;
  }
}
