/* ============================================================
   NICU Fathers Alliance (NFA) — Shared styles
   Brand: navy · charcoal · burnt orange / copper · cream
   ============================================================ */

:root {
  --navy: #0B1F3A;
  --navy-mid: #143256;
  --navy-deep: #071526;
  --copper: #C45C26;
  --copper-light: #E08A4F;
  --copper-dark: #8B3A12;
  --cream: #F5E6D3;
  --charcoal: #2A2E33;
  --gray: #5A6169;
  --gray-light: #8A9199;
  --gray-pale: #E8EAED;
  --off-white: #F7F5F2;
  --white: #FFFFFF;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --max-width: 1080px;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
  --focus: 0 0 0 3px rgba(196, 92, 38, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header / Wordmark ---------- */
.site-header {
  background: var(--navy);
  color: var(--cream);
  border-bottom: 3px solid var(--copper);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand-crest {
  width: 52px;
  height: auto;
  flex-shrink: 0;
}

.brand-wordmark-img {
  height: 52px;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
  flex-shrink: 1;
}

/* Legacy CSS wordmark (kept if needed as fallback) */
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-wordmark .line-1 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.brand-wordmark .rule {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--copper);
  margin: 0.28rem 0 0.22rem;
  border: none;
}

.brand-wordmark .line-2 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.brand-abbr {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-top: 0.25rem;
  font-weight: 600;
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: rgba(245, 230, 211, 0.1);
  color: var(--cream);
}

.site-nav a[aria-current="page"] {
  background: var(--copper);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(245, 230, 211, 0.35);
  color: var(--cream);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
}

/* ---------- Layout ---------- */
main {
  min-height: 55vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section--navy {
  background: var(--navy);
  color: var(--cream);
}

.section--cream {
  background: var(--cream);
  color: var(--charcoal);
}

.section--white {
  background: var(--white);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.section--navy .section-label {
  color: var(--copper-light);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: var(--cream);
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 42rem;
}

.section--navy .lead {
  color: rgba(245, 230, 211, 0.85);
}

.divider {
  width: 64px;
  height: 3px;
  background: var(--copper);
  border: none;
  margin: 0 0 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--cream);
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 92, 38, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-crest {
  width: 140px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.hero-descriptor {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-light);
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.hero-blurb {
  font-size: 1.1rem;
  color: rgba(245, 230, 211, 0.88);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.btn--primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.btn--primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 230, 211, 0.45);
}

.btn--ghost:hover {
  background: rgba(245, 230, 211, 0.1);
  color: var(--cream);
  border-color: var(--cream);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--cream);
}

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-pale);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card--navy {
  background: var(--navy-mid);
  border-color: transparent;
  color: var(--cream);
}

.card--navy h3 {
  color: var(--cream);
}

.card-icon {
  width: 36px;
  height: 3px;
  background: var(--copper);
  margin-bottom: 1rem;
  border-radius: 2px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.pillar {
  text-align: center;
  padding: 1.35rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--copper);
  box-shadow: var(--shadow);
}

.pillar h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--gray);
  margin: 0;
}

/* Independence callout */
.callout {
  border-left: 4px solid var(--copper);
  background: var(--white);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
}

.callout h3 {
  margin-bottom: 0.5rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Members list */
.member-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.member-list li {
  background: var(--white);
  border: 1px solid var(--gray-pale);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.member-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 2px solid var(--copper);
}

.member-list strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}

.member-list span {
  font-size: 0.9rem;
  color: var(--gray);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.partner-card {
  background: var(--off-white);
  border: 1px dashed var(--gray-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.partner-card h3 {
  font-size: 1.1rem;
}

.partner-card p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
}

.note {
  font-size: 0.9rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 1.5rem;
}

/* ---------- Contact form ---------- */
.form-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-pale);
  padding: 2rem;
  max-width: 560px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gray-pale);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--off-white);
  transition: border-color 0.15s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--gray-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--copper);
  background: var(--white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  background: rgba(196, 92, 38, 0.08);
  border: 1px solid rgba(196, 92, 38, 0.25);
  color: var(--charcoal);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.form-hint strong {
  color: var(--copper-dark);
}

.contact-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-pale);
}

.contact-meta p {
  margin-bottom: 0.4rem;
  color: var(--gray);
}

.contact-meta .domain {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 230, 211, 0.75);
  padding: 2.5rem 0 1.75rem;
  border-top: 3px solid var(--copper);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand .brand-crest {
  width: 44px;
}

.footer-brand strong {
  display: block;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.footer-brand .tagline {
  font-size: 0.88rem;
  margin-top: 0.25rem;
  color: var(--copper-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links a {
  color: rgba(245, 230, 211, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid rgba(245, 230, 211, 0.12);
  font-size: 0.85rem;
  color: rgba(245, 230, 211, 0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-bottom .domain {
  color: rgba(245, 230, 211, 0.7);
}

/* ---------- Page title bar ---------- */
.page-banner {
  background: var(--navy);
  color: var(--cream);
  padding: 2.25rem 0;
  border-bottom: 3px solid var(--copper);
}

.page-banner h1 {
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.page-banner p {
  margin: 0;
  color: rgba(245, 230, 211, 0.8);
  max-width: 36rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.85rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-crest {
    width: 100px;
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 0.85rem 1.15rem;
  }

  .brand-crest {
    width: 44px;
  }

  .brand-wordmark-img {
    height: 44px;
    max-width: min(180px, 48vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
