:root {
  --navy: #103f80;
  --blue: #7e9dc8;
  --blue-deep: #6788b7;
  --text: #737373;
  --line: #d9d9d9;
  --white: #ffffff;
  --soft: #f4f7fb;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Calibri, "Segoe UI", Candara, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

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

a {
  color: var(--navy);
}

h1, h2, h3 {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

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

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rule {
  width: 92px;
  height: 3px;
  margin: 0.9rem 0 1.2rem;
  background: var(--blue);
}

.intro {
  max-width: 40rem;
  margin-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
}

.logo {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.topbar nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: var(--navy);
}

.nav-book {
  padding: 0.35rem 0.8rem;
  color: var(--white) !important;
  background: var(--navy);
}

.menu-btn {
  display: none;
  border: 1px solid var(--blue);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  padding: 0.35rem 0.7rem;
}

.page-header {
  padding: 1.1rem 1.25rem;
  text-align: center;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
}

.hero {
  padding: 2rem 0 2.5rem;
  text-align: center;
}

.hero-frame,
.photo-frame {
  background: var(--blue);
  padding: 1rem 1.4rem;
}

.hero-frame {
  margin: 1.4rem 0 1.2rem;
}

.hero-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.photo-frame img,
.space-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: var(--soft);
}

.lead {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 1rem;
}

.btn {
  display: inline-block;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--blue-deep);
}

section {
  padding: 4.2rem 0;
}

section h2 {
  margin-bottom: 1.25rem;
}

section:nth-of-type(even) {
  background: linear-gradient(
    to bottom,
    var(--white) 0,
    var(--soft) 4.5rem,
    var(--soft) calc(100% - 4.5rem),
    var(--white) 100%
  );
}

main section:not(.hero) {
  animation: section-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

@keyframes section-in {
  from {
    opacity: 0.35;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.event-list,
.facility-grid,
.quote-grid,
.gallery-grid,
.space-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-list {
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: none;
  padding-inline: clamp(2.75rem, 8vw, 6.5rem);
}

.event-list li {
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border-left: 4px solid var(--blue);
  color: var(--navy);
}

#spaces .wrap {
  width: min(1120px, calc(100% - clamp(3.5rem, 12vw, 9rem)));
}

.space-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.space-card,
.quote,
.booking-form {
  background: var(--white);
  border: 1px solid var(--line);
}

#spaces .space-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.7fr);
  align-items: center;
  gap: 2.5rem;
  min-height: 100vh;
  min-height: 100dvh;
  border: 0;
  background: transparent;
  padding-block: 2rem;
}

.space-photo {
  position: relative;
  height: calc(100dvh - 4rem);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: none;
  padding: 0;
}

.space-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}

.space-track,
.lightbox-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.space-track img,
.lightbox-track img {
  flex: none;
  min-width: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.lightbox-track img {
  object-fit: contain;
  transform-origin: center center;
  touch-action: none;
}

.space-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(16, 63, 128, 0.88);
  color: var(--white);
  line-height: 0;
  cursor: pointer;
}

.space-arrow.prev {
  left: 1rem;
}

.space-arrow.next {
  right: 1rem;
}

.space-arrow:hover,
.space-arrow:focus-visible {
  background: var(--navy);
}

.space-copy {
  padding: 0.5rem 0.25rem;
}

.capacity {
  margin: 0.35rem 0;
  color: var(--navy);
  font-weight: 700;
}

.space-copy p:last-child {
  margin-bottom: 0;
}

.facility-grid {
  grid-template-columns: repeat(4, 1fr);
}

.facility-grid li {
  padding: 1rem;
  background: var(--white);
  border-top: 4px solid var(--navy);
}

.facility-grid strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.facility-grid span {
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.location-walk,
.location-address {
  color: var(--navy);
  font-size: 1.15rem;
  margin: 0.2rem 0;
}

#pricing .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#pricing h2,
#pricing .intro {
  text-align: center;
}

#pricing .intro {
  margin-inline: auto;
}

.pricing-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  width: 100%;
}

#pricing .rate-table {
  width: 75%;
  margin-inline: auto;
  border: 1px solid var(--line);
}

#pricing .pricing-notes {
  width: 75%;
}

#pricing .pricing-notes h3 {
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

#pricing .pricing-notes li {
  margin: 0.2rem 0;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.rate-table th,
.rate-table td {
  padding: 0.75rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  color: var(--white);
  background: var(--navy);
  font-weight: 700;
}

.rate-table td:last-child,
.rate-table th:last-child {
  text-align: right;
  color: var(--navy);
  font-weight: 700;
}

