/* FAQ page (/faq/). Brand colours come from the tokens in site.css; the soft tints below
   match the artwork. Unlike the other pages, the layout switches at 760px, not 768px. */
.faq-page { background: var(--white); }

.faq-container { width: min(calc(100% - 40px), 1100px); margin-inline: auto; }

.faq-hero { position: relative; min-height: 620px; overflow: hidden; background: #f7fbff; }
.faq-hero-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.faq-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.97) 38%, rgba(255,255,255,.66) 57%, rgba(255,255,255,.06) 82%); }
.faq-hero-inner { position: relative; z-index: 1; min-height: 620px; padding-block: 38px 66px; }

.faq-breadcrumbs { margin-bottom: 56px; }

.faq-hero-copy { width: min(57%, 640px); }
.faq-hero-copy h1 { margin: 0; color: var(--brand-navy); font-family: var(--font-serif); font-size: clamp(3.5rem, 5.2vw, 4.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -.055em; }
.faq-hero-lead { max-width: 610px; margin: 24px 0 0; color: var(--text-body); font-size: 1.02rem; line-height: 2; }
.faq-hero-note { margin: 12px 0 0; color: var(--muted); font-size: 1rem; }

.faq-jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.faq-jump-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 15px; border: 1px solid #bfd5f2; border-radius: 999px; color: #173f78; background: rgba(255,255,255,.9); font-size: .875rem; font-weight: 800; box-shadow: 0 6px 18px rgba(39,94,164,.05); transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.faq-jump-links a::after { content: "↓"; content: "↓" / ""; margin-left: 8px; color: var(--brand-blue); }
.faq-jump-links a:hover { color: var(--white); border-color: var(--brand-blue); background: var(--brand-blue); transform: translateY(-2px); }
.faq-jump-links a:hover::after { color: var(--white); }

.faq-categories { padding: 104px 0 112px; background: var(--white); }

.faq-section-heading { max-width: 760px; margin-inline: auto; text-align: center; }
.faq-section-heading h2 { margin: 0; color: var(--brand-navy); font-family: var(--font-serif); font-size: clamp(2.45rem, 4vw, 3.45rem); line-height: 1.35; letter-spacing: -.04em; }
.faq-section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); }

