/* ============================================================
   SEMPER SOLUTUS — Design System & Component Styles
   Brand: Navy Blue + Gold | Military Medical Consulting
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Brand Colors — Semper Solutus */
  --color-navy:       #1a365d;
  --color-navy-dark:  #0f2440;
  --color-navy-deep:  #0a1628;
  --color-gold:       #c5a045;
  --color-gold-light: #d4b565;
  --color-gold-dark:  #a8862e;
  --color-white:      #ffffff;
  --color-off-white:  #f8f7f4;
  --color-gray-50:    #f9fafb;
  --color-gray-100:   #f3f4f6;
  --color-gray-200:   #e5e7eb;
  --color-gray-300:   #d1d5db;
  --color-gray-400:   #9ca3af;
  --color-gray-500:   #6b7280;
  --color-gray-600:   #4b5563;
  --color-gray-700:   #374151;
  --color-gray-800:   #1f2937;
  --color-gray-900:   #111827;

  /* Semantic */
  --color-bg:           #ffffff;
  --color-text:         #1f2937;
  --color-text-muted:   #6b7280;
  --color-text-inverse: #ffffff;
  --color-primary:      #1a365d;
  --color-accent:       #c5a045;
  --color-surface:      #f8f7f4;
  --color-border:       #e5e7eb;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 54, 93, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 54, 93, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 54, 93, 0.12);

  /* Content Widths */
  --content-narrow: 720px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* --- GLOBAL UTILITIES --- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}
.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

/* --- HEADER & NAV --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .header-inner { padding-inline: var(--space-8); }
}
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.header-logo img {
  height: 72px;
  width: auto;
}
@media (max-width: 767px) {
  .header-logo img { height: 52px; }
}
.header-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
}
.header-logo-text span {
  display: block;
  color: var(--color-gold);
  font-size: 0.7em;
  letter-spacing: 0.15em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-4);
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}
.nav-desktop a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-gray-600);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-block: var(--space-2);
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}
.nav-desktop a:hover { color: var(--color-navy); }
.nav-desktop a:hover::after { width: 100%; }
.nav-desktop a.active { color: var(--color-navy); font-weight: 600; }
.nav-desktop a.active::after { width: 100%; }

.nav-cta {
  display: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white) !important;
  background: var(--color-navy);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  letter-spacing: 0.02em;
}
.nav-cta:hover {
  background: var(--color-navy-dark) !important;
}
.nav-cta::after { display: none !important; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

/* Mobile Menu */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  padding: var(--space-20) var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav .mobile-cta {
  display: inline-block;
  margin-top: var(--space-4);
  text-align: center;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-navy);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-navy-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(26, 54, 93, 0.8) 60%, rgba(26, 54, 93, 0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-20) var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .hero-content { padding: var(--space-24) var(--space-8); }
}
@media (min-width: 1024px) {
  .hero-content { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-12); }
}
.hero-text { color: var(--color-white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(197, 160, 69, 0.1);
  border: 1px solid rgba(197, 160, 69, 0.3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-gold);
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 560px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.hero-stat {
  text-align: center;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
  font-weight: 700;
}
.hero-stat span {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}
/* Hero inline logo next to heading */
.hero-heading-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.hero-heading-text { flex: 1; }
.hero-heading-text h1 { margin-bottom: 0; }
.hero-inline-logo {
  flex-shrink: 0;
  display: none;
}
@media (min-width: 768px) {
  .hero-inline-logo {
    display: block;
  }
}
.hero-inline-logo img {
  width: 280px;
  height: auto;
  object-fit: contain;
  background: none;
}
@media (min-width: 1024px) {
  .hero-inline-logo img {
    width: 340px;
  }
}

.hero-image {
  display: none;
}
@media (min-width: 1024px) {
  .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.hero-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  background: none;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy-deep);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197, 160, 69, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-navy:hover {
  background: var(--color-navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* --- SECTIONS --- */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}
.section--gray { background: var(--color-gray-50); }
.section--navy { background: var(--color-navy-deep); color: var(--color-white); }
.section--surface { background: var(--color-surface); }

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.section--navy .section-title { color: var(--color-white); }
.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
}
.section--navy .section-subtitle { color: rgba(255, 255, 255, 0.75); }

.section-header {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin-inline: auto; }

/* --- CARDS --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.card-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}
.card-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- FEATURE SPLIT --- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .feature-split { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}
.feature-split--reverse .feature-image { order: -1; }
@media (min-width: 768px) {
  .feature-split--reverse .feature-image { order: 1; }
}
.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- PROCESS / STEPS --- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  counter-reset: step;
}
@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  position: relative;
  padding: var(--space-6);
  counter-increment: step;
  text-align: center;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgba(197, 160, 69, 0.15);
  display: block;
  margin-bottom: var(--space-4);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}
.process-step p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.testimonial-stars {
  color: var(--color-gold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
}
.testimonial-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}
.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- FAQ --- */
.faq-list {
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  stroke: var(--color-gray-400);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-5);
}
.faq-answer p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- CTA BAND --- */
.cta-band {
  background: var(--color-navy-deep);
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.cta-band p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}
.cta-band .btn-primary {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-10);
}

