/* =============================================================
   JW Real Estate Group — Main Stylesheet
   Colors: Navy #15337a | Gold #c9a84c | Cream #f8f6f1
   ============================================================= */

/* ---- Google Fonts loaded via HTML head ---- */

:root {
  --navy:        #15337a;
  --navy-dark:   #0e2260;
  --navy-light:  #1c3f92;
  --gold:        #c9a84c;
  --gold-hover:  #b8913f;
  --gold-light:  #f0e4c0;
  --cream:       #f8f6f1;
  --white:       #ffffff;
  --gray-50:     #fafaf8;
  --gray-100:    #f4f2ee;
  --gray-200:    #e6e3dc;
  --gray-400:    #9ca3af;
  --gray-600:    #6b7280;
  --gray-800:    #1f2937;
  --text:        #2c2c2c;
  --text-light:  #6b7280;
  --border:      #e0ddd6;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.14);
  --radius:      4px;
  --radius-lg:   10px;
  --transition:  0.25s ease;
  --max-w:       1200px;
  --font-h:      'Playfair Display', Georgia, serif;
  --font-b:      'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(135,185,235,0.6) transparent; }

/* Custom scrollbar — desktop only */
@media (min-width: 993px) {
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(135,185,235,0.6); border-radius: 99px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(135,185,235,0.9); }
}
html.top-navy  { background-color: #111b30; }
html.top-dark  { background-color: var(--navy-dark); }
html.top-cream { background-color: var(--cream); }
html.top-white { background-color: var(--white); }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-h);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

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

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-light { color: var(--text-light); }

.bg-navy    { background: var(--navy); }
.bg-cream   { background: var(--cream); }
.bg-gray    { background: var(--gray-100); }
.bg-white   { background: var(--white); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

/* ---- Navigation ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
#navbar.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo .logo-main {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo .logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-links a.active { color: #7eb8f7; background: rgba(126,184,247,0.12); }
.nav-links .nav-cta {
  margin-left: 0.75rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 0.55rem 1.25rem;
}
.nav-links .nav-cta:hover { background: var(--gold-hover); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 0.3rem; }
.dropdown-toggle::after {
  content: '▾';
  font-size: 0.75rem;
  opacity: 0.7;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* Transparent bridge between toggle and dropdown so hover never breaks */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 6px;
  display: none;
}
.nav-dropdown:hover::after { display: block; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dropdown-menu a:last-child { border-bottom: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav — left drawer */
#mobile-menu {
  --mobile-drawer-width: 220px;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: background 0.3s ease, visibility 0s ease 0.3s;
}
#mobile-menu.open {
  background: rgba(0, 0, 0, 0.55);
  visibility: visible;
  pointer-events: auto;
  transition: background 0.3s ease, visibility 0s ease 0s;
}
.mobile-menu-inner {
  position: absolute;
  top: 0; left: 0;
  width: var(--mobile-drawer-width);
  max-width: 78vw;
  height: 100%;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4.75rem 1.35rem 2rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#mobile-menu.open .mobile-menu-inner {
  transform: translateX(0);
}
.mobile-menu-inner a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 0.98rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}
.mobile-menu-inner a:last-child { border-bottom: none; }
.mobile-menu-cta { margin-top: 1.5rem; }
.mobile-menu-inner .mobile-menu-cta a {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius);
  text-align: center;
  padding: 1rem;
  border-bottom: none;
}

/* Areas toggle button inside main drawer */
.mobile-areas-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font-size: 0.98rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.9rem 0;
  cursor: pointer;
  text-align: left;
}
.mobile-areas-toggle span {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
  display: inline-block;
}
.mobile-areas-toggle.active span { transform: rotate(90deg); }

