/* Draycote Water Fireball Fleet — shared styles */
:root {
  --navy: #092e6e;
  --navy-dark: #04193b;
  --blue: #1054c8;
  --blue-mid: #4a87f0;
  --blue-pale: #eef4fe;
  --red: #dc0e0e;
  --sand: #efeee7;
  --ink: #1b2a44;
  --muted: #5a6780;
  --line: #d9e2f2;
  --white: #fff;
  --heading: "Poppins", system-ui, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand span { font: 700 1.25rem/1.25 var(--heading); color: var(--navy); max-width: 11em; }
.brand:hover span { color: var(--navy); }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 4px; align-items: center; }
.nav a, .nav button {
  display: block; padding: 8px 12px; border: 0; background: none; cursor: pointer;
  font: 500 15px/1.3 var(--body); color: var(--navy); text-decoration: none; border-radius: 6px;
}
.nav a:hover, .nav button:hover, .nav li:focus-within > button { background: var(--blue-pale); color: var(--navy); }
.nav a[aria-current="page"], .nav .current > button { color: var(--red); }
.nav li { position: relative; }
.nav button::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 3px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(9,46,110,.12);
}
.nav li:hover > .sub, .nav li:focus-within > .sub, .nav li.open > .sub { display: block; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .site-header .wrap { min-height: 76px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 1.05rem; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--white); color: var(--navy); font: 600 15px var(--body); cursor: pointer; white-space: nowrap; flex-shrink: 0;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button { width: 100%; text-align: left; padding: 12px; }
  .nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav button { pointer-events: none; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
  .nav button::after { display: none; }
}

/* ---------- Home ---------- */
.hero { position: relative; min-height: min(78vh, 760px); display: grid; place-items: end center; overflow: hidden; color: #fff; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(4,25,59,0) 45%, rgba(4,25,59,.55)); }
.hero .hero-text { position: relative; z-index: 1; text-align: center; padding: 0 24px 9vh; }
.hero h1 { color: var(--red); font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(255,255,255,.35); }

.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; background: var(--navy); color: #fff;
  font: 600 1.05rem var(--heading); text-decoration: none; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.btn.light { background: #fff; color: var(--navy); }
.btn.light:hover { background: var(--red); color: #fff; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; height: 540px; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile p {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 60px 16px 28px; text-align: center;
  font: 700 clamp(1.15rem, 2.3vw, 1.75rem)/1.2 var(--heading); color: #fff;
  background: linear-gradient(to bottom, transparent, rgba(4,25,59,.7));
}

.section { padding: 88px 0; }
.section.tint { background: var(--blue-pale); }
.section-title { text-align: center; margin-bottom: 56px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature svg { width: 76px; height: 76px; color: var(--blue); margin-bottom: 20px; }
.feature p { color: var(--navy); font-size: 1rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.card { position: relative; aspect-ratio: 1; overflow: hidden; color: #fff; text-decoration: none; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.card:hover img { transform: scale(1.05); }
.card .card-text { position: absolute; inset: auto 0 0 0; padding: 70px 28px 26px; background: linear-gradient(to bottom, transparent, rgba(4,25,59,.85)); }
.card h3 { color: #fff; margin: 0 0 4px; font-size: 1.5rem; }
.card p { margin: 0; opacity: .9; }
.card:hover { color: #fff; }

.cta { background: var(--navy); color: #fff; text-align: center; padding: 88px 24px; }
.cta h2 { color: #fff; }
.cta p { max-width: 38em; margin: 0 auto 28px; opacity: .9; }

/* ---------- Inner pages ---------- */
.page-banner { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-banner .wrap { position: relative; padding-top: 72px; padding-bottom: 64px; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { margin: 10px 0 0; font-size: 1.15rem; opacity: .9; max-width: 40em; }
.crumbs { font-size: .95rem; margin-bottom: 12px; }
.crumbs a { color: #fff; opacity: .85; }
.crumbs a:hover { opacity: 1; color: #fff; }

.content { max-width: 800px; margin: 0 auto; padding: 56px 24px 80px; }
.content.wide { max-width: var(--max); }
.content p, .content li { color: #24324d; }
.content > img, .content figure { display: block; margin: 28px auto; border-radius: 10px; }
.content figure img { display: block; margin: 0 auto; border-radius: 10px; }
.content .pics { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: flex-start; margin: 28px 0; }
.content .pics img { display: block; border-radius: 8px; }
.content figcaption { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 8px; }
.content h2 { margin-top: 1.6em; }
.content h3 { margin-top: 1.4em; }
.content ul { padding-left: 1.3em; }
.content li { margin-bottom: .4em; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.lead { font-size: 1.2rem; color: var(--navy) !important; }
.note { background: var(--blue-pale); border-left: 4px solid var(--blue); padding: 18px 22px; border-radius: 0 10px 10px 0; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.two-col img { border-radius: 12px; display: block; }

.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { font-weight: 600; text-decoration: none; }

/* Calendar */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 0 0 48px; padding: 0; list-style: none; }
.events li { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 10px; padding: 22px; margin: 0; }
.events .date { font: 700 1.2rem/1.3 var(--heading); color: var(--navy); display: block; margin-bottom: 6px; }
.events .what { color: var(--ink); }
.events .past { opacity: .55; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 28px 0; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--heading); color: var(--navy); background: var(--blue-pale); }

/* Link lists */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 0; margin: 20px 0 40px; list-style: none; }
.link-grid li { margin: 0; }
.link-grid a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--navy); font-weight: 600; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.link-grid a:hover { border-color: var(--blue-mid); box-shadow: 0 6px 18px rgba(9,46,110,.08); color: var(--navy); }
.link-grid small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.year-row { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.year-row strong { font-family: var(--heading); color: var(--navy); }
.year-row > div { min-width: 0; }
.year-row a { display: inline-block; margin-right: 18px; }

/* Scrapbook */
.scrap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 0; list-style: none; }
.scrap-grid li { margin: 0; }
.scrap-grid a { display: block; text-decoration: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--white); height: 100%; }
.scrap-grid .thumb { aspect-ratio: 16 / 10; background: var(--sand); }
.scrap-grid .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scrap-grid span { display: block; padding: 14px 18px; color: var(--navy); font-weight: 600; }

/* Photo gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,25,59,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; color: #fff; opacity: .7; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--navy); }
.social { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.social svg { width: 22px; height: 22px; }

@media (max-width: 800px) {
  .tiles, .features, .cards, .two-col { grid-template-columns: 1fr; }
  .tile { height: auto; aspect-ratio: 4 / 3; }
  .features { gap: 48px; text-align: center; }
  .card { aspect-ratio: 4 / 3; }
  .section { padding: 64px 0; }
  .content { padding: 40px 18px 64px; }
}
