/* ==========================================================================
   GloryVolt — info pages: About, Contact, FAQ and the four policy pages.
   Uses tokens from base.css only. --sticky-top is set by js/pages.js from the
   real height of the sticky header (fallback below).
   ========================================================================== */

:root { --sticky-top: 152px; }

/* ---------- shared bits ---------- */
.lead { font-size: 1.08rem; line-height: 1.7; color: var(--text); max-width: 62ch; }
.prose p, .prose li { max-width: 72ch; }
.prose a, .policy-body a, .faq-a a, .inline-link {
  color: var(--gold-ink); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose a:hover, .policy-body a:hover, .faq-a a:hover, .inline-link:hover { color: var(--ink); }
.page-hero .wrap { position: relative; z-index: 1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 0.88rem; color: var(--on-dark); }
.hero-meta span, .hero-meta a { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta a:hover { color: var(--gold-on-dark); }
.hero-meta svg { width: 17px; height: 17px; color: var(--gold); flex: none; }

.check-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-3); font-weight: 600; }
.check-list .tick { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--tint); border: 1px solid var(--gold-light); color: var(--gold-ink); display: grid; place-items: center; margin-top: -1px; }
.check-list .tick svg { width: 14px; height: 14px; }

.ico-chip { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--tint); color: var(--gold-ink); display: grid; place-items: center; }
.ico-chip svg { width: 22px; height: 22px; }

/* closing call-to-action band */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px 32px; padding: clamp(28px, 5vw, 56px);
  background: var(--ink); color: var(--on-dark); border-radius: calc(var(--radius) + 6px);
}
.cta-band::after { content: ""; position: absolute; right: -140px; bottom: -180px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 204, 26, 0.28), transparent 65%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band h2 em { font-style: normal; color: var(--gold-on-dark); }
.cta-band p { margin: 0; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   About
   ========================================================================== */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-intro h2 em {
  font-style: normal;
  color: var(--ink);
  padding-inline: 0.06em;
  background: linear-gradient(180deg, transparent 56%, var(--gold) 56%, var(--gold) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.about-art { position: relative; margin: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, var(--ink-3) 0%, var(--ink) 62%); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; display: grid; place-items: center; }
/* same footage as the home hero, in black and white like the hero video */
.about-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  filter: grayscale(1) brightness(0.8) contrast(1.15);
}
.about-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 204, 26, 0.25); pointer-events: none; }

.cat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 0 0 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.25s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.cat-tile:hover { border-color: var(--gold-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-tile .ico-chip { margin: 18px 18px 8px; }
.cat-tile-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.cat-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: var(--fo, 50% 50%);
  transform: scale(var(--fz, 1));
  transition: transform 0.6s var(--ease);
}
.cat-tile:hover .cat-tile-media img { transform: scale(calc(var(--fz, 1) * 1.08)); }
.cat-tile > strong { color: var(--ink); font-size: 0.98rem; line-height: 1.3; padding-inline: 18px; transition: color 0.25s; }
.cat-tile:hover > strong { color: var(--gold-ink); }
.cat-tile > span:last-child { color: var(--muted); font-size: 0.84rem; line-height: 1.45; padding-inline: 18px; }
.cat-all { margin-top: 22px; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar h3 { margin: 6px 0 0; font-size: 1.2rem; }
.pillar p { margin: 0; }
.pillar .link-arrow { margin-top: auto; padding-top: 8px; }

.perk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.perk-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.perk-card h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.perk-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.perk-card.has-photo { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; background: var(--surface); transition: border-color 0.3s, box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.perk-card.has-photo:hover { border-color: var(--gold-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.perk-card.has-photo > div { padding: 16px 20px 20px; }
.perk-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.perk-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.perk-card.has-photo:hover .perk-media img { transform: scale(1.05); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h2 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 2px 0 4px; }
.contact-card .big { display: inline-block; font-size: 1.12rem; font-weight: 800; color: var(--ink); line-height: 1.3; word-break: break-word; }
a.big:hover { color: var(--gold-ink); }
.contact-card p { margin: 4px 0 0; font-size: 0.88rem; color: var(--muted); }
.quick-links { padding: 20px; background: var(--tint); border: 1px solid var(--gold-light); border-radius: var(--radius); }
.quick-links h2 { font-size: 1rem; margin-bottom: 10px; }
.quick-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.quick-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-weight: 700; color: var(--ink-3); border-bottom: 1px solid rgba(255, 204, 26, 0.25); }
.quick-links li:last-child a { border-bottom: 0; }
.quick-links a:hover { color: var(--gold-ink); }
.quick-links a svg { width: 16px; height: 16px; color: var(--gold-ink); flex: none; }

.contact-form h2 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-form .form-intro { color: var(--muted); margin-bottom: 22px; }
.contact-form .form-intro a { color: var(--gold-ink); font-weight: 700; }
.field .opt { font-weight: 500; color: var(--muted); }
.field .req { color: var(--sale); }
.field-error { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--sale); }
.select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--sale); }
.field .hint { display: flex; justify-content: space-between; gap: 12px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.form-result { margin-top: 18px; }
.form-result p { margin: 0 0 8px; }
.form-result p:last-child { margin-bottom: 0; }
.form-result .btn { margin-top: 6px; }

/* ==========================================================================
   Policy + FAQ shared layout: sticky table of contents + content
   ========================================================================== */
.doc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.doc-aside { position: sticky; top: var(--sticky-top); display: grid; gap: 16px; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px 12px; }
.toc-title { margin: 0 8px 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; max-height: calc(100vh - var(--sticky-top) - 190px); overflow-y: auto; overscroll-behavior: contain; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: var(--radius-xs); border-left: 2px solid transparent; font-size: 0.89rem; font-weight: 600; line-height: 1.35; color: var(--text); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; min-width: 1.6em; font-size: 0.75rem; font-weight: 800; color: var(--line-2); padding-top: 1px; transition: color 0.2s; }
.toc a:hover { background: var(--tint); color: var(--gold-ink); }
.toc a[aria-current="true"] { background: var(--tint); color: var(--gold-ink); border-left-color: var(--gold); }
.toc a[aria-current="true"]::before { color: var(--gold-ink); }

.help-card { padding: 18px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius); }
.help-card h2 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.help-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.88rem; }
.help-card li { display: flex; gap: 10px; align-items: flex-start; }
.help-card svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 2px; }
.help-card a:hover { color: var(--gold-on-dark); }
.help-card .btn { margin-top: 14px; }

