/* ==========================================================================
   iDream Financial — Components
   Header/footer are light (logo native colors). Hero + select accent
   bands use dark navy. Mobile-first responsive throughout.
   ========================================================================== */

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-normal);
}
.site-header.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  transition: var(--transition-normal);
  /* Deliberately wider than the shared .container's 1240px cap — at that
     width the 8-item nav plus phone/CTA genuinely doesn't fit without
     either shrinking the type back down or dropping items. Extra header
     breathing room is a normal, common pattern; body content stays at
     the narrower 1240px max-width via .container elsewhere. */
  max-width: 1800px;
}
.site-header.scrolled .nav-container { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.brand-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo-img { height: 72px; width: auto; transition: var(--transition-normal); }
.site-header.scrolled .brand-logo-img { height: 52px; }
/* At full 72px height the logo is too wide to fit alongside Fast Apply +
   hamburger on a phone-width screen (logo ~207px + actions ~185px doesn't
   fit in ~380px of available header space) — shrink it on narrow viewports
   regardless of scroll state. */
@media (max-width: 480px) {
  .brand-logo-img { height: 46px; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.8rem 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--orange); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 280px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-fast);
  z-index: 50;
}
/* The last couple of nav items sit close to the right edge — right-align
   their dropdowns instead of left-aligning, so the panel doesn't spill
   past the viewport on narrower desktop widths. */
.nav-menu > .nav-item:nth-last-child(-n+2) .dropdown-menu {
  left: auto;
  right: 0;
}

.nav-item:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}
.dropdown-item:hover { background: var(--bg-alt); color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.phone-cta { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.88rem; color: var(--navy); white-space: nowrap; }
.phone-cta i { color: var(--orange); }

.mobile-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: rgba(46,48,146,0.06);
  border: none; border-radius: var(--radius-sm);
  color: var(--navy); font-size: 1.1rem;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  max-width: 100vw;
  background: var(--bg-white);
  z-index: 300;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.mobile-menu-close { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border: none; border-radius: var(--radius-sm); font-size: 1.1rem; color: var(--navy); }
.mobile-nav-link { display: block; padding: 0.9rem 0; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--navy); border-bottom: 1px solid var(--border-light); }
.mobile-nav-group { margin-bottom: 0.5rem; border-bottom: 1px solid var(--border-light); }
.mobile-nav-group-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.9rem 0;
  background: none; border: none;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--navy);
  text-align: left;
}
.mobile-nav-group-trigger i { font-size: 0.85rem; color: var(--text-muted); transition: var(--transition-normal); }
.mobile-nav-group.active .mobile-nav-group-trigger i { transform: rotate(180deg); }
.mobile-nav-group-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.mobile-nav-group.active .mobile-nav-group-panel { grid-template-rows: 1fr; }
.mobile-nav-group-inner { overflow: hidden; min-height: 0; }
.mobile-sub-link { display: block; padding: 0.6rem 0 0.6rem 1rem; font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 1800px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-menu { display: block; }
}

/* Phone number and review badge only need the room the full nav-menu
   takes up, not the nav-menu's own breakpoint — once it collapses to a
   hamburger there's plenty of header space left for these down to a
   genuinely narrow (mobile) width. */
@media (max-width: 768px) {
  .phone-cta, .header-actions .review-badge { display: none; }
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.82rem; color: var(--text-muted); padding: 1.25rem 0; }
.breadcrumb a { color: var(--text-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--navy); font-weight: 700; }

/* ---------- HERO ---------- */
.hero-section { padding: 4rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.82rem; font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 1.3rem; }
.hero-description { font-size: 1.08rem; max-width: 560px; margin-bottom: 2rem; }

.hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.metric-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md); padding: 1.1rem; }
.metric-num { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.6rem; color: #fff; }
.metric-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); font-weight: 600; margin-top: 0.2rem; }
@media (max-width: 768px) { .hero-metrics { grid-template-columns: repeat(2, 1fr); } }

