/* ==========================================================================
   Homes by Marissa - Realtor Theme
   Dark theme: #0a0a0a bg, #ffbf1f accent, white text
   Fonts: Playfair Display (headings), Inter (body)
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --primary: #0a0a0a;
  --primary-light: #111;
  --accent: #ffbf1f;
  --accent-hover: #e6ac1a;
  --text: #222;
  --text-light: #555;
  --text-on-dark: #f8f9fa;
  --text-muted: rgba(248, 249, 250, 0.5);
  --bg-dark: #0a0a0a;
  --bg-cream: #f5f0e8;
  --bg-light: #fafafa;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 180px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }

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

/* ==========================================================================
   1. HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.header-logo img {
  height: 160px;
  width: auto;
  transition: height var(--transition);
}

.site-header.scrolled .header-logo img {
  height: 60px;
}

.header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text-on-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
}

/* Desktop dropdown */
.has-dropdown > .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #1a1a1a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  padding: 0.5rem 0;
}

.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-on-dark);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}

.dropdown li a:hover {
  background: rgba(255, 191, 31, 0.1);
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ==========================================================================
   2. MOBILE MENU
   ========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #111;
  z-index: 2000;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-menu-close {
  color: var(--text-on-dark);
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem;
}

.mobile-menu-nav {
  flex: 1;
  padding: 1rem 0;
}

.mobile-menu-nav ul {
  list-style: none;
}

.mobile-nav-item a {
  display: block;
  padding: 0.85rem 1.5rem;
  color: var(--text-on-dark);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color var(--transition), background var(--transition);
}

.mobile-nav-item a:hover {
  color: var(--accent);
  background: rgba(255, 191, 31, 0.05);
}

/* Mobile dropdown toggle */
.mobile-dropdown {
  display: none;
  background: rgba(0, 0, 0, 0.2);
}

.mobile-nav-item.expanded .mobile-dropdown {
  display: block;
}

.mobile-dropdown li a {
  padding-left: 2.5rem;
  font-size: 0.9rem;
}

.mobile-menu-cta {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-cta .btn {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-gold:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

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

.btn-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

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

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

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

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-submit {
  margin-top: 0.5rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   4. HERO SECTIONS
   ========================================================================== */

/* Full-height homepage hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.7));
}

/* Area-specific hero positioning */
.page-area .hero {
  background-position: center center;
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sub-page hero (about, etc.) */
.page-hero {
  position: relative;
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 2rem;
}

.page-hero-sm {
  min-height: 20vh;
  background: var(--primary);
  padding: calc(var(--header-height) + 2rem) 1.5rem 2rem;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.65));
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.page-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   5. SECTIONS
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--text-on-dark);
}

.section-dark p {
  color: rgba(248, 249, 250, 0.8);
}

.section-light {
  background: var(--bg-light);
  color: var(--text);
}

.section-cream {
  background: var(--bg-cream);
  color: var(--text);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1,
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.accent-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.accent-line-left {
  margin-left: 0;
}

/* ==========================================================================
   6. HOMEPAGE - Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 191, 31, 0.3);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card .btn {
  font-size: 0.85rem;
}

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

/* Services list page */
.services-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   7. HOMEPAGE - Sold Showcase
   ========================================================================== */
.sold-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sold-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.sold-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.sold-images {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sold-img-main {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .sold-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sold-images { max-width: 400px; margin: 0 auto; }
}

/* Sold page grid */
.sold-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.sold-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--transition);
}

.sold-item:hover {
  transform: scale(1.03);
}

.sold-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@media (max-width: 600px) {
  .sold-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ==========================================================================
   8. TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 191, 31, 0.2);
}

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

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(248, 249, 250, 0.85);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

/* ==========================================================================
   9. AREAS GRID
   ========================================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.area-card-solid {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition);
  text-decoration: none;
}

.area-card-solid:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.area-card-solid h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.area-card-solid p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(248, 249, 250, 0.7);
  margin-bottom: 1rem;
}

.area-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

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

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

/* ==========================================================================
   10. REFERRAL SECTION
   ========================================================================== */
.referral-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
}

.referral-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.referral-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-on-dark);
  margin-bottom: 1.25rem;
}

