/* Starbridge Foundation — brand styles */
:root {
  --sb-blue: #0D4680;
  --sb-yellow: #FFDC40;
  --sb-navy: #002340;
  --sb-amber: #F2AD0C;
  --sb-cream: #F2F1EB;
  --text: #10222f;
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Poppins', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: #ffffff;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--sb-blue);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { max-width: 70ch; }

a { color: var(--sb-blue); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sb-amber);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sb-yellow);
  color: var(--sb-navy);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-family: var(--font-heading);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--sb-blue);
  color: #ffffff;
}
.btn-primary:hover { background: var(--sb-navy); }
.btn-primary:hover::after {
  content: '';
  width: 0.8em; height: 0.8em;
  margin-left: 0.5em;
  background: var(--sb-yellow);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  display: inline-block;
  animation: star-nudge 0.3s ease;
}
@keyframes star-nudge {
  from { transform: translateX(-4px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.btn-secondary {
  background: #ffffff;
  color: var(--sb-blue);
  border-color: var(--sb-blue);
}
.btn-secondary:hover { background: var(--sb-cream); }
.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-on-dark { border-color: #ffffff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.btn-row-center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e3da;
  position: relative;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  min-width: 150px;
}
.logo-star { color: var(--sb-yellow); display: inline-flex; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sb-blue);
}
.logo-text strong { font-weight: 700; }
.logo-img {
  display: block;
  width: auto;
  height: 56px;
}
/* Footer sits on navy — render the logo in white for contrast */
.logo-img-footer {
  height: 44px;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--sb-blue);
  border-radius: 2px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sb-blue);
  text-decoration: none;
  padding: 0.5rem 0;
  display: inline-block;
}
.site-nav a:hover { color: var(--sb-navy); box-shadow: 0 2px 0 var(--sb-yellow); }
.site-nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--sb-yellow); }
.site-nav .nav-pill {
  border: 2px solid var(--sb-blue);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
}
.site-nav .nav-pill:hover {
  background: var(--sb-blue);
  color: #ffffff;
  box-shadow: none;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--sb-navy);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.hero-arc {
  position: absolute;
  inset: auto -20% -70% -20%;
  height: 120%;
  border-radius: 50%;
  border-top: 3px solid rgba(255, 220, 64, 0.35);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
}
.hero h1 { color: #ffffff; }
.hero p { color: #f2f1eb; font-weight: 300; font-size: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-light { background: #ffffff; }
.section-cream { background: var(--sb-cream); }
.section-navy { background: var(--sb-navy); }
.section-blue { background: var(--sb-blue); }
.section-navy h2, .section-navy h3, .section-blue h2, .section-blue h3 { color: #ffffff; }
.section-navy p, .section-blue p { color: #f2f1eb; font-weight: 300; }
.section-navy h3 { color: var(--sb-yellow); }
.section-cta { text-align: center; }
.section-cta p { margin-left: auto; margin-right: auto; }
.section-cta .btn { margin-top: 1rem; }

.lede { font-size: 1.1rem; }
.kicker {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--sb-amber);
  margin-bottom: 0.5rem;
}
.section-link { margin-top: 2rem; }
.section-link a { font-family: var(--font-heading); font-weight: 600; }

/* ---------- Cards ---------- */
.platform-banner {
  background: #0a4a84;
  color: #ffffff;
}
.platform-banner h2 { color: #ffffff; }
.platform-banner .platform-sub {
  color: var(--sb-cream);
  font-weight: 300;
  font-size: 1.15rem;
  margin-top: 0.5rem;
}
.platform-head { max-width: 720px; }
.platform-star {
  display: inline-flex;
  color: var(--sb-yellow);
  margin-bottom: 0.5rem;
}
.platform-star svg { width: 28px; height: 28px; }
.platform-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.platform-features li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-weight: 300;
  color: var(--sb-cream);
  line-height: 1.5;
}
.platform-features li strong {
  display: block;
  color: var(--sb-yellow);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.platform-plus {
  margin-top: 1.5rem;
  color: var(--sb-cream);
  font-weight: 300;
  max-width: 900px;
}

/* Why-now navy band */
.why-now-band { position: relative; overflow: hidden; }
.why-now-arc {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sb-yellow);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.why-now-intro { max-width: 60ch; }
.link-yellow { color: var(--sb-yellow); font-weight: 600; }
.link-yellow:hover { color: #ffe873; }

.text-yellow {
  color: var(--sb-yellow);
}

/* Capital statement band (variant B) */
.capital-band .capital-statement {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 70ch;
}

/* Economics callout */
.economics-callout {
  margin-top: 2rem;
  background: #ffffff;
  border-left: 6px solid var(--sb-yellow);
  border-radius: 8px;
  padding: 1.5rem 2rem;
}
.economics-callout h3 { color: var(--sb-blue); margin-bottom: 0.5rem; }
.economics-callout p { margin: 0; }

/* Proof bar */
.proof-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 1.5rem 0;
}
.proof-tile { display: flex; flex-direction: column; min-width: 120px; }
.proof-value {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--sb-blue);
  line-height: 1.1;
}
.proof-label {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.proof-caption { font-size: 0.9rem; font-weight: 300; }

/* Audience router cards */
.router-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.router-card h3 { color: var(--sb-blue); }
.router-card:hover, .router-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 35, 64, 0.15);
}

/* Founder requirements */
.requirements-grid h3 { color: var(--sb-blue); margin-bottom: 0.5rem; }
.requirements-closing {
  margin-top: 2rem;
  font-size: 1.3rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--sb-navy);
  max-width: 40ch;
}

/* Platform kicker */
.platform-kicker { color: var(--sb-yellow); margin: 2rem 0 0; }
.platform-banner .platform-sub { max-width: 70ch; }

/* Anchor highlight for audience cards */
.card:target {
  outline: 3px solid var(--sb-amber);
  outline-offset: 4px;
  scroll-margin-top: 100px;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 35, 64, 0.07);
  padding: 1.75rem;
  border-top: 3px solid transparent;
  transition: border-color 0.2s ease;
}
.card:hover { border-top-color: var(--sb-yellow); }
.card p { font-size: 0.97rem; margin-bottom: 0; }
.card h3 { margin-top: 0; }
.card-icon { color: var(--sb-amber); display: inline-flex; margin-bottom: 0.75rem; }
.plain-cols > div h3 { margin-top: 0; }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tile-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 1.5rem; }
.tile {
  background: var(--sb-cream);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sb-navy);
  text-align: center;
}

