/* FNSWT - Forensic Nurse Examiners Staffing of West Texas */
:root {
  --navy: #1b365d;
  --navy-dark: #0f2340;
  --navy-light: #2a4a7a;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --gold-dark: #9a7b1a;
  --cream: #f8f6f1;
  --white: #ffffff;
  --gray-100: #f4f5f7;
  --gray-200: #e8eaed;
  --gray-400: #9aa0a6;
  --gray-600: #5f6368;
  --gray-800: #3c4043;
  --text: #2d3142;
  --shadow: 0 4px 24px rgba(27, 54, 93, 0.12);
  --shadow-lg: 0 12px 40px rgba(27, 54, 93, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-display: "Libre Baskerville", Georgia, serif;
  --max-width: 1200px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo-link:hover { color: inherit; }

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text strong {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-text span {
  font-size: 0.7rem;
  color: var(--gray-600);
  font-weight: 400;
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-list a:hover,
.nav-list a.active {
  background: var(--cream);
  color: var(--navy);
}

.nav-cta {
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,35,64,0.95) 0%, rgba(27,54,93,0.7) 60%, rgba(27,54,93,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 680px;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 600px;
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--white); }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-header p { color: var(--gray-600); font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(255,255,255,0.8); }

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Cards grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}

.card-body { padding: 1.5rem; }

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Stats */
.stats-bar {
  background: var(--navy);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  font-family: var(--font-display);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item span {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

/* Mission block */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.mission-content h2 { margin-bottom: 1rem; }
.mission-content p { margin-bottom: 1rem; color: var(--gray-600); }

.check-list {
  list-style: none;
  margin-top: 1.5rem;
}
.check-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--gray-800);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Leadership */
.leader-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.leader-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  object-fit: cover;
  border: 4px solid var(--gold);
  background: var(--gray-100);
}

.leader-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.leader-card .role {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.leader-card p { font-size: 0.9rem; color: var(--gray-600); }

/* Blog */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  color: var(--gray-800);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.blog-card .card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.blog-card .tag {
  display: inline-block;
  background: var(--cream);
  color: var(--navy);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-card h3 { margin-bottom: 0.5rem; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--gold-dark); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  color: var(--gold-dark);
}

/* Membership */
.tier-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.tier-card.featured {
  border-color: var(--gold);
  position: relative;
  transform: scale(1.03);
}
.tier-card .tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tier-card h3 { margin-bottom: 0.5rem; }
.tier-price {
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--navy);
  margin: 1rem 0;
}
.tier-price span { font-size: 0.9rem; color: var(--gray-600); }
.tier-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}
.tier-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.tier-features li::before {
  content: "\2713 ";
  color: var(--gold);
  font-weight: 700;
}

/* Donate */
.donate-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  color: var(--navy);
}
.amount-btn:hover,
.amount-btn.selected {
  border-color: var(--gold);
  background: var(--cream);
}

.donate-form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--gray-800);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,54,93,0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.tax-notice {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-info-item p { font-size: 0.9rem; color: var(--gray-600); }
.contact-info-item a { color: var(--navy); font-weight: 500; }

.map-embed {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.map-link:hover { color: var(--gold-dark); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--navy-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--navy);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-inline: auto;
}

/* Partners */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0.7;
}

.partner-item {
  font-weight: 700;
  color: var(--gray-400);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Impact gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}

.gallery-caption {
  padding: 1rem 1.25rem 1.25rem;
}
.gallery-caption h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.gallery-caption p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-link { margin-bottom: 1rem; }
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text span { color: rgba(255,255,255,0.6); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: var(--font);
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-ein {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold-light); }

/* Crisis banner */
.crisis-banner {
  background: #8b1a1a;
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.crisis-banner a {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: underline;
}
.crisis-banner a:hover { color: var(--white); }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden { display: none !important; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.3s;
  max-width: 360px;
  font-size: 0.9rem;
}
.toast.show { transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .nav-list a { padding: 0.75rem 1rem; }
  .nav-cta { margin: 0.5rem 0 0; width: 100%; }
  .nav-cta .btn { width: 100%; }

  .grid-2, .grid-3, .mission-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .logo-text { display: none; }
  .hero { min-height: 440px; }
  .tier-card.featured { transform: none; }
}
