/* ============================================================
   HOPE RESTORED HOMES  ·  FAQ page styles
   (css/faq.css)
   ------------------------------------------------------------
   Used ONLY by faq.html. A trimmed, self-contained take on the
   Cleancore look (tokens, nav, footer) plus the FAQ bubble
   layout. Was inline in faq.html; now editable here.
   ============================================================ */


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:#FFFFFF; --off:#F3FAFC; --ice:#E6F4F8; --aqua:#B8DFE8; --aqua2:#7CC4D4;
  --aqua3:#3FA8BF; --aqua-deep:#1A7A90; --abyss:#0C5E70; --mint:#C6EFDC; --mint2:#8AD4B8;
  --peri:#D5E7FF; --sky:#E3F5FB; --yellow:#F5E642; --yellow2:#E8D820; --foam:#F0FBFF;
  --gray:#7C95A0; --gray2:#CFE2E8; --ink:#0C2A33; --ink2:#2A4A56;
  --glass:rgba(255,255,255,0.62); --glass-soft:rgba(240,251,255,0.42); --glass-brd:rgba(255,255,255,0.85);
  --glow:rgba(63,168,191,0.30);
  --grad-fresh:linear-gradient(135deg,#2F9FBA 0%,#5FC0D6 42%,#8AD4B8 100%);
  --sheen:linear-gradient(180deg,rgba(255,255,255,0.85),rgba(255,255,255,0.0) 60%);
  --card-shadow:0 1px 0 rgba(255,255,255,0.9) inset,0 18px 38px -20px rgba(26,122,144,0.55),0 4px 14px -6px rgba(63,168,191,0.30);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif; color: var(--ink); overflow-x: hidden; position: relative; min-height: 100vh;
  background: radial-gradient(140% 90% at 12% -10%, #FFFFFF 0%, var(--sky) 34%, var(--ice) 64%, #DCEFF5 100%) fixed;
}
body::before { content:''; position:fixed; inset:0; z-index:-2; pointer-events:none;
  background: radial-gradient(60% 50% at 82% 8%, rgba(255,255,255,0.85), transparent 70%),
              radial-gradient(50% 40% at 10% 22%, rgba(198,239,220,0.45), transparent 70%),
              radial-gradient(55% 45% at 95% 78%, rgba(213,231,255,0.40), transparent 72%); }
body::after { content:''; position:fixed; inset:0; z-index:-2; pointer-events:none;
  background-image: linear-gradient(rgba(63,168,191,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(63,168,191,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 100%); }

/* ambient floating bubbles */
.bubblefield { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.amb { position: absolute; bottom: -160px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.55);
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.35) 9%, rgba(184,223,232,0.18) 42%, rgba(124,196,212,0.10) 72%, rgba(63,168,191,0.04) 100%);
  box-shadow: inset 0 0 18px rgba(255,255,255,0.55), inset -7px -7px 16px rgba(63,168,191,0.14), 0 6px 18px rgba(63,168,191,0.10);
  animation: ambRise linear infinite; opacity: 0; }
.amb::after { content:''; position:absolute; top:16%; left:22%; width:22%; height:22%; border-radius:50%; background: radial-gradient(circle, rgba(255,255,255,0.95), transparent 70%); }
@keyframes ambRise {
  0% { transform: translateY(0) translateX(0) scale(.9); opacity:0; }
  8% { opacity:.8; } 50% { transform: translateY(-52vh) translateX(26px) scale(1); }
  92% { opacity:.55; } 100% { transform: translateY(-108vh) translateX(-18px) scale(1.05); opacity:0; } }

/* decorative sparkle */
.sparkle { position:absolute; width:18px; height:18px; pointer-events:none;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 60%);
  filter: drop-shadow(0 0 5px rgba(124,196,212,0.8)); animation: twinkle 3.4s ease-in-out infinite; z-index:3; color: rgba(255,255,255,0.95); }
.sparkle::before, .sparkle::after { content:''; position:absolute; inset:0;
  background: linear-gradient(currentColor, currentColor) no-repeat center/100% 8%, linear-gradient(currentColor, currentColor) no-repeat center/8% 100%; }
.sparkle::after { transform: rotate(45deg); opacity:.5; }
@keyframes twinkle { 0%,100% { transform: scale(.5) rotate(0deg); opacity:.25; } 50% { transform: scale(1) rotate(90deg); opacity:1; } }

