/* ══════════════════════════════════════════════════════════
   Victoria Lane Realty | style.css
   ══════════════════════════════════════════════════════════ */

/* ── Loader ─────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 9999; background: var(--dark); display: flex; align-items: center; justify-content: center; transition: opacity 0.8s var(--ease), visibility 0.8s; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.loader-icon { width: clamp(64px, 12vw, 96px); height: auto; }
.loader-draw { stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawPath 1.4s var(--ease) forwards; fill: none; }
@keyframes drawPath { to { stroke-dashoffset: 0; } }
.loader-text { font-family: var(--font-heading); font-size: clamp(0.85rem, 2vw, 1rem); font-weight: 700; letter-spacing: 0.3em; color: var(--accent); opacity: 0; animation: fadeInText 0.6s ease 0.8s forwards; }
@keyframes fadeInText { to { opacity: 1; } }

/* ── Skip Nav ───────────────────────────────────────────── */
.skip-nav { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 10000; padding: 12px 24px; background: var(--accent); color: #FFFFFF; font-size: 14px; font-weight: 600; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.skip-nav:focus { position: fixed; top: 0; left: 16px; width: auto; height: auto; overflow: visible; }

/* ── Scroll Progress ────────────────────────────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); z-index: 9999; }

/* ── Emergency Bar ──────────────────────────────────────── */
.emergency-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 24px; z-index: 900; transform: translateY(100%); transition: transform 0.4s var(--ease); }
.emergency-bar.visible { transform: translateY(0); }
.emergency-bar-link { color: #FFFFFF; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 8px 24px; background: var(--accent); border-radius: var(--radius-btn); transition: background 0.2s; }
.emergency-bar-link:hover { background: var(--accent-hover); color: #FFFFFF; }
.emergency-bar-close { color: rgba(255,255,255,0.5); font-size: 22px; line-height: 1; padding: 4px 8px; cursor: pointer; transition: color 0.2s; }
.emergency-bar-close:hover { color: #FFFFFF; }
@media (min-width: 769px) { .emergency-bar { display: none; } }

/* ── Animations ──────────────────────────────────────────── */
[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.services-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }
.testimonials-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.testimonials-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.why-points .why-point:nth-child(2) { transition-delay: 0.08s; }
.why-points .why-point:nth-child(3) { transition-delay: 0.16s; }
.why-points .why-point:nth-child(4) { transition-delay: 0.24s; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; transition: background 0.3s ease, box-shadow 0.3s ease; }
.nav.scrolled { background: #FFFFFF; box-shadow: 0 1px 8px rgba(0,0,0,0.08); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.nav:not(.scrolled) .nav-links a { color: #FFFFFF; }
.nav:not(.scrolled) .nav-hamburger span { background: #FFFFFF; }
.nav:not(.scrolled) .logo { color: #FFFFFF; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.btn-nav { display: inline-flex; align-items: center; padding: 10px 22px; font-size: 14px; font-weight: 600; background: var(--accent); color: #FFFFFF !important; border-radius: var(--radius-btn); transition: background 0.2s; }
.btn-nav:hover { background: var(--accent-hover); color: #FFFFFF !important; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; border-radius: var(--radius-btn); transition: background 0.2s, box-shadow 0.2s, transform 0.2s; cursor: pointer; text-decoration: none; }
.btn-primary { padding: 14px 32px; font-size: 15px; background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.3); }
.btn-lg { padding: 18px 40px; font-size: 17px; }
.btn-ghost { padding: 14px 28px; font-size: 15px; background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-ghost:hover { background: var(--text); color: #FFFFFF; }
.btn-outline-white { padding: 14px 32px; font-size: 15px; background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #FFFFFF; }
.btn-white { padding: 14px 32px; font-size: 15px; background: #FFFFFF; color: var(--text); }
.btn-white:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-1px); }

/* ── Hero (full-bleed photo) ────────────────────────────── */
.hero { position: relative; width: 100%; height: 100vh; min-height: 600px; max-height: 900px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,58,95,0.88) 0%, rgba(30,58,95,0.45) 40%, rgba(30,58,95,0.25) 100%); }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; max-width: 700px; }
.hero-label { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.hero-headline { font-family: var(--font-heading); font-size: clamp(40px,5.5vw,64px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: #FFFFFF; margin-bottom: 16px; }
.hero-sub { font-size: clamp(16px,2vw,20px); color: rgba(255,255,255,0.8); line-height: 1.5; margin-bottom: 36px; font-weight: 500; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Trust Bar / Stats ──────────────────────────────────── */
.trust-bar { background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.06); }
.trust-bar-inner { max-width: var(--max-w); margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-stat { text-align: center; }
.trust-stat-number { display: block; font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: #FFFFFF; line-height: 1.2; }
.trust-stat-label { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.trust-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.12); }

/* ── About Section ───────────────────────────────────────── */
.about-section { background: var(--bg-alt); padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.about-label { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; letter-spacing: 0.02em; }
.about-text h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); margin-bottom: 20px; }
.about-text p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.about-text .btn { margin-top: 12px; }

/* ── Listings Section (Featured Properties) ──────────────── */
.services-section { background: var(--bg); padding: 100px 0; }
.services-header { margin-bottom: 56px; }
.services-header h2 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.listing-card {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.listing-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-4px); }
.listing-card-img { position: relative; height: 240px; overflow: hidden; }
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-card-price { position: absolute; bottom: 12px; left: 12px; background: var(--dark); color: #FFFFFF; font-family: var(--font-heading); font-size: 18px; font-weight: 700; padding: 6px 16px; border-radius: var(--radius-sm); }
.listing-card-body { padding: 24px; }
.listing-card-address { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.listing-card-meta { display: flex; gap: 16px; font-size: 14px; color: var(--text-muted); }
.listing-card-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ── Neighborhoods Section ───────────────────────────────── */
.neighborhoods-section { background: var(--bg-alt); padding: 100px 0; }
.neighborhoods-section .services-header { text-align: center; }

.neighborhoods-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-btn); background: #FFFFFF;
  cursor: pointer; transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--accent); color: #FFFFFF; border-color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tab-panel-image img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); }
.tab-panel-content h3 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.tab-panel-content p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.tab-panel-stats { display: flex; gap: 32px; margin-bottom: 24px; }
.tab-panel-stats div { text-align: center; }
.tab-panel-stats strong { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.tab-panel-stats span { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--text); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-section { background: var(--bg); padding: 100px 0; }
.testimonials-header { margin-bottom: 56px; }
.testimonials-header h2 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.testimonial-stars { color: #FBBF24; font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card blockquote { font-size: 16px; color: var(--text); line-height: 1.65; font-style: normal; margin-bottom: 20px; }
.testimonial-author { font-size: 15px; font-weight: 700; color: var(--text); }
.testimonial-location { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Why Section (Agent Profile) ─────────────────────────── */
.why-section { background: var(--bg-alt); padding: 100px 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-photo img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.why-content h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); margin-bottom: 32px; }
.why-points { display: flex; flex-direction: column; gap: 28px; }
.why-point { display: flex; gap: 16px; align-items: flex-start; }
.why-point-icon { width: 44px; height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; background: rgba(201,168,76,0.1); border-radius: var(--radius-sm); }
.why-point-icon svg { width: 22px; height: 22px; color: var(--accent); }
.why-point strong { display: block; font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.why-point p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,58,95,0.92) 0%, rgba(30,58,95,0.8) 100%); }
.cta-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; padding: 0 24px; }
.cta-section h2 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: #FFFFFF; margin-bottom: 12px; line-height: 1.15; letter-spacing: -0.01em; }
.cta-section .cta-desc { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 24px; line-height: 1.7; }
.cta-phone { margin-bottom: 32px; }
.cta-phone a { font-family: var(--font-heading); font-size: clamp(36px,5vw,52px); font-weight: 700; color: #FFFFFF; letter-spacing: -0.01em; transition: color 0.2s; }
.cta-phone a:hover { color: var(--accent); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--dark); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-border); }
.footer-brand .logo { font-size: 22px; color: #FFFFFF; margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 14px; color: var(--dark-text-muted); line-height: 1.6; max-width: 280px; margin-top: 16px; }
.footer-brand .footer-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 20px; font-weight: 700; color: #FFFFFF; font-family: var(--font-heading); }
.footer-brand .footer-phone svg { width: 18px; height: 18px; color: var(--accent); }
.footer-col h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--dark-text-muted); margin-bottom: 10px; transition: color 0.2s; line-height: 1.5; }
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.25); }
.footer-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { color: #FFFFFF; }

/* ── Hamburger ───────────────────────────────────────────── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; z-index: 101; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Responsive: 1024px ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { max-height: 800px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-grid { gap: 40px; }
  .why-grid { gap: 40px; }
  .why-photo img { height: 440px; }
  .tab-panel.active { gap: 32px; }
}

/* ── Responsive: 768px ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #FFFFFF; flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 16px; color: var(--text) !important; }
  .nav.mobile-menu-open { background: #FFFFFF; }
  .nav.mobile-menu-open .logo { color: var(--text) !important; }
  .nav.mobile-menu-open .nav-hamburger span { background: var(--text) !important; }

  .hero { min-height: 500px; max-height: 700px; }
  .hero-headline { font-size: 36px; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  .trust-bar-inner { flex-direction: column; gap: 20px; text-align: center; }
  .trust-divider { width: 40px; height: 1px; }

  .about-section, .services-section, .why-section, .testimonials-section, .neighborhoods-section, .cta-section { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { height: 300px; }
  .about-text h2, .services-header h2, .testimonials-header h2, .why-content h2, .cta-section h2 { font-size: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .listing-card-img { height: 200px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-photo img { height: 280px; }
  .tab-panel.active { grid-template-columns: 1fr; gap: 24px; }
  .tab-panel-image img { height: 250px; }
  .tab-panel-stats { gap: 20px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
