:root {
  --navy: #0b3d66;
  --navy-deep: #082c4a;
  --sky: #2b87c9;
  --sky-light: #e7f1f9;
  --accent: #e8a23d;
  --ink: #1c2733;
  --muted: #5b6b7a;
  --paper: #ffffff;
  --paper-alt: #f5f8fb;
  --line: #dde6ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 61, 102, 0.10);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #16242f;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 6px 18px rgba(232, 162, 61, 0.35);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 162, 61, 0.45); }

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

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand .logo {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.brand .logo svg { width: 26px; height: 26px; }
.brand b { font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; letter-spacing: 0.02em; display: block; line-height: 1; }
.brand span { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

nav.links { display: flex; align-items: center; gap: 26px; }
nav.links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.links a:hover { color: var(--sky); }
nav.links .btn { color: #16242f; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--navy);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 44, 74, 0.72), rgba(8, 44, 74, 0.86)),
    radial-gradient(1200px 500px at 80% -10%, rgba(43, 135, 201, 0.55), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-deep));
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='2'%3E%3Cpath d='M0 320 C 300 220 600 360 1200 200'/%3E%3Cpath d='M0 360 C 350 280 700 380 1200 260'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 96px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 16ch;
  margin-bottom: 0.3em;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}
.fact {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 200px;
  flex: 1 1 200px;
}
.fact .k { font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; color: #fff; }
.fact .v { font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }

/* ---------- Sub-page hero (slim) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 44, 74, 0.80), rgba(8, 44, 74, 0.90)),
    linear-gradient(135deg, var(--navy), var(--navy-deep));
}
.page-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.2em; }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 60ch; margin: 0; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 60ch; margin-bottom: 38px; }
.section-head .eyebrow { color: var(--sky); }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: var(--navy); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sky-light);
  color: var(--navy);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.5rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

/* ---------- Meeting / Young Eagles split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.panel h3 { color: #fff; font-size: 1.8rem; }
.meeting-list { list-style: none; margin: 18px 0 0; padding: 0; }
.meeting-list li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.meeting-list li:first-child { border-top: none; }
.meeting-list .ic { color: var(--accent); flex: none; }
.meeting-list .ic svg { width: 22px; height: 22px; }
.meeting-list b { display: block; font-size: 1.05rem; }
.meeting-list small { color: rgba(255,255,255,0.78); }

.ye-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #16242f;
  font-weight: 700; padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; margin-bottom: 16px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky-light), #d6e6f4);
  border: 1px dashed #b9d0e6;
  display: grid; place-items: center;
  color: var(--navy);
  text-align: center;
  padding: 16px;
}
.tile svg { width: 40px; height: 40px; opacity: 0.55; margin-bottom: 8px; }
.tile small { display: block; color: var(--muted); font-size: 0.82rem; }
.gallery-embed {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 600px;
  background: #fff;
}
.gallery-note {
  margin-top: 18px; font-size: 0.92rem; color: var(--muted);
  background: var(--sky-light); border-radius: 10px; padding: 12px 16px;
  border: 1px solid #cfe1f1;
}

/* ---------- Custom media gallery ---------- */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1024px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .media-grid { grid-template-columns: repeat(2, 1fr); } }
.media-tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); background: var(--sky-light);
  cursor: pointer; box-shadow: var(--shadow);
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.media-tile:hover img { transform: scale(1.05); }
.media-tile .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(8,44,74,0.28); color: #fff; pointer-events: none;
}
.media-tile .play svg { width: 54px; height: 54px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.media-empty, .media-loading { text-align: center; color: var(--muted); padding: 48px 0; }
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--sky);
  border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,24,40,0.93);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox .box { position: relative; width: min(1000px, 100%); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 10px; }
.lightbox iframe { width: 100%; height: 80vh; border: 0; border-radius: 10px; background: #000; display: block; }
.lightbox .close {
  position: absolute; top: -46px; right: 0; background: none; border: none;
  color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* Upload form (sits on the blue panel) */
.dropzone {
  border: 2px dashed rgba(255,255,255,0.55); border-radius: var(--radius);
  padding: 28px; text-align: center; color: rgba(255,255,255,0.95); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dropzone:hover, .dropzone.drag { background: rgba(255,255,255,0.10); border-color: #fff; }
.dropzone svg { width: 40px; height: 40px; opacity: .9; margin-bottom: 8px; }
.dropzone small { display: block; opacity: .8; margin-top: 6px; font-size: .85rem; }
.upload-list { margin: 14px 0 0; padding: 0; list-style: none; }
.upload-list li {
  display: flex; justify-content: space-between; gap: 12px; font-size: .9rem;
  color: rgba(255,255,255,0.95); padding: 7px 0; border-top: 1px solid rgba(255,255,255,0.16);
}
.upload-list .ok { color: #b9f6c1; }
.upload-list .err { color: #ffc9c9; }
.upload-msg { margin-top: 14px; font-weight: 700; color: #fff; min-height: 1.2em; }

/* ---------- Teaser (home -> gallery) ---------- */
.teaser {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.teaser h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.teaser p { color: rgba(255,255,255,0.88); margin: 0 0 22px; }
.teaser-art {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.teaser-art .chip {
  aspect-ratio: 1 / 1; border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center; color: rgba(255,255,255,0.55);
}
.teaser-art .chip svg { width: 38px; height: 38px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--sky-light); color: var(--navy); display: grid; place-items: center; flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item b { display: block; color: var(--navy); }
.contact-item a, .contact-item span { color: var(--muted); text-decoration: none; word-break: break-word; }
.contact-item a:hover { color: var(--sky); }
.placeholder { color: #b06a00; background: #fff4e0; padding: 1px 7px; border-radius: 6px; font-size: 0.92em; }

.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 300px; background: var(--paper-alt); display: grid; place-items: center; text-align: center; padding: 24px; }
.map-card p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 28px;
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer .brand b { color: #fff; }
footer .brand span { color: rgba(255,255,255,0.6); }
footer a { color: #aee0ff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; font-weight: 500; }
.foot-links a:hover { text-decoration: underline; }
.foot-bottom {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    padding: 8px 22px 18px;
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.links .btn { text-align: center; margin-top: 12px; }
  .menu-toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-2, .contact-grid, .teaser { grid-template-columns: 1fr; }
}
