/*
Theme Name: Scott Cheng V3
Theme URI: https://findyourhomesandiego.com/
Author: AgentSpotlight
Author URI: https://agentspotlight.ai/
Description: Custom AI-optimized theme for Scott Cheng — Top 1% San Diego Realtor with REAL Brokerage. Features full JSON-LD schema markup, FAQ sections, community pages, and AI visibility optimization.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scott-cheng-v3
Requires PHP: 8.0
Tested up to: 6.9
Tags: one-column, custom-menu, featured-images, full-width-template, translation-ready
*/

:root {
  --bg: #FAFAF8;
  --paper: #FFFFFF;
  --paper-2: #F5F5F0;
  --ink: #1A1A1A;
  --ink-light: #444444;
  --muted: #888888;
  --accent: #37B6E9;
  --accent-light: #52C4F0;
  --gold: #B8935A;
  --border: #E8E8E4;
  --radius: 14px;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.2;
}

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

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, background 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.nav-logo img { height: 36px; }
.nav-logo span {
  font-family: 'Fraunces', serif;
  font-size: 1.15em;
  font-weight: 600;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-light);
  font-size: 0.92em;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9em;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-size: 1.6em;
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  line-height: 1;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 40px;
  align-items: center;
}
.hero-text { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(55,182,233,0.4);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

/* ===== PREMIUM ANIMATIONS ===== */

/* Spotlight canvas (cursor-following glow) */
.spotlight-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* Particle canvas (floating ambient dots) */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Scale-title section reveal (zoom from 1.08 -> 1.0) */
.scale-reveal {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.scale-reveal.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children with cascading delays */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-grid.visible > *:nth-child(1) { transition-delay: 0.00s; opacity: 1; transform: translateY(0); }
.stagger-grid.visible > *:nth-child(2) { transition-delay: 0.07s; opacity: 1; transform: translateY(0); }
.stagger-grid.visible > *:nth-child(3) { transition-delay: 0.14s; opacity: 1; transform: translateY(0); }
.stagger-grid.visible > *:nth-child(4) { transition-delay: 0.21s; opacity: 1; transform: translateY(0); }
.stagger-grid.visible > *:nth-child(5) { transition-delay: 0.28s; opacity: 1; transform: translateY(0); }
.stagger-grid.visible > *:nth-child(6) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-grid.visible > *:nth-child(7) { transition-delay: 0.42s; opacity: 1; transform: translateY(0); }
.stagger-grid.visible > *:nth-child(8) { transition-delay: 0.49s; opacity: 1; transform: translateY(0); }

/* Hero stat count-up shimmer */
.hero-stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.8em;
  color: var(--ink);
  background: linear-gradient(90deg, var(--ink) 40%, var(--accent) 50%, var(--ink) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat strong.counted {
  animation: statShimmer 1.2s ease forwards;
}
@keyframes statShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Photo card breathing glow */
.photo-card::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(55,182,233,0.15) 0%, transparent 70%);
  z-index: -1;
  animation: photoGlow 4s ease-in-out infinite;
}
@keyframes photoGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

/* Float badge subtle hover/float */
.float-badge {
  animation: floatBadge 5s ease-in-out infinite;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* Glass plate shimmer on reviews */
.photo-glass-chip::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: glassShimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glassShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Parallax data attribute */
[data-parallax] {
  will-change: transform;
}

/* Gradient shift for CTA section */
.cta-section {
  background: linear-gradient(135deg, #2A9DD4 0%, #37B6E9 30%, #2A9DD4 60%, #1E88C7 100%);
  background-size: 300% 300%;
  animation: ctaGradientShift 8s ease infinite;
}
@keyframes ctaGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Service card magnetic hover glow */
.service {
  position: relative;
  overflow: hidden;
}
.service::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55,182,233,0.1), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  transform: translate(-50%, -50%);
}
.service:hover::after { opacity: 1; }

/* Review card lift with tilt */
.review-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.review-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Blog card image zoom on hover (enhanced) */
.blog-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover img { transform: scale(1.06); }

/* Community card overlay slide-up on hover */
.community-overlay {
  transform: translateY(8px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.community-card:hover .community-overlay { transform: translateY(0); }

/* Section label parallax data-attr */
.section-label {
  transition: transform 0.1s linear;
}

/* Typing cursor in hero badge */
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(55,182,233,0.4); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(55,182,233,0); transform: scale(1.2); }
  100% { box-shadow: 0 0 0 0 rgba(55,182,233,0); transform: scale(1); }
}

/* FAQ icon smooth rotate */
.faq-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}
.faq-item.open .faq-q { color: var(--accent); }
.faq-item.open .faq-icon { color: var(--accent); }

