/* ==========================================================================
   Briggs Benson — Design System
   "Glassy" system adapted from the F23 Torque brand: charcoal base,
   translucent navy glass panels over a fixed multi-blob backdrop, gold
   accents. Fonts kept as Montserrat/Inter (site's existing brand pairing)
   rather than Torque's own system-font stack.
   ========================================================================== */

:root {
  --charcoal: #17181c;
  --navy: #01022f;
  --navy-light: #0c0e46;
  --panel-solid: #0c0f2e;      /* solid navy — dropdown option lists, footer */
  --gold: #d8be44;
  --gold-light: #e9d787;
  --gold-dark: #b89b2e;
  --white: #f2f3f7;
  --gray-600: #a2a8b8;         /* muted grey body text (readable on dark) */
  --gray-400: #7b8194;         /* dimmer muted — de-emphasized text */

  --glass-panel: rgba(18, 24, 66, 0.42);
  --glass-border: rgba(216, 190, 68, 0.20);
  --glass-border-white: rgba(255, 255, 255, 0.09);
  --gold-soft: rgba(216, 190, 68, 0.12);
  --field-bg: rgba(0, 0, 0, 0.25);
  --field-border: rgba(255, 255, 255, 0.08);

  --font-head: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(760px 480px at 12% -4%,  rgba(52, 70, 168, 0.55), transparent 56%),
    radial-gradient(700px 460px at 88% 6%,   rgba(216, 190, 68, 0.16), transparent 55%),
    radial-gradient(820px 620px at 70% 108%, rgba(40, 54, 140, 0.42), transparent 55%),
    radial-gradient(600px 500px at 0% 60%,   rgba(30, 42, 120, 0.30), transparent 55%),
    var(--charcoal);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-600); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section {
  padding: 68px 0;
  border-top: 1px solid var(--glass-border);
}
/* No divider directly under the hero — it already has its own visual edge. */
.hero + .section { border-top: none; }

.section--tight { padding: 48px 0; }

/* Kept as class names for zero HTML churn, but under the glass system
   every section sits on the same fixed body backdrop — rhythm now comes
   from the glass cards themselves, not full-bleed section color blocks. */
.section--navy,
.section--paper {
  background: transparent;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: var(--gold);
  color: #161206;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(216, 190, 68, 0.22);
}
.btn--gold:hover { filter: brightness(1.07); }

.btn--outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--glass-border);
}

.btn--navy {
  background: var(--panel-solid);
  color: var(--white);
  border-color: var(--glass-border);
}
.btn--navy:hover { background: var(--navy-light); box-shadow: var(--shadow-sm); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.08);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--glass-border);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
/* Below ~620px, 3-button rows wrap unevenly (2 side-by-side + 1
   stranded alone) depending on label length — stack cleanly instead. */
@media (max-width: 620px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row .btn { text-align: center; }
}

/* ---------- Header / Nav ---------- */

/* backdrop-filter lives on ::before, not on .site-header itself —
   a filter/backdrop-filter on an ancestor creates a new containing
   block for position:fixed descendants, which broke the full-screen
   mobile nav panel (#navLinks) into a tiny box confined to the
   header's own bounds instead of the viewport. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 15, 46, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li { position: relative; }

.nav-links a.nav-link {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a.nav-link:hover,
.nav-links a.nav-link.is-active {
  background: var(--gold-soft);
  color: var(--gold);
}

.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
  translate: 0 -2px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--panel-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}
.dropdown a:hover { background: var(--gold-soft); color: var(--gold); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--panel-solid);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a.nav-link { font-size: 1rem; padding: 14px 16px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(rgba(1, 2, 47, 0.55), rgba(1, 2, 47, 0.82)),
    var(--navy) url("../images/hero-custom.jpg") center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}

.hero--compact { min-height: 52vh; padding: 60px 0; }

.hero-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-avatar {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 620px) {
  .hero-avatar { width: 240px; height: 240px; }
}

.hero-kicker {
  font-family: var(--font-head);
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 4px;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

/* Hero description paragraph — the plain <p> that isn't the kicker */
.hero-inner > p:not(.hero-kicker) {
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-lockup img { height: 92px; width: auto; }
.hero-lockup .x {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 800;
}

/* ---------- Cards (glass panels) ---------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--glass-panel);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 190, 68, 0.3), transparent);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--gold); }
.card p { color: var(--gray-600); }

/* .card--dark kept as a harmless alias — every .card is glass by default now. */

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(216, 190, 68, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Video cards ---------- */

.video-card { padding: 0; overflow: hidden; }
.video-card__media {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.video-card__body { padding: 20px 22px; }

/* ---------- Checkbox pill group (multi-select service categories) ---------- */

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.checkbox-group input { position: absolute; opacity: 0; width: 0; height: 0; }
/* .field label (elsewhere) ties on specificity with these pill labels —
   same fix as .star-input below: the .field prefix breaks that tie. */
.field .checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--field-border);
  color: var(--gray-600);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.field .checkbox-pill:has(input:checked) {
  background: var(--gold-soft);
  border-color: rgba(216, 190, 68, 0.28);
  color: var(--gold);
}
.checkbox-group.has-error .checkbox-pill {
  border-color: rgba(248, 113, 113, 0.5);
}

/* ---------- Star rating input ---------- */

.star-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
/* .field label (elsewhere) ties on specificity with .star-input label —
   the .field prefix here breaks that tie so unselected stars stay dim. */
.field .star-input label {
  font-size: 1.8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: color 0.15s ease;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
  color: var(--gold);
}

/* ---------- Review banner ---------- */

.review-banner {
  max-width: 720px;
  margin: 0 auto;
  min-height: 160px;
}
.review-track { position: relative; text-align: center; }
.review-slide { display: none; animation: review-fade-in 0.4s ease; }
.review-slide.is-active { display: block; }
@keyframes review-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.review-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 16px;
}
.review-author {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-light);
  margin: 0;
}
.review-author span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-top: 2px;
}
.review-empty { color: var(--gray-400); font-style: italic; }
.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.review-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}
.review-dots:empty { display: none; }
.review-dots button.is-active { background: var(--gold); }

