/* ============================================================
   style.css — Katrina Sells Georgia
   Light luxury theme: #c38d29 gold · white body · dark text
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Josefin+Sans:wght@300;400;600&family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand */
  --gold:            #c38d29;
  --gold-light:      #d9a84a;
  --gold-dark:       #9e7020;
  --gold-pale:       #f7edd8;
  --gold-glass:      rgba(195, 141, 41, 0.10);

  /* Backgrounds */
  --white:           #FFFFFF;
  --cream:           #FBF8F3;
  --cream-dark:      #F3EBD9;
  --primary-dark:    #0D0D0D;
  --footer-bg:       #1a1209;

  /* Text */
  --text-dark:       #1A1A1A;
  --text-body:       #3b3028;
  --text-mid:        #6a5c4e;
  --text-muted:      #9a8878;
  --text-on-gold:    #FFFFFF;
  --text-on-dark:    #FFFFFF;

  /* Hero (dark overlay stays — needed for video readability) */
  --gradient-hero:   linear-gradient(135deg, rgba(13,13,13,0.78) 0%, rgba(26,10,0,0.55) 50%, rgba(45,24,0,0.32) 100%);

  /* Borders */
  --border-gold:     rgba(195, 141, 41, 0.22);
  --border-light:    rgba(195, 141, 41, 0.12);
  --border-dark:     rgba(0, 0, 0, 0.08);

  /* Fonts */
  --font-heading:    'Cormorant Garamond', Georgia, serif;
  --font-sub:        'Josefin Sans', sans-serif;
  --font-body:       'Lato', sans-serif;

  /* Layout */
  --nav-height:      96px;
  --max-width:       1280px;
  --container-pad:   clamp(1.25rem, 4vw, 2.5rem);
  --section-pad:     clamp(4rem, 8vw, 7rem);
  --transition:      0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-sm:       0 2px 16px rgba(195,141,41,0.08);
  --shadow-md:       0 8px 40px rgba(0,0,0,0.10);
  --shadow-card:     0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover:    0 12px 48px rgba(195,141,41,0.18);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   3. UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-pad { padding: var(--section-pad) 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--gold-light); }

.section-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-top: 1rem;
  line-height: 1.85;
}
.section-sub--light { color: rgba(255,255,255,0.75); }

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* Divider */
.gold-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0;
}
.text-center .gold-rule { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sub);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.btn:hover::before { transform: translateX(100%); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(195,141,41,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sub);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

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

/* btn-primary / btn-light aliases (used on buyers/sellers pages) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sub);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  background: var(--gold);
  color: var(--white);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(195,141,41,0.35);
}
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sub);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* page-hero-grid layout (buyers/sellers) */
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.page-hero-text { }
.page-hero-image { flex-shrink: 0; position: relative; }
.page-hero-label {
  font-family: var(--font-sub);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.page-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero-title em { font-style: italic; color: var(--gold); }
.page-hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 550px;
  line-height: 1.8;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-image {
    display: none;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }

/* ============================================================
   4. NAVBAR
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

#site-header.transparent { background: transparent; }

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.09);
}

.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo — text only */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text .logo-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.nav-logo-text .logo-tag {
  font-family: var(--font-sub);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color var(--transition);
}
/* Transparent (dark hero) → white name */
#site-header.transparent .logo-name { color: var(--white); }
#site-header.transparent .logo-tag  { color: var(--gold-light); }
/* Scrolled (white bg) → dark name */
#site-header.scrolled .logo-name { color: var(--primary-dark); }
#site-header.scrolled .logo-tag  { color: var(--gold); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links a {
  font-family: var(--font-sub);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}
/* On hero (transparent) — white links */
#site-header.transparent .nav-links a { color: rgba(255,255,255,0.85); }
#site-header.transparent .nav-links a:hover { color: var(--white); }
/* On scrolled (white bg) — dark links */
#site-header.scrolled .nav-links a { color: var(--text-body); }
#site-header.scrolled .nav-links a:hover { color: var(--gold); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold) !important; }

/* CTA button */
.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 2px !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.16em !important;
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(195,141,41,0.30) !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  transition: var(--transition);
  transform-origin: center;
}
#site-header.transparent .hamburger span { background: var(--white); }
#site-header.scrolled .hamburger span   { background: var(--text-dark); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(14px);
  padding: 2rem var(--container-pad);
  z-index: 999;
  border-top: 2px solid var(--gold);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-sub);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-body);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-dark);
  transition: color var(--transition);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .mobile-cta {
  margin-top: 1.5rem;
  background: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 14px;
  border-bottom: none !important;
  font-weight: 600;
  border-radius: 2px;
}

