/* ---------- Base ---------- */
:root{
  --bg: #0b1220;
  --surface: rgba(255,255,255,0.1);
  --surface-2: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --border: rgba(255,255,255,0.16);
  --shadow: 0 18px 45px rgba(0,0,0,0.30);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1120px;
  --accent: rgba(235, 245, 238, 0.95); /* soft off-white */
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: 
              #1d4639;
  color: #ffffff;
  line-height: 1.55;
}
html{
  scrollbar-gutter: stable;
}


a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow{ width: min(820px, calc(100% - 40px)); }

h1, h2{
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}
h1{ font-size: clamp(28px, 4vw, 44px); }
h2{ font-size: clamp(22px, 2.8vw, 30px); }

p{ margin: 0 0 12px 0; color: var(--text); }
.muted{ color: var(--muted); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(29,70,57,0.80);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 16px;
  }

.brand-logo{
  width: 132px;
  height: 132px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 0;
}

.brand-title{
  font-weight: 650;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
}

.brand-acronym{
  display: block;             /* forces onto second line */
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}
  .brand-subtitle{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;          /* was wrap */
  justify-content: flex-end;
  white-space: nowrap;        /* keep links on one line */
}

.nav-link{
  padding: 5px 7px;      /* slightly tighter */
  font-size: 14px;       /* larger, more readable */
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav-link:hover{
  text-decoration: none;
  border-color: var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.nav-link.active{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.08);
}

/* ---------- Hero ---------- */
.hero{ margin: 0; }
.hero-media{
  min-height: 72vh;
  display: grid;
  align-items: end;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% 15%, rgba(0,0,0,0.18), transparent 60%),
    linear-gradient(to top,
      rgba(29,70,57,0.88),
      rgba(29,70,57,0.40) 55%,
      rgba(29,70,57,0.10)
    );
}

.hero-content{
  position: relative;
  padding: 56px 0 46px 0;
}

.hero-content h1{
  max-width: 18ch;
  margin-bottom: 12px;
}

.hero-content p{
  max-width: 58ch;
  font-size: 16px;
  color: rgba(255,255,255,0.86);
  margin-bottom: 18px;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Sections / Cards ---------- */
.section{
  padding: 54px 0;
}
.section-alt{
  padding: 56px 0 70px 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

/* Make links inside content visibly clickable */
.card a{
  color: rgba(235,245,238,0.95);     /* slightly brighter than body text */
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.card a:hover{
  color: #ffffff;
  text-decoration-thickness: 2px;
}

.grid-2{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.grid-2 > .card{
  height: 100%;
}

.media{
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}
.media img{
  width: 100%;
  height: 100%;
  flex: 1;
  display: block;
  object-fit: cover;
  min-height: 0;   /* removes forced min height */
}

.caption{
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(11,18,32,0.55);
}

.inline-note{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ---------- Lists & Buttons ---------- */
.bullets{
  margin: 14px 0 0 0;
  padding-left: 18px;
}
.bullets li{
  margin: 10px 0;
  color: rgba(255,255,255,0.88);
}

.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  gap: 8px;
}
.button:hover{
  text-decoration: none;
  transform: none;
  filter: brightness(1.02);
}

.button.primary{
  background: var(--accent);
  color: rgba(16, 38, 31, 0.98);
  border-color: rgba(255,255,255,0.70);
}
.button.secondary{
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.button.ghost{
  background: transparent;
  color: var(--text);
}
.guidelines-actions{
  margin: 10px 0 18px 0;
}

.button.small{
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 999px;
}

.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.contact-item{
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ---------- Gallery ---------- */
.gallery-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.gallery-item{
  grid-column: span 6;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}
.gallery-item img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.gallery-item.placeholder{
  display: grid;
  place-items: center;
  min-height: 320px;
}
.placeholder-box{
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(11,18,32,0.7);
}
.footer-inner{
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
}
.footer-title{
  font-weight: 700;
}
.footer-text{
  font-size: 13px;
  color: var(--muted);
}
.footer-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a{
  color: var(--muted);
}
.footer-links a:hover{
  color: var(--text);
}

/* Tighten the gap between Introduction and Background & Objectives */
#introduction.section{
  padding-bottom: 24px;   /* was 54px */
}

.section-alt{
  padding-top: 24px;      /* was 56px */
}


/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .header-inner{
    flex-direction: column;
    align-items: stretch;
  }
  .nav{
    justify-content: flex-start;
  }
  .grid-2{
    grid-template-columns: 1fr;
  }
  .media img{
    min-height: 220px;
  }
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .footer-inner{
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 640px){
  .hero-media{
    min-height: 66vh;
  }
  .gallery-item{
    grid-column: span 12;
  }
  .gallery-item img,
  .gallery-item.placeholder{
    min-height: 240px;
    height: 240px;
  }
}
/* ---------- Gallery Filters ---------- */
.gallery-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px 0;
}

.filter-btn{
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.filter-btn:hover{
  background: rgba(255,255,255,0.09);
}

.filter-btn.is-active{
  background: var(--accent);
  color: rgba(16, 38, 31, 0.98);
  border-color: rgba(255,255,255,0.70);
}

/* ---------- Editorial Gallery Layout ---------- */
.gallery-grid.editorial{
  grid-auto-flow: dense;
}

/* Default tiles in editorial grid */
.gallery-grid.editorial .gallery-item{
  grid-column: span 6;
}

/* “Feature” tiles */
.gallery-item--wide{
  grid-column: span 12;
}

.gallery-item--tall img{
  height: 520px; /* makes it feel editorial */
}

/* Make the click area feel natural */
.gallery-open{
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

/* Keep your existing image styling, but ensure button doesn’t add spacing */
.gallery-open img{
  display: block;
  width: 100%;
}

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.lightbox.is-open{
  display: block;
}

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.lightbox-panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lightbox-img{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,0.25);
}

.lightbox-caption{
  padding: 10px 14px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.lightbox-close{
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Small hero variant (Guidelines) ---------- */
.hero-media-small{
  min-height: 38vh;           /* smaller than main hero */
}

.hero-content-small{
  padding: 34px 0 26px 0;     /* tighter */
}

.hero-overlay-small{
  background:
    radial-gradient(900px 500px at 15% 15%, rgba(0,0,0,0.14), transparent 60%),
    linear-gradient(to top,
      rgba(29,70,57,0.86),
      rgba(29,70,57,0.32) 55%,
      rgba(29,70,57,0.08)
    );
}

/* ---------- Guidelines list ---------- */
.guidelines{
  margin: 14px 0 0 0;
  padding-left: 20px;
}

.guidelines li{
  margin: 12px 0;
  color: rgba(255,255,255,0.90);
}

.guidelines strong{
  color: rgba(255,255,255,0.98);
}


/* Responsive: make editorial tiles stack nicely */
@media (max-width: 860px){
  .gallery-grid.editorial .gallery-item{
    grid-column: span 12;
  }
  .gallery-item--tall img{
    height: 360px;
  }
}

