@font-face {
  font-family: 'TAYLennon';
  src: url('assets/TAYLennonRegular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #8B1A1A;
  --gold: #E8B432;
  --gold-dim: rgba(232, 180, 50, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--red);
  background-image: url('assets/bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--gold);
  font-family: 'TAYLennon', serif;
  text-align: center;
  overflow-x: hidden;
}

/* ── Scroll fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Shared ── */
.section-title {
  font-size: clamp(1.4rem, 6vw, 2.4rem);
  letter-spacing: 0.3em;
  font-weight: normal;
  line-height: 1.1;
}

.stars {
  display: block;
  width: clamp(60px, 20vw, 100px);
  margin: 0.6rem auto 0;
}

/* ── Main content column — 480px floor, 1/3 viewport on wide screens ── */

.site-body {
  max-width: max(480px, 33.33vw);
  margin: 0 auto;
}

/* ── Pool banner: full-bleed ── */
.pool-banner {
  width: 100%;
  line-height: 0;
}

.pool-banner img {
  width: 100%;
  height: clamp(180px, 28vw, 320px);
  display: block;
  object-fit: cover;
  object-position: bottom;
  border: none;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem 7rem;
  margin-top: -3.5rem; /* logo straddles the pool/red break */
}

.logo {
  width: min(84%, 380px);
  position: relative;
  z-index: 1;
}

/* ── About ── */
.about {
  padding: 4rem 0;
}

.about-inner {
  width: 100%;
  margin: 0 auto;
}

.about-photo {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  line-height: 0;
}

.about-photo > img {
  width: 100%;
  height: auto;
  display: block;
}

.about-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.about-overlay .section-title {
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.about-overlay .stars {
  margin-top: 0.4rem;
}

.about-body {
  padding: 0;
  font-size: clamp(0.6rem, 2.4vw, 0.75rem);
  letter-spacing: 0.1em;
  line-height: 1.9;
  text-transform: uppercase;
  text-align: justify;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Events + Contact titles 30% smaller than About */
.events .section-title,
.contact .section-title {
  font-size: clamp(1rem, 4.2vw, 1.68rem);
}

/* Hours title matches events/contact title */
.hours .section-title {
  font-size: clamp(1rem, 4.2vw, 1.68rem);
}

/* ── Events ── */
.events {
  padding: 4rem 0;
}

.events .stars {
  margin-bottom: 1.5rem;
}

:root {
  --cal-cream:  #F7F2E4;
  --cal-empty:  #F0EAD5;
  --cal-today:  #F4EFE0;
  --cal-dark:   #2D1B09;
  --cal-mono:   'Courier Prime', 'American Typewriter', 'Courier New', Courier, monospace;
}

.cal-wrap {
  width: 100%;
  margin-left: 0;
  border: 2px solid var(--cal-dark);
  margin-top: 1.5rem;
  border-radius: 25px;
  overflow: hidden;
}

/* Header */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cal-dark);
  padding: 0.6rem 0.75rem;
}

.cal-title {
  color: var(--gold);
  font-family: 'TAYLennon', serif;
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  letter-spacing: 0.25em;
}

.cal-nav {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: opacity 150ms ease;
}

.cal-nav:hover { opacity: 0.65; }
.cal-nav:focus-visible { outline: 2px solid var(--gold); }

/* Weekday row */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--gold);
  border-bottom: 2px solid var(--cal-dark);
}

.cal-weekday {
  text-align: center;
  padding: 0.35rem 0;
  font-family: var(--cal-mono);
  font-size: clamp(0.5rem, 1.8vw, 0.62rem);
  letter-spacing: 0.06em;
  color: var(--cal-dark);
  border-right: 1px solid var(--cal-dark);
}

.cal-weekday:last-child { border-right: none; }

/* Grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--cal-dark);
}

.cal-cell {
  background: var(--cal-cream);
  min-height: clamp(56px, 12vw, 80px);
  padding: 0.25rem 0.3rem;
  position: relative;
}

.cal-cell--empty { background: var(--cal-empty); }
.cal-cell--today { background: var(--cal-today); }

/* Day number */
.cal-day-num {
  display: block;
  text-align: right;
  font-family: var(--cal-mono);
  font-size: clamp(0.55rem, 1.8vw, 0.7rem);
  color: var(--cal-dark);
  margin-bottom: 0.2rem;
}

