/* Security-friendly baseline styles with premium blue family palette. */
:root {
  --bg-0: #0d1b2a;
  --bg-1: #102a43;
  --bg-2: #163a63;
  --ivory: #f5faff;
  --text-soft: rgba(245, 250, 255, 0.82);

  --blue-primary: #102a43;
  --blue-mid: #1b4d8c;
  --blue-light: #6fa8dc;
  --blue-powder: #b9d3f0;
  --accent-gold: #e8c27d;

  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.09);
  --focus: 0 0 0 3px rgba(185, 211, 240, 0.34);
  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 14px 32px rgba(3, 11, 25, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ivory);
  background:
    radial-gradient(circle at 14% -10%, rgba(111, 168, 220, 0.2), transparent 34%),
    radial-gradient(circle at 90% -8%, rgba(46, 111, 183, 0.18), transparent 36%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 56%, var(--bg-2) 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(185, 211, 240, 0.32);
  color: var(--ivory);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

[hidden],
.hidden {
  display: none !important;
}

.site-header,
.site-header * {
  box-sizing: border-box;
}

.site-header {
  background: linear-gradient(180deg, rgba(15, 33, 53, 0.96), rgba(13, 27, 42, 0.93));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header p,
.site-header ul {
  margin: 0;
  padding: 0;
}

.site-header nav {
  display: none;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-header img {
  display: block;
}

.site-header > div:first-child {
  min-height: 72px;
}

.site-header nav a,
#mobile-menu a,
#menu-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--ivory);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem 1rem;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: var(--glass-shadow);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-header nav a::before,
#mobile-menu a::before,
#menu-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 320ms ease;
}

.site-header nav a:hover,
#mobile-menu a:hover,
#menu-btn:hover {
  border-color: rgba(185, 211, 240, 0.76);
  background: rgba(111, 168, 220, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.site-header nav a:hover::before,
#mobile-menu a:hover::before,
#menu-btn:hover::before {
  left: 140%;
}

.site-header nav a.active-nav,
#mobile-menu a.active-nav {
  border-color: rgba(232, 194, 125, 0.9) !important;
  background: linear-gradient(160deg, rgba(232, 194, 125, 0.28), rgba(232, 194, 125, 0.14)) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(232, 194, 125, 0.25), 0 12px 28px rgba(7, 18, 33, 0.36);
}

.site-header nav a.active-nav::before,
#mobile-menu a.active-nav::before {
  left: 140%;
}

[class*='text-sandal'] {
  color: var(--accent-gold) !important;
}

.founder-signature {
  font-family: 'Dancing Script', 'Brush Script MT', cursive !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

main a[class*='bg-sandal'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  background: #e8c27d !important;
  color: #1f2f48 !important;
  border: 1px solid rgba(232, 194, 125, 0.9);
  box-shadow: 0 10px 24px rgba(19, 34, 58, 0.28);
}

main a[class*='bg-sandal']:hover {
  background: #f0d39c !important;
  color: #18253a !important;
  box-shadow: 0 14px 30px rgba(19, 34, 58, 0.38);
}

#menu-btn {
  display: inline-flex;
  min-height: 40px;
  cursor: pointer;
}

#mobile-menu {
  background: linear-gradient(180deg, rgba(16, 42, 67, 0.98), rgba(13, 27, 42, 0.96));
}

#mobile-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 0.75rem;
}

@media (min-width: 768px) {
  .site-header nav,
  .site-header nav.hidden {
    display: block !important;
  }

  #menu-btn {
    display: none !important;
  }

  #mobile-menu,
  #mobile-menu.hidden {
    display: none !important;
  }
}

.glass {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
}

main article,
main div[class*='rounded-[2rem]'][class*='border'] {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(3, 11, 25, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

main article:hover,
main div[class*='rounded-[2rem]'][class*='border']:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(3, 11, 25, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border-color: rgba(185, 211, 240, 0.42);
}

main img[class*='object-cover'] {
  transition: transform 320ms ease;
}

main a:hover img[class*='object-cover'],
main article:hover img[class*='object-cover'] {
  transform: scale(1.015);
}

.event-strip {
  scrollbar-width: none;
}

.event-strip::-webkit-scrollbar {
  display: none;
}

footer {
  background: linear-gradient(180deg, rgba(14, 32, 52, 0.96), rgba(8, 18, 30, 0.98));
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-clickable {
  cursor: zoom-in;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 11, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(1200px, 94vw);
  height: min(92vh, 920px);
  margin: 4vh auto;
  padding: 1rem;
}

.gallery-lightbox-figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 1.25rem;
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.gallery-lightbox-image {
  width: 100%;
  height: calc(100% - 3.2rem);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}

.gallery-lightbox-caption {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: rgba(245, 250, 255, 0.9);
  text-align: center;
}

.gallery-lightbox-btn {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  color: #fff;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.gallery-lightbox-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 211, 240, 0.75);
  background: rgba(111, 168, 220, 0.24);
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  font-size: 1.25rem;
  width: 2.6rem;
  height: 2.6rem;
}

.gallery-lightbox-counter {
  position: absolute;
  bottom: 0.3rem;
  right: 0.6rem;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: rgba(245, 250, 255, 0.9);
}

@media (max-width: 820px) {
  .gallery-lightbox-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0.75rem;
    height: 94vh;
    margin: 3vh auto;
  }

  .gallery-lightbox-figure {
    min-height: 0;
  }

  .gallery-lightbox-image {
    height: calc(100% - 3rem);
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .gallery-lightbox-prev {
    left: 0.5rem;
  }

  .gallery-lightbox-next {
    right: 0.5rem;
  }
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
