/* ============================================================
   PGG homepage engagement redesign — warm blue theme
   Loaded after styles.css. Uses the canonical --brand-* tokens.
   ============================================================ */

/* ---- Flex layout + section ordering (map pushed to the bottom) ---- */
.market-shell-home {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 64px);
  max-width: 75.8rem;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
  box-sizing: border-box;
}
.market-shell-home > .topbar { order: 0; }
.market-shell-home > .navbar { order: 1; }
.market-shell-home > .hero-banner-home { order: 2; }
.market-shell-home > .trust-strip { order: 3; }
.market-shell-home > .search-panel-home { order: 4; }
.market-shell-home > .why-pgg { order: 3; }
.market-shell-home > .broker-chooser { order: 6; }
.market-shell-home > .testimonials { order: 8; }
.market-shell-home > .videos { order: 9; }
.market-shell-home > .subscribe { order: 10; }
/* Top Offers moved to just above the footer */
.market-shell-home > .top-offers-section { order: 11; }
/* Search panel + interactive map removed from the homepage (kept on /map) */
.market-shell-home > .search-panel-home,
.market-shell-home > .geo-search-card { display: none !important; }

/* ---- Shared section heading rhythm ---- */
.broker-chooser .section-head h2,
.why-pgg .section-head h2,
.testimonials .section-head h2,
.videos .section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--brand-ink);
  margin: 4px 0 0;
}
.section-kicker {
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* ---- Hero: slideshow + valuation form ---- */
.hero-redesign {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 60vh, 560px);
  border-radius: var(--brand-radius-lg);
  align-items: stretch;
}
.hero-slideshow,
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video { pointer-events: none; }
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;   /* 16:9 cover */
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}
.hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.4s ease;
}
.hero-slideshow .hero-slide.is-active {
  opacity: 1;
  animation: heroKenBurns 7s var(--ease-out, ease-out) forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.02); }
  to { transform: scale(1.14); }
}
.hero-redesign .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(27, 43, 58, 0.86) 0%, rgba(36, 74, 110, 0.62) 46%, rgba(53, 106, 156, 0.32) 100%),
    linear-gradient(300deg, rgba(194, 160, 106, 0.18), transparent 55%);
  background-size: 220% 220%, 180% 180%;
  animation: heroGradientDrift 18s ease-in-out infinite alternate;
}
@keyframes heroGradientDrift {
  from { background-position: 0% 50%, 100% 0%; }
  to { background-position: 100% 50%, 0% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow .hero-slide.is-active,
  .hero-redesign .hero-overlay { animation: none; }
}
.hero-redesign-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  width: 100%;
  padding: clamp(20px, 4vw, 48px);
}
.hero-redesign-content .hero-copy-wrap { color: #fff; max-width: 560px; }
.hero-redesign-content .eyebrow { color: var(--brand-accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-redesign-content #hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-800);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(16, 32, 48, 0.45);
}
.hero-redesign-content #hero-copy { font-size: 1.05rem; color: rgba(255, 255, 255, 0.9); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-cta-primary,
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 36px);
  margin: 20px 0 0;
  padding: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: var(--fs-700); color: var(--brand-accent); line-height: 1; }
