/* Bootstrap sets html{font-size:10px}; this sheet is written against a
   16px root (see PROJECT-CONTEXT.md, "Traps"). */
html { font-size: 16px; }

/* ============================================================
   FAQ — questions come from faq.json, rendered by faq.php.
   Layout follows the client's skeleton: heading and a "still have a
   question?" card on the left, the accordion on the right. Colours,
   type and spacing are the site's own (Our Team / Careers pages).
   ============================================================ */
:root {
  --faq-navy:   #0f2557;
  --faq-blue:   #1e4a99;
  --faq-line:   #475dd2;   /* NCER hover-outline blue */
  --faq-gold:   #f0a500;
  --faq-accent: #e8440a;
  --faq-light:  #f4f6fb;
  --faq-border: #e2e8f0;
  --faq-text:   #505a68;
}

.faq-hero,
.faq-section { font-family: var(--ncer-font); }

/* HERO — the shared landing-section treatment: centred, 62vh. */
.faq-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 4rem;
  text-align: center;
}
.faq-hero-bg {
  position: absolute; inset: 0;
  background: url(../images/heading-bg.jpg) center 36% / cover no-repeat;
}
.faq-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,20,48,.6) 0%, rgba(9,26,64,.78) 60%, rgba(9,20,48,.94) 100%);
}
.faq-hero .container { position: relative; z-index: 1; }
.faq-breadcrumb {
  list-style: none; display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin: 0 0 1.4rem; padding: 0;
}
.faq-breadcrumb li { font-size: .8rem; color: rgba(255,255,255,.55); }
.faq-breadcrumb li:first-child::after { content: '/'; margin-left: .5rem; color: rgba(255,255,255,.35); }
.faq-breadcrumb li:last-child { color: rgba(255,255,255,.9); font-weight: 600; }
.faq-breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.faq-breadcrumb a:hover { color: #fff; }
.faq-hero-eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faq-gold); margin-bottom: 1rem;
}
.faq-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.1;
  margin: 0 0 1rem;
}
.faq-hero-sub {
  max-width: 640px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,.78);
  text-align: center;
}

/* CONTENT */
.faq-section { background: #fff; padding: 5.5rem 0; }
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "head list"
    "cta  list";
  grid-template-rows: auto 1fr;
  column-gap: 4rem;
  row-gap: 2.5rem;
}
.faq-head { grid-area: head; }
.faq-list { grid-area: list; }
.faq-cta  { grid-area: cta; align-self: end; }

.faq-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--faq-light); border: 1px solid var(--faq-border);
  color: var(--faq-blue); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 8px; margin-bottom: 1.25rem;
}
.faq-pill i { color: var(--faq-accent); font-size: .8rem; }
.faq-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700; color: var(--faq-navy);
  letter-spacing: -.03em; line-height: 1.08;
  margin: 0 0 1.1rem;
}
.faq-head p {
  font-size: 1.02rem; line-height: 1.85; color: var(--faq-text);
  margin: 0; text-align: left;
}

