/* ─────────────────────────────────────────────────────────────
   i3-polish.css (filename kept as lv-polish.css until final sweep)
   Additive hover & motion polish + I-3 Planning brand base layer.
   ───────────────────────────────────────────────────────────── */

:root{
  --i3-ink:#1F1E1C; --i3-charcoal2:#2A2723; --i3-black:#171614;
  --i3-clay:#D36947; --i3-clay-d:#B9542F;
  --i3-paper:#F4F1EC; --i3-paper-tint:#ECE8E0; --i3-stone:#8C8780;
  /* short aliases used by per-page edits */
  --clay:#D36947; --clay-d:#B9542F; --paper:#F4F1EC; --stone:#8C8780; --paper-tint:#ECE8E0;
}
::selection{ background:rgba(211,105,71,.22); color:#1F1E1C; }

@media (prefers-reduced-motion: no-preference) {

  /* — Smooth transitions on common interactive surfaces ——————— */
  :where(a, button, [role="button"], input[type="submit"], .btn,
         .btn-primary, .btn-navy, .btn-ghost, .btn-solid-white,
         .btn-white-ghost, .btn-white-solid, .nav-cta, .cta-btn) {
    transition:
      transform .22s cubic-bezier(.4,0,.2,1),
      box-shadow .3s cubic-bezier(.4,0,.2,1),
      color .18s ease,
      background-color .22s ease,
      border-color .22s ease,
      filter .22s ease;
  }

  /* — Card-style hover lift + soft brand shadow —————————————— */
  :where(.card, .pillar, .feature, .tile, .cta-card, .fcta-card,
         [class*="-card"]:not([class*="-card-"]), [class*="_card"]:not([class*="_card_"])) {
    transition:
      transform .3s cubic-bezier(.4,0,.2,1),
      box-shadow .35s cubic-bezier(.4,0,.2,1),
      border-color .25s ease;
  }
  :where(.card, .pillar, .feature, .tile, .cta-card, .fcta-card,
         [class*="-card"]:not([class*="-card-"]), [class*="_card"]:not([class*="_card_"])):hover {
    transform: translateY(-4px);
    box-shadow:
      0 18px 44px rgba(31, 30, 28, 0.12),
      0 2px 6px rgba(31, 30, 28, 0.06);
  }

  /* — Gentle image zoom when a card-like wrapper is hovered ——— */
  :where(.card, .pillar, .feature, .tile, [class*="-card"]:not([class*="-card-"])) img,
  :where(.lv-zoom) img {
    transition: transform .55s cubic-bezier(.2,.6,.2,1);
  }
  :where(.card:hover, .pillar:hover, .feature:hover, .tile:hover,
         [class*="-card"]:not([class*="-card-"]):hover) img,
  :where(.lv-zoom:hover) img {
    transform: scale(1.035);
  }

  /* — Primary CTA buttons get a subtle lift + branded shadow —— */
  :where(.nav-cta, .btn-primary, .btn-navy, .cta-btn,
         button[type="submit"]):hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(211, 105, 71, 0.28);
  }

  /* — Section icons gently pop when their parent card is hovered */
  :where(.pillar-icon, .feature-icon, .service-icon,
         .card-icon, .step-icon, .icon-wrap) {
    transition: transform .35s cubic-bezier(.2,.6,.2,1);
  }
  :where(.pillar:hover, .feature:hover, .service:hover,
         .tile:hover, [class*="-card"]:not([class*="-card-"]):hover)
  :where(.pillar-icon, .feature-icon, .service-icon,
         .card-icon, .step-icon, .icon-wrap) {
    transform: scale(1.08) rotate(-2deg);
  }

  /* — Photo cards (headshots) get a soft glow ————————————————— */
  :where(.card-photo, .team-photo, .advisor-photo) {
    transition: transform .35s cubic-bezier(.2,.6,.2,1),
                box-shadow .35s cubic-bezier(.2,.6,.2,1),
                filter .35s ease;
  }
  :where(.card:hover, [class*="-card"]:not([class*="-card-"]):hover)
  :where(.card-photo, .team-photo, .advisor-photo) {
    transform: scale(1.02);
    box-shadow: 0 14px 36px rgba(31, 30, 28, 0.18);
    filter: saturate(1.04);
  }

  :where(.cards, .pillars, .features, .tiles, .grid-cards) > *:hover ~ * { }
}

/* — Focus polish — accessibility, always on ——————————————— */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #D36947;
  outline-offset: 2px;
  border-radius: 3px;
}

/* — Mobile safety net —————————————————————————————————————— */
html, body { overflow-x: clip; }
:where(img, video, svg, iframe) { max-width: 100%; }
:where(img, video) { height: auto; }
:where(table) { max-width: 100%; }

/* — "Coming Soon" diagonal ribbon for video placeholders ——————— */
.vid-thumb,
.video-placeholder,
.vid-placeholder { position: relative; overflow: hidden; }
.vid-coming-soon {
  position: absolute;
  top: 22px;
  right: -52px;
  transform: rotate(38deg);
  background: linear-gradient(135deg, #E18B6C 0%, #D36947 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 7px 60px;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  z-index: 3;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

/* — Larger tap targets on phones (WCAG 2.5.5 / 44px) ——————————— */
@media (max-width: 768px) {
  :where(.nl, .mobile-nav a, .footer-col a, .cat-pill) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  :where(.wrap) { padding-left: 20px; padding-right: 20px; }
}

/* — Term explainer tooltip — zero-JS, hover + keyboard/tap ————————
   Wrap only the WORD being explained:
   <span class="lv-tip" tabindex="0">Term<span class="lv-tip-bubble"
   role="tooltip">…</span></span>                                        */
.lv-tip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted currentColor;
  cursor: help;
}
.lv-tip:focus { outline: none; }
.lv-tip:focus-visible {
  outline: 2px solid #D36947;
  outline-offset: 2px;
  border-radius: 3px;
}
.lv-tip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 280px;
  background: #1F1E1C;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  white-space: normal;
  padding: 11px 14px;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 22, 20, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 600;
}
.lv-tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1F1E1C;
}
.lv-tip-below .lv-tip-bubble { bottom: auto; top: calc(100% + 10px); }
.lv-tip-below .lv-tip-bubble::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1F1E1C;
}
.lv-tip:hover .lv-tip-bubble,
.lv-tip:focus .lv-tip-bubble,
.lv-tip:focus-within .lv-tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px) {
  .lv-tip-bubble { max-width: 220px; font-size: 12px; }
}

/* ── Client Login (Investor360) link ─────────────────────────── */
.topbar-right a.lv-client-login{color:#fff;background:#D36947;padding:3px 12px;border-radius:14px;font-weight:600;white-space:nowrap;letter-spacing:.01em;opacity:1;transition:background .18s}
.topbar-right a.lv-client-login:hover{background:#B9542F;color:#fff;opacity:1}
.lvf-col a.lv-client-login{color:#E18B6C;font-weight:600}
.lvf-col a.lv-client-login:hover{color:#EFB39C}
.foot a.lv-client-login{color:#E18B6C;font-weight:600;text-decoration:none}
.foot a.lv-client-login:hover{color:#EFB39C}
