/* Source guide: components.css
 * Shared components.
 * Load order: base.css, components.css, page stylesheet, refresh.css.
 * Later rules intentionally refine earlier layouts; preserve cascade order.
 */

/* Shared navigation and footer. Page-specific compositions live in pages/. */
/* Group: Keyboard skip link. */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--navy);
  color: white;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 10px;
  color: white;
}
/* Group: Sticky header and primary navigation. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 96px;
}
.brand {
  display: block;
  flex-shrink: 0;
  width: 185px;
}
.brand img {
  width: 100%;
  height: 50px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 0;
}
.main-nav a[aria-current="page"] {
  color: var(--teal-ink);
  box-shadow: 0 2px var(--teal-ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.plain-button {
  border: 0;
  padding: 10px 0;
  background: none;
  color: var(--navy);
  font-size: 13px;
}
/* Group: Button variants and shared action rows. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 54px;
  padding: 14px 26px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: var(--navy-deep);
  color: white;
  transform: translateY(-2px);
}

.button-outline {
  background: transparent;
  color: var(--navy);
}
.button-outline:hover {
  background: var(--tint);
  color: var(--navy);
}
.button-light {
  background: white;
  color: var(--navy);
  border-color: white;
}
.button-light:hover {
  background: var(--mint);
  color: var(--navy);
}
.button-small {
  min-height: 44px;
  padding: 12px 18px;
  font-size: 12px;
  gap: 20px;
}
.actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
/* Group: Mobile navigation control; main.js manages expanded state. */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}
/* Group: Footer columns, legal links, and service context. */
.site-footer {
  background: var(--navy-deep);
  color: white;
  padding: 70px 0 25px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 45px;
  padding-bottom: 50px;
}
.footer-logo {
  width: 180px;
  margin-bottom: 25px;
}
.footer-intro p {
  max-width: 290px;
  font-size: 14px;
  color: #c5c9dc;
}
.footer-links h3 {
  font-size: 13px;
  margin: 12px 0 22px;
  font-weight: 600;
}
.footer-links a,
.footer-links button {
  display: block;
  color: #c5c9dc;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 12px;
  line-height: 1.8;
}
.footer-links a:hover,
.footer-links button:hover {
  color: white;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #424568;
  padding-top: 24px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  font-size: 11px;
  color: #c5c9dc;
}
.footer-note {
  border-top: 1px solid #424568;
  padding: 24px 0;
  font-size: 11px;
  color: #c5c9dc;
  line-height: 1.8;
}
.footer-note p + p {
  margin-top: 8px;
}

