/* ============================================================
   NEBA Inc. — public marketing site
   Hand-written CSS. No framework, no build step.
   ============================================================ */

:root {
  --navy: #0d2240;
  --navy-2: #143157;
  --navy-3: #1b4079;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #e8efff;
  --gold: #f5a81c;
  --gold-soft: #fdf3dd;
  --ink: #1c2737;
  --muted: #5b6b7f;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e3e9f1;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 34, 64, 0.06), 0 8px 24px rgba(13, 34, 64, 0.08);
  --shadow-lg: 0 4px 12px rgba(13, 34, 64, 0.10), 0 20px 48px rgba(13, 34, 64, 0.14);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1em; }

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.9rem;
}

.section { padding: 4.5rem 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

.lead { font-size: 1.13rem; color: var(--muted); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffbe3f; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }

/* ---------- Top bar ---------- */

.topbar { background: var(--navy); color: #c8d6ea; font-size: 0.86rem; }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
}
.topbar a { color: #c8d6ea; display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar-right { display: flex; gap: 1.4rem; }
.topbar svg { width: 14px; height: 14px; }

/* ---------- Navbar ---------- */

.navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 52px; width: auto; }
.brand-logo-footer { height: 64px; }
@media (max-width: 480px) { .brand-logo { height: 42px; } }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy-3), var(--blue));
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { line-height: 1.1; }
.brand-text strong {
  display: block;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand-text span { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { background: var(--blue-soft); color: var(--blue-dark); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--blue-dark); font-weight: 700; }

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
}

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

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(37, 99, 235, 0.35), transparent 65%),
    radial-gradient(700px 380px at -5% 110%, rgba(245, 183, 61, 0.18), transparent 60%),
    linear-gradient(150deg, var(--navy) 35%, var(--navy-2) 100%);
  color: #dce7f5;
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .eyebrow { color: var(--gold); }
.hero p { max-width: 56ch; font-size: 1.13rem; color: #b9c9de; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: #fff; display: flex; align-items: center; gap: 0.6rem; }
.hero-panel h3 svg { width: 20px; height: 20px; color: var(--gold); }
.hero-panel ul { margin: 0.6rem 0 0; padding: 0; list-style: none; }
.hero-panel li { padding: 0.42rem 0; display: flex; gap: 0.6rem; align-items: baseline; color: #c8d6ea; font-size: 0.97rem; }
.hero-panel li::before { content: "•"; color: var(--gold); font-weight: 800; }

/* Page hero (interior pages) */
.page-hero {
  background:
    radial-gradient(800px 360px at 90% -20%, rgba(37, 99, 235, 0.35), transparent 65%),
    linear-gradient(150deg, var(--navy) 35%, var(--navy-2) 100%);
  color: #c8d6ea;
  padding: 3.8rem 0 4.2rem;
}
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 62ch; color: #b9c9de; font-size: 1.1rem; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--gold); }

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat { background: #fff; padding: 1.9rem 1.5rem; text-align: center; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-weight: 600; color: var(--blue-dark); font-size: 0.95rem; }

.icon-chip {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-dark);
  margin-bottom: 1.1rem;
}
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip.gold { background: var(--gold-soft); color: #b07c14; }

/* ---------- Feature rows (alternating) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip > .feature-media { order: 2; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature-row.flip > .feature-media { order: 0; }
}
.feature-media {
  border-radius: var(--radius);
  min-height: 260px;
  background: linear-gradient(145deg, var(--blue-soft), #f0f5ff);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--navy-3);
}
.feature-media svg { width: 96px; height: 96px; opacity: 0.85; }
.feature-row p { color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { display: flex; gap: 0.65rem; padding: 0.34rem 0; align-items: baseline; }
.check-list li::before {
  content: "✓";
  flex: none;
  font-weight: 800;
  color: var(--blue);
}

/* ---------- Service detail blocks ---------- */

.service-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.6rem;
  scroll-margin-top: 100px;
}
.service-block h3 { display: flex; align-items: center; gap: 0.8rem; font-size: 1.35rem; }
.service-block .cols { columns: 2; column-gap: 3rem; margin-top: 0.4rem; }
@media (max-width: 720px) { .service-block .cols { columns: 1; } }

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

.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(245, 183, 61, 0.22), transparent 60%),
    linear-gradient(135deg, var(--navy-3), var(--navy));
  color: #dce7f5;
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: #fff; margin: 0 0 0.3rem; }
.cta-band p { margin: 0; color: #b9c9de; }

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

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--navy); }
.req { color: #c2410c; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="date"], input[type="month"], input[type="password"],
select, textarea, input[type="file"] {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea { resize: vertical; min-height: 120px; }

/* Clover hosted card fields mount into these; style the container to match
   our inputs since the card text itself renders inside the gateway iframe. */
.cc-field {
  width: 100%;
  min-height: 46px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.cc-errors { color: #991b1b; font-size: 0.9rem; margin-bottom: 0.6rem; }
.cc-errors:empty { display: none; }

/* ---------- Payment page (self-pay contribution) ---------- */

.page-hero.full-intro p { max-width: none; }

/* Joint-sponsor fund logos, shown under the Payment Amount card. */
.fund-logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}
.fund-logo { height: 92px; width: auto; flex: 0 0 auto; }
@media (max-width: 560px) { .fund-logo { height: 72px; } }

.pay-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .pay-cols { grid-template-columns: 1fr; gap: 1.8rem; } }

.pay-h { font-size: 1.18rem; margin: 1.6rem 0 0.4rem; }
.pay-h:first-child { margin-top: 0; }
.pay-h.sm { font-size: 1rem; }

.radio-row {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 0.85rem; margin-bottom: 0.5rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 500; cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease;
}
.radio-row:hover { border-color: var(--blue); }
.radio-row input { width: auto; margin: 0; accent-color: var(--blue); }
.radio-row span { font-size: 0.97rem; }

.method-block { margin-top: 0.4rem; padding-top: 0.4rem; }

/* Calculate-Payment options as inline, button-like cards (no visible radio). */
.method-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.method-options .radio-row {
  flex: 1 1 0;
  margin-bottom: 0;
  justify-content: center;
  text-align: center;
}
/* Keep the radio in the DOM (functional + focusable for required validation)
   but visually hidden — the card itself is the control. */
.method-options .radio-row input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.method-options .radio-row:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
  font-weight: 700;
  color: var(--blue-dark);
}
@media (max-width: 560px) { .method-options { flex-direction: column; } }

.amount-panel {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; position: static;
}
.amount-lines { margin: 0.6rem 0 0; }
.amount-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; }
.amount-lines dt { color: var(--muted); margin: 0; }
.amount-lines dd { margin: 0; font-weight: 600; }
.amount-total { border-top: 1px solid var(--line); margin-top: 0.3rem; padding-top: 0.7rem !important; }
.amount-total dt { color: var(--navy); font-weight: 700; }
.amount-total dd { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.amount-desc { font-size: 0.88rem; color: var(--muted); margin: 0.5rem 0 1rem; }
.amount-desc:empty { display: none; }

.gateway-frame-wrap { width: 100%; }
#pay-frame {
  width: 100%; min-height: 720px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff;
}

