:root {
  --navy: #0b1f38;
  --navy-soft: #132a4a;
  --blue: #1a5cad;
  --blue-bright: #2b7de0;
  --red: #c1121f;
  --red-deep: #8e0d17;
  --cream: #f4f0e8;
  --paper: #fffdf9;
  --ink: #14181f;
  --muted: #5c6573;
  --line: #d9d3c8;
  --shadow: 0 18px 50px rgba(11, 31, 56, 0.14);
  --radius: 18px;
  --header-h: 84px;
  --max: 1180px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.topbar {
  background: var(--navy);
  color: #d7e4f5;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 38px;
}
.topbar a { color: #d7e4f5; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 1.1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 31, 56, 0.08);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 0 0 3px var(--red);
}
.brand-text strong {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--navy);
}
.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav > a,
.nav .drop > button {
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav > a:hover,
.nav .drop > button:hover,
.nav > a.is-active,
.nav .drop.is-active > button {
  background: var(--navy);
  color: #fff;
}

.drop { position: relative; }
.drop-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.55rem;
  border: 1px solid var(--line);
}
.drop:hover .drop-panel,
.drop:focus-within .drop-panel,
.drop.open .drop-panel { display: grid; }
.drop-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 600;
}
.drop-panel a:hover { background: var(--cream); color: var(--red); }
.drop-panel .sub {
  margin: 0.2rem 0 0.45rem 0.7rem;
  padding-left: 0.7rem;
  border-left: 2px solid var(--red);
  display: grid;
  gap: 0.1rem;
}
.drop-panel .sub a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--navy);
}
.icon-btn:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.menu-toggle { display: none; }

/* Search */
.search-layer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 56, 0.55);
  z-index: 80;
  padding: 12vh 1rem 1rem;
}
.search-layer.open { display: block; }
.search-box {
  width: min(680px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1.05rem;
}
.search-results { margin-top: 0.8rem; display: grid; gap: 0.35rem; }
.search-results a {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  color: var(--navy);
  background: var(--cream);
}
.search-results a:hover { background: var(--navy); color: #fff; }
.search-results small { display: block; color: var(--muted); font-size: 0.8rem; }

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 31, 56, 0.15) 0%, rgba(11, 31, 56, 0.82) 78%),
    linear-gradient(90deg, rgba(193, 18, 31, 0.35), transparent 42%);
}
.hero-inner { padding: 3.5rem 0 3.2rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.92;
  margin: 0.7rem 0 0.8rem;
  max-width: 14ch;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero p.lead {
  max-width: 46ch;
  font-size: 1.08rem;
  color: #e8eef6;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; background: var(--blue); }

/* Page hero */
.page-hero {
  background:
    linear-gradient(120deg, rgba(11, 31, 56, 0.88), rgba(193, 18, 31, 0.55)),
    url("../assets/images/hero.jpg") center/cover;
  color: #fff;
  padding: 3.4rem 0 2.6rem;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0.4rem 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
}
.page-hero p { margin: 0; max-width: 58ch; color: #e8eef6; }
.crumbs {
  font-size: 0.88rem;
  color: #d7e4f5;
}
.crumbs a { color: #fff; }

/* Layout */
.section { padding: 4.2rem 0; }
.section-tight { padding: 2.6rem 0 4rem; }
.section-navy { background: var(--navy); color: #fff; }
.section-paper { background: var(--paper); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.section-head h2,
.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--navy);
}
.section-navy .section-head h2 { color: #fff; }
.section-head p { margin: 0.35rem 0 0; color: var(--muted); }

.grid-2 {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}
.grid-3, .grid-4, .cards {
  display: grid;
  gap: 1.1rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.welcome-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f3c400;
}
.welcome-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.prose p { margin: 0 0 1rem; color: #2a3140; }
.sign {
  font-weight: 800;
  color: var(--navy);
  margin-top: 1.2rem;
}
.quote-mark {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--red);
  margin: 0 0 0.6rem;
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 31, 56, 0.08);
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(11, 31, 56, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.card-body { padding: 1.1rem 1.15rem 1.25rem; }
.card-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
}
.card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.team-card img { aspect-ratio: 16/11; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -2.4rem;
  position: relative;
  z-index: 2;
}
.stat {
  background: #fff;
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--red);
  line-height: 1;
}
.stat span { color: var(--muted); font-size: 0.92rem; }

/* Team switcher */
.team-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.6rem;
}
.team-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
}
.team-nav a:hover,
.team-nav a.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.gallery {
  display: grid;
  gap: 1rem;
}
.gallery.two { grid-template-columns: 1.4fr 0.8fr; }
.gallery img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
  box-shadow: var(--shadow);
}
.gallery.single img { max-height: 640px; width: 100%; object-fit: contain; background: #fff; }
.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 1.4rem;
  justify-content: center;
}
.poster-grid img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #fff;
}

/* Events */
.event {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(11, 31, 56, 0.08);
  color: inherit;
}
a.event:hover { color: inherit; }
.event-date {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  text-align: center;
  padding: 0.7rem 0.4rem;
}
.event-date .d {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  display: block;
}
.event-date .m {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.event h3 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--navy);
}
.event p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.meta-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.meta-item span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 800;
}
.meta-item b { font-size: 1.05rem; }

.notice {
  background: #fff4e5;
  border-left: 4px solid var(--red);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin: 1rem 0 1.4rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c9d6e8;
  padding: 3rem 0 1.4rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h3 {
  color: #fff;
  font-family: var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.site-footer a { color: #c9d6e8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  font-size: 0.85rem;
}

/* Forms */
.comment-form,
.search-form {
  display: grid;
  gap: 0.8rem;
  max-width: 640px;
}
label { font-weight: 700; font-size: 0.92rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
}

.empty {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4, .cards-2, .gallery.two, .stats, .footer-grid, .poster-grid, .event, .meta-grid {
    grid-template-columns: 1fr;
  }
  .menu-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .drop-panel {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.4rem 0.8rem;
  }
  .drop.open .drop-panel { display: grid; }
  .hero { min-height: 68vh; }
}

@media (max-width: 640px) {
  .brand-text strong { font-size: 1.15rem; }
  .brand img { width: 46px; height: 46px; }
}