.cal-cell--today .cal-day-num {
  color: var(--cal-cream);
  background: #8B1A1A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  float: right;
}

/* Events */
.cal-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 0.15rem;
  clear: both;
  cursor: pointer;
}

.cal-event:hover .cal-event-name {
  opacity: 0.7;
}

/* Event detail panel */
.cal-event-panel {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  min-width: 130px;
  max-width: 190px;
  background: var(--cal-dark);
  border: 1px solid var(--gold-dim);
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cal-event-panel--flip {
  left: auto;
  right: 0;
}

.cal-panel-name {
  font-family: 'TAYLennon', serif;
  font-size: clamp(0.65rem, 2.2vw, 0.85rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cal-panel-time {
  font-family: var(--cal-mono);
  font-size: clamp(0.46rem, 1.3vw, 0.54rem);
  color: var(--gold);
  opacity: 0.65;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cal-panel-btn {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--cal-mono);
  font-size: clamp(0.44rem, 1.2vw, 0.52rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cal-dark);
  background: var(--gold);
  padding: 0.3rem 0.4rem;
  text-align: center;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.cal-panel-btn:hover {
  opacity: 0.8;
}

.cal-panel-price {
  font-family: var(--cal-mono);
  font-size: clamp(0.44rem, 1.2vw, 0.52rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.cal-panel-free {
  font-family: var(--cal-mono);
  font-size: clamp(0.44rem, 1.2vw, 0.52rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  margin-top: 0.2rem;
}

.cal-event-time,
.cal-event-name {
  font-family: var(--cal-mono);
  font-size: clamp(0.46rem, 1.3vw, 0.56rem);
  font-weight: 700;
  color: var(--cal-dark);
  text-transform: uppercase;
  line-height: 1.25;
  word-break: break-word;
}

.cal-event-time {
  opacity: 0.7;
}

.cal-loading {
  background: var(--cal-cream);
  text-align: center;
  padding: 1rem;
  font-family: var(--cal-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--cal-dark);
  border-top: 1px solid var(--cal-dark);
}

@media (prefers-reduced-motion: reduce) {
  .cal-nav { transition: none; }
}

/* ── Hours ── */
.hours {
  padding: 4rem 0;
}

.hours .stars {
  margin-bottom: 2rem;
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hours-day {
  display: flex;
  flex-direction: column;
}

.hours-day--left {
  align-items: flex-start;
  text-align: left;
}

.hours-day--right {
  align-items: flex-end;
  text-align: right;
}

/* Make hours section itself appear instantly — lines handle the reveal */
.hours.fade-in {
  transition: opacity 0.1s ease, transform 0.1s ease;
}

.hours-day-name,
.hours-time,
.hours-detail {
  opacity: 0;
  transform: translateY(10px);
}

.hours.cascaded .hours-day-name,
.hours.cascaded .hours-time,
.hours.cascaded .hours-detail {
  animation: hours-cascade 0.45s ease forwards;
}

@keyframes hours-cascade {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hours-day-name, .hours-time, .hours-detail {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hours-day-name {
  font-family: 'TAYLennon', serif;
  font-size: clamp(1.12rem, 4.9vw, 1.68rem);
  font-weight: normal;
  letter-spacing: 0.25em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hours-time {
  font-family: var(--cal-mono);
  font-size: clamp(0.46rem, 1.68vw, 0.57rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.65;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.hours-detail {
  font-family: 'TAYLennon', serif;
  font-size: clamp(0.55rem, 2.02vw, 0.68rem);
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.7;
}

/* ── Contact ── */
.contact {
  padding: 4rem 0 6rem;
}

.handle {
  display: inline-block;
  font-size: clamp(0.75rem, 3vw, 1rem);
  letter-spacing: 0.2em;
  margin-top: 0.5rem;
  opacity: 0.85;
  color: var(--gold);
  text-decoration: none;
}

.handle:hover {
  opacity: 1;
}

/* ── Mobile gap ── */

/* ── Mobile gap ── */
@media (max-width: 767px) {
  .site-body {
    margin-inline: 16px;
  }
}

/* ── Desktop ── */
@media (min-width: 768px) {
  body {
    background-attachment: fixed;
  }

  .site-body {
    max-width: max(480px, 33.33vw);
  }
}
