/* CrewPath Journeys — static site styles
   Colors from the CrewPath logo: navy #003868, red #b81828 */

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #003868;
  --navy-dark: #002544;
  --navy-mid: #0a4a7a;
  --red: #b81828;
  --red-dark: #8f121e;
  --text: #1a1a1a;
  --muted: #3d4a54;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --line: #d5dee6;
  --max: 1120px;
  --header-h: 4.25rem;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 32, 64, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 1.125rem; /* 18px — easier to read */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--navy-mid); text-underline-offset: 2px; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img {
  height: 44px;
  width: auto;
}
.nav-toggle {
  display: none;
}
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-btn:hover { background: rgba(255,255,255,0.1); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1rem;
  justify-content: flex-end;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.4rem 0.48rem;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 -3px 0 var(--red);
}
.site-nav a.nav-cta {
  background: var(--red);
  margin-left: 0.25rem;
  padding: 0.4rem 0.85rem;
}
.site-nav a.nav-cta:hover {
  background: var(--red-dark);
  color: #fff;
}
.site-nav a.nav-cta[aria-current="page"] {
  box-shadow: none;
  background: var(--red-dark);
}

@media (max-width: 1500px) {
  .nav-toggle-btn { display: inline-flex; align-items: center; gap: 0.35rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy-dark);
    padding: 0.5rem 0.75rem 0.9rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }
  .site-nav a {
    display: block;
    padding: 0.7rem 0.8rem;
    font-size: 1.05rem;
    white-space: normal;
  }
  .site-nav a.nav-cta { margin-left: 0; text-align: center; }
  .header-inner { position: relative; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 2px solid var(--red);
  line-height: 1.3;
  text-align: center;
}
.btn:hover,
.btn:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff !important;
}
.btn-secondary {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
}
.btn-secondary:hover {
  background: #fff;
  color: var(--navy) !important;
  border-color: #fff;
}
.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section {
  padding: 2.5rem 0;
}
.section-alt { background: var(--bg-alt); }
.section h1,
.section h2,
.hero h1 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--navy);
}
.section h1, .hero h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.section h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 1.5rem 0 0.75rem; }
.section h2:first-child,
.split > div > h2:first-child { margin-top: 0; }
.section h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-weight: 600;
}
.section p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Hero */
.hero {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 32, 64, 0.86) 0%, rgba(0, 56, 104, 0.72) 55%, rgba(0, 56, 104, 0.45) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.hero h1 { color: #fff; max-width: 16em; }
.hero p { max-width: 38rem; margin: 0; font-size: 1.2rem; }
.hero.hero-plain {
  min-height: 0;
  background-image: none;
}
.hero.hero-plain::before { display: none; }
.hero.hero-plain .hero-inner { padding: 2.4rem 1.25rem; }

/* Page intro without a photo */
.page-intro {
  padding: 2.25rem 0 0.5rem;
}
.page-intro h1 { margin-bottom: 0.5rem; }

/* Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.25rem;
}
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0; }
.card p { flex: 1; }
.card .btn { align-self: flex-start; margin-top: 0.5rem; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.split .portrait {
  max-width: 380px;
  justify-self: center;
  border-radius: 12px;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split .portrait { max-width: 280px; }
}

/* Callout / disclaimer / veteran */
.callout {
  background: #fff8e8;
  border-left: 5px solid var(--navy);
  padding: 1rem 1.15rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0 0;
}
.callout p:last-child { margin-bottom: 0; }
.badge-row {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 0;
}
.badge-row .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}
.badge-row p { margin: 0; max-width: 50rem; }
.badge-row strong { color: #fff; }

/* Lists */
.plain-list {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}
.plain-list li { margin: 0.3rem 0; }

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  margin: 0 0 1.1rem;
  box-shadow: var(--shadow);
}
.plan h3 { margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #e8eef4;
  padding: 2.2rem 0 1.4rem;
  margin-top: 0;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem 2rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd4d8; }
.site-footer h2 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer .legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.95rem;
}
.site-footer .legal p { margin: 0.4rem 0 0; color: #c9d4de; max-width: 60rem; }
.site-footer .copyright { font-weight: 500; color: #fff; margin: 0; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* 404 */
.page-404 {
  text-align: center;
  padding: 4rem 1.25rem 5rem;
}
.page-404 img { margin: 0 auto 1.25rem; height: 72px; width: auto; }

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 600px) {
  .hero { min-height: 18rem; }
  .hero-inner { padding: 2.2rem 1.15rem; }
  .logo img { height: 38px; }
}

@media (min-width: 561px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Secondary services, visually smaller than the main training block */
.also-offer {
  background: var(--bg-alt);
  padding: 2rem 0;
}
.also-offer h2 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.also-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.also-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
}
.also-card h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.also-card p { font-size: 1rem; margin: 0 0 0.75rem; }
.also-card .btn { font-size: 0.95rem; padding: 0.5rem 0.95rem; }
@media (max-width: 560px) {
  .also-grid { grid-template-columns: 1fr; }
}

/* Training by state cards */
.state-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.15rem;
  margin: 1.25rem 0 1.5rem;
}
.state-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
}
.state-card h2 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}
.state-card p { margin: 0 0 0.45rem; }
.state-card p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .state-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 559px) {
  .state-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq { margin: 1.1rem 0 0; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem 1.05rem;
  margin: 0 0 0.65rem;
}
.faq-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.faq-item p { margin: 0; }

/* Home Boot Camp promo */
.bootcamp-promo {
  background: var(--bg-alt);
}