/* nav */
nav { background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(240,251,255,0.62));
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.7); box-shadow: 0 8px 24px -16px rgba(26,122,144,0.5);
  padding: 0 3rem; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 200; }
nav::before { content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--aqua3), var(--mint2), var(--peri), var(--aqua3)); background-size: 200% 100%; animation: flowLine 8s linear infinite; }
@keyframes flowLine { to { background-position: 200% 0; } }
.nav-left { display: flex; align-items: center; gap: .9rem; }
.brand-link { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.logo-ph { height: 42px; display: flex; align-items: center; flex-shrink: 0; }
.logo-ph img { height: 100%; width: auto; display: block; }
.nav-brand { font-family: 'Fredoka', sans-serif; font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.15; }
.nav-brand span { display: block; font-family: 'DM Mono', monospace; font-size: .56rem; font-weight: 500; color: var(--aqua3); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); text-decoration: none; transition: color .15s; position: relative; }
.nav-links a::after { content:''; position:absolute; left:0; right:100%; bottom:-6px; height:2px; border-radius:2px; background: var(--grad-fresh); transition: right .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--aqua3); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

/* ── Services dropdown ── */
.nav-dd { position: relative; }
.nav-dd > a { display: inline-flex; align-items: center; gap: .35rem; }
.dd-caret { flex: none; transition: transform .25s ease; }
.nav-dd:hover .dd-caret, .nav-dd:focus-within .dd-caret { transform: rotate(180deg); }
.nav-dd::before { content: ''; position: absolute; top: 100%; left: -14px; right: -14px; height: 16px; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 214px; padding: .45rem; list-style: none; margin: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(240,251,255,0.95));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--gray2); border-radius: 14px;
  box-shadow: var(--card-shadow);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 400;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
  display: block; padding: .58rem .8rem; border-radius: 9px;
  font-size: .68rem; letter-spacing: .07em; white-space: nowrap;
}
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover { background: var(--foam); color: var(--aqua-deep); }
.nav-cta { font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--grad-fresh); color: var(--white); border: none; padding: .55rem 1.4rem; border-radius: 999px; cursor: pointer;
  position: relative; overflow: hidden; box-shadow: 0 6px 16px -6px rgba(26,122,144,0.6), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .15s, box-shadow .15s, filter .15s; text-decoration: none; display: inline-block; }
.nav-cta::before { content:''; position:absolute; inset:0 0 52% 0; background: var(--sheen); border-radius: inherit; pointer-events: none; }
.nav-cta:hover { transform: translateY(-1px); filter: saturate(1.1) brightness(1.04); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--aqua-deep); border-radius: 2px; }

