/* =========================================================
   FAQ PAGE — Page-specific styles only.
   Header/nav and FOOTER come from styles.css so everything matches.
   ========================================================= */

/* Fonts (kept here so this file is standalone-safe) */
@import url('https://fonts.googleapis.com/css2?family=Bubblegum+Sans&family=Open+Sans&display=swap');

/* ---------- Root / base ---------- */
:root{
  --header-h: 64px;                 /* fixed header height used across pages */
  --ink: #ffffff;
  --ink-soft: #e8edff;
  --brand-header: rgba(102,77,112,.85);
  --bg-root: #0e1320;
  --accent: #FF7A3A;
}

*{box-sizing:border-box;margin:0;padding:0}

html{
  min-height:100%;
  overflow-y:scroll;
  overflow-x:hidden;
  scrollbar-gutter:stable;
  background-color:var(--bg-root);
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body.faq-page{
  min-height:100%;
  font-family:'Open Sans',sans-serif;
  color:var(--ink);
  line-height:1.65;
  background: var(--bg-root) url('images/Collages.jpg') center/cover fixed no-repeat;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* iOS fixed-bg fallback */
@supports (-webkit-touch-callout:none){
  body.faq-page{ background-attachment:scroll !important; }
  body.faq-page::before{
    content:""; position:fixed; inset:0; z-index:-1;
    background: var(--bg-root) url('images/Collages.jpg') center/cover no-repeat;
  }
}

/* No header overrides here — we rely on styles.css' slideDown animation */

/* ---------- Hero ---------- */
.hero{
  min-height: 48vh;
  display:flex; align-items:center; justify-content:center;
  padding: calc(var(--header-h) + 28px) 1.25rem 2rem;
  text-align:center;
}

.hero-inner{ width:min(1100px,92vw); }

.title{
  font-family:'Bubblegum Sans',cursive;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height:1.1;
  text-shadow:0 5px 5px rgba(7,136,168,.95);
}

.subtitle{
  margin-top:.6rem;
  color: var(--ink-soft);
  font-weight:700;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  text-shadow:0 3px 3px rgba(0,0,96,.8);
}

/* ---------- FAQ controls + list ---------- */
.faq-wrap{
  width:min(1100px,92vw);
  margin: 0 auto 4rem;
  padding: 0 0 2rem;
}

.faq-controls{
  display:flex; gap:.75rem; justify-content:flex-end; margin:.5rem 0 1rem;
}

.pill{
  appearance:none; border:0; cursor:pointer;
  padding:.6rem 1rem; border-radius:9999px;
  font-weight:800; color:#fff;
  background:linear-gradient(135deg,#FF9E3D 0%,#FF6B2D 100%);
  box-shadow:0 6px 14px rgba(0,0,0,.18);
  transition:transform .12s, filter .18s, box-shadow .18s;
}
.pill:hover{ transform:translateY(-1px); filter:brightness(1.08); box-shadow:0 10px 20px rgba(0,0,0,.22); }
.pill:focus-visible{
  outline: 3px solid rgba(127,63,191,.6);
  outline-offset: 3px;
}

.faq-list{
  display:grid;
  gap:.8rem;
}

.faq-item{
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  overflow: clip;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Accordion trigger */
.faq-q{
  width:100%;
  text-align:left;
  background: transparent;
  color: #fff;
  border:0;
  padding: 1rem 1.1rem 1rem 1rem;
  display:flex; gap:.8rem; align-items:center; justify-content:space-between;
  font-weight:900;
  font-size: clamp(1rem,2.1vw,1.15rem);
  cursor:pointer;
}
.faq-q:focus-visible{
  outline: 3px solid rgba(127,63,191,.6);
  outline-offset: 3px;
}
.faq-q .q-text{
  font-family:'Open Sans',sans-serif;
  text-shadow:0 2px 3px rgba(13,29,112,.9);
  padding-right: .75rem;
}

/* Chevron icon */
.faq-q .chev{
  flex:0 0 auto;
  width:22px; height:22px;
  transition: transform .2s ease;
  stroke:#fff;
}
.faq-q[aria-expanded="true"] .chev{ transform: rotate(180deg); }

/* Answer body */
.faq-a{
  padding: 0 1.1rem 1rem 1.1rem;
  color:#ebf1ff;
  line-height:1.8;
  font-size: 1rem;
  text-shadow:0 3px 8px rgba(99, 0, 157, 0.685);
}
.faq-a p + p{ margin-top:.7rem; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 900px){
  .faq-controls{ justify-content:center; }
  .title{ font-size: clamp(1.9rem, 7vw, 3rem); }
  .subtitle{ font-size: clamp(1rem, 2.8vw, 1.15rem); }
}

@media (max-width: 520px){
  .faq-wrap{ margin-bottom: 3rem; }
  .pill{ padding:.55rem .9rem; font-size:.95rem; }
}