.hero-stats span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); margin-top: 4px; }
.hero-cta-primary { background: var(--brand-accent); color: var(--brand-ink); box-shadow: var(--brand-shadow-md); animation: ctaPulse 2.8s ease-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 160, 106, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(194, 160, 106, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero-cta-primary { animation: none; } }

/* Trust strip: overlapping real broker faces */
.trust-avatars { display: flex; align-items: center; margin-top: 14px; }
.trust-avatars img,
.trust-avatars .trust-avatars-more {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -12px;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--brand-shadow-sm);
}
.trust-avatars img:first-child { margin-left: 0; }
.trust-avatars .trust-avatars-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.hero-cta-secondary { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.hero-cta-primary:hover,
.hero-cta-secondary:hover { transform: translateY(-2px); }

/* Valuation card */
.valuation-card {
  background: var(--grad-soft, linear-gradient(160deg, #ffffff, #e9f0f8));
  color: var(--brand-ink);
  border-radius: var(--brand-radius-lg);
  box-shadow: 0 24px 60px rgba(16, 32, 48, 0.32);
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.65);
}
/* scoped so they beat `.hero-banner p { color:#fff }` (specificity) */
.valuation-card .valuation-title { font-family: var(--font-display); font-size: var(--fs-600); color: var(--brand-ink); margin: 0 0 4px; }
.valuation-card .valuation-sub { color: var(--brand-muted); font-size: var(--fs-300); margin: 0 0 14px; }
.valuation-card .valuation-form { display: flex; flex-direction: column; gap: 12px; }
.valuation-card .valuation-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--brand-ink); }
.valuation-form input[type="text"],
.valuation-form input[type="tel"] {
  padding: 11px 13px;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-sm);
  font-size: 0.95rem;
  background: var(--brand-bg);
}
.valuation-form input:focus { outline: 2px solid var(--brand-primary-light); border-color: var(--brand-primary); }
.valuation-consent { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; color: var(--brand-muted); font-size: 0.8rem; }
.valuation-consent input { margin-top: 2px; }
.valuation-submit {
  margin-top: 4px;
  padding: 13px;
  border: none;
  border-radius: var(--brand-radius-sm);
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.valuation-submit:hover { background: var(--brand-primary-dark); }
.valuation-submit:disabled { opacity: 0.6; cursor: progress; }
.valuation-card .valuation-trust { font-size: 0.74rem; color: var(--brand-muted); margin: 8px 0 0; text-align: center; }
.valuation-card .valuation-feedback { color: var(--brand-muted); }
.valuation-feedback { font-size: 0.85rem; margin: 6px 0 0; min-height: 1em; }
.valuation-feedback.is-ok { color: #2e7d4f; }
.valuation-feedback.is-error { color: #b23a3a; }

/* ---- Trust strip + Facebook rating ---- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--brand-panel-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-lg);
  padding: clamp(18px, 2.4vw, 28px);
}
.trust-pgg { max-width: 640px; }
.trust-pgg h2 { font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--brand-ink); margin: 6px 0; }
.trust-pgg p { color: var(--brand-muted); margin: 0; }
/* Social proof cluster (Facebook + Google + Instagram) */
.social-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 132px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-md);
  padding: 12px 16px;
  text-decoration: none;
  box-shadow: var(--brand-shadow-sm);
  transition: transform 0.16s var(--ease-out, ease), box-shadow 0.16s ease;
}
.social-card:hover { transform: translateY(-3px); box-shadow: var(--brand-shadow-md); }
.social-card .social-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-ink);
}
.social-card .social-head svg { flex: 0 0 auto; }
.social-card .social-score {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  line-height: 1.1;
}
.social-card .social-stars { color: var(--brand-accent); font-size: 0.85rem; letter-spacing: 1px; }
.social-card .social-count { color: var(--brand-muted); font-size: 0.74rem; }
.social-card-instagram .social-score { font-size: 0.95rem; }
.social-card-instagram .social-count { color: var(--brand-primary); font-weight: 600; }