/* ============================================================
   5. HERO (stays dark — video needs overlay)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 0 var(--container-pad);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(195,141,41,0.12);
  border: 1px solid rgba(195,141,41,0.40);
  color: var(--gold-light);
  font-family: var(--font-sub);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 8px 20px;
  margin-bottom: 1.75rem;
  animation: heroFadeUp 0.8s ease 0.2s both;
}
.hero-badge::before, .hero-badge::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: heroFadeUp 0.9s ease 0.4s both;
}
.hero-tagline span { color: var(--gold-light); }

.hero-sub {
  font-family: var(--font-sub);
  font-size: clamp(0.65rem, 1.4vw, 0.82rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2.5rem;
  animation: heroFadeUp 0.9s ease 0.55s both;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: heroFadeUp 0.9s ease 0.7s both;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-sub);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: heroFadeUp 1s ease 1.1s both;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   6. STATS BAR
   ============================================================ */
.stats {
  background: var(--gold);
  padding: 2.5rem 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 1rem 2rem;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  height: 40px; width: 1px;
  background: rgba(255,255,255,0.35);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-family: var(--font-sub);
  font-size: 0.60rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  display: block;
}

/* ============================================================
   7. ABOUT PREVIEW
   ============================================================ */
.about-preview { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-img-wrap { position: relative; }
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: 16px;
  border: 2px solid var(--gold);
  z-index: 0;
  opacity: 0.45;
}
.about-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 560px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-dark);
  margin: 0.5rem 0 1.5rem;
}
.about-title em { font-style: italic; color: var(--gold); }

.about-bio {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2.25rem;
  padding: 1.25rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
}

.badge-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition);
  filter: none;
}
.badge-img:hover { opacity: 0.75; }

/* ============================================================
   8. SERVICES
   ============================================================ */
.services { background: var(--cream); }

.services-header { margin-bottom: 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border-gold);
  border: 1.5px solid var(--border-gold);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  background: var(--gold-pale);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 600;
  color: rgba(195,141,41,0.10);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.service-card:hover .service-num { color: rgba(195,141,41,0.18); }