/* Footer gradient background */
footer {
  background: linear-gradient(135deg, #1A1A1A 0%, #0D0D0D 50%, #1A1A1A 100%);
  background-size: 200% 200%;
  animation: footerShift 12s ease infinite;
}
@keyframes footerShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .spotlight-canvas, .hero-particles { display: none !important; }
}

.hero h1 {
  font-size: 3.4em;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.12em;
  color: var(--ink-light);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-2px); }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}
.hero-stat span {
  font-size: 0.85em;
  color: var(--muted);
}

/* Hero Photo Card */
.hero-photo {
  position: relative;
  z-index: 2;
}
.photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.photo-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  max-height: 360px;
}
.photo-glass-chip {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chip-info .chip-stars {
  color: var(--gold);
  font-size: 0.85em;
  margin-bottom: 2px;
}
.chip-info .chip-text {
  font-size: 0.82em;
  font-weight: 600;
  color: var(--ink);
}
.chip-rating {
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9em;
}
.float-badge {
  position: absolute;
  top: 20px;
  right: -10px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82em;
  font-weight: 600;
  z-index: 3;
}
.float-badge img { width: 28px; height: 28px; }

/* ---------- SECTIONS ---------- */
section { padding: 100px 0; }
.section-label {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.4em;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05em;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 50px;
}
.section-header-center {
  text-align: center;
}
.section-header-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-images img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.about-images img:first-child {
  aspect-ratio: 3/4;
  grid-row: span 2;
}
.about-images img:nth-child(2) { aspect-ratio: 1/1; }
.about-images img:nth-child(3) { aspect-ratio: 1/1; }
.about-text p {
  color: var(--ink-light);
  margin-bottom: 20px;
  font-size: 1.02em;
}
.about-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.lang-tag {
  background: var(--paper-2);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--ink-light);
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--paper-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  margin-bottom: 20px;
}
.service h3 {
  font-size: 1.15em;
  margin-bottom: 10px;
}
.service p {
  font-size: 0.9em;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- CREDENTIALS ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cred-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s;
}
.cred-card:hover { transform: translateY(-4px); }
.cred-card img {
  height: 70px;
  margin-bottom: 16px;
  object-fit: contain;
}
.cred-card h3 {
  font-size: 1.05em;
  margin-bottom: 6px;
}
.cred-card p {
  font-size: 0.85em;
  color: var(--muted);
}

/* ---------- VIDEO ---------- */
.video-section {
  background: var(--ink);
  color: #fff;
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.video-placeholder {
  background: #2a2a2a;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  color: #555;
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  overflow: hidden;
}
.video-placeholder:hover { color: #888; }

/* Video Thumbnail with Play Button */
.video-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter 0.4s, transform 0.5s;
}
.video-thumb:hover img {
  filter: brightness(0.55);
  transform: scale(1.03);
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
.video-play-btn i {
  color: #fff;
  font-size: 1.4em;
  margin-left: 4px;
}
.video-thumb:hover .video-play-btn {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}
.video-coming-soon {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.7);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  pointer-events: none;
}
.video-content .section-label { color: var(--gold); }
.video-content .section-title { color: #fff; }
.video-content p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  font-size: 1.02em;
}

/* ---------- COMMUNITIES ---------- */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.community-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.community-card:hover img { transform: scale(1.06); }
.community-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.community-overlay h3 {
  color: #fff;
  font-size: 1.35em;
  margin-bottom: 4px;
}
.community-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 600;
  color: #fff;
  width: fit-content;
}

