:root {
  --ink: #14241f;
  --muted: #5a716c;
  --brand: #0d6b5c;
  --brand-dark: #084c41;
  --accent: #c4a35a;
  --surface: #ffffff;
  --line: rgba(255,255,255,0.22);
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: var(--font); color: var(--ink); background: #f3f7f5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.front-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.5rem;
  background: rgba(8, 76, 65, 0.92);
  backdrop-filter: blur(10px);
  color: #fff;
}
.front-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.15;
  min-width: 0;
}
.front-brand-text { color: #fff; }
.front-brand-text span { color: var(--accent); }
.front-brand-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.front-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  font-weight: 600;
}
.front-links a { color: rgba(255,255,255,0.9); opacity: 0.92; }
.front-links a:hover { color: #fff; text-decoration: underline; }
.front-login {
  background: var(--accent) !important;
  color: #1a2e2a !important;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  text-decoration: none !important;
}
.front-login:hover { filter: brightness(1.05); }

/* Hero — full-bleed photo banner */
.hero {
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: 0 1.5rem 4.5rem;
  color: #fff;
  background-color: #084c41;
  background-image:
    linear-gradient(180deg, rgba(8,76,65,0.35) 0%, rgba(8,76,65,0.55) 40%, rgba(8,40,35,0.88) 100%),
    url("images/hero-banner.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  animation: heroIn 0.9s ease-out both;
}
.hero::after {
  content: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-logo {
  width: min(220px, 52vw);
  height: auto;
  margin: 0 0 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 36px rgba(0,0,0,.28);
  animation: rise 0.8s 0.15s ease-out both;
}
.hero-brand {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  animation: rise 0.8s 0.15s ease-out both;
}
.hero-brand span { color: var(--accent); }
.hero-line {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 34ch;
  margin: 0 0 1.5rem;
  opacity: 0.92;
  animation: rise 0.8s 0.28s ease-out both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise 0.8s 0.4s ease-out both;
}
.btn-front {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font: inherit;
}
.btn-front-primary {
  background: var(--accent);
  color: #1a2e2a;
}
.btn-front-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-front:hover { filter: brightness(1.06); text-decoration: none; }

.section {
  padding: 3.2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  color: var(--brand-dark);
}
.section .lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 48ch;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}
.event-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  background: #1a2e2a;
  aspect-ratio: 4/3;
  box-shadow: 0 10px 28px rgba(13,107,92,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: left;
  font: inherit;
  color: inherit;
}
.event-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13,107,92,0.18);
}
.event-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  pointer-events: none;
}
.event-item:hover img { transform: scale(1.05); }
.event-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  pointer-events: none;
}
.event-cap strong { display: block; font-size: 1rem; }
.event-cap span { font-size: 0.82rem; opacity: 0.85; }

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 18, 16, 0.88);
  backdrop-filter: blur(4px);
}
.photo-lightbox[hidden] { display: none !important; }
.photo-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.photo-lightbox-close:hover { opacity: 1; }
.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.photo-lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.photo-lightbox-prev { left: 0.75rem; }
.photo-lightbox-next { right: 0.75rem; }
.photo-lightbox-nav[hidden] { display: none !important; }
.photo-lightbox-count {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
}
.photo-lightbox-figure {
  margin: 0;
  max-width: min(96vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.photo-lightbox-figure img {
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  background: #111;
}
.photo-lightbox-figure figcaption {
  text-align: center;
  color: #fff;
  max-width: 40rem;
}
.photo-lightbox-figure figcaption strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.photo-lightbox-figure figcaption span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}
.photo-lightbox-figure figcaption p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.45;
}

.about-block {
  display: grid;
  gap: 1rem;
  max-width: 640px;
}
.about-block p { color: var(--muted); line-height: 1.6; margin: 0; }

.front-footer {
  margin-top: 2rem;
  padding: 1.75rem 1.5rem;
  background: var(--brand-dark);
  color: rgba(255,255,255,0.85);
  display: grid;
  gap: 0.55rem;
  text-align: center;
}
.front-footer a { color: var(--accent); font-weight: 600; }
.front-footer .copy { font-size: 0.8rem; opacity: 0.7; }

.empty-note {
  color: var(--muted);
  padding: 1.5rem 0;
}

@keyframes heroIn {
  from { opacity: 0.6; }
  to { opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .front-nav { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 78vh; padding-bottom: 3rem; }
}