.referral-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(248, 249, 250, 0.75);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .referral-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .referral-image { max-width: 250px; margin: 0 auto; }
}

/* ==========================================================================
   11. CTA BANNER
   ========================================================================== */
.section-cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  text-align: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta-content strong {
  color: #fff;
}

.cta-section {
  background: var(--primary);
  color: var(--text-on-dark);
  text-align: center;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  background: #050505;
  color: var(--text-on-dark);
  padding: 4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 160px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  transition: background var(--transition), color var(--transition);
}

.social-icon:hover {
  background: var(--accent);
  color: var(--primary);
}

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

.footer-links h4,
.footer-areas h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-on-dark);
}

.footer-links ul li,
.footer-areas ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(248, 249, 250, 0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-areas ul li {
  color: rgba(248, 249, 250, 0.65);
  font-size: 0.9rem;
}

.footer-nap {
  font-size: 0.9rem;
}

.nap-name {
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 0.25rem;
}

.nap-city {
  color: rgba(248, 249, 250, 0.65);
  margin-bottom: 0.25rem;
}

.nap-phone a {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition);
}

.nap-phone a:hover {
  color: var(--accent-hover);
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-badge {
  height: 50px;
  width: auto;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-badge:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social { justify-content: center; }
  .footer-badges { flex-wrap: wrap; }
}

/* ==========================================================================
   13. MOBILE CONTACT BAR
   ========================================================================== */
.mobile-contact-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-contact-bar {
    display: flex;
  }
}

.mobile-contact-bar.bar-hidden {
  transform: translateY(100%);
}

.mobile-contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  color: var(--text-on-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.mobile-contact-call {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact-btn:hover {
  background: rgba(255, 191, 31, 0.1);
}

.mobile-contact-bar.pulse-once {
  animation: barPulse 1.5s ease-out;
}

@keyframes barPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 191, 31, 0.4); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ==========================================================================
   14. CONTACT MODAL
   ========================================================================== */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.contact-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.contact-modal {
  background: #1a1a1a;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-muted);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}

.contact-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
}

.contact-modal-heading {
  font-size: 1.5rem;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   15. FORMS (modal + contact page + lead forms)
   ========================================================================== */
.lead-form .form-group {
  margin-bottom: 1.25rem;
}

.lead-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea,
.lead-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  border: none;
  border-radius: var(--radius);
  outline: none;
  transition: box-shadow var(--transition);
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  box-shadow: 0 0 0 3px rgba(255, 191, 31, 0.3);
}

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

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.form-fieldset legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.form-legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-on-dark);
  cursor: pointer;
  line-height: 1.4;
}

.radio-label input,
.checkbox-label input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  width: auto;
}