.hero-rate-bar { display: flex; margin-bottom: 1.5rem; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); position: relative; }
.hero-rate-cell { flex: 1; padding: 0.85rem 1.1rem; display: flex; align-items: center; position: relative; z-index: 1; }
.hero-rate-cell + .hero-rate-cell { border-left: 1px solid rgba(255,255,255,0.14); }
.hero-rate-num { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.5rem; line-height: 1; }
.hero-rate-cell.private .hero-rate-num { color: var(--orange); }
.hero-rate-cell.blender .hero-rate-num { color: #fff; }
.hero-rate-label { font-size: 0.72rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }
/* subtle ambient sheen sweeping across the bar, tuned for a brief noticeable flash rather than a slow glow */
.hero-rate-bar::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 22%, rgba(255,255,255,0.4) 48%, transparent 74%);
  background-size: 250% 100%; background-position: 130% 0;
  animation: hero-rate-sheen 2.2s ease-in-out infinite;
}
@keyframes hero-rate-sheen {
  0% { background-position: 130% 0; }
  55% { background-position: -30% 0; }
  100% { background-position: -30% 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-rate-bar::after { animation: none; display: none; } }
@media (max-width: 640px) {
  .hero-rate-bar { flex-direction: column; }
  .hero-rate-cell + .hero-rate-cell { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); }
}
@media (max-width: 560px) { .hero-metrics { grid-template-columns: 1fr; } }

.hero-calc-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
}
.calc-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--navy); margin-bottom: 0.25rem; }
.calc-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.calc-result-box {
  background: var(--navy-deep);
  background-image: linear-gradient(135deg, rgba(241,90,36,0.18), transparent 60%);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 0.5rem;
}
.calc-result-val { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 2.1rem; color: #fff; margin: 0.15rem 0; }

/* Simple page hero (inner pages) */
.page-hero { padding: 3.5rem 0 3rem; }
.page-hero .hero-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-hero-inner { max-width: 780px; }

/* ---------- CASE / STAT CARDS ---------- */
.case-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md); padding: 1.75rem; }
.case-badge { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); background: rgba(241,90,36,0.15); padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); margin-bottom: 0.9rem; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-strip.cols-5 { grid-template-columns: repeat(5, 1fr); }
/* .stat-strip.cols-N has higher specificity than the bare .stat-strip
   selector above, so the mobile override below must match it explicitly
   (or it would keep losing to .cols-5/.cols-4 inside the media query and
   silently force 5 real columns onto a phone-width screen). */
@media (max-width: 768px) {
  .stat-strip, .stat-strip.cols-5, .stat-strip.cols-4 { grid-template-columns: repeat(2, 1fr); }
  /* cols-3 goes to a single column instead of 2 — an odd count in a 2-col
     grid leaves the 3rd item orphaned alone on its own row, left-aligned
     instead of centered, which read as broken/misaligned on real devices. */
  .stat-strip.cols-3 { grid-template-columns: 1fr; }
}
.stat-item .stat-num { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 2.1rem; color: var(--navy); }
.bg-navy .stat-item .stat-num { color: #fff; }
.stat-item .stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.bg-navy .stat-item .stat-label { color: rgba(255,255,255,0.72); }

/* ---------- TIMELINE / PROCESS ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
/* Same specificity trap as .stat-strip above: .process-grid.cols-N beats
   the bare .process-grid selector, so both mobile overrides must name the
   modifier classes explicitly. */
@media (max-width: 980px) {
  .process-grid, .process-grid.cols-5, .process-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-grid, .process-grid.cols-5, .process-grid.cols-4 { grid-template-columns: 1fr; }
}
.process-step { position: relative; padding-top: 0.5rem; }
.process-num {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2.5px solid var(--orange);
  font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.05rem;
  color: var(--orange);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
/* Roadmap connector: only reads cleanly in a single unbroken row (4-col) */
@media (min-width: 981px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 23px;
    left: calc(50% + 23px);
    width: calc(100% - 46px);
    height: 2px;
    background-image: repeating-linear-gradient(to right, var(--orange) 0 6px, transparent 6px 12px);
    opacity: 0.5;
    z-index: 1;
  }
}

/* ---------- FAQ two-col layout ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- BLOG CARDS ---------- */
.blog-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-normal); height: 100%; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-img { height: 190px; width: 100%; background-size: cover; background-position: center; }
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem; }
.blog-card-title { font-size: 1.08rem; margin-bottom: 0.6rem; }
.blog-meta { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-top: auto; padding-top: 1rem; display: flex; gap: 0.75rem; align-items: center; }