.review-form-wrap { max-width: 600px; margin: 32px auto 0; }
.review-form-wrap[hidden] { display: none; }

/* ---------- Generic carousel (P.E.A.K., programs, app screenshots, static reviews) ---------- */

.carousel { position: relative; }
.carousel-track { position: relative; }
.carousel-slide { display: none; animation: review-fade-in 0.4s ease; }
.carousel-slide.is-active { display: block; }

/* Prev arrow / dots / next arrow, all in one row */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}
.carousel-dots button.is-active { background: var(--gold); }

.carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel-arrow:hover { background: var(--gold-soft); border-color: var(--glass-border); }

/* Feature/program slide layout — image + copy side by side, stacks on mobile.
   display is deliberately NOT set on the bare .feature-slide selector —
   that would tie with .carousel-slide's display:none (equal specificity,
   source order decides) and could re-show every slide at once again.
   .carousel-slide.feature-slide.is-active (3 classes) is what actually
   needs to beat .carousel-slide.is-active (2 classes) for the active slide. */
.feature-slide {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.carousel-slide.feature-slide.is-active {
  display: grid;
}
@media (max-width: 760px) {
  .feature-slide { grid-template-columns: 1fr; }
}
.feature-slide img {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  height: 380px;
  /* contain, not cover — these are text-bearing screenshots/graphics
     where cropping cuts off the actual content, not just background */
  object-fit: contain;
  background: var(--panel-solid);
  width: 100%;
}
.feature-slide-body ul {
  padding-left: 20px;
  color: var(--gray-600);
  margin: 16px 0 0;
}
.feature-slide-body li { margin-bottom: 6px; }

/* Semi-transparent gold highlight panel — for calling out a specialty
   or sub-topic within an otherwise general section (left-aligned prose,
   unlike .peak-slide below which is the centered carousel variant). */
.gold-panel {
  padding: 36px 32px;
  background: rgba(216, 190, 68, 0.07);
  border: 1px solid rgba(216, 190, 68, 0.25);
  border-radius: var(--radius-md);
}
.gold-panel h3 { color: var(--gold); }

/* P.E.A.K. letter slides — semi-transparent gold container per letter */
.peak-slide {
  text-align: center;
  padding: 36px 32px;
  background: rgba(216, 190, 68, 0.07);
  border: 1px solid rgba(216, 190, 68, 0.25);
  border-radius: var(--radius-md);
}
/* .carousel-slide.is-active (2 classes) would otherwise beat these on
   specificity — 3 classes here is what actually wins, matching the
   .feature-slide pattern above. */
.carousel-slide.peak-slide.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.peak-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(216, 190, 68, 0.28);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 18px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius-md);
  background: var(--glass-panel);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(216, 190, 68, 0.28);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- About / split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* P.E.A.K. + Power Equation — equal-height columns, dots/arrows live
   below both (outside .split) rather than under just one side. */