/* Areas sub-panel — slides in alongside the main drawer */
.mobile-menu-sub {
  position: absolute;
  top: 0;
  left: var(--mobile-drawer-width);
  width: calc(100% - var(--mobile-drawer-width));
  max-width: 188px;
  height: 100%;
  background: #091844;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem 1.15rem;
  overflow-y: auto;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.25s ease, visibility 0s ease 0.3s;
  pointer-events: none;
}
.mobile-menu-sub.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.3s ease, opacity 0.25s ease, visibility 0s ease 0s;
}
.mobile-sub-back {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 0 1.25rem 0;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.mobile-sub-back:hover,
.mobile-sub-back:active,
.mobile-sub-back:focus { background: none; outline: none; }
.mobile-menu-sub a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 500;
}
.mobile-menu-sub a:last-child { border-bottom: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17,27,48,0.92) 0%,
    rgba(26,39,68,0.75) 60%,
    rgba(26,39,68,0.55) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-title {
  font-family: var(--font-h);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero-title .accent { color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
  font-weight: 400;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Page Hero (shorter) */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  overflow: hidden;
  padding-bottom: 4rem;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,27,48,0.95) 0%, rgba(17,27,48,0.6) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p  { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 600px; }
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { opacity: 0.6; }

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--gold);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item .stat-num {
  font-family: var(--font-h);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.stat-item .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-dark);
  opacity: 0.8;
  margin-top: 0.3rem;
  display: block;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gray-200);
}
.card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 2rem;
}
.card-body { padding: 1.75rem; }
.card-title { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card-text { color: var(--text-light); font-size: 0.92rem; line-height: 1.6; }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.feature-list .icon svg {
  width: 20px;
  height: 20px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 1.2rem;
  transition: var(--transition);
}
.card-link:hover { gap: 0.7rem; }

@media (max-width: 992px) {
  .hide-mobile { display: none; }
  .lead-contact-info { display: none !important; }
  .mob-only { display: block !important; }
  /* Sell intro — image first, stats as minimal strip */
  .sell-intro-img { order: -1; }
  .sell-stats { margin-top: 1rem !important; gap: 0 !important; border-top: 1px solid var(--border); }
  .sell-stats > div { background: none !important; border-radius: 0 !important; padding: 1rem 0.5rem !important; border-right: 1px solid var(--border); }
  .sell-stats > div:last-child { border-right: none; }
  /* Clamp repeating card / step text */
  .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .steps li p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .feature-list .content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Mobile-only text (hidden on desktop) */
.mob-only { display: none; }

/* Differentiator desktop/mobile switching */
.diff-mobile-view { display: none; }
.diff-desktop-view { display: block; }
@media (max-width: 992px) {
  .diff-desktop-view { display: none; }
  .diff-mobile-view { display: block; }
}

/* Differentiator 2x2 cards */
.diff-item {
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
}
.diff-item h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.diff-item p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--text-light); font-size: 1.05rem; }

/* ---- Divider ---- */
.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.gold-divider.center { margin: 1rem auto 1.5rem; }

/* ---- Features / Differentiators ---- */
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.feature-list li .icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-hover);
  font-size: 1.1rem;
  font-weight: 700;
}
.feature-list li .content h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.feature-list li .content p  { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* Check list */
.check-list { list-style: none; }
.check-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.check-list.white li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.15); }
.check-list.white li::before { color: var(--gold); }

