/* ============================================
   PASS — Professional Academy of Security Studies
   ============================================ */

:root {
  --navy-900: #061a33;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --navy-600: #1d4477;
  --gold: #c9a227;
  --gold-light: #e3bf4a;
  --ink: #1a1f2b;
  --body: #4a5468;
  --line: #e2e6ed;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, .08), 0 1px 2px rgba(11, 37, 69, .06);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, .10);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, .16);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin: 0 0 1.1em; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.8rem; border-radius: 6px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; transform: translateY(-2px); }
.btn.full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(11, 37, 69, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(6, 26, 51, .98); box-shadow: 0 2px 20px rgba(0,0,0,.25); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 7px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold), #a8861c);
  color: var(--navy-900); font-family: var(--head); font-weight: 700; font-size: 1.5rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--head); font-size: 1.5rem; letter-spacing: .06em; color: #fff; }
.brand-text small { font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; color: rgba(255,255,255,.62); }

.primary-nav { display: flex; align-items: center; gap: .35rem; }
.primary-nav a {
  color: rgba(255,255,255,.82); padding: .55rem .85rem; border-radius: 5px;
  font-size: .9rem; font-weight: 500; transition: color .15s, background .15s;
}
.primary-nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.primary-nav a.active { color: var(--gold-light); }
.primary-nav .nav-cta {
  background: var(--gold); color: var(--navy-900); font-weight: 600; margin-left: .5rem;
}
.primary-nav .nav-cta:hover { background: var(--gold-light); color: var(--navy-900); }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0;
  cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: 11rem 0 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(115deg, rgba(6,26,51,.96) 0%, rgba(11,37,69,.90) 45%, rgba(19,49,92,.82) 100%),
    url("../images/gallery-04-group-drill.jpg") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(6,26,51,.5));
}
.hero-inner { max-width: 820px; padding-bottom: 5.5rem; }

.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light);
  border: 1px solid rgba(201,162,39,.45); border-radius: 100px;
  padding: .4rem 1rem; margin-bottom: 1.5rem; background: rgba(201,162,39,.08);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 700; color: #fff;
  margin-bottom: .45em; letter-spacing: -.015em;
}
.hero h1 span { color: var(--gold-light); }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.86); max-width: 62ch; }

.pledge {
  font-family: var(--head); font-size: 1.5rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: .04em; margin: 1.6rem 0 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-stats { position: relative; background: rgba(255,255,255,.07); border-top: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.9rem 1rem; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--head); font-size: 2rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-800); color: rgba(255,255,255,.85); }
.section-dark h2 { color: #fff; }

.section-eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .9rem;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-head { max-width: 680px; margin-bottom: 3.2rem; }
.section-sub { font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-2.reverse > figure { order: -1; }

.about-figure { margin: 0; }
.about-figure img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-figure figcaption { margin-top: .9rem; font-size: .85rem; color: #7b8699; font-style: italic; }

/* Founder card */
.founder-card {
  display: flex; align-items: center; gap: 1rem; margin-top: 2rem;
  padding: 1.1rem 1.3rem; background: var(--bg-alt);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
}
.founder-avatar {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-800);
  color: var(--gold-light); font-family: var(--head); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em;
}
.founder-card strong { display: block; color: var(--ink); font-size: 1.05rem; }
.founder-card span { font-size: .88rem; }
.tag {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; background: var(--navy-800); color: #fff;
  padding: .18rem .5rem; border-radius: 3px; margin-left: .4rem; vertical-align: middle;
}

/* Vision / Mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.vm-card {
  background: #fff; padding: 2.6rem 2.2rem; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vm-icon { font-size: 2rem; color: var(--gold); display: block; margin-bottom: .6rem; }
.vm-card p { margin: 0; }

/* Programs */
.program-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.program {
  position: relative; background: #fff; padding: 2rem 1.7rem 1.7rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.5); }
.program .num {
  font-family: var(--head); font-size: 2.4rem; font-weight: 700;
  color: rgba(11,37,69,.10); line-height: 1; display: block; margin-bottom: .3rem;
}
.program h3 { font-size: 1.18rem; margin-bottom: .45rem; }
.program p { font-size: .92rem; margin: 0; }

/* Check list */
.check-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 1.9rem; font-size: .97rem; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(201,162,39,.16); color: var(--gold);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}
.section-dark .check-list li::before { background: rgba(201,162,39,.22); color: var(--gold-light); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.gal {
  padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
}
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.gal:hover img { transform: scale(1.07); filter: brightness(1.05); }

/* Commitment */
.commitment { background: var(--navy-900); color: #fff; padding: 5.5rem 0; text-align: center; }
.commitment blockquote { margin: 0; max-width: 860px; margin-inline: auto; }
.commitment p {
  font-family: var(--head); font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500; line-height: 1.45; color: rgba(255,255,255,.93); margin-bottom: 1.4rem;
}
.commitment cite {
  font-style: normal; font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-light);
}

/* Contact */
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.ci {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--navy-700);
  display: grid; place-items: center; font-size: 1.15rem; box-shadow: var(--shadow-sm);
}
.contact-list small { display: block; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: #8a93a5; }
.contact-list a, .contact-list span:not(.ci) { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.contact-list a:hover { color: var(--gold); }

.contact-form { background: #fff; padding: 2.4rem; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .9rem; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.16);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .82rem; color: #8a93a5; text-align: center; margin: .9rem 0 0; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.68); padding: 4.5rem 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand { margin-bottom: 1.2rem; }
.site-footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  font-family: var(--sans); font-weight: 700; margin-bottom: 1.1rem;
}
.site-footer nav, .footer-grid > div:last-child { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: var(--gold-light); }
.footer-note { font-size: .82rem; color: rgba(255,255,255,.5); margin: 0 0 .4rem; }
.footer-pledge { font-family: var(--head); font-size: 1.15rem; color: var(--gold-light); letter-spacing: .04em; margin: 0; }
.muted { color: rgba(255,255,255,.45); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; color: rgba(255,255,255,.45);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(6,26,51,.95); padding: 4rem 1.5rem; backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 1100px; text-align: center; }
.lb-figure img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lb-figure figcaption { color: rgba(255,255,255,.8); font-size: .92rem; margin-top: 1rem; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  transition: background .18s, transform .18s;
}
.lb-close:hover, .lb-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.lb-close { top: 1.5rem; right: 1.5rem; width: 46px; height: 46px; font-size: 1.9rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.1rem; line-height: 1; }
.lb-nav:hover { transform: translateY(-50%) scale(1.07); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-2.reverse > figure { order: 0; }
  .vm-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.1); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--navy-900); padding: 1rem 6vw 1.8rem; gap: .2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .25s ease;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: .85rem .5rem; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  .primary-nav .nav-cta { margin: .8rem 0 0; text-align: center; border-bottom: 0; }
}

@media (max-width: 620px) {
  .section { padding: 4rem 0; }
  .hero { padding-top: 8.5rem; }
  .hero-inner { padding-bottom: 3.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-base { flex-direction: column; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.7rem; }
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