.map-link { display: block; text-decoration: none; margin-top: 1rem; }

.content-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 35, 64, 0.12);
}

.content-photo-portrait {
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- Loan cycle diagram ---------- */
.loan-cycle {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 2.25rem;
}
.loan-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 1.1rem 1.1rem 1rem;
}
.loan-step h3 {
  font-size: 1rem;
  margin: 0.55rem 0 0.35rem;
  color: #fff;
}
.loan-step p { font-size: 0.88rem; margin: 0; }
.loan-step { position: relative; padding-top: 1.3rem; }
.loan-icon {
  position: absolute;
  top: 1.1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  color: var(--sb-yellow);
  opacity: 0.85;
}
.loan-icon svg { width: 100%; height: 100%; }
.loan-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--sb-yellow);
  color: var(--sb-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}
.loan-arrow {
  align-self: center;
  color: var(--sb-yellow);
  font-size: 1.4rem;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.5rem; display: grid; gap: 1.6rem; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.faq-item p { margin: 0; }

.photo-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.photo-strip img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 35, 64, 0.1);
}

/* ---------- Photo placeholders ---------- */
.photo-placeholder {
  background: #dfe3e8;
  border: 1px dashed #9aa5b1;
  border-radius: 14px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.photo-placeholder span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: #52606d;
}

/* ---------- Page hero (slim) ---------- */
.page-hero {
  background: var(--sb-blue);
  padding: 3rem 0;
}
.page-hero h1 { color: #ffffff; margin: 0; }

.hero-tete { background: var(--sb-navy); }

.mission-statement {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--sb-navy);
}

/* ---------- Star list ---------- */
.star-list { list-style: none; padding: 0; margin: 0; }
.star-list li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.6em;
  max-width: 70ch;
}
.star-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.75em;
  height: 0.75em;
  background: var(--sb-amber);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

/* ---------- Model page ---------- */
.model-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.model-card h2 { font-size: 1.2rem; margin-top: 0; }
.model-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--sb-yellow);
  width: 72px;
}
.bridge-arc {
  width: 64px;
  height: 32px;
  border-top: 3px solid var(--sb-yellow);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.bridge-star { color: var(--sb-amber); margin-top: -10px; }

/* ---------- Forms ---------- */
.contact-form { margin-top: 1.5rem; }
.form-field { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sb-navy);
}
.form-field .optional { font-weight: 400; color: #52606d; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #b9c2cc;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  min-height: 48px;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form-success {
  background: #ffffff;
  border-left: 4px solid var(--sb-yellow);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 18px rgba(0, 35, 64, 0.07);
}
.form-success p { margin: 0; font-weight: 400; }
.form-error {
  background: #fdf1f1;
  border-left: 4px solid #b3261e;
  border-radius: 10px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1rem;
}
.form-error p { margin: 0; color: #8c1d18; }
.contact-alt { margin-top: 2rem; }

/* ---------- Admin ---------- */
.admin-toolbar { display: flex; gap: 0.9rem; margin-bottom: 1.5rem; }
.inline-form { display: inline; }
.table-wrap { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e5e3da;
  vertical-align: top;
}
.admin-table th { font-family: var(--font-heading); font-weight: 600; color: var(--sb-navy); }
.msg-cell { max-width: 420px; white-space: pre-wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sb-navy);
  color: #ffffff;
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo .logo-text { color: #ffffff; }
.logo-star-footer { color: var(--sb-yellow); }
.footer-mission { color: #d4d9de; font-weight: 300; font-size: 0.95rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a, .footer-contact a { color: #ffffff; text-decoration-color: var(--sb-yellow); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--sb-yellow); }
.footer-contact p { margin: 0 0 0.5rem; }
.footer-social { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; gap: 1rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.footer-legal p { color: #b9c2cc; font-size: 0.85rem; font-weight: 300; margin: 0.3rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
  .loan-cycle { grid-template-columns: 1fr; }
  .loan-arrow { transform: rotate(90deg); justify-self: center; }
  .photo-strip img { height: auto; }
  .platform-features { grid-template-columns: 1fr; }
  .proof-bar { gap: 1rem 1.5rem; }
  .proof-tile { flex: 1 1 40%; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .tile-row { grid-template-columns: 1fr; }
  .model-columns { grid-template-columns: 1fr; }
  .model-bridge { flex-direction: row; width: auto; justify-content: center; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e3da;
    z-index: 50;
    box-shadow: 0 10px 20px rgba(0, 35, 64, 0.08);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .site-nav li { border-top: 1px solid #f0efe8; }
  .site-nav li:first-child { border-top: none; }
  .site-nav a { display: block; padding: 0.9rem 0; min-height: 48px; }
  .site-nav a[aria-current="page"], .site-nav a:hover { box-shadow: inset 4px 0 0 var(--sb-yellow); padding-left: 0.75rem; }
  .site-nav .nav-pill { margin-top: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