/* ---- Testimonials ---- */
.testimonials-section { background: var(--cream); }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: opacity 0.45s ease;
}
.testimonial-card.fading { opacity: 0; pointer-events: none; }
.testimonial-card::before {
  content: none;
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-top: 0;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-info strong { display: block; font-size: 0.95rem; color: var(--navy); }
.testimonial-info span  { display: none; }
.testimonial-card .stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.testimonial-card .stars::after {
  content: 'G';
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  background: conic-gradient(
    from 220deg,
    #34a853 0deg 95deg,
    #fbbc05 95deg 165deg,
    #ea4335 165deg 265deg,
    #4285f4 265deg 360deg
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Home testimonials: 2×2 grid, same card look, aligned row heights */
.reviews-rotator--home {
  align-items: stretch;
}
.reviews-rotator--home .testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.reviews-rotator--home .testimonial-text {
  flex: 1;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-label.white { color: rgba(255,255,255,0.8); }
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
select.form-control { cursor: pointer; appearance: auto; }
/* Checkbox group */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color var(--transition), background var(--transition);
}
.checkbox-item:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.checkbox-item input[type="checkbox"] { display: none; }
.checkbox-item span { position: relative; padding-left: 1.5rem; }
.checkbox-item span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  background: transparent;
  transition: border-color var(--transition), background var(--transition);
}
.checkbox-item input[type="checkbox"]:checked + span::before {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox-item input[type="checkbox"]:checked + span::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 5px;
  height: 9px;
  border: 2px solid var(--navy-dark);
  border-top: none;
  border-left: none;
}
.checkbox-item:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  color: var(--white);
}

/* Custom form dropdown — matches nav dropdown styling */
.form-dropdown { position: relative; width: 100%; }
.form-dropdown-toggle {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--white);
  background: var(--navy-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}
.form-dropdown-toggle::after { content: '▾'; font-size: 0.75rem; opacity: 0.7; flex-shrink: 0; }
.form-dropdown-toggle:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.form-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 200;
  min-width: 200px;
}
@media (hover: hover) {
  .form-dropdown:hover .form-dropdown-menu { display: block; }
}
.form-dropdown.open .form-dropdown-menu { display: block; }
.form-dropdown-option {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: background var(--transition);
}
.form-dropdown-option:last-child { border-bottom: none; }
.form-dropdown-option:hover { background: rgba(255,255,255,0.08); }
.form-dropdown-option.selected { color: var(--gold); }

/* Inline form */
.inline-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.inline-form .form-control { flex: 1; min-width: 220px; }

/* ---- CTA Block ---- */
.cta-block {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
}
.cta-block h2 { color: var(--white); margin-bottom: 1rem; }
.cta-block p  { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-block .cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Banner CTA */
.banner-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.banner-cta h3 { color: var(--white); margin-bottom: 0.5rem; }
.banner-cta p  { color: rgba(255,255,255,0.75); margin: 0; }

/* ---- Areas Grid ---- */
.area-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  cursor: pointer;
}
.area-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.area-card:hover .area-card-bg { transform: scale(1.05); }
.area-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,27,48,0.9) 0%, rgba(17,27,48,0.2) 70%);
}
.area-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  width: 100%;
}
.area-card-content h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.area-card-content span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.areas-grid .area-card:nth-child(1),
.areas-grid .area-card:nth-child(2),
.areas-grid .area-card:nth-child(3) { grid-column: span 4; min-height: 260px; }
.areas-grid .area-card:nth-child(4),
.areas-grid .area-card:nth-child(5),
.areas-grid .area-card:nth-child(6),
.areas-grid .area-card:nth-child(7) { grid-column: span 3; min-height: 220px; }

/* ---- Two-col with image ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}
.split-img {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}
.split-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Process Steps ---- */
.steps { list-style: none; counter-reset: steps; }
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.steps li::before {
  content: counter(steps);
  min-width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.steps li h4 { margin-bottom: 0.35rem; }
.steps li p  { color: var(--text-light); font-size: 0.92rem; margin: 0; }

/* ---- Lead Form Section ---- */
.lead-form-section {
  background: var(--navy);
  padding: 5rem 0;
}
.lead-form-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.lead-form-box h2 { color: var(--white); margin-bottom: 0.5rem; }
.lead-form-box p  { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.lead-form-box .form-control {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.lead-form-box .form-control::placeholder { color: rgba(255,255,255,0.4); }
.lead-form-box .form-control:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}
.lead-form-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.lead-form-text { padding-top: 1rem; }
.lead-form-text h2 { color: var(--white); margin-bottom: 1rem; }
.lead-form-text p  { color: rgba(255,255,255,0.72); }
.lead-form-text ul { margin-top: 1.5rem; }

/* ---- Listing Placeholder ---- */
.listing-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  border: 2px dashed var(--border);
}
.listing-placeholder p { color: var(--text-light); margin: 0; font-size: 0.9rem; }

/* ---- About Profile ---- */
.profile-img-wrap {
  position: relative;
}
.profile-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  min-height: 500px;
  background: var(--navy);
}
@media (min-width: 993px) {
  .team-headshot { height: 500px !important; }
}
.profile-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--navy);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.profile-badge .badge-num {
  font-family: var(--font-h);
  font-size: 2rem;
  line-height: 1;
  display: block;
}
.profile-badge .badge-text {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.25rem;
}