.checkbox-row { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.checkbox-row input { margin-top: 0.25rem; }
.checkbox-row label { font-weight: 400; color: var(--muted); margin: 0; }

.form-note { font-size: 0.86rem; color: var(--muted); }

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.file-hint {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---------- Notice / info boxes ---------- */

.notice {
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem;
  font-size: 0.97rem;
}

/* ---------- Contact / locations ---------- */

.location-card h3 { display: flex; gap: 0.6rem; align-items: center; }
.location-card h3 svg { width: 19px; height: 19px; color: var(--blue); flex: none; }
.location-card address { font-style: normal; color: var(--muted); font-size: 0.97rem; }
.location-card .tel { font-weight: 700; color: var(--navy); display: inline-block; margin-top: 0.5rem; }

.holiday-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 3rem; }
.holiday-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.96rem; }
.holiday-list li span { color: var(--muted); }
@media (max-width: 640px) { .holiday-list { columns: 1; } }

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

.quote-card {
  background: linear-gradient(150deg, var(--navy) 35%, var(--navy-2) 100%);
  color: #dce7f5;
  border-radius: var(--radius);
  padding: 3rem;
  position: relative;
}
.quote-card blockquote { margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.5; color: #fff; }
.quote-card figcaption { margin-top: 1.2rem; color: #b9c9de; font-size: 0.95rem; }

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

.site-footer { background: var(--navy); color: #b9c9de; margin-top: 4.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 { color: #fff; font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.26rem 0; }
.site-footer a { color: #b9c9de; font-size: 0.94rem; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; font-size: 0.94rem; line-height: 1.7; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: #8da4c0; }
.footer-tagline { font-size: 0.92rem; margin-top: 1rem; max-width: 34ch; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #8da4c0;
}
.footer-bottom a { color: #8da4c0; }
.footer-bottom a:hover { color: #fff; }

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

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }

::selection { background: var(--blue); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, a.card:hover { transform: none; }
}