.idx-widget {
  border: 2px dashed var(--accent);
  padding: 40px;
  text-align: center;
  border-radius: var(--radius);
  margin-bottom: 50px;
  background: var(--paper-2);
}

/* ---------- REVIEWS ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.review-stars {
  color: var(--gold);
  font-size: 0.9em;
  margin-bottom: 14px;
}
.review-card p {
  font-size: 0.95em;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.review-author {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- BLOG ---------- */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.blog-card {
  flex: 0 1 calc(33.333% - 14px);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.blog-body {
  padding: 24px;
}
.blog-tag {
  display: inline-block;
  background: var(--paper-2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-body h3 {
  font-size: 1.08em;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-body p {
  font-size: 0.88em;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 1.02em;
  font-weight: 600;
  color: var(--ink);
  gap: 16px;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  font-size: 1.4em;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--muted);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-a-inner {
  padding: 0 0 24px 0;
  font-size: 0.95em;
  color: var(--ink-light);
  line-height: 1.8;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- CTA ---------- */
.cta-section {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-section .section-title { color: #fff; }
.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.08em;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.btn-white {
  background: #fff;
  color: var(--accent);
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-contact-row {
  margin-top: 24px;
}
.cta-email-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-email-link:hover {
  color: #fff;
}
.cta-email-link i {
  font-size: 0.9em;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 0.88em;
  line-height: 1.7;
  margin-top: 12px;
}
.footer-brand img { height: 30px; filter: brightness(10); }
.footer-col h4 {
  color: #fff;
  font-size: 0.9em;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88em;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 0;
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}
.footer-entity {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-bottom: 20px;
  font-size: 0.85em;
  line-height: 1.8;
  text-align: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82em;
}
.footer-bottom-powered {
  color: rgba(255,255,255,0.35);
  font-size: 0.8em;
  text-align: center;
  margin-top: 12px;
}

/* ---------- MOBILE CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
}
.mobile-cta a {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95em;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .hero { padding: 120px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero h1 { font-size: 2.2em; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-photo { order: -1; max-width: 320px; margin: 0 auto; }
  .float-badge { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .communities-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .blog-card { flex: 0 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8em; }
  .mobile-cta { display: block; }
  body { padding-bottom: 70px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .blog-card:nth-child(4),
  .blog-card:nth-child(5) {
    flex: 0 1 calc(50% - 10px);
  }
}

/* ---------- BLOG CARD LINK ---------- */
.blog-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card a:hover { color: inherit; }
.blog-read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- FULL BLOG POST PAGES ---------- */
.blog-post-full {
  padding: 140px 0 80px;
  background: var(--bg);
}
.blog-post-full .blog-post-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.blog-post-full .blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 32px;
}
.blog-post-full .blog-post-back:hover { text-decoration: underline; }
.blog-post-full .blog-post-tag {
  display: inline-block;
  background: var(--paper-2);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.blog-post-full h1 {
  font-size: 2.4em;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.blog-post-full .blog-post-meta {
  font-size: 0.88em;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-post-full .blog-post-hero-img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 40px;
}
.blog-post-full h2 {
  font-size: 1.5em;
  margin-top: 40px;
  margin-bottom: 16px;
}
.blog-post-full h3 {
  font-size: 1.2em;
  margin-top: 28px;
  margin-bottom: 12px;
}
.blog-post-full p {
  color: var(--ink-light);
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 20px;
}
.blog-post-full ul, .blog-post-full ol {
  color: var(--ink-light);
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 24px;
}
.blog-post-full li { margin-bottom: 8px; }
.blog-post-full .blog-post-cta {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}
.blog-post-full .blog-post-cta h3 {
  margin-top: 0;
  font-size: 1.3em;
}
.blog-post-full .blog-post-cta p {
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- SOCIAL BAR (HERO) ---------- */
.hero-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink-light);
  font-size: 1em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.hero-social a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- AGGREGATE REVIEW WIDGET ---------- */
.review-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.review-widget-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 48px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.review-widget-card .widget-score {
  font-family: 'Fraunces', serif;
  font-size: 3.4em;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.review-widget-card .widget-stars {
  color: var(--gold);
  font-size: 1.3em;
  margin: 8px 0;
}
.review-widget-card .widget-count {
  font-size: 0.92em;
  font-weight: 600;
  color: var(--ink-light);
}
.review-widget-card .widget-source {
  font-size: 0.82em;
  color: var(--muted);
  margin-top: 4px;
}
.review-widget-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.review-widget-link:hover { text-decoration: underline; }

/* ---------- BLOG LISTING PAGE ---------- */
.blog-hero {
  padding: 140px 0 60px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.blog-hero-inner {
  position: relative;
  z-index: 2;
}
.blog-hero .section-title {
  margin-bottom: 12px;
}
.blog-hero-sub {
  font-size: 1.05em;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Blog Search */
.blog-search {
  max-width: 560px;
  margin: 0 auto;
}
.blog-search-wrapper {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.blog-search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 182, 233, 0.08);
}
.blog-search-icon {
  color: var(--muted);
  font-size: 0.95em;
  flex-shrink: 0;
  margin-right: 12px;
}
.blog-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.95em;
  color: var(--ink);
  padding: 10px 0;
}
.blog-search-input::placeholder {
  color: var(--muted);
}
.blog-search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.blog-search-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Blog Results Label */
.blog-results-label {
  font-size: 0.95em;
  color: var(--ink-light);
  margin-bottom: 32px;
}

/* Blog Listing Grid */
.blog-listing {
  padding: 60px 0 100px;
  background: var(--paper-2);
}
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-listing-grid .blog-card {
  flex: unset;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.82em;
  color: var(--muted);
}
.blog-card-meta .blog-read-more {
  margin-top: 0;
}

/* Blog Category Filter Bar */
.blog-category-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-light);
  background: var(--paper);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.blog-cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.blog-cat-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.blog-cat-pill.active .blog-cat-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.blog-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 700;
  background: var(--paper-2);
  color: var(--muted);
}

@media (max-width: 768px) {
  .blog-category-bar {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    scrollbar-width: none;
  }
  .blog-category-bar::-webkit-scrollbar { display: none; }
  .blog-cat-pill { padding: 7px 14px; font-size: 0.82em; }
}

/* Blog Pagination */
.blog-pagination {
  margin-top: 48px;
  text-align: center;
}
.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-light);
  background: var(--paper);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.blog-pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.blog-pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  padding: 0 20px;
  gap: 6px;
}
.blog-pagination .page-numbers.dots {
  border: none;
  background: none;
  color: var(--muted);
  min-width: auto;
  padding: 0 4px;
}

/* Blog No Results */
.blog-no-results {
  text-align: center;
  padding: 80px 0;
}
.blog-no-results h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.6em;
  margin-bottom: 12px;
}
.blog-no-results p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.02em;
}

/* Blog Listing Responsive */
@media (max-width: 1024px) {
  .blog-listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-hero { padding: 120px 0 40px; }
  .blog-listing-grid { grid-template-columns: 1fr; }
  .blog-search-wrapper { padding: 4px 4px 4px 16px; }
  .blog-search-btn { padding: 10px 18px; }
  .blog-pagination .page-numbers { min-width: 36px; height: 36px; font-size: 0.85em; }
}

/* ---------- REALSCOUT IDX WIDGET ---------- */
.idx-widget {
  text-align: center;
  margin-bottom: 48px;
}
.idx-widget realscout-simple-search {
  --rs-ss-font-primary-color: var(--ink-light);
  --rs-ss-searchbar-border-color: var(--accent);
  --rs-ss-box-shadow: 0 10px 15px -3px rgba(0,0,0,0.06);
  --rs-ss-widget-width: 650px !important;
  display: block;
  margin: 0 auto;
}

/* ---------- REALSCOUT RECENTLY SOLD ---------- */
.realscout-listings {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}
.realscout-widget-wrap {
  max-width: 100%;
  overflow: hidden;
}
.realscout-widget-wrap realscout-your-listings {
  --rs-listing-divider-color: var(--accent);
  width: 100%;
  display: block;
}

/* ---------- ELFSIGHT GOOGLE REVIEWS ---------- */
.elfsight-reviews-wrapper {
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
}

/* Community cards as links */
a.community-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