.required { color: #ef4444; }

.char-count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.form-status-success {
  background: #065f46;
  color: #ecfdf5;
}

.form-status-error {
  background: #991b1b;
  color: #fef2f2;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}

.form-message.success {
  background: #065f46;
  color: #ecfdf5;
}

.form-message.error {
  background: #991b1b;
  color: #fef2f2;
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

/* Contact page specifics */
.contact-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.contact-social-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.contact-form-card {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 600px) {
  .form-row,
  .radio-group {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   16. ABOUT PAGE
   ========================================================================== */

/* Breadcrumb bar */
.breadcrumb-bar {
  background: #111;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(248, 249, 250, 0.5);
}

.breadcrumb-list a {
  color: rgba(248, 249, 250, 0.6);
  transition: color var(--transition);
}

.breadcrumb-list a:hover {
  color: var(--accent);
}

.breadcrumb-list li:not(:first-child)::before {
  content: '/';
  margin-right: 0.5rem;
  color: rgba(248, 249, 250, 0.3);
}

/* Area page breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Stats bar */
.stats-bar {
  background: var(--accent);
  padding: 2rem 0;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-prefix,
.stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* Bio section */
.bio-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #f0f0f0;
}

.bio-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  gap: 0.5rem;
}

.bio-photo-placeholder span {
  font-size: 0.85rem;
}

.bio-contact-quick {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bio-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.bio-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.bio-editable {
  color: var(--text-light);
  font-style: italic;
}

.bio-areas {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}

.bio-areas h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .bio-layout {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .bio-photo { text-align: center; }
  .bio-photo-frame { max-width: 250px; margin: 0 auto; }
}

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

.credential-card {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e5e5;
  transition: transform var(--transition);
}

.credential-card:hover {
  transform: translateY(-3px);
}

.credential-icon {
  margin-bottom: 1rem;
}

.credential-icon-default {
  color: var(--accent);
}

.credential-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

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

@media (max-width: 768px) {
  .credentials-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ==========================================================================
   17. AREA PAGES
   ========================================================================== */
.area-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

.area-page-main {
  min-height: 0;
}

.area-page-sidebar {
  align-self: start;
  position: static !important;
}


.area-page-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.area-page-content h2:first-child {
  margin-top: 0;
}

.area-page-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.sidebar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e5e5;
  position: relative;
  z-index: 1;
}

.sidebar-card:last-child {
  margin-bottom: 0;
}

.sidebar-card-heading {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.agent-sidebar-card {
  text-align: center;
}

.agent-sidebar-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.agent-sidebar-title {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.agent-sidebar-phone {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.sidebar-cta-card {
  background: var(--primary);
  color: var(--text-on-dark);
  border-color: transparent;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.sidebar-cta-card p {
  color: rgba(248, 249, 250, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sidebar-cta-card .sidebar-card-heading {
  color: var(--text-on-dark);
}

.area-facts-list {
  list-style: none;
}

.area-facts-list li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
}

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

.placeholder-text {
  color: var(--text-light);
  font-style: italic;
  padding: 2rem;
}

@media (max-width: 900px) {
  .area-page-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   18. FAQ PAGE
   ========================================================================== */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section-label {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.faq-section-label:first-child {
  margin-top: 0;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   19. BUYERS/SELLERS GUIDE PAGES
   ========================================================================== */
.guide-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.guide-intro {
  margin-bottom: 3rem;
  text-align: center;
}

.guide-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
}

.guide-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.guide-step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent);
  border-radius: 50%;
}

.guide-step-content h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.guide-step-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1rem;
}

.guide-step-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .guide-step {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   20. LISTINGS PAGE
   ========================================================================== */
.listings-hero {
  background: var(--primary);
  padding: calc(var(--header-height) + 2rem) 1.5rem 2rem;
  text-align: center;
}

.listings-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-on-dark);
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-dark);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.listings-section {
  background: var(--bg-dark);
  padding: 3rem 1.5rem;
  min-height: 40vh;
}

.listings-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-on-dark);
  max-width: 500px;
  margin: 0 auto;
}

.listings-empty svg {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.listings-empty h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.listings-empty p {
  color: rgba(248, 249, 250, 0.6);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   21. LEGAL PAGES (Privacy, Terms)
   ========================================================================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* ==========================================================================
   22. SELLER VALUATION CTA
   ========================================================================== */
.valuation-cta {
  background: rgba(255, 191, 31, 0.08);
  border: 1px solid rgba(255, 191, 31, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.valuation-cta-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.valuation-cta-content p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   23. ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready .animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   24. UTILITY / PAGE BODY CLASSES
   ========================================================================== */
.page-home,
.page-about,
.page-sold,
.page-contact,
.page-buyers,
.page-sellers,
.page-faq,
.page-area {
  background: var(--bg-dark);
}

/* Light sections on dark-bg pages need proper text colors */
.page-about .section-light,
.page-about .section-cream {
  color: var(--text);
}

.page-about .section-light h2,
.page-about .section-light h3,
.page-about .section-cream h2,
.page-about .section-cream h3 {
  color: var(--text);
}

/* Default sections (no variant class) on guide/FAQ pages = white bg */
.page-buyers .section:not(.section-dark):not(.section-cta-banner),
.page-sellers .section:not(.section-dark):not(.section-cta-banner),
.page-faq .section:not(.section-dark):not(.section-cta-banner) {
  background: #fff;
  color: var(--text);
}

.page-area .section:not(.section-dark):not(.section-cream):not(.section-cta-banner) {
  background: #fff;
  color: var(--text);
}

/* Bottom padding for mobile contact bar */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Lightbox (built dynamically by main.js) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.lightbox-close { top: -48px; right: 0; }
.lightbox-prev { left: -56px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -56px; top: 50%; transform: translateY(-50%); }