.service-icon {
  width: 46px; height: 46px;
  border: 1.5px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.service-link {
  font-family: var(--font-sub);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.service-card:hover .service-link { gap: 0.75rem; }

/* ============================================================
   9. FEATURED LISTINGS
   ============================================================ */
.listings { background: var(--white); }

.listings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.listing-card {
  background: var(--white);
  border: 1px solid var(--border-gold);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.listing-img {
  position: relative;
  height: 225px;
  overflow: hidden;
}
.listing-img img { width: 100%; height: 100%; transition: transform 0.6s ease; }
.listing-card:hover .listing-img img { transform: scale(1.05); }

.listing-status {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-sub);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: var(--gold);
  color: var(--white);
}
.listing-status.sold { background: #2a7a2a; }

.listing-body { padding: 1.5rem; }

.listing-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.listing-address {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.listing-meta {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-sub);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.listing-meta span { display: flex; align-items: center; gap: 0.35rem; }
.listing-meta i { color: var(--gold); font-size: 0.7rem; }

.listings-cta { text-align: center; margin-top: 3rem; }

/* ============================================================
   10. COMMUNITIES
   ============================================================ */
.communities { background: var(--cream); }

.communities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.community-card {
  position: relative;
  height: 340px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.community-card img {
  width: 100%; height: 100%;
  transition: transform 0.7s ease;
}
.community-card:hover img { transform: scale(1.07); }

.community-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,18,9,0.92) 0%, rgba(26,18,9,0.35) 55%, rgba(26,18,9,0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem;
}
.community-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.community-sub {
  font-family: var(--font-sub);
  font-size: 0.60rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.85rem;
}
.community-link {
  font-family: var(--font-sub);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}
.community-card:hover .community-link { opacity: 1; transform: translateY(0); }

/* ============================================================
   11. PHILANTHROPY BANNER
   ============================================================ */
.philanthropy {
  background: var(--gold-pale);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: var(--section-pad) 0;
}

.philanthropy-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.philanthropy-icon {
  width: 90px; height: 90px;
  border: 2px solid rgba(195,141,41,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c0395a;
  font-size: 2.2rem;
  background: var(--white);
  animation: pulseRing 3s ease-in-out infinite;
}

.philanthropy-text .section-label { color: #c0395a; }

.philanthropy-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0.5rem 0 1.25rem;
}
.philanthropy-title em { font-style: italic; color: var(--gold); }

.philanthropy-text p {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.85;
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.philanthropy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sub);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 3px;
  transition: all var(--transition);
}
.philanthropy-link:hover { gap: 0.85rem; color: var(--gold); }

/* ============================================================
   12. TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--white); }

.testimonials-header { margin-bottom: 3.5rem; }

.testimonials-carousel { position: relative; overflow: hidden; }

.testimonials-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  margin-right: 1.5rem;
  background: var(--cream);
  border: 1px solid var(--border-gold);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.30;
  line-height: 0.5;
  margin-bottom: 1.25rem;
  display: block;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 1.75rem;
}

.testimonial-author { display: flex; align-items: center; gap: 0.9rem; }

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-author-info strong {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-dark);
}
.testimonial-author-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.testimonials-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-gold);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.testimonials-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 3px;
}

.testimonials-cta { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   13. PRESS & RECOGNITION
   ============================================================ */
.press {
  background: var(--cream);
  border-top: 1px solid var(--border-gold);
  padding: 3.5rem 0;
}

.press-label {
  text-align: center;
  font-family: var(--font-sub);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3.5rem;
}

.press-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  cursor: default;
  transition: transform var(--transition);
}
.press-item:hover { transform: translateY(-3px); }

.press-badge {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.press-item:hover .press-badge { color: var(--gold); }

.press-sub {
  font-family: var(--font-sub);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}
.press-img {
  height: 34px; width: auto;
  object-fit: contain;
  opacity: 0.4;
  transition: opacity var(--transition);
}
.press-item:hover .press-img { opacity: 0.75; }

/* ============================================================
   14. INSTAGRAM STRIP
   ============================================================ */
.instagram { background: var(--white); }

.instagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.insta-handle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sub);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.insta-handle i { font-size: 1.1rem; }

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.insta-tile {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.insta-tile img { width: 100%; height: 100%; transition: transform 0.5s ease; }
.insta-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(195,141,41,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.insta-tile-overlay i { font-size: 1.5rem; color: var(--white); }
.insta-tile:hover img { transform: scale(1.08); }
.insta-tile:hover .insta-tile-overlay { opacity: 1; }

/* ============================================================
   15. CTA BANNER — gold background
   ============================================================ */
.cta-banner {
  position: relative;
  background: var(--gold);
  padding: var(--section-pad) 0;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner .section-label { color: rgba(255,255,255,0.75); }

/* Aliases used on buyers/sellers CTA sections */
.cta-inner { position: relative; z-index: 1; }
.cta-label {
  font-family: var(--font-sub);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 0.75rem;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.cta-title em { font-style: italic; color: rgba(255,255,255,0.9); }
.cta-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
/* On gold background, btn-primary should be dark not gold */
.cta-banner .btn-primary {
  background: rgba(0,0,0,0.55);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.cta-banner .btn-primary:hover {
  background: rgba(0,0,0,0.75);
  border-color: rgba(255,255,255,0.6);
  box-shadow: none;
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.cta-banner-title em { font-style: italic; color: var(--gold-pale); }

.cta-banner-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.cta-banner-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   16. CONTACT
   ============================================================ */
.contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-info .section-title { margin-bottom: 1.25rem; }
.contact-info > p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details { margin-bottom: 2rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.contact-item i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 18px;
}
.contact-item span,
.contact-item a {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
}
.contact-item a:hover { color: var(--gold); }

.contact-socials { display: flex; gap: 0.8rem; }

.social-icon {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-family: var(--font-sub);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white);
  border: 1.5px solid rgba(195,141,41,0.25);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition);
  border-radius: 2px;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  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='%23c38d29' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-group select option { background: var(--white); color: var(--text-dark); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { margin-top: 1.5rem; }
.form-submit .btn { width: 100%; justify-content: center; padding: 17px; }

/* ============================================================
   17. FOOTER
   ============================================================ */
footer {
  background: var(--footer-bg);
  padding: 4.5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.footer-logo-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.footer-logo-tag {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  max-width: 270px;
  margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: 0.75rem; }

.footer-col h4 {
  font-family: var(--font-sub);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.7;
}
.footer-badge-img {
  height: 28px; width: auto;
  filter: brightness(0) invert(1) opacity(0.3);
  transition: opacity var(--transition);
}
.footer-badge-img:hover { filter: brightness(0) invert(1) opacity(0.65); }
.footer-badges { display: flex; align-items: center; gap: 1.25rem; }

/* ============================================================
   18. FLOATING CTA
   ============================================================ */
.float-cta {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  animation: floatPulse 3s ease-in-out infinite;
}
.float-cta a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(195,141,41,0.40);
  transition: all var(--transition);
}
.float-cta a:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(195,141,41,0.50);
}

/* ============================================================
   19. ABOUT PAGE — additional styles
   ============================================================ */
/* Page hero (used on inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 5rem) 0 5rem;
  background: var(--cream-dark);
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}

.page-hero-eyebrow {
  font-family: var(--font-sub);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero-title em { font-style: italic; color: var(--gold); }

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 550px;
  line-height: 1.8;
}

/* Timeline */
.timeline { position: relative; padding: 1rem 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-pale));
}

.timeline-item {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-left: 3.5rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 13px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 50px;
}
.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Credentials grid */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.credential-card {
  background: var(--white);
  border: 1px solid var(--border-gold);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.credential-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.credential-card img {
  height: 52px; width: auto;
  margin: 0 auto 1rem;
}
.credential-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.credential-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Philanthropy section — photo + text layout */
.philanthropy-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

/* ============================================================
   20. ANIMATIONS
   ============================================================ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform-origin: top; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}
@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(195,141,41,0.20); }
  50%       { box-shadow: 0 0 0 14px rgba(195,141,41,0); }
}

/* ============================================================
   21. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { gap: 1.25rem; }
  .about-grid { gap: 3rem; }
  .about-img-wrap img { height: 460px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: 1fr 1fr; }
  .listings-grid .listing-card:last-child { display: none; }
  .communities-grid { grid-template-columns: repeat(2, 1fr); }
  .communities-grid .community-card:last-child { grid-column: 1 / -1; height: 260px; }
  .instagram-grid { grid-template-columns: repeat(4, 1fr); }
  .insta-tile:nth-child(n+5) { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero fallback on mobile (video hidden) — use her branding shoot */
  .hero-video { display: none; }
  .hero {
    background: url('../images/katrina/katrina-branding-2.jpg') center top/cover no-repeat;
  }

  .stats-inner { flex-direction: column; }
  .stat-item { width: 100%; }
  .stat-item::after { display: none; }
  .stat-item:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.25); }

  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap::before { display: none; }
  .about-img-wrap img { height: 360px; }
  .services-grid { grid-template-columns: 1fr; }
  .listings-header { flex-direction: column; align-items: flex-start; }
  .listings-grid { grid-template-columns: 1fr; }
  .listings-grid .listing-card:last-child { display: block; }
  .communities-grid { grid-template-columns: 1fr; }
  .communities-grid .community-card:last-child { grid-column: auto; height: 280px; }
  .philanthropy-inner { grid-template-columns: 1fr; text-align: center; }
  .philanthropy-inner > div:first-child { margin: 0 auto; }
  /* About page hero — stack on mobile */
  .page-hero .container > div[style*="grid"] { grid-template-columns: 1fr !important; }
  .page-hero .container > div[style*="grid"] > div:last-child { display: none; }
  .testimonial-card { flex: 0 0 calc(100% - 1.5rem); }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .insta-tile:nth-child(n+5) { display: block; }
  .insta-tile:nth-child(n+4) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .float-cta { bottom: 1.25rem; right: 1.25rem; }
  .float-cta a span { display: none; }
  .float-cta a { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
  .cta-banner-btns { flex-direction: column; align-items: stretch; }
  .cta-banner-btns .btn { justify-content: center; }
  .credentials-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 14px; }
  .timeline-item { padding-left: 2.5rem; gap: 1.5rem; }
  .timeline-item::before { left: 7px; }
}

@media (max-width: 480px) {
  .hero-tagline { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-tile:nth-child(n+4) { display: block; }
  .insta-tile:nth-child(n+5) { display: none; }
  .credentials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   22. SERVICES PAGE — SPECIFIC LAYOUT CLASSES
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.pillar-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(195,141,41,0.18) !important;
}

.buysell-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

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

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

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { gap: 3rem; }
  .testimonials-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-feature-grid blockquote:last-child { display: none; }
  .listings-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-preview-grid article:last-child { display: none; }
}

@media (max-width: 768px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .buysell-split { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-grid > div:first-child { order: 2; }
  .why-grid > div:last-child { order: 1; }
  .testimonials-feature-grid { grid-template-columns: 1fr; }
  .testimonials-feature-grid blockquote:last-child { display: block; }
  .listings-preview-grid { grid-template-columns: 1fr; }
  .listings-preview-grid article:last-child { display: block; }
}

@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   23. COMMUNITIES PAGE
   ============================================================ */
.community-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .community-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   24. TESTIMONIALS PAGE — REVIEW CARDS
   ============================================================ */
.reviews-masonry {
  columns: 3;
  column-gap: 2rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border-gold);
  padding: 2rem 1.75rem;
  break-inside: avoid;
  margin-bottom: 2rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  display: inline-block;
  width: 100%;
}
.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-type {
  font-family: var(--font-sub);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px;
  font-weight: 600;
}
.review-type--buy  { background: #e8f4fd; color: #1565c0; }
.review-type--sell { background: #e8f8e8; color: #2e7d32; }
.review-type--relo { background: #fff3e0; color: #e65100; }
.review-type--luxury { background: var(--gold-pale); color: var(--gold-dark); }

.review-quote-icon {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 0.75rem;
  display: block;
}

.review-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-gold);
}

.review-avatar {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
  flex-shrink: 0;
}

.review-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.review-location {
  font-family: var(--font-sub);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.review-invite-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.platform-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .reviews-masonry { columns: 2; }
  .platform-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-cards-grid > a:last-child { grid-column: 1 / -1; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .reviews-masonry { columns: 1; }
  .review-invite-grid { grid-template-columns: 1fr; text-align: center; }
  .review-invite-grid img { margin: 0 auto; }
  .review-invite-grid > div > div { justify-content: center; }
  .platform-cards-grid { grid-template-columns: 1fr; }
  .platform-cards-grid > a:last-child { grid-column: auto; max-width: 100%; margin: 0; }
}

/* ============================================================
   25. BLOG PAGE
   ============================================================ */
.blog-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-tab {
  font-family: var(--font-sub);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--border-gold);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.blog-tab:hover,
.blog-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Featured post */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--border-gold);
  overflow: hidden;
}
.blog-featured-img {
  position: relative;
  height: 440px;
  overflow: hidden;
}
.blog-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-body { padding: 2.5rem 2.5rem 2.5rem 0; }

.blog-cat {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-sub);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  z-index: 1;
}
.blog-cat--market  { background: #dbeafe; color: #1d4ed8; }
.blog-cat--buying  { background: #dcfce7; color: #15803d; }
.blog-cat--selling { background: #fef9c3; color: #a16207; }
.blog-cat--luxury  { background: var(--gold-pale); color: var(--gold-dark); }
.blog-cat--community { background: #fce7f3; color: #be185d; }

.blog-meta {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-sub);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.blog-meta span { display: flex; align-items: center; gap: 0.4rem; }
.blog-meta i { color: var(--gold); }

.blog-featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.blog-featured-excerpt {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
}

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

.blog-card {
  background: var(--white);
  border: 1px solid var(--border-gold);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.blog-card-img {
  position: relative;
  height: 215px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.75rem; }

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0.75rem 0 0.75rem;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.blog-read-more {
  font-family: var(--font-sub);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.blog-read-more:hover { gap: 0.7rem; }

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.author-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { height: 320px; }
  .blog-featured-body { padding: 2rem; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .author-grid { grid-template-columns: 1fr; text-align: center; }
  .author-grid img { margin: 0 auto; }
}

/* ============================================================
   26. CONTACT PAGE
   ============================================================ */
.contact-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.contact-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .contact-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .contact-bar-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .contact-steps-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   27. BUYERS PAGE
   ============================================================ */

/* Step cards */
.buyer-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.buyer-step {
  background: var(--cream);
  border: 1px solid var(--border-light);
  padding: 2.25rem 2rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.buyer-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(195,141,41,0.12);
}

.buyer-step-num {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: -1rem;
}

.buyer-step-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.buyer-step-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.buyer-step-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.buyer-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.buyer-step-list li {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-mid);
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
}

.buyer-step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* Why-points (shared with services) */
.why-points {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.why-point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.why-point > i {
  color: var(--gold);
  font-size: 0.95rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.why-point strong {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.why-point span {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Resource cards */
.buyer-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.resource-card {
  background: var(--cream);
  border: 1px solid var(--border-light);
  padding: 2.25rem 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(195,141,41,0.12);
}

.resource-card-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.resource-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.resource-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.resource-card-link {
  font-family: var(--font-sub);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}

.resource-card-link:hover {
  color: var(--gold-dark);
  border-color: var(--gold-dark);
}

@media (max-width: 1024px) {
  .buyer-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .buyer-resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .buyer-steps-grid { grid-template-columns: 1fr; }
  .buyer-resources-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   28. SELLERS PAGE
   ============================================================ */

/* Process grid — 3 columns */
.seller-process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.seller-process-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--cream);
  border: 1px solid var(--border-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.seller-process-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(195,141,41,0.1);
  border-color: var(--border-gold);
}

.spi-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  min-width: 70px;
  text-align: center;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.spi-content {
  flex: 1;
}

.spi-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.spi-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.spi-content p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.85;
}

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

.marketing-card {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 2.25rem 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.marketing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(195,141,41,0.12);
  border-color: var(--border-gold);
}

.marketing-card-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.marketing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.marketing-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* Why grid reversed layout */
.why-grid--reverse {
  direction: rtl;
}

.why-grid--reverse > * {
  direction: ltr;
}

/* Seller stat pills */
.seller-stats-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.seller-stat-pill {
  background: var(--gold-pale);
  border: 1px solid var(--border-gold);
  padding: 1rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.ssp-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.ssp-label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .marketing-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid--reverse { direction: ltr; }
}

@media (max-width: 1024px) {
  .seller-process-timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .seller-process-timeline { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .seller-process-item { flex-direction: column; gap: 0.75rem; }
  .spi-number { font-size: 2.5rem; min-width: auto; }
  .marketing-grid { grid-template-columns: 1fr; }
  .seller-stats-row { gap: 0.75rem; }
}

/* ============================================================
   29. GLOBAL OVERFLOW GUARD
   ============================================================ */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

/* All images stay inside their container */
img  { max-width: 100%; height: auto; }

/* Buttons: allow wrapping so they never overflow */
.btn, .btn-gold, .btn-outline, .btn-outline-white,
.btn-primary, .btn-light, .btn-dark {
  white-space: normal;
  word-break: break-word;
}

/* ============================================================
   30. INLINE-GRID RESPONSIVE OVERRIDES
   These selectors target grid containers that use inline
   style= attributes (which CSS media queries can't override
   without !important + attribute selectors).
   ============================================================ */

/* ── TABLET (≤ 1024px) ─────────────────────────────────── */
@media (max-width: 1024px) {

  /* 4-column inline grids → 2 columns */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 3-column inline grids → 2 columns */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Two-unequal-column inline grids (e.g. 1fr 1.4fr) → 2-col still OK,
     but make the right column not too narrow */
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.4fr"] {
    gap: 2.5rem !important;
  }

  /* Page-hero 1fr auto → give auto column a max-width */
  .page-hero [style*="grid-template-columns:1fr auto"],
  .page-hero [style*="grid-template-columns: 1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  .page-hero [style*="flex-shrink:0"],
  .page-hero [style*="flex-shrink: 0"] {
    display: none !important;
  }
}

/* ── MOBILE (≤ 768px) ──────────────────────────────────── */
@media (max-width: 768px) {

  /* Force single column for ALL common inline grids */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns:1.5fr 1fr"],
  [style*="grid-template-columns:auto 1fr"],
  [style*="grid-template-columns: auto 1fr"],
  [style*="grid-template-columns:1fr auto"],
  [style*="grid-template-columns: 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* 2-col inline grids (form rows, stat boxes, story sections) → single col */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Hide fixed-width portrait hero images on all inner pages */
  .page-hero [style*="width:260px"],
  .page-hero [style*="width:280px"],
  .page-hero [style*="width: 260px"],
  .page-hero [style*="width: 280px"] {
    display: none !important;
  }

  /* Page-hero image columns (flex-shrink:0 wrappers) — hide on mobile */
  .page-hero [style*="flex-shrink:0"],
  .page-hero [style*="flex-shrink: 0"] {
    display: none !important;
  }

  /* Philanthropy grid (icon + text) → stack */
  .philanthropy-inner,
  [style*="grid-template-columns:auto 1fr"],
  [style*="grid-template-columns: auto 1fr"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  /* Contact info items — keep them as rows but allow wrapping */
  .contact [style*="display:flex"][style*="gap:1rem"][style*="align-items:center"] {
    align-items: flex-start;
  }

  /* Sections with large inline padding → reduce on mobile */
  [style*="padding:3rem"] { padding: 1.75rem !important; }

  /* About page two-column section grids */
  .about-grid { grid-template-columns: 1fr !important; }

  /* Philanthropy / about section: fixed-width image divs */
  .philanthropy-inner > div:first-child,
  .philanthropy-inner [style*="width:320px"],
  .philanthropy-inner [style*="flex-shrink:0"] {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: unset !important;
  }
  .philanthropy-inner img[style*="width:320px"],
  .philanthropy-inner img[style*="width: 320px"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
  }

  /* Any standalone fixed-width image (not in page-hero already handled above) */
  [style*="width:320px"],
  [style*="width: 320px"],
  [style*="width:280px"],
  [style*="width: 280px"],
  [style*="width:260px"],
  [style*="width: 260px"] {
    max-width: 100% !important;
  }

  /* Nav logo — shrink slightly on very small screens */
  .nav-logo-text .logo-name { font-size: 1.2rem; }

  /* Buttons side by side in hero → wrap */
  .hero-btns  { gap: 0.75rem; }
  .cta-buttons,
  .cta-banner-btns { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn,
  .cta-banner-btns .btn { justify-content: center; width: 100%; }

  /* Page-hero buttons row */
  .page-hero [style*="display:flex"][style*="flex-wrap:wrap"] {
    gap: 0.75rem !important;
  }

  /* Map iframe — shorter on mobile */
  section[style*="height:400px"] {
    height: 260px !important;
  }
  section[style*="height:400px"] iframe {
    height: 260px !important;
  }
}

/* ── SMALL MOBILE (≤ 480px) ────────────────────────────── */
@media (max-width: 480px) {

  /* Reduce body text padding */
  .section-pad { padding: clamp(2.5rem, 8vw, 4rem) 0; }

  /* Page hero title smaller */
  .page-hero-title { font-size: clamp(2rem, 9vw, 3rem) !important; }

  /* Section title smaller */
  .section-title  { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  /* Hero tagline */
  .hero-tagline   { font-size: clamp(2.5rem, 13vw, 3.8rem); }

  /* Stats — tighter */
  .stat-item      { padding: 0.75rem 1rem; }
  .stat-number    { font-size: clamp(1.8rem, 8vw, 2.4rem); }

  /* Cards with inline padding */
  [style*="padding:2.5rem 2rem"] { padding: 1.5rem 1.25rem !important; }
  [style*="padding:2.5rem"]      { padding: 1.5rem !important; }

  /* Footer bottom — center everything */
  .footer-bottom { text-align: center; }
  .footer-copy   { font-size: 0.65rem; }

  /* Floating CTA — icon only */
  .float-cta a span { display: none; }
  .float-cta a {
    width: 52px; height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  /* Nav height reduction */
  :root { --nav-height: 60px; }
  .nav-logo-text .logo-name { font-size: 1.1rem; }
}
