/* ============================================================
   STOM-MED — static rebuild
   Palette: ink #1E3340 · teal #147D8C · mist #EEF4F6 · white
   Type: Manrope (Google Fonts)
   ============================================================ */

:root {
  --ink: #1e3340;
  --ink-soft: #47606e;
  --teal: #147d8c;
  --teal-dark: #0d5d69;
  --mist: #eef4f6;
  --line: #d8e4e8;
  --white: #ffffff;
  --radius: 10px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--teal); }

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

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-radius: 6px;
}

.nav-menu a:hover,
.nav-menu a:focus-visible { color: var(--teal); background: var(--mist); }

/* dropdown */
.has-sub { position: relative; }

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(30, 51, 64, 0.12);
}

.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { display: block; }

.sub-menu a { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section.alt { background: var(--mist); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 6px;
  margin: 0 0 14px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 18px; }
h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 800; }

.lead { font-size: 18px; color: var(--ink-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col.reverse > .col-media { order: 2; }

.col-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(30, 51, 64, 0.14);
}

.checklist { list-style: none; margin: 18px 0 0; padding: 0; }
.checklist li { position: relative; padding: 4px 0 4px 30px; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--teal);
  font-weight: 800;
}

/* hero (subpages) */
.page-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,51,64,0.15), rgba(30,51,64,0.65));
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  margin: 0 0 34px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* video */
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(30, 51, 64, 0.16);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* mission cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card img { height: 210px; width: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { margin: 0; color: var(--ink-soft); font-weight: 600; }

/* personnel */
.person {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}
.person img { border-radius: var(--radius); box-shadow: 0 12px 34px rgba(30,51,64,0.14); }
.person .role { color: var(--teal); font-weight: 700; margin-top: -8px; }

/* galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery.certs img { aspect-ratio: 3 / 4; object-fit: cover; }
.gallery a:hover img { transform: scale(1.04); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 30, 37, 0.92);
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 22px;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* map + contact */
.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-details p { margin: 6px 0; }
.contact-details .name { font-weight: 800; font-size: 19px; }
.contact-details a { font-weight: 700; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

.contact-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  background: var(--teal);
  color: #fff;
}
.btn:hover { background: var(--teal-dark); }
.btn.ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn.ghost:hover { background: var(--mist); }

/* footer */
.site-footer {
  background: var(--ink);
  color: #c6d5dc;
  padding: 26px 0;
  font-size: 14px;
}
.site-footer a { color: #fff; }

/* content pages */
.content ol, .content ul { padding-left: 24px; }
.content li { margin: 4px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .two-col.reverse > .col-media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person img { max-width: 340px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 12px 16px;
    box-shadow: 0 14px 30px rgba(30,51,64,0.12);
  }
  .nav-menu.open { display: flex; }
  .sub-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
  }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