/* --- FOOTER --- */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: var(--space-4);
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 320px;
}
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--color-gold); }

/* --- CONTENT PAGES --- */
.page-hero {
  background: var(--color-navy-deep);
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0 clamp(var(--space-12), 6vw, var(--space-16));
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.page-hero p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.7;
}
.page-hero .breadcrumb {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-6);
}
.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.page-hero .breadcrumb a:hover { color: var(--color-gold); }

/* Content blocks */
.content-block {
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.content-block h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  margin-top: var(--space-12);
}
.content-block h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  margin-top: var(--space-8);
}
.content-block p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}
.content-block ul, .content-block ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}
.content-block li {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

/* Highlight box */
.highlight-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-gold);
  padding: var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-8) 0;
}
.highlight-box p {
  margin-bottom: 0;
  color: var(--color-navy);
  font-weight: 500;
}

/* --- ABOUT PAGE --- */
.team-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .team-values { grid-template-columns: repeat(2, 1fr); }
}
.value-card {
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}
.value-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- BLOG / RESOURCES --- */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .resource-grid { grid-template-columns: repeat(3, 1fr); }
}
.resource-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.resource-card-body {
  padding: var(--space-6);
}
.resource-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold-dark);
  background: rgba(197, 160, 69, 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.resource-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.resource-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NEXUS PROGRAM — Black & Gold / Premium Veteran Theme
   ============================================================ */
.nexus-program {
  --np-black-deep:    #0a0a0a;
  --np-black-dark:    #141414;
  --np-black-mid:     #1e1e1e;
  --np-black-card:    #242424;
  --np-black-muted:   #333333;
  --np-gold:          #c5a045;
  --np-gold-light:    #d4b565;
  --np-gold-dark:     #a8862e;
  --np-gold-pale:     #e8d9a8;
  --np-cream:         #f5f3ed;
  --np-khaki:         #eae6da;
  --np-tan:           #d4cbb4;
  --np-text:          #0a0a0a;
  --np-text-muted:    #555555;
  --np-accent:        #c5a045;
  --np-sand:          #c5b78e;
}

/* Nexus Program Hero — Black & Gold */
.np-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--np-black-deep);
}
.np-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(10, 10, 10, 0.03) 2px,
      rgba(10, 10, 10, 0.03) 4px
    ),
    linear-gradient(160deg,
      rgba(10, 10, 10, 0.98) 0%,
      rgba(20, 20, 20, 0.96) 35%,
      rgba(30, 30, 30, 0.92) 70%,
      rgba(14, 14, 14, 0.97) 100%);
}
.np-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-12);
}
@media (min-width: 768px) {
  .np-hero-content { padding: var(--space-20) var(--space-8); }
}
.np-hero-text { flex: 1; color: var(--color-white); }
.np-hero-logo {
  flex-shrink: 0;
  display: none;
}
@media (min-width: 768px) {
  .np-hero-logo { display: block; }
}
.np-hero-logo img {
  width: 320px;
  height: auto;
  background: none;
}
@media (min-width: 1024px) {
  .np-hero-logo img { width: 420px; }
}
.np-hero .hero-badge {
  color: var(--np-gold-light);
  background: rgba(197, 160, 69, 0.12);
  border-color: rgba(197, 160, 69, 0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 600;
}
.np-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: var(--space-6);
  color: var(--color-white);
  letter-spacing: -0.01em;
}
.np-hero h1 em {
  font-style: normal;
  color: var(--np-gold);
}
.np-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
}
.np-hero .btn-primary {
  background: var(--np-gold);
  color: var(--np-black-deep);
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--text-sm);
}
.np-hero .btn-primary:hover {
  background: var(--np-gold-dark);
  box-shadow: 0 4px 20px rgba(197, 160, 69, 0.35);
}
.np-hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--text-sm);
}
.np-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

