[hidden] { display: none !important; }
body { color-scheme: dark; }
[id] { scroll-margin-top: 7rem; }
:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: .5rem; z-index: 500; padding: .75rem 1rem; background: var(--black); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.nav-group-label {
  cursor: pointer; padding: .5rem .8rem; color: var(--cream); white-space: nowrap;
  font: 600 .8rem var(--font-head); letter-spacing: .07em; text-transform: uppercase;
}
.nav-group-label:hover, .nav-group-label.active, .nav-group[open] > summary { color: var(--gold); }
.has-drop:hover .nav-group:not([open]) .dropdown, .nav-group:not([open]) .dropdown { display: none; }
.nav-group[open] .dropdown { display: block; min-width: 250px; }
.nav-group .dropdown a { color: var(--cream); }
.nav-group .dropdown a.active { color: var(--gold-lt); }
.hero.services-hero { min-height: min(660px, 79vh); }
.services-hero .hero-img { filter: brightness(.65) saturate(.8); }
.services-hero .hero-inner { padding-top: 3.5rem; }
.services-hero .hero-body { max-width: 580px; }
.page-hero img { width: calc(100% + 60px); height: calc(100% + 60px); }
.page-hero .hero-summary { color: var(--cream); margin-bottom: 1.5rem; }
.content-band { border-top: 1px solid var(--iron-lt); background: var(--black); }
.content-band:nth-of-type(even), .affiliate-band { background: var(--charcoal); }
.platform-grid, .training-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem; margin-top: 1.8rem;
}
.platform-card { background: var(--charcoal); border: 1px solid var(--iron-lt); border-radius: var(--radius); padding: 1.4rem; }
.affiliate-card { background: var(--black); display: flex; flex-direction: column; align-items: start; gap: .75rem; }
.affiliate-card .btn { margin-top: auto; }
.platform-card h3, .training-grid h3 { font-family: var(--font-head); color: var(--cream); font-size: 1.2rem; line-height: 1.3; }
.platform-card h3 a { color: var(--gold-lt); }
.platform-card h3 a:hover { text-decoration: underline; }
.platform-card p { color: var(--stone); margin-top: .4rem; }
.portal-grid, .training-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.offer-price { font-family: var(--font-head); color: var(--gold-lt); margin: .6rem 0; }
.offer-copy { color: var(--stone); margin-bottom: 1.25rem; }
.lead-submit { width: 100%; line-height: 1.25; }
.lead-submit:disabled { opacity: .65; cursor: wait; }
.form-group select:focus { border-color: var(--gold); }
.form-group [aria-invalid="true"] { border-color: #f38b8b; }
.field-error, .form-status.is-error { color: #ffabab; }
.field-error { font-size: .9rem; margin-top: .25rem; }
.form-hint, .call-box small { color: var(--stone); }
.form-hint { font-size: .9rem; margin-top: .6rem; }
.form-status:not(:empty) { margin-top: .8rem; padding: .75rem .9rem; border: 1px solid currentColor; border-radius: var(--radius); }
.form-status.is-success { color: #92dbac; }
.lead-id { display: block; margin-top: .35rem; font: 600 1.25rem var(--font-head); }
.submit-spinner {
  display: inline-block; width: .9rem; height: .9rem; margin-right: .45rem; vertical-align: middle;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lead-spin .7s linear infinite;
}
@keyframes lead-spin { to { transform: rotate(360deg); } }
.platform-footer { background: var(--charcoal); }
.footer-grid {
  max-width: var(--max); margin: auto; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.1fr 1fr;
  gap: 1.8rem; padding: 3.5rem 1.5rem 2rem;
}
.footer-grid h2 { font: 600 .9rem var(--font-head); color: var(--cream); margin-bottom: .65rem; }
.footer-grid ul { list-style: none; display: grid; gap: .3rem; }
.footer-grid li a, .footer-grid p, .footer-bottom { color: var(--stone); font-size: .92rem; }
.footer-grid li a:hover, .footer-grid li a.active { color: var(--gold-lt); }
.footer-brand img { height: 62px; width: auto; margin-bottom: .55rem; }
.footer-phone { margin-top: .4rem; }
.footer-bottom { border-top: 1px solid var(--iron-lt); padding: .9rem 1.5rem; text-align: center; }
.footer-bottom p + p { margin-top: .25rem; }
.coverage-table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; text-align: left; }
.coverage-table th, .coverage-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--iron-lt); }
.coverage-table tbody th { color: var(--cream); font-weight: 600; }
.coverage-table td { color: var(--stone); }
.territory-badge { display: inline-block; padding: .2rem .55rem; border: 1px solid currentColor; border-radius: var(--radius); font-size: .82rem; line-height: 1.3; }
.territory-badge.open { color: #92dbac; }
.territory-badge.assigned { color: var(--gold-lt); }
.approval-note { margin: .75rem 0; color: var(--stone); }
.h-captcha { min-height: 78px; margin-bottom: 1rem; }
.checkout-dialog { margin: auto; width: min(36rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); color: var(--cream); }
.checkout-dialog::backdrop { background: rgb(0 0 0 / .72); }
.checkout-dialog h3 { margin-bottom: 1rem; }
.checkout-dialog [data-close-dialog] { margin-top: .75rem; }
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links.open { max-height: calc(100dvh - 120px); overflow-y: auto; }
  .nav-group-label { padding: .8rem 1.5rem; }
  .portal-grid, .training-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero.services-hero { min-height: 68vh; }
  .services-hero .hero-inner { padding-bottom: 3rem; }
  .quote-form { padding: 1.25rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .coverage-table th, .coverage-table td { padding: .55rem .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .submit-spinner { animation: none; }
}