.author-chip { display: flex; align-items: center; gap: 0.6rem; }
.author-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Team card */
/* scroll-margin-top accounts for the sticky header (~115px unscrolled) so an
   incoming #anchor link (e.g. from a blog byline) doesn't land with the card
   tucked under the header instead of visible below it */
.team-card { text-align: center; scroll-margin-top: 140px; }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.1rem; background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.8rem; overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-name { font-size: 1.1rem; margin-bottom: 0.15rem; }
.team-role { font-size: 0.85rem; color: var(--orange); font-weight: 700; margin-bottom: 0.75rem; }

/* Photo placeholders (used in place of real photography until supplied) */
.photo-placeholder {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(46,48,146,0.12), rgba(241,90,36,0.12));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 1.6rem;
  border: 1.5px dashed var(--border-navy);
  min-height: 220px;
}

/* ---------- FOOTER (light, matches header) ---------- */
.site-footer { background: var(--bg-white); border-top: 1px solid var(--border-light); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid .footer-col-title { font-size: 0.92rem; color: var(--navy); margin: 0; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--orange); }

/* Footer link groups: plain on desktop, collapsible accordion on mobile.
   Closed by default (no [open] read from markup); desktop forces content
   visible via CSS regardless of the native open/closed state. */
.footer-accordion summary { list-style: none; }
.footer-accordion summary::-webkit-details-marker { display: none; }
.footer-col-title-wrap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.footer-accordion .accordion-icon { display: none; color: var(--text-muted); font-size: 0.8rem; transition: transform 0.2s ease; }
.footer-accordion .footer-links { margin: 0; }

/* Desktop/mobile open state is set via the real `open` attribute in JS
   (main.js initFooterAccordion) — Safari enforces closed-<details> hiding
   at the render level, so a CSS override of `display` on the content does
   NOT work cross-browser. Don't reintroduce a CSS-only "force open" hack. */
@media (min-width: 641px) {
  .footer-accordion summary { pointer-events: none; }
}

@media (max-width: 640px) {
  .footer-accordion summary { cursor: pointer; }
  .footer-col-title-wrap { margin-bottom: 0; padding: 0.9rem 0; border-bottom: 1px solid var(--border-light); }
  .footer-accordion .accordion-icon { display: inline-block; }
  .footer-accordion[open] .accordion-icon { transform: rotate(180deg); }
  .footer-accordion .footer-links { padding: 0.9rem 0; }
}