/* Reusable editorial sections. */
/* Group: Reusable two-column editorial layout. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-media {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius);
}
.split-copy h2 {
  max-width: 510px;
}
.split-copy .text-link {
  margin-top: 24px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 15px;
  margin-top: 16px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-ink);
}
/* Group: Shared inner-page hero and introduction. */
.page-hero {
  padding: 74px 0 80px;
  background: var(--tint);
}
.page-hero .split {
  gap: 60px;
}
.page-hero h1 {
  font-size: clamp(40px, 4.2vw, 59px);
}
.page-hero .split-media {
  height: 480px;
  border-radius: 130px 16px 16px 16px;
}
.page-intro {
  padding: 70px 0 54px;
  max-width: 880px;
}
.page-intro h1 {
  max-width: 860px;
}
.page-intro .lead {
  max-width: 670px;
}
/* Group: Ordered steps with CSS counters. */
.numbered-list {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 36px 0 0;
}
.numbered-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.numbered-list li::before {
  content: "0" counter(steps);
  font-size: 13px;
  color: var(--teal-ink);
  padding-top: 3px;
}
.numbered-list h3 {
  font-size: 19px;
  margin-bottom: 9px;
}
.numbered-list p {
  color: var(--muted);
  font-size: 14px;
}
/* Group: Closing contact panel. */
.callout {
  padding: 64px;
  background: var(--navy);
  border-radius: var(--radius);
  color: white;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.callout h2 {
  max-width: 670px;
  font-size: 40px;
}
.callout p {
  max-width: 630px;
  margin-top: 16px;
  color: #dbe0f1;
  font-size: 15px;
}
.callout .button {
  flex-shrink: 0;
  position: relative;
}
.callout .eyebrow {
  color: #e4f7f4;
}
/* Group: Native disclosure controls; answers work without JavaScript. */
.faq-list {
  border-top: 1px solid #d4dce8;
}
.faq-list details {
  border-bottom: 1px solid #d4dce8;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.6;
  padding: 23px 48px 23px 0;
  position: relative;
  font-weight: 500;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-size: 26px;
  font-weight: 400;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 0 40px 25px 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 800px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: var(--mint);
  border-radius: 4px;
  color: var(--teal-ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
}
.notice {
  padding: 18px 22px;
  border-left: 3px solid var(--teal);
  background: var(--tint);
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0;
}

/* Forms share visible labels, validation feedback, and truthful preview states. */
/* Group: Contact forms: fields, consent, errors, and review summaries. */
.form-panel {
  padding: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #a7aebe;
  border-radius: 5px;
  background: white;
  padding: 13px 14px;
  color: var(--navy);
  font-size: 15px;
  min-height: 50px;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input[aria-invalid="true"] {
  border-color: var(--error);
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 26px;
}
.checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--navy);
}
.form-status {
  margin-top: 22px;
  font-size: 14px;
  padding: 18px;
  border-radius: 5px;
  background: var(--mint);
  color: var(--navy);
}
.form-status:empty {
  display: none;
}
.form-status[data-state="error"] {
  background: #fff0ef;
  color: var(--error);
}
.form-status h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.form-status p + p {
  margin-top: 10px;
}
.form-status dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 7px;
  font-size: 12px;
}
.form-status dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.field-error {
  color: var(--error);
  font-size: 12px;
}
/* Group: Native service dialog and close control. */
.service-dialog {
  border: 0;
  border-radius: 18px;
  width: min(520px, calc(100% - 32px));
  padding: 40px;
  color: var(--navy);
  box-shadow: 0 20px 90px #10124340;
}
.service-dialog::backdrop {
  background: #10124375;
  backdrop-filter: blur(4px);
}
.service-dialog h2 {
  font-size: 30px;
  padding-right: 20px;
}
.service-dialog p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 28px;
  color: var(--navy);
  width: 40px;
  height: 40px;
}
/* Viewport (max-width: 1150px): component adjustments at this breakpoint. */
@media (max-width: 1150px) {
  .nav-wrap {
    gap: 20px;
  }
  .main-nav {
    gap: 18px;
  }
  .brand {
    width: 155px;
  }
  .nav-actions {
    gap: 12px;
  }
  .main-nav a {
    font-size: 12px;
  }
  .split {
    gap: 45px;
  }
  .callout {
    padding: 45px;
  }
}
/* Viewport (max-width: 950px): component adjustments at this breakpoint. */
@media (max-width: 950px) {
  .menu-toggle {
    display: flex;
  }
  .nav-wrap {
    min-height: 80px;
  }
  .brand {
    margin-right: auto;
    width: 170px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 28px 30px;
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 80px);
    overflow: auto;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    font-size: 17px;
    padding: 12px 4px;
  }
  .nav-actions .plain-button {
    display: none;
  }
  .split {
    gap: 32px;
  }
  .split-media {
    height: 440px;
  }
  .footer-top {
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
  }
  .callout {
    display: block;
  }
  .callout .button {
    margin-top: 28px;
  }
  .page-hero .split {
    gap: 35px;
  }
}
/* Viewport (max-width: 700px): component adjustments at this breakpoint. */
@media (max-width: 700px) {
  .nav-wrap {
    gap: 12px;
  }
  .brand {
    width: 144px;
  }
  .brand img {
    height: 42px;
  }
  .nav-actions .button {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 11px;
    gap: 12px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .split-media {
    height: 350px;
  }
  .page-hero {
    padding: 44px 0 45px;
  }
  .page-hero .split-media {
    height: 350px;
    border-radius: 90px 12px 12px 12px;
  }
  .page-hero h1 {
    font-size: 43px;
  }
  .page-intro {
    padding: 45px 0;
  }
  .actions {
    gap: 13px;
  }
  .button {
    padding: 14px 22px;
  }
  .callout {
    padding: 35px 26px;
  }
  .callout h2 {
    font-size: 31px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-intro {
    grid-column: 1/-1;
  }
  .footer-links {
    min-width: 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .site-footer {
    padding-top: 48px;
  }
  .faq-list summary {
    font-size: 15px;
  }
  .form-panel {
    padding: 24px;
  }
  .form-grid {
    display: block;
  }
  .form-grid .field {
    margin-bottom: 22px;
  }
  .service-dialog {
    padding: 34px 25px;
  }
  .section-heading .text-link {
    margin-top: 20px;
  }
}

/* Allow editorial grid content to shrink below its intrinsic text width. */
/* Stack editorial sections on phones and portrait tablets, including hero layouts.
   Main scopes these rules above page-level desktop grid declarations. */
/* Viewport (max-width: 900px): component adjustments at this breakpoint. */
@media (max-width: 900px) {
  main .split,
  main .page-hero .split,
  main .app-hero .split,
  main .coverage-layout,
  main .partnership-evidence,
  main .inquiry-layout,
  main .values-layout,
  main .about-title,
  main .next-steps,
  main .evidence-summary,
  main .home-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  main .section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  main .section-heading > p {
    margin-top: 0;
    max-width: 100%;
  }
  main .split > .split-copy {
    order: -1;
  }
  main .split > .split-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}
.split > * {
  min-width: 0;
}
.numbered-list li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Keep shared controls and long content inside narrow grid columns. */
.button {
  max-width: 100%;
  text-align: center;
}
.field {
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  min-width: 0;
  font-size: 16px;
}
.footer-links a,
.prose a {
  overflow-wrap: anywhere;
}
/* Viewport (max-width: 900px): component adjustments at this breakpoint. */
@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* Viewport (max-width: 700px): component adjustments at this breakpoint. */
@media (max-width: 700px) {
  .page-hero .split-media,
  .split-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .page-hero h1 {
    font-size: clamp(32px, 8.5vw, 43px);
  }
  .faq-answer {
    padding-right: 0;
  }
  .numbered-list li {
    grid-template-columns: 30px 1fr;
    gap: 12px;
  }
}
/* Viewport (max-width: 380px): component adjustments at this breakpoint. */
@media (max-width: 380px) {
  .nav-wrap {
    gap: 8px;
  }
  .brand {
    width: 118px;
  }
  .nav-actions .button {
    padding-inline: 10px;
  }
  .menu-toggle {
    min-width: 42px;
  }
  .form-panel,
  .callout {
    padding: 26px 20px;
  }
  .form-status dl {
    grid-template-columns: 1fr;
  }
}
