/* ============================================================
   Galexa Pro — components added by the 2026 restructure
   Extends css/site.css. Same tokens, same visual language:
   deep pine stage, champagne spotlight, Unbounded display.
   ============================================================ */

/* ---------- a11y utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: calc(var(--z-sticky) + 2);
  background: var(--gold);
  color: var(--bg-deep);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { top: 0.7rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- header: grouped nav, language switch, mobile ---------- */
.nav-wrap { display: contents; }

.navgroup { position: relative; }
.navgroup > summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.navgroup > summary::-webkit-details-marker { display: none; }
.navgroup > summary::after {
  content: "";
  width: 0.38em; height: 0.38em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.1em);
  transition: transform 0.2s;
}
.navgroup[open] > summary::after { transform: rotate(225deg) translateY(-0.1em); }
.navgroup > summary:hover { color: var(--gold); }

.navgroup__menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -0.9rem;
  min-width: 15rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
}
.navgroup__menu a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.navgroup__menu a:hover { background: var(--surface-2); color: var(--gold); }
.navgroup__menu a[aria-current="page"] { color: var(--gold); background: var(--surface-2); }

.site-nav a[aria-current="page"] { color: var(--gold); }

.langswitch {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  padding: 0.4rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.langswitch:hover { color: var(--bg-deep); background: var(--gold); border-color: var(--gold); }

.nav-toggle {
  display: none;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-wrap {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem var(--pad) 1.4rem;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
  }
  .nav-wrap[data-open="true"] { display: flex; }
  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    margin: 0;
  }
  .site-nav > a, .navgroup > summary { padding: 0.6rem 0; }
  .navgroup__menu {
    position: static;
    min-width: 0;
    margin: 0.2rem 0 0.4rem 0.9rem;
    box-shadow: none;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding: 0 0 0 0.75rem;
  }
  .head-actions { margin: 0.6rem 0 0; }
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.4rem var(--pad) 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.45; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 0;
}
.page-hero--tight { padding-bottom: 0; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 30ch;
}
.page-lead {
  margin-top: 1.1rem;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--ink-soft);
}
.page-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.hero--home .hero-title { max-width: 26ch; }

/* ---------- chips ---------- */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0;
}
.chips li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.33rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in oklab, var(--surface) 55%, transparent);
}
.chips li em { font-style: normal; opacity: 0.65; }

/* ---------- trust bar ---------- */
.trustbar {
  max-width: var(--wrap);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 0 var(--pad);
}
.trustbar ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem 1rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trustbar b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold);
  line-height: 1.1;
}
.trustbar span { display: block; margin-top: 0.4rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- pillars (home) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.pillar {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  border-top: 3px solid var(--gold);
}
.pillar--voice { border-top-color: var(--leaf); }
.pillar--audio { border-top-color: var(--gold-soft); }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.pillar > p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.97rem; }
.pillar__list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
}
.pillar__list a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.94rem;
  border-bottom: 1px solid transparent;
}
.pillar__list a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.pillar__go {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--gold);
}
.pillar__go span { display: inline-block; transition: transform 0.25s; }
.pillar__go:hover span { transform: translateX(5px); }

/* ---------- card grids ---------- */
.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.cardgrid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--gold); }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card p + p { margin-top: 0.7rem; }
.card__go {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
}
.card__go span { display: inline-block; transition: transform 0.25s; }
.card__go:hover span { transform: translateX(5px); }

/* ---------- two-column with sidebar ---------- */
.twocol { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.twocol > div > h2 { margin-bottom: 0.9rem; }
.twocol p { color: var(--ink-soft); }
.twocol p + p { margin-top: 0.8rem; }
.twocol .hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.twocol--portrait { grid-template-columns: 1.5fr 1fr; }

.callout {
  padding: 1.5rem 1.45rem;
  background: color-mix(in oklab, var(--gold) 9%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--gold) 30%, var(--line));
  border-radius: 14px;
}
.callout h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--gold-soft);
}
.callout p { font-size: 0.94rem; color: var(--ink-soft); }
.callout p + p { margin-top: 0.7rem; }
.callout--iso { text-align: center; }
.callout--iso img { max-width: 300px; width: 100%; height: auto; margin: 0 auto 1rem; border-radius: 8px; }

