/* ==========================================================================
   OAKWILL REALTY HOMES — CORE STYLESHEET
   Table of contents:
   1. CSS Variables
   2. Reset & Base
   3. Typography
   4. Layout helpers
   5. Buttons
   6. Navbar
   7. Hero
   8. Section headers
   9. Feature / Service / Property cards
   10. Stats counters
   11. Testimonials
   12. CTA band
   13. Footer
   14. Forms
   15. Property detail page
   16. Utility widgets (back-to-top, WhatsApp, lightbox, loader)
   17. Scroll-reveal animations
   18. Dark mode
   ========================================================================== */

/* ---------- 1. CSS Variables ---------- */
:root {
  --primary: #1B3B2A;
  --primary-dark: #10241A;
  --primary-light: #2F5940;
  --secondary: #C89B3C;
  --secondary-light: #E3C374;
  --secondary-dark: #A87F2A;
  --accent: #F7F7F7;
  --dark: #222222;
  --white: #FFFFFF;
  --text-muted: #6B7280;
  --border: #E7E7EA;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 4px 14px rgba(16, 36, 26, 0.08);
  --shadow-md: 0 12px 32px rgba(16, 36, 26, 0.12);
  --shadow-lg: 0 24px 60px rgba(16, 36, 26, 0.18);
  --shadow-gold: 0 10px 26px rgba(200, 155, 60, 0.35);

  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --container-w: 1220px;
  --navbar-h: 190px;
}

/* ---------- 2. Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { color: var(--text-muted); }

.text-gold { color: var(--secondary); }
.text-white { color: var(--white); }

/* ---------- 4. Layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--secondary); color: var(--primary-dark); box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(200,155,60,0.45); }

.btn-outline { background: transparent; border: 1.5px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); transform: translateY(-3px); }

.btn-outline-dark { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.btn-call {
  background: var(--primary);
  color: var(--white);
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-call:hover { background: var(--secondary); color: var(--primary-dark); transform: translateY(-2px); }

/* ---------- 6. Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 190px;
  display: flex;
  align-items: center;
  background: rgba(16, 36, 26, 0);
  backdrop-filter: blur(0);
  transition: background var(--transition), box-shadow var(--transition),
              backdrop-filter var(--transition), height var(--transition);
}

.navbar.scrolled {
  height: 125px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 190px;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: auto !important;
  height: 185px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  flex: 0 0 auto;
  transform: scale(1.08);
  transform-origin: left center;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
  transition: height var(--transition), transform var(--transition),
              filter var(--transition);
}

.navbar:not(.scrolled) .logo-img {
  height: 185px !important;
  transform: scale(1.08);
}

.navbar.scrolled .logo-img {
  height: 115px !important;
  transform: scale(1);
  filter: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  background: var(--primary-dark);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.4px;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: color var(--transition);
}

.logo-text span { color: var(--secondary); }
.navbar.scrolled .logo-text { color: var(--primary); text-shadow: none; }

.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--white); font-weight: 500; font-size: 0.94rem; position: relative; padding: 6px 0;
  transition: color var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--primary); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--secondary);
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--secondary); }
.navbar.scrolled .nav-links a.active { color: var(--secondary); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; width: 30px; z-index: 1100;
}
.hamburger span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.navbar.scrolled .hamburger span { background: var(--primary); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,29,58,0.55) 0%, rgba(8,29,58,0.78) 60%, rgba(8,29,58,0.92) 100%);
  z-index: -1;
}
.hero-content { max-width: 760px; padding-top: var(--navbar-h); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--secondary-light); font-weight: 600; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--secondary); }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  color: var(--white); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.75rem; letter-spacing: 1px;
  animation: bounce 2.2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* Smaller hero for inner pages */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  isolation: isolate;
  padding-top: var(--navbar-h);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,29,58,0.75), rgba(8,29,58,0.88)); z-index: -1; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 14px; }
.page-hero .breadcrumb a { color: var(--secondary-light); }
.page-hero h1 { color: var(--white); margin-bottom: 0; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin-top: 14px; }

/* ---------- 8. Section headers ---------- */
.section-header { max-width: 640px; margin-bottom: 60px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--secondary-dark); font-weight: 700; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--secondary); }
.section-header.center .eyebrow::before { display: none; }
.section-header p { margin-top: 14px; font-size: 1.05rem; }
.section-alt { background: var(--accent); }