/* ---- Broker chooser ---- */
.broker-chooser-intro { color: var(--brand-muted); margin: 6px 0 14px; }
.broker-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.broker-filter .broker-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--brand-line);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.broker-filter .broker-chip:hover { border-color: var(--brand-primary); }
.broker-filter .broker-chip.is-active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.broker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
/* broker carousel (random 8, arrow navigation) */
.broker-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.broker-track .broker-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
@media (max-width: 600px) {
  .broker-track .broker-card { flex-basis: 80%; }
}
.broker-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-md);
  overflow: hidden;
  box-shadow: var(--brand-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.broker-card:hover { transform: translateY(-4px); box-shadow: var(--brand-shadow-md); }
.broker-card .broker-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  object-position: top;
  background: var(--brand-panel-soft);
}
.broker-card .broker-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.broker-card .broker-name { font-weight: 700; color: var(--brand-ink); margin: 0; }
.broker-card .broker-focus {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand-primary-soft);
  color: var(--brand-primary-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 600;
}
.broker-card .broker-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.broker-card .broker-action {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 42px;
  padding: 9px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.broker-card .broker-action svg { width: 15px; height: 15px; flex: 0 0 auto; }
/* soft-tinted by default, fills on hover (cleaner than two bright fills) */
.broker-card .broker-action-call {
  background: var(--brand-primary-soft);
  color: var(--brand-primary-dark);
  border-color: rgba(53, 106, 156, 0.18);
}
.broker-card .broker-action-call:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.broker-card .broker-action-viber {
  background: rgba(115, 96, 242, 0.12);
  color: #5b4bd0;
  border-color: rgba(115, 96, 242, 0.22);
}
.broker-card .broker-action-viber:hover { background: #7360f2; color: #fff; border-color: #7360f2; }
.broker-chooser-foot { margin-top: 18px; }
.broker-see-all { color: var(--brand-primary); font-weight: 700; text-decoration: none; }

/* ---- Offices showcase (inside Why PGG) ---- */
.offices { margin-top: 34px; }
.offices-head { text-align: center; max-width: 680px; margin: 0 auto 18px; }
.offices-head h3 { font-family: var(--font-display); font-size: var(--fs-600); color: var(--brand-ink); margin: 0 0 6px; }
.offices-head p { color: var(--brand-muted); margin: 0; }
.offices-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.office-card {
  position: relative;
  border-radius: var(--brand-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--brand-shadow-sm);
}
.office-card .office-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out, ease);
}
.office-card:hover .office-photo { transform: scale(1.06); }
.office-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(16, 32, 48, 0.8), rgba(16, 32, 48, 0.05) 55%);
}
.office-info {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.office-info .office-city { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.office-info .office-addr { font-size: 0.82rem; opacity: 0.9; }
.offices-foot { text-align: center; margin-top: 18px; }
.offices-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.offices-cta:hover { background: var(--brand-primary-dark); transform: translateY(-2px); }
@media (max-width: 760px) {
  .offices-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .office-card:hover .office-photo { transform: none; }
}

/* ---- Why PGG (merged: intro + social proof + value cards) ---- */
.why-intro {
  position: relative;
  text-align: center;
  margin: 0 0 28px;
  padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 48px);
  border-radius: var(--brand-radius-lg);
  overflow: hidden;
  color: #fff;
  background: var(--brand-primary-dark); /* fallback before images load */
}
/* rotating office-photo background */
.why-bg { position: absolute; inset: 0; z-index: 0; }
.why-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.why-bg-slide.is-active { opacity: 1; }
.why-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(16, 32, 48, 0.74), rgba(27, 43, 58, 0.82));
}
.why-intro > :not(.why-bg) { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .why-bg-slide { transition: none; }
}
.why-intro .section-kicker { color: var(--brand-accent) !important; }
.why-intro h2 {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  color: #ffffff;
  margin: 6px 0 10px;
}
.why-intro .why-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-400);
  margin: 0 auto 18px;
  max-width: 680px;
}
.why-intro .trust-avatars { justify-content: center; margin: 14px 0; }
.why-intro .social-proof { justify-content: center; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 + 3 */
  gap: 18px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  position: relative;
  overflow: hidden;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--brand-shadow-sm);
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-cta, linear-gradient(120deg, #356a9c, #4f86b8));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out, ease);
}
.why-card:hover::before { transform: scaleX(1); }
.why-card h3 { margin: 14px 0 6px; color: var(--brand-ink); font-size: 1.05rem; }
.why-card p { color: var(--brand-muted); margin: 0; font-size: 0.92rem; line-height: 1.5; }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.testimonial-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--brand-radius-md);
  padding: 20px;
  box-shadow: var(--brand-shadow-sm);
}
.testimonial-card .testimonial-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
  border: 2px solid var(--brand-surface);
  box-shadow: 0 0 0 2px var(--brand-accent), var(--brand-shadow-sm);
}
.testimonial-card .testimonial-stars { color: var(--brand-accent); letter-spacing: 2px; }
.testimonial-card .testimonial-text { color: var(--brand-ink); font-style: italic; margin: 8px 0 14px; }
.testimonial-card .testimonial-author { font-weight: 700; color: var(--brand-primary-dark); }
.testimonial-card .testimonial-loc { color: var(--brand-muted); font-size: 0.82rem; }

