/* Bridport Barracudas Water Polo — site styles
   Colours taken from the 2026 club logo. Edit the variables below to change them site-wide. */
:root {
  --navy: #0b2452;
  --navy-deep: #071a3d;
  --red: #c8202a;
  --red-bright: #e0262f;
  --blue: #2f8fc6;
  --sky: #e8f3fa;
  --ink: #1b2233;
  --muted: #55607a;
  --line: #d9e1ec;
  --white: #ffffff;
  --radius: 10px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--red); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header and navigation */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--red); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; }
.brand img { width: 50px; height: auto; background: var(--white); border-radius: 10px; padding: 3px; }
.brand span { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; font-size: 1rem; }
.brand small { display: block; font-weight: 600; color: #b9d7ee; letter-spacing: .12em; font-size: .72rem; }
.brand:hover { color: var(--white); }

.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: var(--white); border-radius: 8px; padding: .45rem .75rem; font: inherit; font-weight: 700; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem; }
.site-nav a { display: block; color: var(--white); text-decoration: none; font-weight: 600; font-size: .92rem; padding: .5rem .55rem; white-space: nowrap; border-radius: 6px; }
.site-nav a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.site-nav a[aria-current="page"] { background: var(--red); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-deep); border-bottom: 4px solid var(--red); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .site-nav a { padding: .75rem .5rem; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
}
.no-js .site-nav { display: block; position: static; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy) center / cover no-repeat; min-height: 62vh; display: grid; align-items: end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,61,.15) 0%, rgba(7,26,61,.85) 85%); }
.hero .wrap { position: relative; padding: 5rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.05; margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .01em; font-weight: 900; max-width: 18ch; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; margin: 0 0 1.5rem; }
.page-hero { background: var(--navy); color: var(--white); padding: 2.75rem 0 2.25rem; border-bottom: 6px solid var(--blue); }
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 4.5vw, 2.8rem); text-transform: uppercase; font-weight: 900; line-height: 1.1; }
.page-hero p { margin: .5rem 0 0; color: #cfe3f3; max-width: 60ch; }

/* Buttons */
.btn { display: inline-block; background: var(--red); color: var(--white); text-decoration: none; font-weight: 700; padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid var(--red); }
.btn:hover { background: var(--red-bright); border-color: var(--red-bright); color: var(--white); }
.btn.ghost { background: transparent; border-color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--navy); }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
main section { padding: 3.25rem 0; }
main section.alt { background: var(--sky); }
h2 { color: var(--navy); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 1rem; font-weight: 800; }
h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-top: .5rem; border-radius: 2px; }
h3 { color: var(--navy); margin: 0 0 .4rem; font-size: 1.2rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1rem; }

.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; border-top: 5px solid var(--blue); }
.card.red { border-top-color: var(--red); }
.card.navy { border-top-color: var(--navy); }
.card p { margin: .25rem 0 0; }
.card .time { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.card .tag { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--white); background: var(--blue); padding: .15rem .55rem; border-radius: 4px; margin-bottom: .6rem; }
.card.red .tag { background: var(--red); }
.card.navy .tag { background: var(--navy); }

figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; }

.callout { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 1.6rem; }
.callout h2, .callout h3 { color: var(--white); }
.callout a { color: var(--white); }
.notice { background: #fff6e5; border-left: 5px solid #e3a008; padding: 1rem 1.2rem; border-radius: 6px; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: var(--white); }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: var(--white); font-weight: 700; }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .75rem; }
  table.stack td { display: block; border: 0; padding: .35rem .75rem; }
  table.stack td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
}

.result { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.result strong { color: var(--navy); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.steps li { counter-increment: step; position: relative; padding: .9rem 1rem .9rem 3.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: .85rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }

.helplines { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.helplines li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .8rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.helplines a { font-weight: 800; white-space: nowrap; }

/* Wave divider */
.wave { display: block; width: 100%; height: 40px; color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy); color: #d6e6f4; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid img { width: 84px; margin-bottom: .5rem; background: var(--white); border-radius: 12px; padding: 5px; }
.site-footer h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer h2::after { width: 32px; height: 3px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #a9c2da; }