/* ---------- 9. Cards ---------- */
.feature-card, .service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover, .service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary-light); margin-bottom: 24px;
}
.card-icon svg { width: 26px; height: 26px; }
.feature-card h3, .service-card h3 { margin-bottom: 12px; }
.service-card .read-more, .card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  color: var(--secondary-dark); font-weight: 600; font-size: 0.9rem;
  transition: gap var(--transition);
}
.card-link:hover { gap: 12px; }

/* Property cards */
.property-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.property-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.property-card:hover .property-media img { transform: scale(1.08); }
.property-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--secondary); color: var(--primary-dark);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
.property-badge.status-lease { background: var(--primary); color: var(--white); }
.property-price {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(8,29,58,0.88); color: var(--white); backdrop-filter: blur(6px);
  padding: 8px 16px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.95rem;
}
.property-body { padding: 24px; }
.property-type { color: var(--secondary-dark); font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.property-body h3 { margin-bottom: 6px; font-size: 1.2rem; }
.property-location { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }
.property-location svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--secondary); }
.property-specs { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.property-specs span { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--dark); font-weight: 600; }
.property-specs svg { width: 16px; height: 16px; color: var(--secondary-dark); }
.property-actions { display: flex; gap: 10px; }
.property-actions .btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 0.85rem; }

/* ---------- 10. Stats ---------- */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .stat-number { font-family: var(--font-heading); font-weight: 700; font-size: 3rem; color: var(--secondary); line-height: 1; }
.stat-item .stat-label { color: rgba(255,255,255,0.8); margin-top: 10px; font-size: 0.95rem; letter-spacing: 0.3px; }

/* ---------- 11. Testimonials ---------- */
.testimonial-track { position: relative; max-width: 780px; margin: 0 auto; text-align: center; min-height: 260px; }
.testimonial-slide { display: none; animation: fadeIn 0.6s ease; }
.testimonial-slide.active { display: block; }
.testimonial-quote-icon { color: var(--secondary); opacity: 0.35; margin-bottom: 18px; }
.testimonial-slide p { font-size: 1.25rem; color: var(--dark); font-style: italic; line-height: 1.7; margin-bottom: 26px; }
.testimonial-author { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.testimonial-author strong { font-family: var(--font-heading); color: var(--primary); }
.testimonial-author span { color: var(--text-muted); font-size: 0.85rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.testimonial-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--border); transition: all var(--transition); }
.testimonial-dots button.active { background: var(--secondary); width: 26px; border-radius: 6px; }

/* ---------- 12. CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 24px;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(200,155,60,0.25), transparent 45%);
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 34px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- 13. Footer ---------- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 90px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 60px; }
.footer-about .logo-text { color: var(--white); }
.footer-about .logo-img { height: 100px !important; width: auto !important; max-width: none !important; transform: none; filter: none; }
.footer-about p { color: rgba(255,255,255,0.65); margin: 20px 0 24px; font-size: 0.92rem; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 22px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: color var(--transition), padding-left var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
.social-icons { display: flex; gap: 12px; margin-top: 6px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: all var(--transition);
}
.social-icons a:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); transform: translateY(-3px); }
.newsletter-form { display: flex; margin-top: 16px; border-radius: var(--radius-full); overflow: hidden; border: 1px solid rgba(255,255,255,0.25); }
.newsletter-form input { flex: 1; background: transparent; border: none; padding: 13px 18px; color: var(--white); font-size: 0.88rem; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button { background: var(--secondary); color: var(--primary-dark); padding: 0 20px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 26px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: var(--secondary); }

/* ---------- 14. Forms ---------- */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--dark); transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(200,155,60,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }
.form-success {
  display: none; align-items: center; gap: 12px; background: #E9F7EF; color: #1B7A43;
  padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; margin-top: 18px;
}
.form-success.show { display: flex; }

/* ---------- 15. Property detail ---------- */
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 16px; cursor: zoom-in; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; opacity: 0.7; transition: opacity var(--transition), outline var(--transition); }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; outline: 2px solid var(--secondary); }