.faq-category-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 54px; }
.faq-category-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 18px 20px; width: calc((100% - 36px) / 3); min-height: 220px; padding: 28px 27px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 15px 38px rgba(26,70,126,.07); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.faq-category-card:hover { border-color: #9fc3f0; box-shadow: 0 20px 44px rgba(26,70,126,.12); transform: translateY(-4px); }
.faq-category-card img { width: 74px; height: 74px; object-fit: contain; }
.faq-category-card h3 { margin: 4px 0 9px; color: var(--brand-navy); font-size: 1.08rem; line-height: 1.5; }
.faq-category-card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.faq-category-card > span { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #e9f0f8; color: var(--brand-blue); font-size: .875rem; font-weight: 900; letter-spacing: .15em; }

.faq-content { position: relative; overflow: hidden; padding: 116px 0 122px; background: var(--pale-blue-2); }
.faq-content-background { position: absolute; inset: 0; background-image: linear-gradient(rgba(247,250,255,.72), rgba(247,250,255,.72)), url('/assets/images/asset_faq_soft_office_background.webp'); background-position: center center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; }

.faq-groups { position: relative; z-index: 1; }

.faq-group + .faq-group { margin-top: 104px; padding-top: 104px; border-top: 1px solid rgba(159,190,226,.5); }
.faq-group-heading { display: grid; grid-template-columns: 62px 92px minmax(0, 1fr); align-items: center; gap: 22px; margin-bottom: 34px; }
.faq-group-number { align-self: stretch; display: flex; align-items: center; justify-content: center; margin: 0; border-right: 1px solid #bcd5f2; color: var(--brand-blue); font-size: 1.45rem; font-weight: 900; }
.faq-group-heading > img { width: 92px; height: 92px; object-fit: contain; }
.faq-group-heading h2 { margin: 0; color: var(--brand-navy); font-family: var(--font-serif); font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.4; letter-spacing: -.035em; }

.faq-accordion { display: grid; gap: 12px; }

/* No overflow: hidden here: it would clip the focus ring drawn outside the question.
   faq.js clips the box only while the height animates. */
.faq-page .faq-accordion details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 9px 28px rgba(27,67,119,.045); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-page .faq-accordion details:hover, .faq-page .faq-accordion details[open] { border-color: #aeccee; box-shadow: 0 12px 30px rgba(27,67,119,.08); }
.faq-page .faq-accordion summary { display: grid; grid-template-columns: 38px minmax(0, 1fr) 34px; align-items: center; gap: 14px; min-height: 82px; padding: 18px 22px; color: var(--brand-navy); font-size: 1rem; font-weight: 800; line-height: 1.65; }
.faq-page .faq-accordion summary::after { content: none; }

.faq-q, .faq-a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: .78rem; font-weight: 900; }
.faq-q { color: var(--white); background: var(--brand-blue); }

.faq-toggle { position: relative; width: 32px; height: 32px; border: 1px solid #c5d9f0; border-radius: 50%; transition: border-color .2s ease, background .2s ease, transform .25s ease; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--brand-blue); }
.faq-toggle::before { transform: translate(-50%, -50%); }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s ease; }

.faq-page .faq-accordion details[open] .faq-toggle { border-color: var(--brand-blue); background: var(--brand-blue); }
.faq-page .faq-accordion details[open] .faq-toggle::before, .faq-page .faq-accordion details[open] .faq-toggle::after { background: var(--white); }
.faq-page .faq-accordion details[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-answer { overflow: hidden; }
.faq-answer-inner { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; margin: 0 22px; padding: 22px 0 25px; border-top: 1px solid #e7eef7; }

.faq-a { color: var(--brand-blue); background: var(--pale-blue); }

.faq-answer p { margin: 3px 0 0; color: var(--text-body); font-size: 1rem; line-height: 1.9; }

.faq-contact { padding: 104px 0 112px; background: var(--white); }
.faq-contact-card { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 34px; min-height: 300px; padding: 44px 52px; overflow: hidden; border: 1px solid #cbdff5; border-radius: 24px; background: linear-gradient(120deg, #f8fbff 0%, #edf5ff 64%, #e4effd 100%); box-shadow: 0 20px 50px rgba(28,75,134,.09); }
.faq-contact-card > img { width: 132px; height: 132px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(22,95,190,.12)); }
.faq-contact-copy h2 { margin: 0; color: var(--brand-navy); font-family: var(--font-serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.4; letter-spacing: -.04em; }
.faq-contact-copy > p:last-child { margin: 15px 0 0; color: var(--muted); }
.faq-contact-actions { display: grid; gap: 10px; min-width: 178px; }

.faq-button-primary { color: var(--white); background: var(--brand-blue); box-shadow: 0 12px 26px rgba(18,101,232,.2); }
.faq-button-primary:hover { background: var(--brand-blue-dark); }
.faq-button-secondary { color: var(--brand-blue-dark); border-color: #9abdea; background: rgba(255,255,255,.9); }

@media (max-width: 1040px) {
  .faq-hero-copy { width: min(66%, 620px); }
  .faq-category-card { width: calc((100% - 18px) / 2); }
  .faq-contact-card { grid-template-columns: 108px minmax(0, 1fr); }
  .faq-contact-card > img { width: 108px; height: 108px; }
  .faq-contact-actions { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .faq-hero { min-height: auto; }
  .faq-hero-background { object-position: 68% center; }
  .faq-hero::after { background: linear-gradient(90deg, rgba(255,255,255,.99), rgba(255,255,255,.9)); }
  .faq-hero-inner { min-height: 0; padding-block: 26px 54px; }
  .faq-breadcrumbs { margin-bottom: 38px; }
  .faq-hero-copy { width: 100%; }
  .faq-hero-copy h1 { font-size: clamp(2.7rem, 13vw, 3.8rem); }
  .faq-hero-lead { font-size: 1rem; line-height: 1.9; }
  .faq-hero-note { line-height: 1.7; }
  .faq-jump-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .faq-jump-links a { justify-content: space-between; padding-inline: 13px; }
  .faq-categories { padding: 74px 0 78px; }
  .faq-section-heading h2 { font-size: 2.25rem; }
  .faq-category-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 38px; }
  .faq-category-card { width: 100%; min-height: 0; padding: 22px; grid-template-columns: 64px minmax(0, 1fr); }
  .faq-category-card img { width: 64px; height: 64px; }
  .faq-category-card h3 { font-size: 1.05rem; }
  .faq-content { padding: 78px 0 82px; }
  .faq-content-background { background-position: 62% center; }
  .faq-group + .faq-group { margin-top: 70px; padding-top: 70px; }
  .faq-group-heading { grid-template-columns: 40px 66px minmax(0, 1fr); gap: 13px; margin-bottom: 26px; }
  .faq-group-number { font-size: 1rem; }
  .faq-group-heading > img { width: 66px; height: 66px; }
  .faq-group-heading h2 { font-size: 1.55rem; }
  .faq-page .faq-accordion summary { grid-template-columns: 32px minmax(0, 1fr) 30px; gap: 11px; min-height: 72px; padding: 16px 15px; }
  .faq-q, .faq-a { width: 32px; height: 32px; }
  .faq-toggle { width: 30px; height: 30px; }
  .faq-answer-inner { grid-template-columns: 32px minmax(0, 1fr); gap: 11px; margin-inline: 15px; padding: 18px 0 21px; }
  .faq-answer p { margin-top: 1px; }
  .faq-contact { padding: 74px 0 80px; }
  .faq-contact-card { grid-template-columns: 76px minmax(0, 1fr); gap: 20px 17px; min-height: 0; padding: 28px 22px; }
  .faq-contact-card > img { width: 76px; height: 76px; }
  .faq-contact-copy h2 { font-size: 1.75rem; }
  .faq-contact-copy > p:last-child { font-size: 1rem; }
  .faq-contact-actions { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
}

/* The same 16px gutters as the shared .container below 360px (site.css). */
@media (max-width: 360px) {
  .faq-container { width: calc(100% - 32px); }
}

@media (max-width: 420px) {
  .faq-contact-card { grid-template-columns: minmax(0, 1fr); }
  .faq-jump-links { grid-template-columns: minmax(0, 1fr); }
  .faq-group-heading { grid-template-columns: 36px 58px minmax(0, 1fr); gap: 10px; }
  .faq-group-heading > img { width: 58px; height: 58px; }
  .faq-group-heading h2 { font-size: 1.35rem; }
}
