:root {
  --navy: #1c2818;
  --navy-dark: #101c10;
  --steel: #3a5230;
  --orange: #ff6a13;
  --orange-dark: #e05b0a;
  --off-white: #f7f8fa;
  --text: #1a1a1a;
  --muted: #5b6675;
  --border: #e3e6ea;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

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

a { color: inherit; }

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

/* Header / Nav */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 1px;
}

.brand-text span {
  font-size: 11px;
  color: #b9c4d4;
  letter-spacing: 0.5px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: #dfe6f0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #fff;
  border-bottom-color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 780px) {
  nav.main-nav {
    display: none;
    width: 100%;
  }
  nav.main-nav.open {
    display: block;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }
  nav.main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-wrap {
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.1s;
}

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

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

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

/* Hero */
.hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, var(--navy) 0%, rgba(28,40,24,0.88) 35%, rgba(28,40,24,0.5) 65%, rgba(28,40,24,0.2) 100%),
    url('../images/banner-clean.jpg');
  background-size: 100% 100%, auto 100%;
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  padding: 90px 0 80px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero h1 {
  font-size: 44px;
  margin: 0;
  letter-spacing: 0.5px;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
}

.hero p.lead {
  font-size: 19px;
  max-width: 640px;
  color: #dfe6f0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Page hero (interior pages) */
.page-hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, var(--navy) 0%, rgba(28,40,24,0.88) 40%, rgba(28,40,24,0.55) 70%, rgba(28,40,24,0.25) 100%),
    url('../images/banner-clean.jpg');
  background-size: 100% 100%, auto 100%;
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { margin: 0 0 8px; font-size: 34px; }
.page-hero p { margin: 0; color: #cdd7e5; font-size: 17px; max-width: 640px; }

/* Sections */
section { padding: 70px 0; }
section.alt { background: #fff; }

h2.section-title {
  font-size: 30px;
  margin: 0 0 14px;
  color: var(--navy);
}

p.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 700px;
  margin: 0 0 40px;
}

/* Feature grid */
.pillars-heading {
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 36px;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

@media (max-width: 700px) {
  .pillars-heading { font-size: 30px; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  display: block;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
}

a.card:hover {
  box-shadow: 0 8px 20px rgba(28,40,24,0.14);
  transform: translateY(-3px);
  border-color: var(--orange);
}

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

.card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

.card .icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 19px;
}

.pillars-banner {
  width: 100%;
  height: 420px;
  margin-top: 56px;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

@media (max-width: 860px) {
  .pillars-banner { height: 280px; }
}

@media (max-width: 520px) {
  .pillars-banner { height: 200px; }
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Video / education grid */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--navy);
  border-radius: 8px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}
@media (max-width: 700px) { .topic-list { grid-template-columns: 1fr; } }

.topic-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
}
.topic-item .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 7px;
  flex: none;
}
.topic-item h4 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.topic-item p { margin: 0; font-size: 14.5px; color: var(--muted); }

.subscribe-banner {
  background: var(--orange);
  border-radius: 10px;
  padding: 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 50px;
}
.subscribe-banner h3 { margin: 0 0 6px; font-size: 22px; }
.subscribe-banner p { margin: 0; color: #fff0e6; }

/* Credentials */
.cred-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 700px) {
  .cred-list { grid-template-columns: 1fr; }
}
.cred-item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  padding: 22px 26px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.cred-item .badge {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.cred-item .badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.cred-item h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.cred-item h3 a { text-decoration: none; color: inherit; }
.cred-item h3 a:hover { text-decoration: underline; }
.cred-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* Link accordion (SAR Links page) */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.accordion-item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  margin: 0;
  padding: 22px 26px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.accordion-header .count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-right: auto;
  margin-left: 14px;
}
.accordion-header .chevron {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--orange);
  transition: transform 0.25s ease;
}
.accordion-item.open .accordion-header .chevron {
  transform: rotate(180deg);
}
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
}
.accordion-panel-inner {
  overflow: hidden;
}
.link-list {
  list-style: none;
  margin: 0;
  padding: 0 26px 26px;
  display: grid;
  gap: 14px;
}
.link-list li {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}
.link-list a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  font-size: 16px;
}
.link-list a:hover { text-decoration: underline; }
.link-list p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.link-category-note {
  margin: 0 26px 18px;
  color: var(--muted);
  font-size: 14.5px;
}

/* About / bio */
.bio-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 700px) { .bio-wrap { grid-template-columns: 1fr; } }

.bio-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.bio-wrap p {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 16px;
}
.bio-wrap p:last-child { margin-bottom: 0; }

.mission-quote {
  border-left: 4px solid var(--orange);
  padding: 4px 0 4px 24px;
  font-size: 20px;
  color: var(--navy);
  font-style: italic;
  margin: 0 0 40px;
}

/* Contact */
form.contact-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
form.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 { color: var(--navy); margin-top: 0; }
.contact-info p.social { display: flex; gap: 14px; margin-top: 18px; }
.contact-info a.social-link {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.contact-info a.social-link:hover { background: #fff; border-color: var(--orange); }

/* Photo gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid a.photo-item,
.photo-grid .photo-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--border);
}
.photo-grid .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.photo-grid .photo-item:hover img { transform: scale(1.04); }

@media (max-width: 860px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9c4d4;
  padding: 40px 0 30px;
  margin-top: 40px;
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}
footer.site-footer a { color: #dfe6f0; text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
footer .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
