:root {
  --navy: #14233c;
  --navy-2: #1d3557;
  --red: #b4232c;
  --paper: #f6f4ef;
  --ink: #1f2933;
  --muted: #5c6773;
  --line: #ddd8cc;
  --radius: 10px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); }
a:hover { color: var(--navy-2); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }

/* header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.brand img { border-radius: 6px; }
.brand small { display: block; font-weight: 400; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #b9c4d6; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
nav li { position: relative; }
nav a, nav .sub-label { display: block; padding: 22px 12px; color: #fff; text-decoration: none; font-size: .95rem; cursor: pointer; }
nav a:hover, nav .sub-label:hover, nav li:focus-within > .sub-label { background: var(--navy-2); color: #fff; }
nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
nav .sub-label::after { content: " ▾"; font-size: .8em; }
nav ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--navy-2); flex-direction: column; align-items: stretch; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
nav li:hover > ul, nav li:focus-within > ul { display: flex; }
nav ul ul a { padding: 12px 16px; }
.menu-btn { display: none; background: none; border: 1px solid #5b6f8f; color: #fff; padding: 8px 14px; border-radius: 6px; font: inherit; }

/* home */
.hero { background: linear-gradient(rgba(20,35,60,.25), rgba(20,35,60,.35) 45%, rgba(20,35,60,.75)), url(/img/hero-about.jpg) center 45%/cover; color: #fff; padding: 72px 0 64px; text-align: center; min-height: clamp(460px, 34vw, 640px); display: flex; align-items: center; }
.hero .wrap { width: min(var(--wrap), 100% - 32px); }
.hero img.crest { width: 96px; height: 96px; border-radius: 10px; margin-bottom: 8px; }
.hero h1, .hero p { text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: .2em 0; }
.hero p { max-width: 60rem; margin: .6em auto 1.4em; font-size: 1.15rem; color: #fff; }
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 8px; font-weight: 600; margin: 4px; }
.btn:hover { background: #8f1a22; color: #fff; }
.btn.ghost { background: transparent; border: 2px solid #fff; padding: 10px 20px; }
.btn.ghost:hover { background: #fff; color: var(--navy); }
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0; text-align: center; }
.facts strong { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--navy); }
.facts span { color: var(--muted); font-size: .92rem; }
.info-strip { background: #fff; border-bottom: 1px solid var(--line); }
.info-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 22px 0; }
.info-strip h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 0 0 4px; }
.info-strip p { margin: 0; }
.section-title { text-align: center; margin: 44px 0 20px; font-size: 1.7rem; color: var(--navy); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 56px; }
.tile { position: relative; display: flex; align-items: flex-end; min-height: 220px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--navy) center/cover; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .15s; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(10,20,40,.88)); }
.tile:hover { transform: translateY(-3px); color: #fff; }
.tile span { position: relative; padding: 16px 18px; font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.tile small { display: block; font-weight: 400; font-size: .85rem; color: #d3dbe8; margin-top: 2px; }

/* content pages */
.page { background: #fff; margin: 32px auto 48px; padding: clamp(20px, 4vw, 44px); border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,.08); width: min(860px, 100% - 24px); }
.page h1 { margin-top: 0; color: var(--navy); line-height: 1.2; border-bottom: 3px solid var(--red); padding-bottom: .3em; }
.page h2 { color: var(--navy); margin-top: 1.6em; }
.page::after { content: ""; display: block; clear: both; }
.alignright, .alignleft { max-width: min(300px, 42%); border-radius: 6px; }
.alignright { float: right; margin: 4px 0 12px 20px; }
.alignleft { float: left; margin: 4px 20px 12px 0; }
.aligncenter { display: block; margin: 16px auto; max-width: min(640px, 100%); border-radius: 6px; }
.media { display: flex; gap: 22px; align-items: center; margin: 22px 0; }
.media.right { flex-direction: row-reverse; }
.media > a { flex: 0 0 42%; }
.media img { float: none; max-width: 100%; margin: 0; display: block; }
.media p { margin: 0 0 .8em; }
.media p:last-child { margin-bottom: 0; }
figure { margin: 18px 0; }
figure.aligncenter { text-align: center; }
figcaption { font-size: .9rem; color: var(--muted); text-align: center; }
.gallery { display: flex; flex-direction: column; gap: 6px; margin: 26px 0 30px; clear: both; }
.gallery .row { display: flex; gap: 6px; width: 100%; max-height: 190px; }
.gallery a { flex: 1 1 0; min-width: 0; display: block; overflow: hidden; border-radius: 6px; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.05); }
.video, .map { position: relative; aspect-ratio: 16/9; margin: 18px 0; }
.video iframe, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
blockquote { margin: 1.2em 0; padding: .4em 1.2em; border-left: 4px solid var(--red); background: #faf8f3; color: #3a4552; }
.callout { background: #fdf0f0; border-left: 5px solid var(--red); padding: 14px 18px; border-radius: 6px; margin: 18px 0; font-size: 1.1rem; }
.cards { display: grid; gap: 14px; margin: 20px 0; padding: 0; list-style: none; }
.cards a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--red); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.cards strong { display: block; color: var(--navy); font-size: 1.1rem; }
.cards span { color: var(--muted); font-size: .95rem; }
.more { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 12px; font-size: .95rem; clear: both; }
.more ul { padding-left: 1.2em; margin: .4em 0; }

/* bookings table */
.table-wrap { overflow-x: auto; }
table.bookings { border-collapse: collapse; width: 100%; }
.bookings th, .bookings td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bookings thead th { background: var(--navy); color: #fff; }
.bookings tbody th { white-space: nowrap; color: var(--navy); }
.bookings tbody tr:nth-child(even) { background: #faf8f3; }
.slots span { display: inline-block; background: #e8eef7; color: var(--navy); border-radius: 999px; padding: 1px 11px; margin: 2px 4px 2px 0; font-variant-numeric: tabular-nums; }

/* footer */
.site-footer { background: var(--navy); color: #c9d3e3; padding: 36px 0 18px; font-size: .95rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer p { margin: .4em 0 0; }
.site-footer .fine { margin-top: 22px; border-top: 1px solid #2c4062; padding-top: 14px; font-size: .85rem; color: #8fa0bb; }

/* lightbox */
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog#lightbox::backdrop { background: rgba(0,0,0,.88); }
dialog#lightbox img { position: absolute; inset: 0; margin: auto; max-width: 94vw; max-height: 90vh; }
#lightbox button { position: absolute; background: rgba(0,0,0,.5); color: #fff; border: 0; font-size: 2.4rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; z-index: 2; }
#lightbox .lb-close { top: 14px; right: 14px; }
#lightbox .lb-prev { left: 14px; top: 50%; }
#lightbox .lb-next { right: 14px; top: 50%; }

@media (max-width: 860px) {
  .media, .media.right { flex-direction: column; }
  .media > a { flex-basis: auto; }
  .menu-btn { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; }
  nav a, nav .sub-label { padding: 14px 20px; border-top: 1px solid #22385a; }
  nav ul ul { display: flex; position: static; box-shadow: none; background: #1a2d4b; }
  nav ul ul a { padding-left: 38px; }
  nav .sub-label::after { content: ""; }
  .info-strip .wrap, .site-footer .cols { grid-template-columns: 1fr; gap: 14px; }
  .alignright, .alignleft { float: none; display: block; margin: 14px auto; max-width: min(380px, 100%); }
  body { font-size: 16.5px; }
}

/* affiliated bodies */
.partners { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 34px; text-align: center; }
.partners h2 { font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-card { text-decoration: none; display: flex; align-items: center; justify-content: center; width: 220px; height: 112px; flex-direction: column; gap: 6px; padding: 8px 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.logo-card img { max-width: 176px; max-height: 50px; border-radius: 3px; width: auto; height: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-card:hover, .logo-card:focus-visible { box-shadow: 0 6px 18px rgba(20,35,60,.15); transform: translateY(-3px); border-color: var(--red); }
.logo-card:hover img, .logo-card:focus-visible img { filter: none; opacity: 1; }
.logo-card img.crest { max-height: 58px; }
.logo-card span { font-size: .74rem; line-height: 1.25; color: var(--muted); }
.licensing { margin: 22px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .facts .wrap { grid-template-columns: repeat(2, 1fr); } .logo-card { width: calc(50% - 8px); } }

/* welcome section */
.welcome { padding: 48px 0 8px; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; }
.welcome img { width: 100%; border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.welcome h2 { margin: 0 0 .4em; color: var(--navy); font-size: 1.7rem; line-height: 1.2; }
.welcome p { margin: 0 0 1em; }
@media (max-width: 860px) { .welcome-grid { grid-template-columns: 1fr; gap: 22px; } }

/* booking table becomes one card per day on phones */
@media (max-width: 640px) {
  .bookings, .bookings tbody, .bookings tr, .bookings th, .bookings td { display: block; }
  .bookings thead { display: none; }
  .bookings tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 10px 14px 12px; background: #fff; }
  .bookings tbody tr:nth-child(even) { background: #fff; }
  .bookings th, .bookings td { padding: 0; border: 0; }
  .bookings tbody th { font-size: 1.1rem; margin-bottom: 2px; white-space: normal; }
  .bookings td:nth-of-type(1) { color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
  .bookings td:nth-of-type(3) { margin-top: 8px; font-size: .95rem; }
}

/* tidier line breaks: balance short headings/intros, avoid single-word last lines in body text */
.hero h1, .hero p, .section-title, .page h1, .welcome h2 { text-wrap: balance; }
.page p, .welcome p { text-wrap: pretty; }
.nb { white-space: nowrap; }

/* history menu cards: text on the left, thumbnail on the right */
.cards a { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cards a div { flex: 1; min-width: 0; }
.cards a img { flex: none; width: 160px; height: 100px; object-fit: cover; border-radius: 8px; }
@media (max-width: 520px) { .cards a img { width: 96px; height: 72px; } }

/* small print under forms (privacy note) */
.privacy { margin-top: 28px; padding-top: 4px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.privacy h2 { font-size: 1rem; margin: 1em 0 .4em; color: var(--navy); }
.privacy p { margin: 0 0 .7em; }

/* full-width photo and small portrait video (Full-bore page) */
figure.wide { margin: 18px 0; }
figure.wide img { width: 100%; height: auto; display: block; border-radius: 8px; }
.clip { display: block; margin: 18px auto; width: min(300px, 100%); height: auto; border-radius: 10px; background: #000; }

/* video on the left, photos on the right (stacks on phones) */
.clip-row { display: flex; align-items: flex-start; gap: 16px; margin: 22px 0; }
.clip-row .clip { flex: 0 0 32%; width: 32%; margin: 0; }
.clip-row .gallery { flex: 1; min-width: 0; margin: 0; align-self: stretch; }  /* photo block stretches to the video's height */
.clip-row .gallery .row { flex: 1 1 auto; }
@media (max-width: 640px) { .clip-row { flex-direction: column; align-items: stretch; } .clip-row .clip { flex-basis: auto; width: min(300px, 100%); margin: 0 auto; } .clip-row .gallery .row { flex: none; } }

/* home page tiles: 7 tiles as 3 on the first row and 4 on the second (screens 1000px and wider); two columns on tablets, the odd one out spans the full width */
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(12, 1fr); }
  .tiles .tile { grid-column: span 3; }
  .tiles .tile:nth-child(-n+3) { grid-column: span 4; }
}
@media (min-width: 600px) and (max-width: 999.98px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* videos can never be wider than their container; on phones the video block uses plain block layout (no flex) so every browser sizes it the same way */
video { max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .clip-row { display: block; }
  .clip-row .clip { display: block; width: 100%; max-width: 300px; margin: 0 auto 14px; }
}