.brokerage-strip { border-top: 1px solid var(--border-light); padding: 1.5rem 0 0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brokerage-strip-logo { height: 44px; width: auto; }
.brokerage-strip-text { font-size: 0.78rem; color: var(--text-muted); }
.compliance-box { border-top: 1px solid var(--border-light); padding: 1.75rem 0; font-size: 0.78rem; line-height: 1.7; color: var(--text-muted); }
.footer-bottom { border-top: 1px solid var(--border-light); padding: 1.25rem 0 2rem; font-size: 0.82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between; }
.footer-bottom a { color: var(--text-muted); font-weight: 600; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- LEAD FORM CARD ---------- */
.lead-form-card { background: var(--bg-white); border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-lg); }
.form-response { font-size: 0.85rem; margin-top: 0.75rem; font-weight: 600; }
.form-response.success { color: #16794C; }
.form-response.error { color: #C4331F; }

/* ---------- CHATBOT WIDGET ---------- */
.chat-trigger {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--orange); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 12px 28px var(--orange-glow);
}
.chat-trigger .dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; background: #16794C; border-radius: 50%; border: 2px solid #fff; }

.chat-modal {
  position: fixed; bottom: 6rem; right: 1.5rem; z-index: 400;
  width: 360px; max-width: calc(100vw - 2rem);
  height: 500px; max-height: calc(100vh - 8rem);
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.chat-modal.open { display: flex; }
.chat-modal.minimized { height: auto; max-height: none; }
@media (min-width: 900px) {
  .chat-modal { width: 420px; height: 640px; max-height: calc(100vh - 8rem); }
}
.chat-modal.minimized .chat-body,
.chat-modal.minimized .chat-quick-replies,
.chat-modal.minimized .chat-input-row,
.chat-modal.minimized .chat-disclaimer { display: none; }

.chat-header { background: var(--navy-deep); color: #fff; padding: 1.1rem 1.25rem; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.chat-header-info { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.chat-header .chat-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header .chat-status { font-size: 0.75rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header .chat-status .dot { width: 7px; height: 7px; background: #3DD68C; border-radius: 50%; flex-shrink: 0; }
.chat-header-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.chat-header-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.chat-header-btn:hover { background: rgba(255,255,255,0.22); }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; background: var(--bg-alt); }
.chat-bubble { max-width: 85%; padding: 0.7rem 0.95rem; border-radius: var(--radius-md); font-size: 0.87rem; line-height: 1.5; }
.chat-bubble.bot { background: #fff; color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-bubble.user { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.1rem 1rem; background: var(--bg-alt); }
.chat-quick-reply { font-size: 0.78rem; font-weight: 700; padding: 0.5rem 0.85rem; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border-light); color: var(--navy); }
.chat-quick-reply:hover { border-color: var(--orange); color: var(--orange); }
.chat-input-row { display: flex; gap: 0.5rem; padding: 0.85rem; border-top: 1px solid var(--border-light); background: #fff; }
.chat-input-row input { flex: 1; border: 1.5px solid var(--border-light); border-radius: var(--radius-pill); padding: 0.65rem 1rem; font-size: 0.85rem; }
.chat-input-row input:focus { outline: none; border-color: var(--orange); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; border: none; flex-shrink: 0; }
.chat-disclaimer { font-size: 0.68rem; color: var(--text-muted); text-align: center; padding: 0.5rem; background: var(--bg-alt); }
.chat-bubble.chat-typing { font-style: italic; color: var(--text-muted); }
.chat-calc-card { width: 100%; max-width: 100%; }
.chat-calc-input:focus { outline: none; border-color: var(--orange) !important; }

/* ---------- CALCULATOR PAGE ---------- */
.calc-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.calc-tab { padding: 0.7rem 1.3rem; border-radius: var(--radius-pill); background: var(--bg-alt); font-weight: 700; font-size: 0.88rem; color: var(--text-muted); border: 1px solid transparent; }
.calc-tab.active { background: rgba(241,90,36,0.1); color: var(--orange-hover); border-color: rgba(241,90,36,0.3); }
.calc-panel { display: none; }
.calc-panel.active { display: block; }
.calc-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: 2.5rem; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-result-sidebar { position: sticky; top: 6.5rem; height: fit-content; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.result-row .label { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.result-row .value { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.15rem; color: #fff; }
.result-row.highlight .value { color: var(--orange); font-size: 1.5rem; }

/* ---------- Back to top / misc ---------- */
.scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.scroll-reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Reviews ---------- */
.review-stars { display: inline-flex; gap: 0.15rem; color: #f5a623; font-size: 0.95rem; }
.review-stars .fa-regular { color: var(--border-light); }

.review-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-main);
  transition: var(--transition-normal);
}
.review-badge:hover { border-color: var(--border-navy); box-shadow: var(--shadow-sm); }
.review-badge i.fa-brands { color: #4285F4; font-size: 1rem; }
.review-badge .review-stars { font-size: 0.8rem; }
.review-badge-text { white-space: nowrap; }

.reviews-summary { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; margin: -1rem 0 2.5rem; }
.reviews-summary .review-stars { font-size: 1.3rem; }
.reviews-summary-text { font-size: 0.95rem; color: var(--text-muted); }

.review-card { display: flex; flex-direction: column; }
.review-card .review-stars { margin-bottom: 0.85rem; }
.review-author { font-weight: 700; font-family: 'Outfit', sans-serif; margin-top: auto; padding-top: 0.5rem; }
.review-meta { display: block; font-weight: 500; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

.reviews-carousel { position: relative; }
.reviews-viewport { overflow: hidden; }
.reviews-track { display: flex; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.reviews-page { flex: 0 0 100%; min-width: 0; }

.reviews-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  font-size: 0.9rem;
  z-index: 2;
  transition: var(--transition-normal);
}
.reviews-arrow:hover:not(:disabled) { background: var(--navy); color: #fff; }
.reviews-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.reviews-arrow-prev { left: -22px; }
.reviews-arrow-next { right: -22px; }
@media (max-width: 900px) {
  .reviews-arrow-prev { left: -4px; }
  .reviews-arrow-next { right: -4px; }
}

.reviews-dots { display: flex; justify-content: center; gap: 0.5rem; margin: 1.5rem 0 0.5rem; }
.reviews-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--border-light); transition: var(--transition-normal); }
.reviews-dot.active { width: 22px; border-radius: 4px; background: var(--orange); }

/* ---------- FOOTER LINK BUTTON (Cookie Preferences reopen) ---------- */
.footer-link-btn {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; font-weight: 600; color: var(--text-muted);
  cursor: pointer; text-decoration: none;
}
.footer-link-btn:hover { color: var(--orange); }

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
  background: #fff; border-top: 1px solid var(--border-light);
  box-shadow: 0 -8px 24px rgba(27, 29, 92, 0.1);
  padding: 1.1rem 1.5rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 320px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.cookie-banner-text a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; flex-shrink: 0; }

/* Keep the chat launcher clear of the banner while it's showing */
body.cookie-banner-visible .chat-trigger { bottom: calc(1.5rem + 88px); transition: bottom var(--transition-normal); }
body.cookie-banner-visible .chat-modal { bottom: calc(6rem + 88px); transition: bottom var(--transition-normal); }
@media (max-width: 640px) {
  body.cookie-banner-visible .chat-trigger { bottom: calc(1.5rem + 140px); }
  body.cookie-banner-visible .chat-modal { bottom: calc(6rem + 140px); }
}

.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 650;
  background: rgba(27, 29, 92, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.cookie-modal-overlay[hidden] { display: none; }
.cookie-modal {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 460px; max-width: 100%; max-height: calc(100vh - 3rem);
  display: flex; flex-direction: column; overflow: hidden;
}
.cookie-modal-header {
  background: var(--navy-deep); color: #fff; padding: 1.1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.cookie-modal-header h3 { font-family: 'Outfit', sans-serif; font-size: 1.02rem; font-weight: 800; margin: 0; }
.cookie-modal-body { padding: 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.25rem; }
.cookie-category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.cookie-category-header strong { font-family: 'Outfit', sans-serif; font-size: 0.92rem; color: var(--text-main); }
.cookie-category p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cookie-locked-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: var(--bg-alt); padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); }

.cookie-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch-track { position: absolute; inset: 0; background: var(--border-light); border-radius: var(--radius-pill); transition: var(--transition-fast); }
.cookie-switch-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: var(--transition-fast); }
.cookie-switch input:checked + .cookie-switch-track { background: var(--orange); }
.cookie-switch input:checked + .cookie-switch-track .cookie-switch-thumb { transform: translateX(18px); }
.cookie-switch input:focus-visible + .cookie-switch-track { outline: 2px solid var(--navy); outline-offset: 2px; }

.cookie-modal-footer { padding: 1rem 1.25rem 1.25rem; display: flex; justify-content: flex-end; gap: 0.6rem; border-top: 1px solid var(--border-light); flex-wrap: wrap; }

@media (max-width: 480px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn-sm { flex: 1; }
}

/* ---------- CASL CONSENT CHECKBOX (lead form) ---------- */
.form-consent-row { display: flex; align-items: flex-start; gap: 0.65rem; margin: 1rem 0; }
.form-consent-row input[type="checkbox"] { margin-top: 0.2rem; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--orange); }
.form-consent-row label { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.form-consent-row label a { color: var(--navy); font-weight: 600; text-decoration: underline; }