/* "Still have a question?" card */
.faq-cta {
  position: relative;
  background: linear-gradient(135deg, #eef1fb 0%, var(--faq-light) 55%, #fff 100%);
  border: 1px solid var(--faq-border);
  border-radius: 16px;
  padding: 2.25rem 2rem;
}
.faq-cta h3 {
  font-size: 1.6rem; font-weight: 700; color: var(--faq-navy);
  letter-spacing: -.01em; margin: 0 0 .7rem;
}
.faq-cta p { font-size: .95rem; line-height: 1.75; color: var(--faq-text); margin: 0 0 1.6rem; text-align: left; }
.faq-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.faq-cta .main-btn { margin: 0; }
.faq-cta-phone { font-size: .92rem; font-weight: 600; color: var(--faq-navy); text-decoration: none; }
.faq-cta-phone i { color: var(--faq-accent); margin-right: .4rem; }
.faq-cta-phone:hover { color: var(--faq-line); }

/* "Still have a question?" form — fields styled like the Our Team login. */
.faq-cta [hidden] { display: none !important; }
.faq-ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.faq-ask-field { margin-bottom: 1.1rem; }
.faq-ask-field label {
  display: block;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #6b7280; margin-bottom: .4rem;
}
.faq-ask-field input,
.faq-ask-field textarea {
  display: block; width: 100%;
  padding: .75rem .95rem;
  border: 1.5px solid var(--faq-border); border-radius: 10px;
  background: #fff;
  font-family: var(--ncer-font); font-size: .95rem; line-height: 1.5; color: var(--faq-navy);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.faq-ask-field textarea { resize: vertical; min-height: 110px; }
.faq-ask-field input:focus,
.faq-ask-field textarea:focus { border-color: var(--faq-line); box-shadow: 0 0 0 3px rgba(71,93,210,.14); }
.faq-ask-field.has-error input,
.faq-ask-field.has-error textarea { border-color: #c0392b; }
.faq-ask-error { display: block; font-size: .8rem; line-height: 1.4; color: #c0392b; margin-top: .35rem; }
.faq-ask-error:empty { display: none; }
.faq-ask-error-form {
  background: #fdecea; border-radius: 8px;
  padding: .7rem .9rem; margin: 0 0 1.1rem;
}
.faq-ask-submit:disabled { opacity: .6; cursor: wait; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.faq-ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.faq-ask-success { text-align: left; }
.faq-ask-success-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--faq-line); color: #fff; font-size: 1.1rem;
  margin-bottom: 1rem;
}
.faq-cta .faq-ask-success-text { color: var(--faq-navy); font-size: 1rem; margin-bottom: 1.1rem; }
.faq-ask-again {
  background: none; border: none; padding: 0;
  font-family: var(--ncer-font); font-size: .92rem; font-weight: 600;
  color: var(--faq-line); text-decoration: underline; cursor: pointer;
}
.faq-ask-again:hover { color: var(--faq-navy); }

/* Accordion — native <details name="…">, so only one answer is open at a
   time and every answer is still reachable without JavaScript. */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  position: relative;
  background: var(--faq-light);
  border: 1px solid var(--faq-border);
  border-radius: 14px;
  transition: background .25s ease;
}
.faq-item:has(details[open]) { background: #fff; box-shadow: 0 10px 28px rgba(15,37,87,.08); }

/* Hover outline — the NCER blue border sweep used on cards across the
   site. It ignores the pointer so it never blocks the toggle. */
.faq-item::before,
.faq-item::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .35s;
}
.faq-item::before { border-top: 2px solid var(--faq-line); border-bottom: 2px solid var(--faq-line); transform: scale(0, 1); }
.faq-item::after  { border-left: 2px solid var(--faq-line); border-right: 2px solid var(--faq-line); transform: scale(1, 0); }
.faq-item:hover::before,
.faq-item:hover::after { opacity: 1; transform: scale(1); }

.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  cursor: pointer;
  font-size: 1.08rem; font-weight: 600; line-height: 1.45; color: var(--faq-navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary:focus-visible { outline: 2px solid var(--faq-line); outline-offset: 3px; border-radius: 14px; }

.faq-toggle {
  flex: 0 0 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--faq-border);
  border-radius: 10px;
  color: var(--faq-line);
  font-size: .8rem;
  transition: transform .3s ease, background .25s ease, color .25s ease;
}
.faq-item details[open] .faq-toggle { transform: rotate(180deg); background: var(--faq-line); color: #fff; border-color: var(--faq-line); }

.faq-answer { padding: 0 1.5rem 1.4rem; }
.faq-answer p {
  font-size: .97rem; line-height: 1.8; color: var(--faq-text);
  margin: 0 0 .8rem; text-align: left;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-item details[open] .faq-answer { animation: faq-reveal .3s ease; }
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.faq-empty {
  background: var(--faq-light); border: 1px dashed var(--faq-border); border-radius: 14px;
  padding: 2rem 1.5rem; color: var(--faq-text); font-size: .97rem; text-align: left;
}

@media (max-width: 991px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "list" "cta";
    grid-template-rows: auto;
    row-gap: 2.5rem;
  }
}
@media (max-width: 576px) {
  .faq-section { padding: 4rem 0; }
  .faq-item summary { padding: 1.15rem 1.15rem; font-size: 1rem; }
  .faq-answer { padding: 0 1.15rem 1.2rem; }
  .faq-cta { padding: 1.75rem 1.4rem; }
  .faq-ask-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item details[open] .faq-answer { animation: none; }
  .faq-toggle, .faq-item::before, .faq-item::after { transition: none; }
}
