/* Shore Things Swim Club — site styles.
   Colours and type follow the club's design system (design-system/project/tokens.json). */

:root {
  --cream: #FBF6EC;
  --sand: #F4EBDD;
  --ink: #0C2444;
  --ink-muted: #4A6281;
  --bay: #2860B0;
  --bay-deep: #12387A;
  --sky: #8ECDF6;
  --line: rgba(12, 36, 68, 0.16);
  --line-strong: rgba(12, 36, 68, 0.4);
  --font-head: "Unbounded", "Rubik", sans-serif;
  --font-body: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Yellowtail", "Brush Script MT", cursive;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--bay); }
a:hover { color: var(--bay-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--bay); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; }
.head { font-family: var(--font-head); font-weight: 700; }
.nowrap { white-space: nowrap; }

/* Buttons and pill links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--light { background: #FFFFFF; color: var(--bay-deep); text-shadow: none; }
.btn--light:hover { background: #D6EBFB; color: var(--bay-deep); }
.btn--blue { background: var(--bay); color: #FFFFFF; }
.btn--blue:hover { background: var(--bay-deep); color: #FFFFFF; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.pill:hover { color: var(--bay); border-color: var(--bay); background-color: rgba(40, 96, 176, 0.06); }

/* Announcement bar */
.bar { background: var(--sky); color: var(--ink); text-align: center; font-size: 14px; font-weight: 500; line-height: 1.4; padding: 10px var(--gutter); }
.bar a { color: var(--ink); font-weight: 700; }
.bar a:hover { color: var(--bay); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header__inner { padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo img { width: 44px; height: 44px; border-radius: 999px; background: #FFFFFF; }
.logo span { font-size: 22px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav .pill { padding: 8px 16px; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: transparent; border: 2px solid var(--ink); color: var(--ink);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; cursor: pointer;
}

.menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(12, 36, 68, 0.18); }
.menu__inner { padding: 32px var(--gutter); display: flex; flex-wrap: wrap; gap: 32px 64px; }
.menu__links { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.menu__link { font-size: 30px; line-height: 1.35; font-weight: 500; color: var(--ink); text-decoration: none; transition: padding-left .2s ease, color .2s ease; }
.menu__link:hover { padding-left: 10px; color: var(--bay); }
.menu__links .btn { margin-top: 22px; }
.menu__card { flex: 1 1 320px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
.menu__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.menu__card .head { font-size: 21px; line-height: 1.2; }
.menu__card p { margin-top: 2px; font-size: 16px; color: var(--ink-muted); }

/* Hero and video band */
.hero, .band { position: relative; overflow: hidden; color: #FFFFFF; }
.hero { height: clamp(520px, 86vh, 820px); background: var(--bay-deep) center / cover no-repeat; }
.band { height: clamp(420px, 70vh, 640px); background: var(--bay) center / cover no-repeat; }
.hero video, .band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .band::after { content: ""; position: absolute; inset: 0; background: rgba(6, 20, 40, 0.3); }
.band::after { background: rgba(6, 20, 40, 0.36); }
.hero__content, .band__content {
  position: relative; z-index: 1; height: 100%; padding: var(--gutter);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px;
  text-shadow: 0 1px 24px rgba(6, 20, 40, 0.35);
}
.hero__kicker { font-family: var(--font-hand); font-size: 34px; line-height: 1; }
.hero h1 { font-size: clamp(32px, 5vw, 66px); line-height: 1.08; }
.hero__when { font-size: 19px; font-weight: 500; }
.hero .btn { margin-top: 14px; }
.band h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.1; }
.band .btn { margin-top: 12px; }

/* Sections */
.section { padding: 104px var(--gutter); }
.section--sand { background: var(--sand); padding-block: 96px; }
.section h2 { font-size: 40px; line-height: 1.15; }

.intro { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-start; }
.intro h2 { flex: 1 1 420px; min-width: 0; }
.intro p { flex: 1 1 420px; min-width: 0; margin-top: 6px; font-size: 19px; line-height: 1.65; color: var(--ink-muted); }

.sunday { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.sunday__lead { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sunday__lead img { width: 52px; height: 52px; }
.sunday__lead h2 { font-size: 30px; }
.sunday__lead p { font-size: 17px; color: var(--ink-muted); }
.cards { flex: 4 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card__media { overflow: hidden; border-radius: 4px; background: #D6DEE8; }
.card__media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media video { transform: scale(1.03); }
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card p { margin-top: 2px; font-size: 16px; color: var(--ink-muted); }
.card p a { font-weight: 500; }

.swims { display: flex; flex-direction: column; gap: 28px; }
.swims__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.swims__head p { font-size: 16px; color: var(--ink-muted); }
.rows { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 220px 250px minmax(0, 1fr) 110px; align-items: center; gap: 8px 32px;
  padding: 30px 8px; border-top: 1px solid var(--line); transition: background-color .2s ease;
}
.row:hover { background-color: rgba(12, 36, 68, 0.035); }
.row__day { font-size: 30px; line-height: 1.1; }
.row__what { font-size: 21px; font-weight: 600; }
.row__where { font-size: 17px; color: var(--ink-muted); }
.row__where a { font-weight: 500; }
.tag { justify-self: start; white-space: nowrap; border: 1px solid rgba(12, 36, 68, 0.35); font-size: 14px; font-weight: 500; line-height: 1; padding: 8px 12px; border-radius: 6px; }

.faq { display: flex; flex-wrap: wrap; gap: 40px 80px; align-items: flex-start; }
.faq__lead { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.faq__lead p { color: var(--ink-muted); max-width: 40ch; }
.faq__list { flex: 1.3 1 460px; min-width: 0; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4px; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; transition: transform .25s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 60px 22px 4px; font-size: 17px; line-height: 1.65; color: var(--ink-muted); }

/* Footer */
.site-footer { background: var(--sand); padding: 56px var(--gutter) 40px; }
.site-footer__inner { display: flex; flex-direction: column; gap: 28px; }
.wordmark { width: 100%; height: auto; overflow: visible; }
.wordmark text { font-family: var(--font-head); font-weight: 700; font-size: 160px; fill: var(--bay); }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.site-footer__row > p { font-size: 14px; color: var(--ink-muted); }
.find { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.find > span { font-size: 18px; font-weight: 600; margin-right: 6px; }
.find .pill { min-height: 46px; padding: 0 20px 0 16px; }
.find .pill svg { flex-shrink: 0; }

/* Motion */
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.rise-2 { animation-delay: .15s; } .rise-3 { animation-delay: .3s; } .rise-4 { animation-delay: .45s; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}

/* Smaller screens */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  .row { grid-template-columns: 180px minmax(0, 1fr) auto; }
  .row__where { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .site-header__actions .btn { display: none; }
  .logo span { font-size: 19px; }
  .section { padding-block: 64px; }
  .section h2 { font-size: 30px; }
  .sunday__lead h2 { font-size: 26px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 24px 4px; }
  .row__where { grid-column: auto; grid-row: auto; }
  .row__day { font-size: 26px; }
  .faq details p { padding-right: 8px; }
  .hero__kicker { font-size: 28px; }
  .menu__link { font-size: 26px; }
  .menu__inner { padding-block: 24px; gap: 24px; }
  .menu__card img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { animation: none !important; }
  .btn, .pill, .row, .card__media video, .menu__link, .faq summary svg { transition: none; }
}