/* Nexus Program body overrides — black & gold */
.nexus-program {
  background: var(--np-cream);
}
.nexus-program .site-header {
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid rgba(197, 160, 69, 0.15);
  backdrop-filter: blur(12px);
}
.nexus-program .site-header.scrolled {
  background: rgba(10, 10, 10, 0.99);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.nexus-program .nav-desktop a {
  color: rgba(255, 255, 255, 0.75);
}
.nexus-program .nav-desktop a:hover,
.nexus-program .nav-desktop a.active {
  color: var(--np-gold-light);
}
.nexus-program .nav-desktop a::after {
  background: var(--np-gold);
}
.nexus-program .nav-cta {
  background: var(--np-gold) !important;
  color: var(--np-black-deep) !important;
  letter-spacing: 0.04em;
}
.nexus-program .nav-cta:hover {
  background: var(--np-gold-dark) !important;
}
.nexus-program .mobile-toggle span {
  background: var(--color-white);
}

/* Nexus Program sections — black & gold */
.nexus-program .section-label {
  color: var(--np-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--text-xs);
}
.nexus-program .section-title {
  color: var(--np-black-deep);
}
.nexus-program .section {
  background: var(--np-cream);
}
.nexus-program .card {
  border: 1px solid rgba(197, 160, 69, 0.15);
  background: rgba(255, 255, 255, 0.8);
}
.nexus-program .card:hover {
  box-shadow: 0 4px 20px rgba(10, 10, 10, 0.08);
  border-color: rgba(197, 160, 69, 0.3);
}
.nexus-program .card-icon {
  color: var(--np-gold);
}
.nexus-program .card-title {
  color: var(--np-black-deep);
}
.nexus-program .btn-navy {
  background: var(--np-black-dark);
  color: var(--np-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--text-sm);
}
.nexus-program .btn-navy:hover {
  background: var(--np-black-deep);
  color: var(--np-gold-light);
}
.nexus-program .btn-outline {
  color: var(--np-black-dark);
  border-color: var(--np-black-dark);
}
.nexus-program .btn-outline:hover {
  background: var(--np-black-dark);
  color: var(--np-gold);
}

/* NP CTA Band — Black & Gold */
.np-cta-band {
  background: var(--np-black-deep);
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  text-align: center;
  position: relative;
}
.np-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.01) 2px,
    rgba(255, 255, 255, 0.01) 4px
  );
  pointer-events: none;
}
.np-cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.np-cta-band p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}
.np-cta-band .btn-primary {
  background: var(--np-gold);
  color: var(--np-black-deep);
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-10);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.np-cta-band .btn-primary:hover {
  background: var(--np-gold-dark);
  box-shadow: 0 4px 20px rgba(197, 160, 69, 0.35);
}

/* NP Process Steps — black & gold */
.nexus-program .process-step {
  border-color: rgba(197, 160, 69, 0.15);
}
.nexus-program .process-step::before {
  color: rgba(197, 160, 69, 0.15);
  font-weight: 800;
}
.nexus-program .process-step h3 {
  color: var(--np-black-deep);
  letter-spacing: 0.02em;
}

/* NP FAQ */
.nexus-program .faq-question {
  color: var(--np-black-deep);
}

/* NP Testimonials */
.nexus-program .testimonial-stars {
  color: var(--np-gold);
}

/* NP Stats bar — black & gold */
.np-stats-bar {
  background: var(--np-black-dark);
  padding: var(--space-8) 0;
  border-top: 2px solid rgba(197, 160, 69, 0.25);
  border-bottom: 2px solid rgba(197, 160, 69, 0.25);
}
.np-stats-bar .hero-stats {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  margin-top: 0;
}
@media (min-width: 768px) {
  .np-stats-bar .hero-stats { padding-inline: var(--space-8); }
}
.np-stats-bar .hero-stat {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(197, 160, 69, 0.2);
}
.np-stats-bar .hero-stat strong {
  color: var(--np-gold);
  letter-spacing: 0.02em;
}

/* NP Section alternate background — warm */
.np-section-alt {
  background: var(--np-khaki);
}

/* NP page hero (for breadcrumb pages) */
.np-page-hero {
  background: var(--np-black-deep);
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0 clamp(var(--space-12), 6vw, var(--space-16));
}
.np-page-hero h1 { color: var(--color-white); }
.np-page-hero p { color: rgba(255, 255, 255, 0.75); }
.np-page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.5); }
.np-page-hero .breadcrumb a:hover { color: var(--np-gold-light); }

/* Horizontal rule / divider for NP — gold stripe */
.np-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--np-gold), var(--np-gold), transparent);
  margin: 0;
  max-width: 100%;
}

/* NP Footer override — black & gold */
.nexus-program .site-footer {
  background: var(--np-black-deep);
}
.nexus-program .footer-heading {
  color: var(--np-gold);
}
.nexus-program .footer-bottom {
  border-top-color: rgba(197, 160, 69, 0.15);
}

/* NP Testimonials — black & gold */
.nexus-program .testimonial {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(197, 160, 69, 0.15);
}
.nexus-program .testimonial-author {
  color: var(--np-black-deep);
  font-weight: 600;
}
.nexus-program .testimonial-role {
  color: var(--np-gold-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--text-xs);
}

/* NP FAQ — black & gold */
.nexus-program .faq-item {
  border-color: rgba(197, 160, 69, 0.15);
}

/* --- PRINT --- */
@media print {
  .site-header, .site-footer, .cta-band, .mobile-nav { display: none; }
  .hero { min-height: auto; padding: var(--space-8) 0; }
}
