/* Site chrome (header/footer) and section scaffolding */

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; min-height: var(--header-h);
  background: rgb(255 255 255 / 88%); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgb(16 24 40 / 6%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.logo img { height: 22px; width: auto; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav ul a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink); transition: background-color .2s, color .2s; }
.site-nav ul a:hover { background: var(--soft); }
.site-nav ul a.is-active { background: var(--navy); color: var(--white); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 24px; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgb(16 24 40 / 10%); display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 14px; }
  .site-nav .btn { width: 100%; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy-900); color: rgb(255 255 255 / 78%); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 18px 0 14px; }
.section-head p { font-size: 1.1rem; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* let grid children shrink instead of stretching the page on small screens */
.grid > *, .split > *, .hero-inner > *, .footer-grid > * { min-width: 0; }

@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-900); color: rgb(255 255 255 / 70%); padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; margin-bottom: 24px; }
.site-footer h3 { color: var(--gold); font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer h3.mt { margin-top: 28px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul.inline { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer ul.inline li { margin: 0; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding: 24px 0; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .85rem;
}
.footer-bottom .legal { display: flex; gap: 20px; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