/* About John — 25+ badge sits on top of photo (not offset below/right) */
.about-lead-photo .profile-badge--overlay-top {
  top: 1rem;
  left: 1rem;
  right: auto;
  bottom: auto;
  z-index: 2;
}

/* Credential pills under About lead photo — cleaner grid on small screens */
.credential-strip--about {
  justify-content: flex-start;
}

/* Credential strip */
.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.credential {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---- Market Data ---- */
.market-stat {
  text-align: center;
  padding: 2rem 1rem;
}
.market-stat .market-num {
  font-family: var(--font-h);
  font-size: 2.2rem;
  color: var(--navy);
  font-weight: 700;
  display: block;
}
.market-stat .market-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  gap: 1rem;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ---- Footer ---- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-main {
  font-family: var(--font-h);
  font-size: 1.5rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.3rem;
}
.footer-brand .logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-family: var(--font-b);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.footer-contact p strong { color: rgba(255,255,255,0.88); }
@media (max-width: 992px) {
  .footer-col.footer-contact { padding-top: 7.5rem; }
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom p:last-child { width: 100%; text-align: center; }
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- Utility ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ---- Scroll Reveal Animation ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — Tablet (≤992px)
   ============================================================ */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; flex-shrink: 0; order: 1; }
  .nav-logo { order: 2; margin: 0; flex-shrink: 1; min-width: 0; }
  .nav-logo-img { display: block; height: auto; max-height: 44px; max-width: 100%; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .split-section { grid-template-columns: 1fr; }
  .split-content { padding: 3rem 2rem; }
  .split-img { min-height: 300px; }
  .lead-form-layout { grid-template-columns: 1fr; gap: 2rem; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid .area-card:nth-child(1),
  .areas-grid .area-card:nth-child(2),
  .areas-grid .area-card:nth-child(3),
  .areas-grid .area-card:nth-child(4),
  .areas-grid .area-card:nth-child(5),
  .areas-grid .area-card:nth-child(6),
  .areas-grid .area-card:nth-child(7) { grid-column: span 1; min-height: 200px; }
  .profile-badge { right: 0; }

  /* About only: hide 25+ badge + credential pills beside headshot (≤992 matches real device widths) */
  .about-page .about-lead-photo .profile-badge--overlay-top,
  .about-page .credential-strip--about {
    display: none !important;
  }

  /* ---- Home intro section: always single-column on any mobile/tablet ---- */
  .intro-section .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro-img-wrap { order: -1; }
  .intro-section .credential-strip { display: none; }
  .intro-para-wide {
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    margin-bottom: 0;
    padding: 1.1rem 1.5rem;
    background: var(--cream);
  }

  /* Home hero: flex-start so top padding clears fixed nav (centered flex fights header overlap) */
  .hero {
    align-items: flex-start;
    box-sizing: border-box;
    padding-top: calc(72px + env(safe-area-inset-top, 0px) + 1.75rem);
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Scroll reveal off on phones — no fade/slide-in while scrolling */
  [data-reveal],
  [data-reveal].revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  /* Section spacing */
  .section { padding: 2.25rem 0; }
  .section-lg { padding: 2.75rem 0; }
  .section-sm { padding: 1.75rem 0; }
  .lead-form-section { padding: 2.5rem 0; }

  /* Override inline gap values on stacked grids — #1 whitespace culprit */
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1.5rem !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem !important; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero — generous top inset; padding on section (not centered flex child) so it visibly clears navbar */
  .hero {
    align-items: flex-start;
    min-height: 85vh;
    box-sizing: border-box;
    padding-top: calc(72px + env(safe-area-inset-top, 0px) + 4rem);
    padding-bottom: 2rem;
  }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Cards */
  .service-card { padding: 1.5rem; }
  .testimonial-card { padding: 1.5rem; }

  /* Section header */
  .section-header { margin-bottom: 2rem; }

  /* CTAs */
  .cta-block .cta-btns { flex-direction: column; align-items: center; }
  .banner-cta { flex-direction: column; text-align: center; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .lead-form-box { padding: 1.75rem 1.25rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-grid > :nth-child(1),
  .footer-grid > :nth-child(2) { grid-column: 1 / -1; }
  .footer-grid > :nth-child(3) { grid-column: 1; }
  .footer-grid > :nth-child(4) { grid-column: 2; }
  .footer-col.footer-contact { padding-top: 0; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Areas */
  .areas-grid { grid-template-columns: 1fr; }

  /* Misc */
  .profile-badge { position: static; margin-top: 1rem; display: inline-block; }

  .split-content { padding: 2rem 1.25rem; }

  /* Cap decorative section images so they don't dominate mobile layout */
  .section .grid-2 > div > img,
  .section .grid-3 > div > img { max-height: 260px; object-fit: cover; }

}

/* ---- Privacy Policy Modal ---- */
.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 18, 40, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.privacy-modal.open { display: flex; }
.privacy-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow-lg);
}
.privacy-modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -1rem -1rem 0 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0.25rem 0.5rem;
  transition: color 0.15s;
}
.privacy-modal-close:hover { color: var(--navy); }
.privacy-modal-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.privacy-modal-body .pm-date {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 1.75rem;
  display: block;
}
.privacy-modal-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
  margin: 1.75rem 0 0.5rem;
}
.privacy-modal-body p,
.privacy-modal-body li {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}
.privacy-modal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
}
.privacy-modal-body a { color: var(--navy); text-decoration: underline; }
.privacy-modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}
@media (max-width: 600px) {
  .privacy-modal-box { padding: 2rem 1.5rem; max-height: 92vh; }
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--gold-hover); }