/* ---- Testimonials carousel (auto-rotating) ---- */
.testimonials-carousel { display: block; }
.t-stage { display: flex; align-items: center; gap: 10px; }
.t-viewport { flex: 1 1 auto; overflow: hidden; }
.t-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.t-track .testimonial-card {
  flex: 0 0 calc((100% - (var(--t-per, 1) - 1) * 16px) / var(--t-per, 1));
  box-sizing: border-box;
}
.t-nav {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--brand-line);
  background: var(--brand-surface);
  color: var(--brand-primary-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--brand-shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.t-nav:hover { background: var(--brand-primary-dark); color: #fff; transform: translateY(-1px); }
.t-nav[hidden] { display: none; }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.t-dots[hidden] { display: none; }
.t-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--brand-line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.t-dot.is-active { background: var(--brand-accent); transform: scale(1.3); }
@media (max-width: 560px) {
  .t-nav { display: none; }   /* phones rely on dots + auto-rotation */
}
@media (prefers-reduced-motion: reduce) {
  .t-track { transition: none; }
}

/* ---- Videos ---- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.video-card {
  position: relative;
  border-radius: var(--brand-radius-md);
  overflow: hidden;
  border: 1px solid var(--brand-line);
  background: var(--brand-panel-soft);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
}
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card.is-placeholder {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #fff;
}
.video-card .video-label { position: relative; z-index: 1; padding: 14px; font-weight: 600; }
.video-card .video-play {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: rgba(255, 255, 255, 0.9); pointer-events: none;
}

/* ---- Subscribe ---- */
.subscribe-card {
  background: linear-gradient(120deg, var(--brand-primary-dark), var(--brand-primary));
  border-radius: var(--brand-radius-lg);
  padding: clamp(24px, 4vw, 44px);
  color: #fff;
  text-align: center;
}
.subscribe-kicker { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 0.78rem; color: var(--brand-accent-soft); margin: 0 0 6px; }
.subscribe-privacy { color: rgba(255, 255, 255, 0.82); font-size: 0.76rem; margin: 10px 0 0; }
.subscribe-card h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.subscribe-card p { color: rgba(255, 255, 255, 0.9); margin: 0 auto 18px; max-width: 520px; }
.subscribe-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.subscribe-form input {
  flex: 1 1 280px;
  max-width: 360px;
  padding: 13px 16px;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
}
.subscribe-form button {
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  background: var(--brand-accent);
  color: var(--brand-ink);
  font-weight: 700;
  cursor: pointer;
}
.subscribe-form button:hover { filter: brightness(1.05); }
.subscribe-feedback { margin: 12px 0 0; min-height: 1em; font-size: 0.88rem; color: #fff; }
.subscribe-feedback.is-ok { color: #d6f5e0; font-weight: 600; }
.subscribe-feedback.is-error { color: #ffd9d9; font-weight: 600; }

/* ============================================================
   v37 enhancements: motion, gradient sections, richer cards
   ============================================================ */

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out, ease), transform 0.7s var(--ease-out, ease); }
.reveal-in { opacity: 1; transform: none; }

/* Why-PGG: gradient icon chips + hover */
.why-card { transition: transform 0.2s var(--ease-out, ease), box-shadow 0.2s var(--ease-out, ease), border-color 0.2s ease; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--brand-shadow-md); border-color: rgba(53, 106, 156, 0.28); }
.why-card .why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--grad-cta, linear-gradient(120deg, #356a9c, #4f86b8));
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 12px 24px rgba(53, 106, 156, 0.28);
  transition: transform 0.25s var(--ease-out, ease);
}
.why-card:hover .why-icon { transform: scale(1.08) rotate(-4deg); }
.why-card h3 { font-family: var(--font-display); font-size: var(--fs-500); }

/* Broker cards: rating badge + listings link */
.broker-photo-wrap { position: relative; }
.broker-rating {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(27, 43, 58, 0.78);
  color: #fff;
  backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}
.broker-rating-stars { color: var(--brand-accent); letter-spacing: 1px; }
.broker-listings-link { color: var(--brand-primary); font-weight: 600; font-size: 0.8rem; text-decoration: none; }
.broker-listings-link:hover { text-decoration: underline; }
.broker-listings-link { color: var(--brand-primary-dark); }

/* Flowing gradient sections */
.why-pgg,
.testimonials {
  background: linear-gradient(160deg, var(--brand-panel-soft) 0%, #ffffff 72%);
  border-radius: var(--brand-radius-lg);
  padding: clamp(22px, 3vw, 40px);
}
.trust-strip { background: linear-gradient(120deg, var(--brand-panel-soft), #ffffff); }
.subscribe-card {
  background: var(--grad-cta, linear-gradient(120deg, #244a6e, #356a9c));
  background-size: 220% 220%;
  animation: ctaGradientDrift 14s ease-in-out infinite alternate;
}
@keyframes ctaGradientDrift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* Section heading sizes via fluid scale */
.broker-chooser .section-head h2,
.why-pgg .section-head h2,
.testimonials .section-head h2,
.videos .section-head h2,
.top-offers-section .section-head h2,
.trust-pgg h2 { font-size: var(--fs-700); }

/* ---- Sticky mobile CTA bar (homepage, phones only) ---- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8500;
    display: flex;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--brand-line);
    box-shadow: 0 -6px 20px rgba(16, 32, 48, 0.12);
  }
  .sticky-cta a {
    flex: 1;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
  }
  .sticky-cta-primary { background: var(--brand-primary); color: #fff; }
  .sticky-cta-call { background: var(--brand-accent); color: var(--brand-ink); }
  /* Sticky CTA bar removed: no fab lift / extra bottom padding needed
     (the global styles.css mobile rules already clear the chat fab). */
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-redesign-content { grid-template-columns: 1fr; }
  .valuation-card { order: -1; }
}
@media (max-width: 760px) {
  .trust-strip { flex-direction: column; align-items: flex-start; }
  .subscribe-form input { flex-basis: 100%; }
  .market-shell-home { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .subscribe-card { animation: none; }
}

/* ============================================================
   v37 round 2: contrast (AA), tap targets, mobile hero
   ============================================================ */
/* #356a9c on white was ~4.36:1 (fails AA small text) → use primary-dark */
.section-kicker,
.broker-listings-link,
.broker-see-all { color: var(--brand-primary-dark); }

/* tap targets >= 44px */
.broker-card .broker-action {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.valuation-card .valuation-submit { min-height: 48px; }

@media (max-width: 760px) {
  .broker-chip,
  .scope-chip,
  .mode-chip { min-height: 44px; }
  /* gate heavy hero/cta animation off small screens (perf/battery) */
  .hero-redesign .hero-overlay,
  .subscribe-card { animation: none; }
}
@media (max-width: 560px) {
  .valuation-card { order: 0; }        /* headline leads on phones, not the form */
  #hero-copy { font-size: var(--fs-300); }
  .hero-redesign { min-height: auto; padding-block: 18px; }
}
/* large-desktop comfort cap for the auto-fill grids */
@media (min-width: 1500px) {
  .testimonials-grid,
  .videos-grid { grid-template-columns: repeat(4, 1fr); }
}

/* suppress hover-lift transforms under reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-cta-primary,
  .hero-cta-secondary,
  .why-card,
  .broker-card,
  .social-card,
  .pgg-chat-link,
  .quick-contact { transition: none !important; }
  .hero-cta-primary:hover,
  .hero-cta-secondary:hover,
  .why-card:hover,
  .broker-card:hover,
  .social-card:hover { transform: none !important; }
}