.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 36px 0 20px; flex-wrap: wrap; }
.detail-header h1 { margin-bottom: 8px; font-size: 2rem; }
.detail-price { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--secondary-dark); white-space: nowrap; }
.detail-location { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.detail-location svg { color: var(--secondary); width: 17px; height: 17px; }

.detail-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0; }
.detail-spec-box { background: var(--accent); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.detail-spec-box svg { color: var(--secondary-dark); width: 24px; height: 24px; margin-bottom: 10px; }
.detail-spec-box strong { display: block; font-family: var(--font-heading); color: var(--primary); font-size: 1.15rem; }
.detail-spec-box span { font-size: 0.8rem; color: var(--text-muted); }

.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.amenity-item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--dark); }
.amenity-item svg { color: var(--secondary-dark); width: 18px; height: 18px; flex-shrink: 0; }

.map-placeholder {
  aspect-ratio: 16/7; border-radius: var(--radius-lg); background: var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-muted); border: 1.5px dashed var(--border);
}

.agent-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); }
.agent-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--accent); }
.agent-card h4 { margin-bottom: 2px; }
.agent-card .agent-role { color: var(--secondary-dark); font-size: 0.82rem; font-weight: 600; margin-bottom: 18px; }
.agent-contact { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.agent-contact a { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--dark); }
.agent-contact svg { color: var(--secondary-dark); width: 16px; height: 16px; }

/* ---------- 16. Utility widgets ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--secondary); color: var(--primary-dark); }

.whatsapp-float {
  position: fixed; bottom: 28px; left: 28px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  animation: pulseWA 2.4s infinite;
}
@keyframes pulseWA { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5);} 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

.page-loader {
  position: fixed; inset: 0; z-index: 3000; background: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring { width: 54px; height: 54px; border: 3px solid rgba(200,155,60,0.25); border-top-color: var(--secondary); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(8,10,15,0.94);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); }
.lightbox-close { position: absolute; top: 26px; right: 32px; color: var(--white); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--white); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.lightbox-prev { left: 26px; }
.lightbox-next { right: 26px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0;
  transition: all var(--transition);
}
.navbar.scrolled .theme-toggle { color: var(--primary); border-color: var(--border); }
.theme-toggle:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- 17. Scroll-reveal ---------- */
.reveal { opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.fade-up { transform: translateY(40px); }
.reveal.fade-in { transform: none; }
.reveal.zoom-in { transform: scale(0.92); }
.reveal.slide-left { transform: translateX(-50px); }
.reveal.slide-right { transform: translateX(50px); }
.reveal.in-view { opacity: 1; transform: translate(0, 0) scale(1); }

/* Stagger helper (set via inline style or nth-child in JS) */
.reveal { transition-delay: var(--delay, 0s); }


/* ---------- Large Logo Responsive Overrides ---------- */
@media (max-width: 1100px) {
  .navbar { height: 160px; }
  .logo { height: 160px; }

  .navbar:not(.scrolled) .logo-img {
    height: 155px !important;
    transform: scale(1.04);
  }

  .navbar.scrolled { height: 110px; }

  .navbar.scrolled .logo-img {
    height: 100px !important;
  }
}

@media (max-width: 768px) {
  :root { --navbar-h: 100px; }

  .navbar { height: 100px; }
  .logo { height: 100px; gap: 10px; }

  .navbar:not(.scrolled) .logo-img {
    height: 92px !important;
    transform: scale(1);
  }

  .navbar.scrolled { height: 85px; }

  .navbar.scrolled .logo-img {
    height: 78px !important;
    transform: none;
  }
}

@media (max-width: 480px) {
  .navbar { height: 88px; }
  .logo { height: 88px; }

  .navbar:not(.scrolled) .logo-img {
    height: 82px !important;
  }

  .navbar.scrolled { height: 76px; }

  .navbar.scrolled .logo-img {
    height: 70px !important;
  }
}

/* ---------- 18. Dark mode ---------- */
[data-theme="dark"] {
  --white: #10182B;
  --accent: #16213A;
  --dark: #EDEFF5;
  --text-muted: #A9B2C8;
  --border: #253254;
}
[data-theme="dark"] body { background: #0B1220; }
[data-theme="dark"] .navbar.scrolled { background: rgba(11,18,32,0.85); }
[data-theme="dark"] .navbar.scrolled .logo-text,
[data-theme="dark"] .navbar.scrolled .nav-links a,
[data-theme="dark"] .navbar.scrolled .hamburger span { color: var(--dark); }
[data-theme="dark"] .feature-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .property-card,
[data-theme="dark"] .agent-card { background: #121B31; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: #EDEFF5; }
[data-theme="dark"] .detail-spec-box { background: #16213A; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 60px 0; }
.no-scroll { overflow: hidden; }