/* Alliance Partners — site styles */

:root {
  --ink: #0e1a2b;
  --ink-soft: #3b4757;
  --muted: #6b7686;
  --paper: #faf8f4;
  --paper-2: #f3efe7;
  --white: #ffffff;
  --navy: #0a2540;
  --navy-deep: #061a2e;
  --accent: #c9a84c;
  --accent-dark: #8a6a1c;
  --gold: #c9a84c;
  --gold-light: #e2c97e;
  --line: #e4ded2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 37, 64, 0.06), 0 8px 24px rgba(10, 37, 64, 0.06);
  --max: 1160px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  white-space: nowrap;
}
.brand img { height: 61px; width: auto; }
.site-footer .brand img { height: 61px; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav .nav-login {
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav .btn { margin-left: 6px; color: var(--white); }
.nav .btn:hover { color: var(--white); background: var(--navy-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

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

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--navy-deep); color: var(--white); }
.section-dark .btn:not(.btn-light):not(.btn-outline-light):not(.btn-ghost) { background: var(--gold); color: var(--navy-deep); }
.section-dark .btn:not(.btn-light):not(.btn-outline-light):not(.btn-ghost):hover { background: var(--gold-light); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: var(--paper-2); color: var(--navy); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--paper-2); }
.section-white { background: var(--white); }
.section-dark {
  background: var(--navy-deep);
  color: #d7e0ea;
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--gold-light); }

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 680px;
}
.section-dark .lead { color: #b9c7d6; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

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

.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 168, 76, 0.10), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(10, 37, 64, 0.10), transparent 60%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent-dark); }

.hero-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-panel h3 { font-size: 1.1rem; margin-bottom: 18px; }

.door {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.door:last-child { margin-bottom: 0; }
.door:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--ink);
}
.door strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.door span { color: var(--muted); font-size: 0.93rem; }
.door .arrow { float: right; color: var(--accent-dark); font-weight: 700; }

/* Home page hero with photos that slowly fade from one to the next */
.photo-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 140px;
  background: var(--navy-deep);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.on { opacity: 1; }
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 46, 0.94) 0%, rgba(6, 26, 46, 0.8) 45%, rgba(6, 26, 46, 0.25) 100%);
}
.photo-hero .container { position: relative; z-index: 1; }
.photo-hero h1 { color: var(--white); }
.photo-hero h1 em { color: var(--gold-light); }
.photo-hero .eyebrow { color: var(--gold-light); }
.photo-hero .lead { color: #d7e0ea; }
.photo-hero .btn:not(.btn-ghost) { background: var(--gold); color: var(--navy-deep); }
.photo-hero .btn:not(.btn-ghost):hover { background: var(--gold-light); }
.photo-hero .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.photo-hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.photo-hero .hero-text { max-width: 640px; }
@media (max-width: 940px) {
  .photo-hero { padding: 80px 0 72px; }
  .photo-hero::after { background: rgba(6, 26, 46, 0.86); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* A photo beside a section heading */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 48px; }
.split .section-head { margin: 0; }
.split-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 50px rgba(10, 37, 64, 0.16); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-rev .split-img { order: 2; }
}

.page-hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(201, 168, 76, 0.10), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 820px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Grids & cards ---------- */

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

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--ink-soft); }

.section-dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.section-dark .card p { color: #b9c7d6; }
.section-dark .card .icon { background: rgba(226, 201, 126, 0.14); color: var(--gold-light); }

.card-feature { border-top: 4px solid var(--accent); }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  background: rgba(201, 168, 76, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* ---------- Lists ---------- */

.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238a6a1c'%3E%3Cpath d='M8.2 13.6 4.9 10.3l1.2-1.2 2.1 2.1 5.7-5.7 1.2 1.2z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section-dark .checks li { color: #c8d3df; }

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

.steps { counter-reset: step; display: grid; gap: 20px; }
.steps.grid-3, .steps.grid-4 { gap: 24px; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.step p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.top { align-items: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Quote / mission ---------- */

.mission {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.section-dark .mission { color: var(--white); }

/* ---------- Diagram ---------- */

.diagram {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ---------- People ---------- */

.person { text-align: left; }
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-deep), #1d4a73);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.person .role { color: var(--accent-dark); font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; }

.placeholder-note {
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 28px;
}

/* ---------- Member network ---------- */

.member-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.member-logo {
  height: 56px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.member-card .loc { color: var(--muted); font-size: 0.9rem; }
.member-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 0.78rem;
  background: var(--paper-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Badge ---------- */

.badge-demo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.badge-demo svg { width: 36px; height: 36px; }
.badge-demo small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge-demo strong { font-family: var(--serif); font-size: 1.1rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #14365a);
  color: #d7e0ea;
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { margin: 0; color: #b9c7d6; }
.cta-band .btn-row { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-band .btn-row { justify-content: flex-start; }
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(201, 168, 76, 0.35);
  border-color: var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-cards label {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 500;
  font-size: 0.93rem;
  cursor: pointer;
  background: var(--paper);
}
.radio-cards input { margin-right: 8px; accent-color: var(--accent); }
.radio-cards label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(201, 168, 76, 0.06);
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.form-success.show { display: block; }

/* ---------- Portal ---------- */

.portal-wrap {
  min-height: calc(100vh - 80px - 260px);
  display: grid;
  place-items: center;
  padding: 80px 24px;
}
.portal-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  text-align: center;
}
.portal-card svg.mark { width: 48px; height: 48px; margin: 0 auto 18px; }
.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.75;
  margin-top: 22px;
}

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

.site-footer {
  background: var(--navy-deep);
  color: #9fb0c2;
  padding: 64px 0 32px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid-3 { grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c8d3df; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.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.86rem;
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