/* ---- Logo Image ---- */
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
@media (max-width: 768px) {
  .nav-logo-img { height: 44px; }
  .hero-title { font-size: 1.9rem; }
}

/* ---- 404 Page ---- */
.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 8rem 1.5rem 4rem;
}
.error-inner {
  text-align: center;
  max-width: 560px;
}
.error-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(7rem, 20vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
  letter-spacing: -0.02em;
  user-select: none;
}
.error-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--white);
  margin-top: -1rem;
  margin-bottom: 1rem;
}
.error-body {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.error-links {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
}
.error-links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.error-links a:hover {
  color: var(--gold);
}

/* ---- Footer credit ---- */
.footer-credit { margin-top: 0.5rem; }
.footer-credit a { display: inline-block; vertical-align: middle; }
.footer-credit-logo {
  height: 60px;
  vertical-align: middle;
  display: inline-block;
  margin-left: 2px;
  opacity: 0.85;
}

/* ---- Modal legal note ---- */
.pm-legal {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ---- Field validation ---- */
.field-invalid {
  border-color: #f87171 !important;
  outline-color: #f87171;
}
.field-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* ---- Form submission feedback ---- */
.form-submit-error,
.form-submit-success {
  display: inline-block;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  margin-top: 0.875rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
}
.form-submit-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.form-submit-success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ---- Marquee Reviews ---- */
.marquee-outer {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-left 65s linear infinite;
}
.marquee-track--reverse {
  animation: marquee-right 72s linear infinite;
}
.marquee-outer:hover .marquee-track,
.marquee-outer:hover .marquee-track--reverse {
  animation-play-state: paused;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.marquee-card {
  width: 310px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.marquee-card .stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.6rem; }
.marquee-card .review-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.marquee-card .review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.marquee-card .review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.marquee-card .review-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  display: block;
}
.marquee-card .review-source {
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
}
@media (max-width: 768px) {
  .marquee-card { width: 265px; padding: 1.25rem; }
  .marquee-card .review-text { font-size: 0.83rem; }
}