.rate-table th:last-child {
  color: var(--white);
}

.pricing-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pricing-notes ul,
.contact-list {
  margin: 0;
  padding: 0;
}

.pricing-notes ul {
  list-style: disc;
  padding-left: 1.15rem;
}

.pricing-notes li {
  margin: 0.25rem 0;
}

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-grid span {
  display: block;
  padding: 0.45rem 0 0;
  background: transparent;
  color: var(--navy);
}

.quote-grid {
  grid-template-columns: repeat(3, 1fr);
}

.quote {
  margin: 0;
  padding: 1.3rem 1.2rem;
  border-top: 4px solid var(--blue);
}

.quote p {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.contact-heading {
  margin-top: 1.4rem;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
}

.contact-list dt {
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0.15rem 0 0;
  color: var(--navy);
}

.booking-form {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
}

.booking-form label,
.key-form label {
  display: grid;
  gap: 0.25rem;
  color: var(--navy);
  font-size: 0.92rem;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  font: inherit;
  color: #333;
  background: var(--white);
}

#event-type-other-label[hidden] {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.4rem 0 0;
}

.form-status.ok {
  color: var(--navy);
}

.form-status.err {
  color: #8a2b2b;
}

.site-footer {
  padding: 3rem 0 1.4rem;
  background: var(--navy);
  color: var(--white);
}

.site-footer a {
  color: var(--white);
}

.site-footer p {
  margin: 0.3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer .footer-brand,
.site-footer .footer-label {
  margin: 0 0 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand {
  font-size: 1.05rem;
}

.footer-label {
  font-size: 0.78rem;
  color: var(--blue);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.92rem;
}

body.lightbox-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  touch-action: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure,
.lightbox-viewport {
  width: 85vw;
  height: 85vh;
  margin: 0;
  overflow: hidden;
}

.lightbox-viewport {
  width: 100%;
  height: 100%;
}

.lightbox figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.8rem;
  margin: 0;
  color: var(--navy);
  text-align: center;
}

.lightbox button,
.space-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.lightbox button[hidden],
.space-arrow[hidden] {
  display: none;
}

.lightbox button svg,
.space-arrow svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  overflow: visible;
}

.lightbox button svg path,
.space-arrow svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox button {
  position: absolute;
  border: 0;
  border-radius: 50%;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

.lightbox-nav.prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

.admin-page {
  padding: 2.5rem 0 4rem;
}

.admin-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.key-form {
  display: flex;
  align-items: end;
  gap: 0.8rem;
  max-width: 28rem;
  margin-bottom: 1rem;
}

.key-form label {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
}

#inquiry-table th:last-child,
#inquiry-table td:last-child {
  text-align: left;
  font-weight: 400;
}

#inquiry-table th:last-child {
  color: var(--white);
}

#inquiry-table td,
#inquiry-table td:last-child {
  color: var(--text);
  font-weight: 400;
}

#inquiry-table td {
  color: var(--text);
  font-weight: 400;
}

@media (max-width: 900px) {
  .event-list,
  .space-grid,
  .facility-grid,
  .gallery-grid,
  .quote-grid,
  .split,
  .form-row,
  .footer-grid,
  .footer-base {
    grid-template-columns: 1fr;
  }

  .footer-base {
    display: grid;
    gap: 0.4rem;
  }

  #pricing .rate-table {
    width: 100%;
  }

  #pricing .pricing-notes {
    width: 100%;
    padding-inline: 1.25rem;
  }

  #pricing .pricing-notes h3 {
    text-align: center;
  }

  #pricing .pricing-notes ul {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
  }

  #pricing h2,
  #pricing .intro {
    text-align: center;
  }

  .pricing-notes {
    grid-template-columns: 1fr;
  }

  .facility-grid,
  .gallery-grid,
  .event-list {
    grid-template-columns: 1fr 1fr;
  }

  #spaces .space-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #spaces .space-photo {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .gallery-grid img {
    aspect-ratio: 16 / 9;
  }

  .map-frame iframe,
  .photo-frame img {
    height: 240px;
  }

  .hero-frame img {
    max-height: 420px;
  }

  .menu-btn {
    display: inline-block;
  }

  .topbar nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    background: var(--white);
    border-bottom: 3px solid var(--blue);
  }

  .topbar nav.open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  main section:not(.hero) {
    animation: none;
  }

  .space-track,
  .lightbox-track {
    transition: none;
  }
}

@media (max-width: 620px) {
  .facility-grid,
  .gallery-grid,
  .event-list,
  .key-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .key-form {
    align-items: stretch;
  }
}