/* hero / header */
.faq-hero { position: relative; text-align: center; padding: 4.5rem 1.5rem 1rem; max-width: 760px; margin: 0 auto; }
.sec-kicker { font-family: 'DM Mono', monospace; font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--aqua-deep); margin-bottom: .7rem; display: inline-flex; align-items: center; gap: .5rem; }
.sec-kicker::before, .sec-kicker::after { content:''; width: 18px; height: 2px; border-radius: 2px; background: var(--grad-fresh); }
.faq-title { font-family: 'Fredoka', sans-serif; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; color: var(--ink); line-height: 1.06; letter-spacing: -.01em; margin-bottom: .8rem; }
.faq-title em { font-style: normal; background: linear-gradient(120deg, var(--aqua-deep), var(--aqua3) 50%, var(--mint2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.faq-sub { font-size: 1rem; color: var(--ink2); line-height: 1.8; max-width: 540px; margin: 0 auto; }

/* bubble cloud */
.faq-section { padding: 2.5rem 1.5rem 4.5rem; }
.faq-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.05rem; max-width: 1000px; margin: 0 auto; }
.qbubble { position: relative; overflow: hidden; cursor: pointer; border: none; text-align: left;
  font-family: 'Fredoka', sans-serif; font-weight: 500; color: var(--ink); line-height: 1.32;
  background: linear-gradient(165deg, rgba(255,255,255,0.86), rgba(230,244,248,0.55));
  -webkit-backdrop-filter: blur(9px) saturate(1.2); backdrop-filter: blur(9px) saturate(1.2);
  border: 1px solid var(--glass-brd); border-radius: 40px; padding: 1rem 1.5rem; max-width: 350px;
  box-shadow: var(--card-shadow); transition: box-shadow .2s, filter .2s, border-color .2s;
  animation: qbob var(--d, 5s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.qbubble::before { content:''; position:absolute; top:8%; left:11%; width:36%; height:32%; border-radius:50%;
  background: radial-gradient(circle at 42% 40%, rgba(255,255,255,0.92), rgba(255,255,255,0) 70%); pointer-events:none; }
.qbubble::after { content:''; position:absolute; top:-60%; left:-55%; width:32%; height:220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent); transform: rotate(8deg); opacity:0; pointer-events:none; }
.qbubble:hover { filter: brightness(1.03) saturate(1.08); border-color: rgba(63,168,191,0.5);
  box-shadow: 0 20px 36px -16px rgba(26,122,144,0.6), inset 0 1px 0 rgba(255,255,255,0.9); }
.qbubble:hover::after { animation: qGlint .85s ease; }
.qbubble:active { filter: brightness(1.06); }
.qb-s { font-size: .9rem; max-width: 260px; }
.qb-m { font-size: .93rem; max-width: 320px; }
.qb-l { font-size: .95rem; max-width: 380px; }
@keyframes qbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes qGlint { 0% { left:-55%; opacity:0; } 15% { opacity:1; } 100% { left:135%; opacity:0; } }

/* answer modal */
.faq-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 1.5rem; }
.faq-modal.open { display: flex; }
.faq-modal-backdrop { position: absolute; inset: 0; background: rgba(8,40,49,0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.faq-answer-card { position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 84vh; overflow-y: auto;
  background: linear-gradient(165deg, rgba(255,255,255,0.95), var(--ice)); border: 1px solid var(--glass-brd); border-radius: 26px;
  box-shadow: 0 30px 70px -24px rgba(12,42,51,0.6), inset 0 1px 0 rgba(255,255,255,0.9); padding: 2.5rem 2.2rem 2.1rem;
  animation: popIn .38s cubic-bezier(.22,1.2,.4,1); }
.faq-answer-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; border-radius:26px 26px 0 0; background: var(--grad-fresh); }
@keyframes popIn { from { opacity:0; transform: scale(.7) translateY(18px); } to { opacity:1; transform: none; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.faq-close { position: absolute; top: .8rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%; background: rgba(26,122,144,0.08); border: none; font-size: 1.4rem; line-height: 1; color: var(--gray); cursor: pointer; transition: color .15s, background .15s, transform .15s; }
.faq-close:hover { color: var(--aqua-deep); background: rgba(26,122,144,0.16); transform: scale(1.08); }
.faq-modal-kicker { font-family: 'DM Mono', monospace; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--aqua-deep); margin-bottom: .5rem; }
.faq-modal-q { font-family: 'Fredoka', sans-serif; font-size: 1.45rem; font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 1rem; padding-right: 1.8rem; }
.faq-modal-body p { color: var(--ink2); line-height: 1.85; font-size: .97rem; }
.faq-modal-body ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.faq-modal-body li { position: relative; padding-left: 1.7rem; color: var(--ink2); font-size: .93rem; line-height: 1.5; }
.faq-modal-body li::before { content:''; position: absolute; left: .15rem; top: .42em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-fresh); box-shadow: 0 0 0 4px rgba(63,168,191,0.10); }
.faq-note { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid rgba(26,122,144,0.14); font-size: .87rem; font-style: italic; color: var(--gray); line-height: 1.7; }

/* bottom CTA */
.faq-cta { text-align: center; margin: 1rem auto 0; max-width: 560px; }
.faq-cta p { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; color: var(--ink2); margin-bottom: 1.1rem; }
.btn-cc { font-family: 'Inter', sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .85rem 1.9rem; border-radius: 999px; cursor: pointer; position: relative; overflow: hidden; text-decoration: none; display: inline-block;
  transition: transform .15s, box-shadow .15s, filter .15s; }
.btn-cc::before { content:''; position:absolute; inset:0 0 52% 0; background: var(--sheen); border-radius: inherit; pointer-events:none; }
.btn-cc:hover { transform: translateY(-2px); }
.btn-solid { background: linear-gradient(160deg, #143842, #0C2A33); color: var(--white); border: none; box-shadow: 0 8px 20px -8px rgba(12,42,51,0.7), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-solid:hover { filter: brightness(1.12); box-shadow: 0 14px 26px -10px rgba(12,42,51,0.8); }

/* footer */
footer { background: linear-gradient(180deg, #06343F, #052730); padding: 3rem 3rem 1.6rem; position: relative; margin-top: 2rem; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; border-top: 3px solid transparent; border-image: var(--grad-fresh) 1; padding-top: 2rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-logo-full { height: 116px; width: auto; display: block; }
.footer-tagline { font-size: .82rem; font-style: italic; color: rgba(255,255,255,0.5); }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-family: 'DM Mono', monospace; font-size: .6rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mint2); opacity: .8; margin-bottom: .8rem; }
.footer-col a, .footer-col p { display: block; font-size: .79rem; font-weight: 500; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: .42rem; transition: color .15s; }
.footer-col a:hover { color: var(--mint2); }
.social-links { display: flex; gap: .5rem; margin-top: 1rem; }
.social-link { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: .8rem; text-decoration: none; color: rgba(255,255,255,0.65); font-family: 'DM Mono', monospace; transition: background .15s, color .15s, transform .15s; }
.social-link:hover { background: rgba(138,212,184,0.22); color: var(--mint2); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-copy { font-family: 'DM Mono', monospace; font-size: .6rem; color: rgba(255,255,255,0.28); }
.footer-faith { font-family: 'DM Mono', monospace; font-size: .6rem; color: rgba(255,255,255,0.25); letter-spacing: .08em; text-transform: uppercase; }

/* click bubbles + cursor trail + scroll bar */
.click-bubble { position: fixed; border-radius: 50%; pointer-events: none; z-index: 9999; border: 1.5px solid rgba(63,168,191,0.6);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), rgba(124,196,212,0.3) 50%, rgba(63,168,191,0.1) 100%);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.6), 0 2px 8px rgba(63,168,191,0.25);
  animation: clickBubbleFloat var(--duration) ease-out forwards; transform: translate(-50%,-50%) scale(0); }
@keyframes clickBubbleFloat { 0% { transform: translate(-50%,-50%) scale(0); opacity:1; }
  15% { transform: translate(var(--tx), var(--ty1)) scale(1); opacity:.9; } 100% { transform: translate(var(--tx), var(--ty2)) scale(0.4); opacity:0; } }
.fx-trail { position: fixed; width: 13px; height: 13px; pointer-events: none; z-index: 9998;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(124,196,212,0.55) 45%, transparent 70%);
  filter: drop-shadow(0 0 4px rgba(124,196,212,0.85)); transform: translate(-50%,-50%); animation: fxTrail .72s ease-out forwards; }
.fx-trail::before, .fx-trail::after { content:''; position:absolute; inset:0; background: linear-gradient(#fff,#fff) center/100% 13% no-repeat, linear-gradient(#fff,#fff) center/13% 100% no-repeat; }
.fx-trail::after { transform: rotate(45deg); opacity:.55; }
@keyframes fxTrail { 0% { opacity:0; transform: translate(-50%,-50%) scale(.4) rotate(0); } 20% { opacity:1; } 100% { opacity:0; transform: translate(-50%,-50%) scale(1.1) rotate(60deg); } }
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 9999; pointer-events: none; }
.fx-progress-fill { position: relative; height: 100%; width: 0; background: linear-gradient(90deg, var(--aqua3), var(--mint2) 55%, var(--yellow)); box-shadow: 0 0 10px rgba(63,168,191,0.7); transition: width .1s linear; }
.fx-progress-fill::after { content:''; position:absolute; right:-3px; top:50%; width:8px; height:8px; border-radius:50%; transform: translateY(-50%); background: radial-gradient(circle at 35% 30%, #fff, var(--mint2)); box-shadow: 0 0 8px var(--mint2); }

@media (max-width: 960px) {
  nav { padding: 0 1.5rem; }
  .nav-links, #nav-cta-desktop { display: none; }
  .nav-toggle { display: flex; }
  nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(240,251,255,0.92)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.7); padding: 1.5rem; gap: 1.2rem; z-index: 300; box-shadow: 0 20px 40px -20px rgba(26,122,144,0.6); }
  .nav-dd-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding: .5rem 0 0 .9rem; margin-top: .5rem;
    background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
    border: none; border-left: 2px solid var(--aqua2); border-radius: 0; box-shadow: none; }
  .nav-dd-menu li { padding: .28rem 0; }
  .dd-caret { display: none; }
  footer { padding: 2.5rem 1.5rem 1.6rem; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

