:root {
  --hrdon-ink: #112b3c;
  --hrdon-ocean: #0b5f78;
  --hrdon-sky: #4ea4bf;
  --hrdon-mint: #d6f0ed;
  --hrdon-sand: #f4efe7;
  --hrdon-gold: #f2b95c;
  --hrdon-coral: #df7d63;
}

html,
body {
  min-height: 100%;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--hrdon-ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 8% 5%, rgba(78, 164, 191, 0.14), transparent 28%),
    radial-gradient(
      circle at 92% 2%,
      rgba(242, 185, 92, 0.12),
      transparent 22%
    ),
    linear-gradient(180deg, #fdfefe 0%, #f6faf9 56%, #eef5f4 100%);
}

main {
  flex: 1 0 auto;
}

footer {
  margin-top: auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", "Segoe UI", serif;
  letter-spacing: -0.02em;
}

.hero-mesh {
  background:
    radial-gradient(
      circle at 12% 14%,
      rgba(78, 164, 191, 0.24),
      transparent 40%
    ),
    radial-gradient(
      circle at 84% 18%,
      rgba(242, 185, 92, 0.2),
      transparent 30%
    ),
    linear-gradient(140deg, #f8fdfc 0%, #eff8f7 44%, #e9f2f6 100%);
}

.page-banner {
  background:
    linear-gradient(130deg, rgba(11, 95, 120, 0.08), rgba(78, 164, 191, 0.06)),
    linear-gradient(30deg, rgba(223, 125, 99, 0.08), rgba(242, 185, 92, 0.08));
  border-bottom: 1px solid rgba(78, 164, 191, 0.2);
}

.photo-slot {
  background: repeating-linear-gradient(
    -45deg,
    rgba(11, 95, 120, 0.1) 0,
    rgba(11, 95, 120, 0.1) 12px,
    rgba(255, 255, 255, 0.5) 12px,
    rgba(255, 255, 255, 0.5) 24px
  );
  border: 1px solid rgba(78, 164, 191, 0.28);
}

.hero-section {
  min-height: clamp(480px, 64vh, 680px);
}

#hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 28, 40, 0.32),
      rgba(10, 28, 40, 0.08) 52%,
      rgba(10, 28, 40, 0.16)
    ),
    radial-gradient(
      circle at 78% 18%,
      rgba(214, 240, 237, 0.16),
      transparent 34%
    );
}

.hero-content {
  background: linear-gradient(
    132deg,
    rgba(14, 39, 55, 0.66),
    rgba(11, 95, 120, 0.42)
  );
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.7rem;
  padding: 1.6rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 22px 48px -34px rgba(7, 22, 32, 0.72);
  text-shadow: 0 1px 2px rgba(7, 19, 27, 0.56);
}

.hero-compact {
  max-width: 56rem;
}

@media (min-width: 1024px) {
  .hero-content {
    margin-right: 1rem;
    padding: 2rem;
  }
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -9px;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hrdon-ocean), var(--hrdon-gold));
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(78, 164, 191, 0.22);
  backdrop-filter: blur(7px);
  box-shadow: 0 20px 36px -26px rgba(17, 43, 60, 0.6);
}

.ribbon {
  background: linear-gradient(
    92deg,
    rgba(11, 95, 120, 0.9),
    rgba(78, 164, 191, 0.93)
  );
}

.news-item {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -24px rgba(17, 43, 60, 0.75);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.active-nav {
  color: #ffffff;
  background: linear-gradient(90deg, var(--hrdon-ocean), var(--hrdon-sky));
}

.footer-pattern {
  background:
    linear-gradient(155deg, #102030 20%, #163c54 100%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.04) 0 4px,
      transparent 4px 8px
    );
}

.modal-text-pane {
  max-height: min(62vh, 560px);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.modal-richtext {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .modal-image {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 767px) {
  header .max-w-7xl {
    position: relative;
  }

  header .max-w-7xl > div > a {
    min-width: 0;
  }

  header .max-w-7xl > div > a > div:first-child {
    height: 2.35rem;
    width: 2.35rem;
    font-size: 0.64rem;
  }

  header .max-w-7xl > div > a > div:last-child p:first-child {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 178px;
  }

  header .max-w-7xl > div > a > div:last-child p:last-child {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  #mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    inset-inline: auto 0;
    height: 100dvh;
    width: min(84vw, 320px);
    border-bottom: 0;
    border-left: 1px solid rgba(78, 164, 191, 0.25);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: -12px 0 38px -26px rgba(17, 43, 60, 0.72);
    padding: 5.3rem 1rem 1rem;
    text-align: left;
    z-index: 110;
  }

  #mobile-menu a {
    display: block;
    border-radius: 0.8rem;
    padding: 0.72rem 0.8rem;
  }

  #mobile-menu-btn {
    min-width: 72px;
    min-height: 40px;
    position: relative;
    z-index: 85;
  }

  #mobile-menu-btn svg {
    display: block;
    pointer-events: none;
  }

  body.mobile-menu-open #mobile-menu-btn {
    position: fixed;
    top: 0.78rem;
    right: 1rem;
    z-index: 140;
    width: 2.6rem;
    height: 2.6rem;
    min-width: 2.6rem;
    min-height: 2.6rem;
    padding: 0;
    border-radius: 999px;
    background: var(--hrdon-ocean);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 24px -16px rgba(17, 43, 60, 0.9);
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 23, 33, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 40;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-section {
    min-height: 0;
  }

  .hero-content {
    border-radius: 1.3rem;
    padding: 1.2rem;
  }

  .photo-slot {
    border-radius: 1.2rem;
    padding: 0.7rem;
  }
}