.split--peak {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.split--peak .carousel-track { height: 100%; }
.split--peak .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery img {
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

/* ---------- Feature showcase (F23 x TZ in Action) ---------- */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* .feature-row is a <details> element — .card's padding is reset here
   and reapplied to summary/body separately so the whole heading area
   is clickable without the body's padding existing while collapsed. */
.feature-row { padding: 0; }
.feature-row:hover { transform: none; }

.feature-row summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 28px;
}
.feature-row summary::-webkit-details-marker { display: none; }
.feature-row summary::marker { content: ""; }
.feature-row summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
  border-radius: var(--radius-sm);
}

.feature-row__summary-text { flex: 1; min-width: 0; }
.feature-row__summary-text h3 { margin-bottom: 10px; }

.feature-row__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 6px;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.feature-row[open] .feature-row__chevron { transform: rotate(180deg); }

.feature-row__body { padding: 0 28px 30px; }

/* .feature-row prefix on the rules below breaks the specificity tie
   with .card p, which would otherwise win and force these back to the
   default gray body text. */
.feature-row .feature-row__tagline {
  color: var(--white);
  font-size: 1.02rem;
  margin: 0;
}
.feature-row .feature-row__pitch {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  color: var(--gold-light);
  font-size: 0.92rem;
  font-style: italic;
}
.feature-row .feature-row__pitch strong { color: var(--gold); font-style: normal; }
.feature-row__stack { margin-top: 18px; }
.feature-row__stack-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}
.feature-row__stack .pill-list { font-size: 0.8rem; }

.feature-row__badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(216, 190, 68, 0.5);
}

/* "Popular" variant — gold-tinted glass panel to stand out, but kept
   on the same light-on-dark text scheme as every other card: the
   gold tint is translucent over a dark background, so dark navy text
   here read as low-contrast/hard to read. */
.feature-row.feature-row--popular {
  background: rgba(216, 190, 68, 0.16);
  border-color: rgba(216, 190, 68, 0.45);
}

/* ---------- Credentials ---------- */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pill-list li {
  background: var(--gold-soft);
  border: 1px solid rgba(216, 190, 68, 0.28);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

/* ---------- Blog cards ---------- */

.post-card {
  background: var(--glass-panel);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card img { width: 100%; height: 170px; object-fit: cover; }
.post-card-body { padding: 22px 22px 26px; }
.post-cat {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}
.post-date { font-size: 0.8rem; color: var(--gray-400); margin-top: 10px; }
a.post-card { display: block; color: inherit; }

/* ---------- Blog filters & pagination ---------- */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--field-border);
  color: var(--gray-600);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-pill:hover { color: var(--white); }
.filter-pill.is-active {
  background: var(--gold-soft);
  border-color: rgba(216, 190, 68, 0.28);
  color: var(--gold);
}

.blog-empty { text-align: center; color: var(--gray-400); padding: 40px 0; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--field-border);
  color: var(--gray-600);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pagination button:hover:not(:disabled) { color: var(--white); }
.pagination button.is-active {
  background: var(--gold-soft);
  border-color: rgba(216, 190, 68, 0.28);
  color: var(--gold);
}
.pagination button:disabled { opacity: 0.35; cursor: default; }

/* ---------- Blog post detail ---------- */

.post-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  margin: 24px 0 32px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 28px;
  color: var(--gray-400);
  font-size: 0.85rem;
}
.post-body p { color: var(--gray-600); }
.post-body h2 { margin-top: 1.6em; }
.post-body h3 { margin-top: 1.4em; }
.post-body a { color: var(--gold); text-decoration: underline; }
.post-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 24px 0;
}
.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--gray-400);
  font-style: italic;
}

/* ---------- Contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-info-item .card-icon { flex-shrink: 0; margin-bottom: 0; }
.contact-info-item h4 { color: var(--white); margin-bottom: 4px; font-size: 0.95rem; }
.contact-info-item p { margin: 0; color: var(--gray-600); font-size: 0.92rem; }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(216, 190, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }

.form-card {
  background: var(--glass-panel);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--field-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--field-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Native <select> option lists render muddy over a translucent bg —
   keep the select itself on a solid panel color. */
.field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--field-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--panel-solid);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--gray-400); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(216, 190, 68, 0.3);
  box-shadow: 0 0 0 3px rgba(216, 190, 68, 0.1);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 12px; }
.form-status { font-size: 0.9rem; margin-top: 14px; font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--panel-solid);
  color: var(--gray-600);
  padding: 64px 0 28px;
  border-top: 1px solid var(--glass-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-grid h4 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold); }
.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
  display: inline-block;
}
.footer-logo span { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-lg > * + * { margin-top: 28px; }

[data-include] { min-height: 1px; }
