/* =============================================================
   WholesalePro — Design Enhancements (10/10 Polish Layer)
   Loaded after all other stylesheets via functions.php
   ============================================================= */

/* ── FIX 1: Hero Background Image ────────────────────────────── */
/* Page heroes get the generated hero-bg.jpg with overlay */
.page-hero,
.page-hero--seller {
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(10,18,35,0.96) 0%, rgba(27,43,75,0.90) 50%, rgba(36,62,99,0.88) 100%),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}

/* Geometric dot pattern overlay for depth */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,162,97,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

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

/* Hero inner: text left + form right */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Hero text colors on dark background */
.page-hero h1,
.page-hero .hero__title { color: #fff; }

.page-hero .hero__eyebrow { color: var(--wp-gold); }
.page-hero .hero__subtitle { color: rgba(255,255,255,0.85); }

/* Hero form card */
.hero__form-wrap { flex-shrink: 0; }
.hero__form-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.hero__form-card__heading {
  font-family: var(--font-head);
  font-size: 1.375rem;
  color: var(--wp-navy);
  margin-bottom: 4px;
}
.hero__form-card__sub {
  font-size: 0.875rem;
  color: var(--wp-gray-6);
  margin-bottom: 20px;
}

/* Gold underline accent below hero */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--wp-red) 0%, var(--wp-gold) 50%, var(--wp-green) 100%);
}

