/* ============================================================
   FundBrick — the redesigned public footer
   footer-v2.css — loaded by front/layouts/app.blade.php when
   CommonHelper::HOME_V2 is on, beside the site's own css.

   Every rule is scoped to .footer-v2, the wrapper the footer
   partial prints, so nothing here reaches the page above it.
   The old footer, its markup and its rules are untouched.

   Brand: yellow #ffcc2a · ink #1a1a1a
   ============================================================ */
.footer-v2{
  --brand:#ffcc2a;
  --brand-dark:#e6b415;
  --ink:#1a1a1a;
  --muted:#6b7280;
  --line-2:#f0f1f4;
  --bg:#f4f5f7;

  margin-top:auto;
  font-family:"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
.footer-v2 *{box-sizing:border-box}

/* the footer proper: the question box as one card, then four columns on black */
.footer-v2 .h2-foot{background:#111214;color:#d0d5dd;padding:46px 0 0}

/* Ask Us A Question, in a card across the top. The field keeps the live
   #ask_question id, so the footer's own autocomplete still answers it. */
.footer-v2 .h2-ask{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px);gap:22px;align-items:center;
  padding:24px 28px;background:#1a1c1f;border:1px solid #2a2d31;border-radius:18px;
}
.footer-v2 .h2-ask h2{margin:0;font-size:22px;font-weight:800;color:#fff}
.footer-v2 .h2-ask p{margin:6px 0 0;font-size:14px;color:#98a2b3}
.footer-v2 .h2-ask-form{display:flex;align-items:center;gap:14px}
.footer-v2 .h2-ask-field{position:relative;flex:1;margin:0}
.footer-v2 .h2-ask-field input{width:100%;height:48px;padding:0 54px 0 16px;border:1px solid #2f3338;border-radius:10px;background:#111214;color:#fff;font-size:14px}
.footer-v2 .h2-ask-field input::placeholder{color:#667085}
.footer-v2 .h2-ask-field input:focus{outline:none;border-color:#ffcc2a;box-shadow:0 0 0 3px rgba(255,204,42,.2)}
.footer-v2 .h2-ask-field .h2-ask-go{
  position:absolute;right:5px;top:5px;width:38px;height:38px;border:0;border-radius:8px;
  background:#ffcc2a;color:#1a1a1a;display:grid;place-items:center;cursor:pointer;font-size:15px;
}
.footer-v2 .h2-ask-field .h2-ask-go:hover{background:#e6b415}
.footer-v2 .h2-ask-link,
.footer-v2 .h2-ask-link:hover{text-decoration:none}
.footer-v2 .h2-ask-link{font-size:14px;font-weight:600;color:#ffcc2a;white-space:nowrap}
.footer-v2 .h2-ask-link:hover{color:#fff}

/* The mark beside the field, while the suggestions are being fetched: the
   magnifier gives way to a ring, and the button stops taking clicks. */
.footer-v2 .h2-ask-field .h2-ask-go:disabled{cursor:default}
.footer-v2 .h2-ask-field .h2-ask-go.is-busy > i{display:none}
.footer-v2 .h2-ask-field .h2-ask-go.is-busy::after{
  content:"";width:16px;height:16px;border-radius:50%;
  border:2px solid rgba(26,26,26,.28);border-top-color:#1a1a1a;
  animation:h2-ask-spin .7s linear infinite;
}
@keyframes h2-ask-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .footer-v2 .h2-ask-field .h2-ask-go.is-busy::after{animation-duration:2.4s}
}

/* The suggestion list. jQuery UI hangs its menu off the body, outside .footer-v2,
   so it is matched on a class of its own that the open handler puts there - and
   it arrives wearing jquery-ui.css's own theme, which every rule here undoes.

   It is near white rather than dark like the footer around it: a panel that has
   opened over the page, the same as every other list on the site, instead of
   more black on black that reads as part of the footer. */
.ui-autocomplete.h2-ask-menu{
  z-index:1100;list-style:none;margin:6px 0 0;padding:6px;max-height:280px;overflow-y:auto;
  background:#fbfbfc;border:1px solid #e6e8ec;border-radius:12px;
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  font-family:inherit;font-size:14px;
}
.ui-autocomplete.h2-ask-menu .ui-menu-item{margin:0;padding:0;list-style:none}
.ui-autocomplete.h2-ask-menu .ui-menu-item a{
  display:block;margin:0;padding:10px 12px;border:0;border-radius:8px;background:none;
  font-size:14px;font-weight:400;line-height:1.45;color:#1a1a1a;text-decoration:none;cursor:pointer;
}
/* the same yellow wash an opened answer carries on the questions page */
.ui-autocomplete.h2-ask-menu .ui-menu-item a:hover,
.ui-autocomplete.h2-ask-menu .ui-menu-item a.ui-state-focus,
.ui-autocomplete.h2-ask-menu .ui-menu-item a.ui-state-hover{
  margin:0;border:0;background:#fff3c9;color:#1a1a1a;font-weight:600;
}
/* nothing found: a note rather than something to press */
.ui-autocomplete.h2-ask-menu .ui-menu-item.is-empty a,
.ui-autocomplete.h2-ask-menu .ui-menu-item.is-empty a:hover,
.ui-autocomplete.h2-ask-menu .ui-menu-item.is-empty a.ui-state-focus{
  background:none;color:#667085;font-weight:400;font-style:italic;cursor:default;
}

.footer-v2 .h2-foot-cols{display:grid;grid-template-columns:1.7fr 1fr 1.3fr 1fr;gap:34px;padding:38px 0 32px}
.footer-v2 .h2-foot-logo{max-width:170px}
.footer-v2 .h2-foot-brand p{margin:16px 0 18px;font-size:14px;line-height:1.7;color:#98a2b3}
.footer-v2 .h2-social{display:flex;gap:10px}
.footer-v2 .h2-social a{
  width:36px;height:36px;border-radius:50%;border:1px solid #2f3338;color:#d0d5dd;
  display:grid;place-items:center;font-size:14px;transition:background .2s,border-color .2s,color .2s;
}
.footer-v2 .h2-social a:hover{background:#ffcc2a;border-color:#ffcc2a;color:#1a1a1a}
.footer-v2 .h2-foot-cols h3{position:relative;margin:0 0 18px;padding-bottom:10px;font-size:15px;font-weight:700;color:#fff}
.footer-v2 .h2-foot-cols h3::after{content:"";position:absolute;left:0;bottom:0;width:36px;height:3px;border-radius:2px;background:#ffcc2a}
.footer-v2 .h2-foot-links,
.footer-v2 .h2-foot-contact{list-style:none;margin:0;padding:0}
.footer-v2 .h2-foot-links li{margin-bottom:10px}
/* a yellow line grows under a link as the pointer crosses it; the site's own
   underline is off, so only this one shows */
.footer-v2 .h2-foot-links a,
.footer-v2 .h2-foot-links a:hover,
.footer-v2 .h2-social a,
.footer-v2 .h2-social a:hover{text-decoration:none}
.footer-v2 .h2-foot-links a{position:relative;display:inline-block;font-size:14px;color:#9aa1ad;transition:color .25s}
.footer-v2 .h2-foot-links a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:1px;background:#ffcc2a;transition:width .4s}
.footer-v2 .h2-foot-links a:hover{color:#ffcc2a}
.footer-v2 .h2-foot-links a:hover::after{width:100%}
.footer-v2 .h2-foot-links li.active a{color:#ffcc2a}
.footer-v2 .h2-foot-contact li{display:flex;gap:10px;margin-bottom:12px;font-size:14px;line-height:1.6;color:#98a2b3}
.footer-v2 .h2-foot-contact i{margin-top:4px;color:#ffcc2a}
.footer-v2 .h2-foot-contact a{color:#98a2b3}
.footer-v2 .h2-foot-contact a:hover{color:#ffcc2a}
.footer-v2 .h2-apps{display:flex;flex-direction:column;gap:12px}
.footer-v2 .h2-app{
  display:flex;align-items:center;gap:10px;padding:9px 14px;border:1px solid #2f3338;border-radius:10px;
  color:#fff;transition:background .2s,border-color .2s;
}
/* the app buttons light up as a whole; no line under them */
.footer-v2 .h2-app,
.footer-v2 .h2-app:hover{text-decoration:none}
.footer-v2 .h2-app:hover{background:#1f2126;border-color:#ffcc2a;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.3)}
.footer-v2 .h2-app:hover i{color:#ffcc2a}
.footer-v2 .h2-app i{font-size:20px}
.footer-v2 .h2-app small{display:block;font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:#98a2b3}
.footer-v2 .h2-app b{font-size:14px}
.footer-v2 .h2-foot-bar{display:flex;align-items:center;justify-content:center;gap:16px;padding:4px 0 18px}
.footer-v2 .h2-foot-bar p{margin:0;font-size:13.5px;color:#98a2b3}

/* the legal notice the old footer printed in full: a button here, the text in a dialog */
.footer-v2 .h2-legal{display:flex;align-items:center;justify-content:center;border-top:1px solid #23262a;padding:22px 0}
.footer-v2 .h2-legal button{
  display:inline-flex;align-items:center;height:42px;padding:0 22px;cursor:pointer;
  border:1px solid #ffcc2a;border-radius:8px;background:rgba(255,204,42,.12);
  font-size:13.5px;font-weight:600;color:#ffcc2a;transition:background .2s,color .2s;
}
.footer-v2 .h2-legal button:hover{background:#ffcc2a;color:#1a1a1a}

/* the dialog it opens */
.footer-v2 .modal-back{position:fixed;inset:0;background:rgba(16,24,40,.45);display:none;align-items:flex-start;justify-content:center;padding:40px 16px;z-index:1080;overflow-y:auto}
.footer-v2 .modal-back.on{display:flex}
.footer-v2 .modal-card{background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(16,24,40,.22);width:100%;max-width:820px;margin:auto}
.footer-v2 .modal-hd{display:flex;align-items:center;gap:10px;padding:15px 20px;border-bottom:1px solid var(--line-2)}
.footer-v2 .modal-hd h3{margin:0;font-size:15px;font-weight:700;color:var(--ink)}
.footer-v2 .modal-x{margin-left:auto;border:0;background:none;color:var(--muted);width:30px;height:30px;border-radius:7px;display:grid;place-items:center;font-size:21px;line-height:1;flex:none;cursor:pointer}
.footer-v2 .modal-x:hover{background:var(--bg);color:var(--ink)}
/* the admin pastes this text with its own inline sizes and colours */
.footer-v2 .h2-legal-body{max-height:70vh;overflow:auto;padding:18px 22px 22px}
.footer-v2 .h2-legal-body,
.footer-v2 .h2-legal-body p,
.footer-v2 .h2-legal-body span,
.footer-v2 .h2-legal-body div{font-size:12.5px !important;line-height:1.7 !important;color:#475467 !important;text-align:left !important;background:none !important}
.footer-v2 .h2-legal-body a{color:#1a1a1a;text-decoration:underline}

/* Go to top, once the page has been scrolled - see footer-v2.js */
.footer-v2 .h2-top{
  position:fixed;right:22px;bottom:22px;z-index:1050;width:46px;height:46px;border:0;border-radius:50%;
  background:#ffcc2a;color:#1a1a1a;display:grid;place-items:center;cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.22);opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .2s,transform .2s,visibility .2s,background .2s;
}
.footer-v2 .h2-top.on{opacity:1;visibility:visible;transform:none}
.footer-v2 .h2-top:hover{background:#e6b415}

/* ------------------------------------------------------------
   narrower screens
   ------------------------------------------------------------ */
@media (max-width:991px){
  .footer-v2 .h2-ask{grid-template-columns:1fr;padding:22px 20px}
  .footer-v2 .h2-foot-cols{grid-template-columns:1fr 1fr;gap:28px;padding:32px 0 26px}
}
@media (max-width:575px){
  .footer-v2 .h2-foot-cols{grid-template-columns:1fr}
  .footer-v2 .h2-ask-form{flex-direction:column;align-items:stretch;gap:12px}
  .footer-v2 .h2-ask-link{text-align:center}
  .footer-v2 .h2-top{right:14px;bottom:14px}
}