/* policy document */
.policy-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 48px); min-width: 0; }
.policy-date { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--tint); border: 1px solid var(--gold-light); font-size: 0.84rem; font-weight: 700; color: var(--gold-ink); }
.policy-date svg { width: 16px; height: 16px; }
.policy-body h2 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); margin: 2.2em 0 0.6em; padding-top: 0.2em; scroll-margin-top: calc(var(--sticky-top) + 12px); }
.policy-body > h2:first-of-type { margin-top: 1.4em; }
.policy-body h3 { font-size: 1.02rem; margin: 1.4em 0 0.4em; }
.policy-body p, .policy-body li { max-width: 74ch; }
.policy-body ul, .policy-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.policy-body li { margin-bottom: 0.45em; }
.policy-body li::marker { color: var(--gold-ink); font-weight: 700; }
.policy-body strong { color: var(--ink); }
.policy-intro { font-size: 1.02rem; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 8px; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fact .ico-chip { width: 38px; height: 38px; border-radius: 10px; }
.fact .ico-chip svg { width: 19px; height: 19px; }
.fact strong { display: block; color: var(--ink); font-size: 0.98rem; line-height: 1.3; }
.fact div > span { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.table-wrap { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rate-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 460px; }
.rate-table th, .rate-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rate-table thead th { background: var(--surface-2); color: var(--ink); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.rate-table tbody tr:last-child td, .rate-table tbody tr:last-child th { border-bottom: 0; }
.rate-table tbody th { color: var(--ink); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 58px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--gold-on-dark); font-weight: 800; font-size: 0.85rem; display: grid; place-items: center; }

.doc-foot { margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.faq-tools p { margin: 0; color: var(--muted); }
.faq-tools .btns { display: flex; gap: 8px; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group > h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; scroll-margin-top: calc(var(--sticky-top) + 12px); }
.faq-group > h2 .ico-chip { width: 38px; height: 38px; border-radius: 10px; }
.faq-group > h2 .ico-chip svg { width: 19px; height: 19px; }
.faq-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item { scroll-margin-top: calc(var(--sticky-top) + 12px); }
.faq-item h3 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.faq-q { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; text-align: left; font-weight: 700; line-height: 1.4; color: var(--ink); transition: color 0.2s, background 0.2s; }
.faq-q:hover { color: var(--gold-ink); background: #fcfcfa; }
.faq-q:focus-visible { outline-offset: -3px; }
.faq-q .ico { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--tint); color: var(--gold-ink); display: grid; place-items: center; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s; }
.faq-q .ico svg { width: 16px; height: 16px; }
.faq-q[aria-expanded="true"] .ico { transform: rotate(45deg); background: var(--gold); color: var(--on-gold); }
.faq-a { padding: 0 20px 20px; }
.faq-a p { max-width: 72ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-art { max-width: 720px; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .perk-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-cards .quick-links { grid-column: 1 / -1; }

  .doc-layout { grid-template-columns: 1fr; }
  .doc-aside { position: static; }
  .doc-aside .help-card { display: none; }
  .toc { padding: 14px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; max-height: none; overflow: visible; }
  .toc a { padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg); font-size: 0.84rem; }
  .toc a::before { min-width: 0; }
  .toc a[aria-current="true"] { border-color: var(--gold); }
}
@media (max-width: 760px) {
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { padding: 0 0 14px; }
  .cat-tile > strong, .cat-tile > span:last-child { padding-inline: 14px; }
  .pillars, .perk-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .faq-q { padding: 14px 16px; }
  .faq-a { padding: 0 16px 18px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .form-actions .btn { width: 100%; }
  .toc a { white-space: normal; }
}
@media (max-width: 400px) {
  .cat-tiles { grid-template-columns: 1fr; }
}