/* ── FIX 2: Property Card Image Placeholder ───────────────────── */
/* When no image is set, show a styled placeholder */
.property-card__image--placeholder,
.property-card__image:empty,
.property-card__image:not(:has(img)) {
  background:
    linear-gradient(135deg, #e8eef6 0%, #d0daea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-card__image--placeholder::before {
  content: '';
  display: block;
  width: 80px;
  height: 70px;
  background-image: url('../images/property-placeholder.jpg');
  background-size: cover;
  border-radius: 8px;
  opacity: 0.6;
}

/* Property card image — use placeholder when src missing */
.property-card__image img[src=""],
.property-card__image img:not([src]) {
  display: none;
}
.property-card__image {
  background:
    url('../images/property-placeholder.jpg') center/cover no-repeat,
    linear-gradient(135deg, #e8eef6 0%, #d0daea 100%);
}

/* ── FIX 3: Logo in Header ────────────────────────────────────── */
/* If no WordPress custom logo is set, show SVG logo */
.nav-logo__text {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo--svg img,
.custom-logo { height: 48px; width: auto; }

/* Fallback SVG logo */
.site-header .nav-logo a:not(:has(img))::before {
  content: '';
  display: inline-block;
  width: 160px;
  height: 44px;
  background: url('../images/logo.svg') left center / contain no-repeat;
}

/* ── FIX 4: Mobile Nav — Smooth Stagger Animations ───────────── */
.nav-overlay {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.35s ease;
  opacity: 0;
}
.nav-overlay.active {
  transform: translateX(0);
  opacity: 1;
}

/* Stagger each nav link appearing */
.nav-overlay__links li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-overlay.active .nav-overlay__links li:nth-child(1) { opacity:1; transform:none; transition-delay:0.08s; }
.nav-overlay.active .nav-overlay__links li:nth-child(2) { opacity:1; transform:none; transition-delay:0.14s; }
.nav-overlay.active .nav-overlay__links li:nth-child(3) { opacity:1; transform:none; transition-delay:0.20s; }
.nav-overlay.active .nav-overlay__links li:nth-child(4) { opacity:1; transform:none; transition-delay:0.26s; }
.nav-overlay.active .nav-overlay__links li:nth-child(5) { opacity:1; transform:none; transition-delay:0.32s; }
.nav-overlay.active .nav-overlay__links li:nth-child(6) { opacity:1; transform:none; transition-delay:0.38s; }

/* Stagger CTAs */
.nav-overlay__ctas .btn {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.15s ease;
}
.nav-overlay.active .nav-overlay__ctas .btn:nth-child(1) { opacity:1; transform:none; transition-delay:0.44s; }
.nav-overlay.active .nav-overlay__ctas .btn:nth-child(2) { opacity:1; transform:none; transition-delay:0.50s; }

/* Hamburger → X morphing animation */
.nav-toggle { transition: transform 0.25s ease; }
.nav-toggle[aria-expanded="true"] { transform: rotate(90deg); }

/* ── FIX 5: Card Hover Shadows — Color-matched ────────────────── */
.property-card {
  transition: box-shadow 0.28s cubic-bezier(0.34,1.56,0.64,1),
              transform  0.28s cubic-bezier(0.34,1.56,0.64,1);
  will-change: transform;
}
.property-card:hover {
  box-shadow: 0 12px 40px rgba(27,43,75,0.18), 0 4px 12px rgba(27,43,75,0.08);
  transform: translateY(-6px);
}

.blog-card {
  transition: box-shadow 0.28s cubic-bezier(0.34,1.56,0.64,1),
              transform  0.28s cubic-bezier(0.34,1.56,0.64,1);
  will-change: transform;
}
.blog-card:hover {
  box-shadow: 0 12px 40px rgba(27,43,75,0.14), 0 4px 12px rgba(27,43,75,0.07);
  transform: translateY(-4px);
}

.what-we-buy-card {
  transition: box-shadow 0.28s cubic-bezier(0.34,1.56,0.64,1),
              transform  0.28s cubic-bezier(0.34,1.56,0.64,1),
              border-top-color 0.2s ease;
  border-top: 3px solid transparent;
}
.what-we-buy-card:hover {
  border-top-color: var(--wp-red);
  box-shadow: 0 10px 32px rgba(230,57,70,0.12), 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-5px);
}

/* ── FIX 7: Form Validation States — Polished ─────────────────── */
.form-control {
  transition: border-color 0.18s ease,
              box-shadow   0.18s ease,
              background   0.18s ease;
}

/* Valid state — green tick */
.form-control.valid {
  border-color: var(--wp-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232D6A4F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.form-control.valid:focus {
  box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}

/* Error state — red X */
.form-control.error {
  border-color: var(--wp-red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E63946' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}

/* Error message — animated slide down */
.form-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--wp-red);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}
.form-error.visible {
  max-height: 60px;
  opacity: 1;
}
.form-error::before {
  content: '⚠';
  flex-shrink: 0;
}

/* Submit button loading animation */
.btn--loading {
  position: relative;
  color: transparent !important;
}
.btn--loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Form success banner */
.form-success {
  background: rgba(45,106,79,0.08);
  border: 1.5px solid rgba(45,106,79,0.3);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--wp-green);
  font-weight: 600;
  animation: fadeInUp 0.4s ease both;
}
.form-success__icon { font-size: 1.5rem; flex-shrink: 0; }

/* ── FIX 8: Coverage Map ─────────────────────────────────────── */
#coverage-map,
.coverage-map-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(27,43,75,0.12);
  background: #dce8f5;
}
#coverage-map svg,
.coverage-map-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── FIX 10: WCAG AA — Gold Contrast Fixes ────────────────────── */
/* #F4A261 on white = 2.4:1 — FAILS AA. Fix: use navy text on gold bg */
.badge--gold      { color: var(--wp-navy) !important; font-weight: 700; }
.hero__eyebrow    { color: var(--wp-gold); }  /* on dark bg — passes */
.trust-bar__number{ color: var(--wp-gold); }  /* on navy bg — passes */

/* Gold buttons get navy text for proper contrast */
.btn--gold {
  background-color: var(--wp-gold);
  color: var(--wp-navy) !important;
  border-color: var(--wp-gold);
  font-weight: 700;
}
.btn--gold:hover {
  background-color: #e8913f;
  border-color: #e8913f;
  color: var(--wp-navy) !important;
}

/* Cookie consent gold button — already uses navy text; reinforce */
.cookie-bar__btn { color: var(--wp-navy) !important; font-weight: 700; }

/* ── BONUS: Checklist item icons (CSS-based, no icon font needed) */
.checklist__item--check::before {
  content: '';
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232D6A4F'%3E%3Ccircle cx='12' cy='12' r='12' fill='%232D6A4F'/%3E%3Cpolyline points='6,12 10,16 18,8' stroke='white' stroke-width='2.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 1px;
}

/* ── BONUS: Smooth scroll progress visibility ─────────────────── */
.reading-progress {
  background: linear-gradient(90deg, var(--wp-red) 0%, var(--wp-gold) 100%);
  height: 3px;
}

/* ── BONUS: Better focus rings throughout ─────────────────────── */
:focus-visible {
  outline: 3px solid var(--wp-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── BONUS: Section divider wave ─────────────────────────────── */
.section-wave {
  position: relative;
  overflow: hidden;
}
.section-wave::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath d='M0,30 C360,60 1080,0 1440,30 L1440,60 L0,60 Z' fill='%23ffffff'/%3E%3C/svg%3E") center bottom / cover no-repeat;
  pointer-events: none;
}

/* ── BONUS: Number counter animation ──────────────────────────── */
.trust-bar__number {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.trust-bar__stat:hover .trust-bar__number {
  transform: scale(1.1);
}

/* Front-page split hero: navy backdrop + stacked layout fix */
.hero.hero--split {
  display: block;
  position: relative;
  min-height: auto;
  padding: 110px 0 90px;
  background: linear-gradient(135deg, #16233f 0%, #1B2B4B 55%, #243a66 100%);
}
.hero.hero--split .hero__bg { display: none; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) {
  .hero.hero--split { padding: 70px 0 60px; }
}

/* ── Footer nav: visible links on navy bg ─────────────────────── */
.site-footer { background: #16233f; color: rgba(255,255,255,0.8); }
.site-footer .footer-col__heading { color: #E8B54D; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer .footer-nav { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-nav li { margin: 0 0 10px; }
.site-footer .footer-nav a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.93rem; }
.site-footer .footer-nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-brand-name { color: #fff; font-size: 1.2rem; font-weight: 700; }
.site-footer .footer-tagline { color: rgba(255,255,255,0.65); }
.site-footer .footer-contact-list { list-style: none; margin: 12px 0 0; padding: 0; }
.site-footer .footer-contact-list a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-cta-band { background: var(--wp-navy, #1B2B4B); padding: 40px 0; }
.footer-cta-band h2 { color: #fff; }
.footer-cta-band p { color: rgba(255,255,255,0.75); }

/* ── Mobile: keep the primary CTA visible next to the hamburger ── */
@media (max-width: 1024px) {
  .nav-ctas { display: flex !important; }
  .nav-ctas .btn--outline { display: none; } /* hide Book a Call on small screens; it's in the menu */
  .nav-ctas .btn--seller { font-size: 0.8rem; padding: 9px 12px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .nav-ctas .btn--seller { font-size: 0.72rem; padding: 8px 9px; }
}

/* ── Cookie banner: compact, never a full-screen blocker ───────── */
.cookie-banner, .cookie-notice, #cookie-banner { max-height: 40vh; overflow: auto; }

/* ── FAQ accordion visuals ──────────────────────────────────── */
.faq-item { border: 1px solid var(--wp-gray-200, #e5e7eb); border-radius: 10px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item__trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: none; border: 0; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--wp-navy, #1B2B4B); text-align: left; }
.faq-item__trigger:hover { background: #f8fafc; }
.faq-item__icon { flex-shrink: 0; transition: transform .2s ease; }
.faq-item__body { padding: 0 20px 18px; color: var(--wp-gray, #64748b); line-height: 1.7; }

/* ── Services dropdown in desktop nav ───────────────────────── */
.nav-links .menu-item-has-children { position: relative; }
.nav-links .sub-menu { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,0.12); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 60; }
.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .sub-menu li { margin: 0; }
.nav-links .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--wp-navy, #1B2B4B); text-decoration: none; font-size: 0.92rem; }
.nav-links .sub-menu a:hover { background: #f1f5f9; }

.footer-bottom { background: #101a30; padding: 18px 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-copyright { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin: 0; }
.footer-legal-links { margin: 0; }
.footer-legal-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-decoration: none; margin-left: 16px; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }

/* ── Hover effects: cards, guides, table, buttons ──────────── */
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,0.12); }
.card--guide img { transition: transform .35s ease; }
.card--guide:hover img { transform: scale(1.05); }
.compare-table tbody tr { transition: background .15s ease; }
.compare-table tbody tr:hover { background: #f8fafc; }
.btn { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,0.15); }
.footer-nav a, .nav-links a { transition: color .15s ease; }
.faq-item { transition: box-shadow .2s ease; }
.faq-item:hover { box-shadow: 0 6px 18px rgba(15,23,42,0.08); }

/* ══ Device-friendly layer: mobile / tablet / desktop ══════════ */

/* Kill horizontal scroll everywhere (off-canvas overlay was stretching body) */
html, body { overflow-x: hidden; max-width: 100%; }
.nav-overlay { visibility: hidden; }
.nav-overlay.active { visibility: visible; }

/* Fluid media */
img, svg, video { max-width: 100%; height: auto; }

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .split-layout { display: block !important; }
  .split-layout > * + * { margin-top: 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .hero.hero--split { padding: 80px 0 60px; }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 10px 8px !important; }
  .hero__form-card { padding: 24px 18px; }
  .hero__title { font-size: clamp(1.7rem, 8vw, 2.2rem) !important; }
  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .footer-legal-links a { margin: 0 8px; }
  .btn--lg { padding: 14px 20px; font-size: 0.95rem; }
  .topbar__inner { justify-content: center; }
  .topbar__message { font-size: 0.72rem; line-height: 1.5; }
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; }
}

/* Touch targets: min 44px for buttons and faq triggers on touch devices */
@media (pointer: coarse) {
  .btn, .faq-item__trigger, .nav-overlay__links a { min-height: 44px; }
}

/* Hamburger button: always tappable on small screens */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--wp-navy, #1B2B4B); padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex !important; }
  .nav-links { display: none !important; }
}

/* Compact mobile header: logo + CTA + hamburger fit one row */
@media (max-width: 480px) {
  .nav-container { gap: 6px; }
  .nav-logo img { height: 30px !important; width: auto !important; }
  .nav-ctas { gap: 6px; }
  .nav-ctas .btn--seller { font-size: 0.72rem !important; padding: 8px 10px !important; }
  .nav-toggle { min-width: 40px !important; min-height: 40px !important; padding: 8px 5px !important; }
}
@media (max-width: 360px) {
  .nav-logo img { height: 26px !important; }
  .nav-ctas .btn--seller { font-size: 0.66rem !important; padding: 7px 8px !important; }
}

/* Overlay active state (inline handler drives .active) */
.nav-overlay.active { visibility: visible !important; transform: translateX(0) !important; }

/* Guide cards: whole card clickable feel */
.card--guide a { transition: color .15s ease; }
.card--guide:hover h3 { color: var(--wp-red, #E63946); }

/* Nav pills: Sellers / Investors / Menu as clear buttons */
.nav-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1.5px solid var(--wp-gray-200, #e2e8f0); border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--wp-navy, #1B2B4B); text-decoration: none; background: #fff; cursor: pointer; transition: all .15s ease; }
.nav-pill:hover { border-color: var(--wp-navy, #1B2B4B); background: #f8fafc; transform: translateY(-1px); }
.nav-pill--menu { background: var(--wp-navy, #1B2B4B); color: #fff; border-color: var(--wp-navy, #1B2B4B); }
.nav-pill--menu:hover { background: #24365c; color: #fff; }
.nav-links { gap: 10px; align-items: center; }
/* the pills replace the old link row; keep dropdowns working on the pills */
.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
/* hamburger icon-only button hidden on desktop (Menu pill replaces it) */
@media (min-width: 1025px) { .nav-toggle { display: none !important; } }

/* ── Final nav structure: seller-first, investor door ────────── */
.nav-links { gap: 4px; align-items: center; }
.nav-links > .menu-item > a { padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 0.93rem; color: var(--wp-navy, #1B2B4B); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: background .15s ease; }
.nav-links > .menu-item > a:hover { background: #f1f5f9; }
.nav-links__divider { width: 1px; height: 22px; background: #e2e8f0; margin: 0 8px; }
.nav-investors { color: #64748b !important; font-weight: 500 !important; }
.nav-investors:hover { color: var(--wp-navy, #1B2B4B) !important; }
.sub-menu__label { padding: 8px 12px 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: #94a3b8; }
.sub-menu__divider { height: 1px; background: #e8edf3; margin: 6px 8px; }
.nav-links .sub-menu { min-width: 280px; }
/* retire pill styles from previous iteration */
.nav-pill { all: unset; }

/* Nav items stay on one line */
.nav-links > .menu-item > a { white-space: nowrap; }

/* ══ Protection Center components ═════════════════════════════ */
.pc-badges { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.pc-badge { display:inline-flex; align-items:center; gap:7px; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.25); color:#fff; border-radius:999px; padding:7px 14px; font-size:0.8rem; font-weight:600; }
.pc-badge svg { flex-shrink:0; }

/* money flow diagram */
.pc-flow { display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.pc-flow__step { position:relative; padding:26px 18px 22px; background:#fff; border:1px solid #e5e9f0; text-align:center; transition:transform .2s ease, box-shadow .2s ease; }
.pc-flow__step:first-child { border-radius:14px 0 0 14px; }
.pc-flow__step:last-child { border-radius:0 14px 14px 0; }
.pc-flow__step:hover { transform:translateY(-4px); box-shadow:0 14px 34px rgba(15,23,42,0.12); z-index:2; }
.pc-flow__step + .pc-flow__step { border-left:0; }
.pc-flow__step::after { content:"→"; position:absolute; right:-13px; top:38px; width:26px; height:26px; background:var(--wp-red,#E63946); color:#fff; border-radius:50%; font-size:0.95rem; line-height:26px; z-index:3; }
.pc-flow__step:last-child::after { display:none; }
.pc-flow__icon { width:52px; height:52px; margin:0 auto 12px; border-radius:14px; background:#eef2f8; display:flex; align-items:center; justify-content:center; color:var(--wp-navy,#1B2B4B); }
.pc-flow__where { display:inline-block; margin-top:10px; font-size:0.7rem; font-weight:700; letter-spacing:0.06em; padding:4px 10px; border-radius:999px; background:#e8f5ee; color:#166534; }
@media (max-width:900px){ .pc-flow { grid-template-columns:1fr; } .pc-flow__step { border-radius:0!important; border-left:1px solid #e5e9f0; border-top:0; } .pc-flow__step:first-child{border-top:1px solid #e5e9f0;border-radius:14px 14px 0 0!important;} .pc-flow__step:last-child{border-radius:0 0 14px 14px!important;} .pc-flow__step::after{ content:"↓"; right:auto; left:50%; margin-left:-13px; top:auto; bottom:-13px; } }

/* green/red flags */
.pc-flags { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.pc-flags__col { border-radius:16px; padding:28px; }
.pc-flags__col--good { background:#f0faf4; border:1.5px solid #bbe5c8; }
.pc-flags__col--bad { background:#fdf1f1; border:1.5px solid #f3c6c6; }
.pc-flags__title { display:flex; align-items:center; gap:10px; font-size:1.1rem; font-weight:700; margin-bottom:16px; }
.pc-flags__col--good .pc-flags__title { color:#166534; }
.pc-flags__col--bad .pc-flags__title { color:#991b1b; }
.pc-flags__col ul { list-style:none; margin:0; padding:0; }
.pc-flags__col li { display:flex; gap:10px; align-items:flex-start; padding:9px 0; font-size:0.95rem; color:#334155; border-bottom:1px dashed rgba(0,0,0,0.07); }
.pc-flags__col li:last-child { border-bottom:0; }
.pc-flags__mark { flex-shrink:0; width:22px; height:22px; border-radius:50%; font-size:0.8rem; font-weight:800; display:flex; align-items:center; justify-content:center; margin-top:1px; }
.pc-flags__col--good .pc-flags__mark { background:#22c55e; color:#fff; }
.pc-flags__col--bad .pc-flags__mark { background:#ef4444; color:#fff; }
@media (max-width:800px){ .pc-flags { grid-template-columns:1fr; } }

/* settlement statement mock */
.pc-stmt { max-width:520px; margin:0 auto; background:#fff; border:1px solid #dfe5ee; border-radius:14px; box-shadow:0 20px 50px rgba(15,23,42,0.12); overflow:hidden; font-variant-numeric:tabular-nums; }
.pc-stmt__head { background:var(--wp-navy,#1B2B4B); color:#fff; padding:16px 22px; display:flex; justify-content:space-between; align-items:center; font-size:0.85rem; letter-spacing:0.04em; }
.pc-stmt__row { display:flex; justify-content:space-between; padding:12px 22px; font-size:0.95rem; color:#334155; border-bottom:1px solid #eef1f6; }
.pc-stmt__row--minus span:last-child { color:#b91c1c; }
.pc-stmt__row--total { background:#f0faf4; font-weight:800; color:#166534; font-size:1.05rem; border-bottom:0; }
.pc-stmt__note { padding:12px 22px 18px; font-size:0.8rem; color:#64748b; background:#fafbfd; }

/* photo pillar cards */
.pc-pillar { padding:0!important; overflow:hidden; }
.pc-pillar img { width:100%; height:130px; object-fit:cover; display:block; }
.pc-pillar__body { padding:20px 22px 24px; }
.pc-pillar__icon { width:40px; height:40px; border-radius:10px; background:var(--wp-navy,#1B2B4B); color:#fff; display:flex; align-items:center; justify-content:center; margin:-42px 0 10px; position:relative; border:3px solid #fff; }

/* ══ Neuro layer: focus, whitespace, single accent ═════════════ */

/* Sticky mobile CTA bar: action never leaves the screen */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-top: 1px solid #e5e9f0; box-shadow: 0 -8px 24px rgba(15,23,42,0.12); }
@media (max-width: 1024px) { .sticky-cta { display: flex; } body { padding-bottom: 68px; } }
.sticky-cta__btn { flex: 1; text-align: center; background: var(--wp-red,#E63946); color: #fff; font-weight: 700; padding: 14px; border-radius: 10px; text-decoration: none; font-size: 1rem; }
.sticky-cta__call { flex-shrink: 0; width: 50px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--wp-navy,#1B2B4B); border-radius: 10px; color: var(--wp-navy,#1B2B4B); }

/* Two-step form stage 2 */
.form-stage2__head { font-weight: 700; color: var(--wp-navy,#1B2B4B); font-size: 0.95rem; margin: 4px 0 14px; padding: 10px 12px; background: #eef6f0; border-radius: 8px; border-left: 3px solid #22c55e; }
.form-stage1 .form-control { height: 52px; font-size: 1.05rem; }
noscript ~ form .form-stage2[hidden] { display: block !important; }

/* Von Restorff: red belongs to the primary CTA only */
.btn--buyer { background: var(--wp-navy,#1B2B4B) !important; }
.hero__eyebrow { color: var(--wp-gold,#F4A261) !important; }
.section-header__eyebrow { color: #64748b !important; }

/* Loss-aversion strip */
.loss-strip { background: #fff8ec; border-top: 1px solid #f3e2c0; border-bottom: 1px solid #f3e2c0; padding: 18px 0; }
.loss-strip__inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.loss-strip__num { font-size: 1.5rem; font-weight: 800; color: #b45309; white-space: nowrap; }
.loss-strip__txt { color: #7c5c22; font-size: 0.98rem; max-width: 560px; }

/* Breathing room: whitespace lowers cognitive load */
.section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.section-header { margin-bottom: clamp(28px, 4vw, 48px); }

/* Situation cards: icon chip overlapping image */
.sit-card__icon { width:46px; height:46px; border-radius:12px; background:var(--wp-navy,#1B2B4B); color:#fff; display:flex; align-items:center; justify-content:center; margin:-46px 0 12px; position:relative; border:3px solid #fff; box-shadow:0 6px 16px rgba(15,23,42,0.18); }
.sit-card:hover .sit-card__icon { background:var(--wp-red,#E63946); }

/* Trust row under form button */
.form-trust { display:flex; align-items:center; justify-content:center; gap:7px; margin-top:12px; color:#166534; font-size:0.78rem; font-weight:600; background:#f0faf4; border:1px solid #d6eede; border-radius:8px; padding:8px 10px; }
.form-trust svg { flex-shrink:0; }

/* Hero photo variant */
.hero--photo .hero__title { text-shadow:0 2px 18px rgba(0,0,0,0.35); }
.hero--photo .hero__form-card { box-shadow:0 30px 70px rgba(0,0,0,0.45); }

/* ══ Dynamic card effects layer ════════════════════════════════ */
.card { position: relative; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(135deg, transparent 40%, rgba(230,57,70,0.55), transparent 60%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(15,23,42,0.16); }

/* shine sweep across image cards */
.card--guide::after, .sit-card::after, .pc-pillar::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-20deg); transition: left .55s ease; pointer-events: none; }
.card--guide:hover::after, .sit-card:hover::after, .pc-pillar:hover::after { left: 130%; }

/* arrow micro-motion on any card link */
.card a span:last-child, .sit-card span:last-child { display: inline-block; transition: transform .2s ease; }
.card:hover a span:last-child, .sit-card:hover span:last-child { transform: translateX(5px); }

/* icon chip pulse */
.sit-card__icon, .pc-flow__icon, .pc-pillar__icon { transition: transform .25s ease, background .25s ease; }
.sit-card:hover .sit-card__icon, .pc-flow__step:hover .pc-flow__icon { transform: scale(1.12) rotate(-4deg); }

/* trust bar counters glow on hover */
.trust-bar__stat { transition: transform .2s ease; }
.trust-bar__stat:hover { transform: scale(1.06); }
.trust-bar__stat:hover .trust-bar__number { color: var(--wp-gold, #F4A261); }

/* staggered fade-up baseline for scroll reveals */
.animate-on-scroll { will-change: transform, opacity; }

/* in-post components */
.post-keyfacts { background: #f4f7fb; border: 1px solid #dde5f0; border-left: 4px solid var(--wp-navy,#1B2B4B); border-radius: 12px; padding: 18px 22px; margin: 0 0 26px; }
.post-keyfacts h4 { margin: 0 0 10px; font-size: 0.8rem; letter-spacing: 0.08em; color: #64748b; }
.post-keyfacts ul { margin: 0; padding-left: 18px; }
.post-keyfacts li { margin: 5px 0; color: #334155; font-size: 0.95rem; }
.post-related { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px; background: #fff; border: 1px solid #e5e9f0; border-radius: 12px; padding: 18px; margin: 26px 0; }
.post-related a { display: block; padding: 12px 14px; background: #f8fafc; border-radius: 9px; text-decoration: none; color: var(--wp-navy,#1B2B4B); font-weight: 600; font-size: 0.9rem; border: 1px solid transparent; transition: all .2s ease; }
.post-related a:hover { border-color: var(--wp-red,#E63946); transform: translateY(-2px); background: #fff; }
.post-related__label { grid-column: 1/-1; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: #94a3b8; }
.post-cta { background: linear-gradient(135deg,#16233f,#24365c); border-radius: 14px; padding: 26px 28px; margin: 28px 0; color: #fff; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.post-cta p { margin: 0; color: rgba(255,255,255,0.9); font-size: 1rem; max-width: 480px; }
.post-cta a { background: var(--wp-red,#E63946); color: #fff; font-weight: 700; padding: 13px 22px; border-radius: 10px; text-decoration: none; white-space: nowrap; transition: transform .15s ease; }
.post-cta a:hover { transform: translateY(-2px); }
.post-sources { background: #fbfcfe; border: 1px solid #e5e9f0; border-radius: 12px; padding: 20px 24px; margin: 30px 0 0; }
.post-sources h4 { margin: 0 0 10px; font-size: 0.8rem; letter-spacing: 0.08em; color: #64748b; }
.post-sources li { margin: 6px 0; font-size: 0.9rem; }