/* ---------- lists ---------- */
.ticklist { list-style: none; display: grid; gap: 0.7rem; padding: 0; }
.ticklist--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 0.7rem 2rem; }
.ticklist--tight { gap: 0.45rem; }
.ticklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.ticklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.48em;
  width: 0.5rem; height: 0.28rem;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

.numlist { list-style: none; display: grid; gap: 1.1rem; padding: 0; counter-reset: n; }
.numlist--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; }
.numlist li { counter-increment: n; color: var(--ink-soft); font-size: 0.97rem; }
.numlist li::before {
  content: counter(n);
  display: inline-grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  margin-right: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  border: 1px solid color-mix(in oklab, var(--gold) 45%, transparent);
  border-radius: 999px;
  vertical-align: 0.1em;
}
.numlist--3 li::before { display: grid; margin: 0 0 0.7rem; }
.numlist strong { color: var(--ink); }

.note {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.9rem 1.1rem;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border-left: 2px solid var(--line);
  border-radius: 0 8px 8px 0;
}

/* ---------- bands ---------- */
.section-alt {
  max-width: none;
  width: 100%;
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
  margin-top: clamp(4rem, 9vw, 6.5rem);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.section-alt > * { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.proof-band { }
.proof-body { max-width: 54ch; color: var(--ink-soft); }
.proof-band .hero-cta { display: flex; gap: 0.8rem; margin-top: 1.6rem; }

.cta-band {
  text-align: center;
  margin-top: clamp(4rem, 9vw, 6.5rem);
  padding-block: clamp(3.5rem, 8vw, 5rem);
}
.cta-band h2 { margin-inline: auto; }
.cta-band p { max-width: 46ch; margin: 0.8rem auto 0; color: var(--ink-soft); }
.cta-band .hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.8rem; }

/* ---------- partners ---------- */
.partners-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--ink-soft) 70%, transparent);
  text-align: center;
  margin-bottom: 1.8rem;
}
.partner-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  gap: 1.8rem 2.2rem;
  padding: 0;
}
.partner-grid img {
  height: 40px;
  width: 100%;
  max-width: 140px;
  object-fit: contain;
  margin-inline: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.25s;
}
.partner-grid li:hover img { opacity: 1; }

/* ---------- portraits (about) ---------- */
.portrait-stack { position: relative; display: grid; gap: 1rem; }
.portrait-stack .portrait { margin: 0; }
.portrait-stack img { width: 100%; height: auto; border-radius: 14px; display: block; }
.portrait-stack .portrait-2 { width: 68%; margin-left: auto; }

/* ---------- forms ---------- */
.section--form { padding-top: clamp(2rem, 5vw, 3rem); }
.quoteform fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; }
.quoteform legend {
  padding: 0;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}
.radiogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.5rem; }
.radiogrid label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.radiogrid label:hover { border-color: var(--gold); color: var(--ink); }
.radiogrid input { accent-color: var(--gold); }
.radiogrid label:has(input:checked) {
  border-color: var(--gold);
  background: color-mix(in oklab, var(--gold) 12%, var(--surface));
  color: var(--ink);
}
.field .req { color: var(--gold); }

/* ---------- footer ---------- */
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.2rem;
  max-width: var(--wrap);
  margin-inline: auto;
  text-align: left;
  padding-bottom: 2.2rem;
}
.site-foot h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.site-foot ul { list-style: none; display: grid; gap: 0.45rem; padding: 0; }
.site-foot ul a, .foot-contact a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-foot ul a:hover, .foot-contact a:hover { color: var(--gold); }
.foot-contact { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.9; }

@media (max-width: 860px) {
  .twocol, .twocol--portrait { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .portrait-stack { max-width: 22rem; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
