/* Saratoga Sports Club — main stylesheet
   Brand colours from the SSC logo: navy #002E62, near-black #000116,
   silver bolt #A8A9AD, accent red #E21C21. Type: Barlow (OFL), whose heavy
   italic echoes the logo's "SARATOGA SPORTS CLUB" wordmark. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-800-italic.woff2") format("woff2"); }

:root {
  /* REPLACEABLE IMAGES
     All photos are placed with <img> tags (see assets/manifest.json);
     no CSS background images are used, so nothing to replace here. */

  /* Brand */
  --navy: #002E62;
  --navy-900: #000116;
  --navy-700: #0a3f7f;
  --navy-100: #e6ecf4;
  --silver: #A8A9AD;
  --silver-200: #dcdde0;
  --red: #E21C21;
  --red-ink: #c0161b;     /* red text on light backgrounds (5.8:1) */
  --red-on-navy: #ff8a8c; /* same hue, lighter, for text on navy (5.9:1) */
  --turf: #2f7d32;

  /* Neutrals */
  --ink: #0d1424;
  --muted: #4f5561;
  --paper: #ffffff;
  --mist: #f1f2f4;
  --line: #d9dbe0;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 3.6rem);

  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem; --space-6: 6rem;
  --radius: 6px;
  --wrap: 1180px;
  --shadow: 0 10px 30px rgba(0, 1, 22, .14);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

h1, h2, h3, h4 { font-weight: 800; font-style: italic; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 700; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons: one vocabulary across the site ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; font: italic 700 1.05rem/1.1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.on-navy .btn-ghost, .btn-ghost.light { color: #fff; }
.on-navy .btn-ghost:hover, .btn-ghost.light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-3); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--navy-900); color: var(--silver-200); font-size: .9rem; }
.utility .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.25rem; min-height: 38px; padding-block: .3rem; }
.utility a { color: #fff; text-decoration: none; font-weight: 600; }
.utility a:hover { color: var(--red-on-navy); text-decoration: underline; }
.utility .access { font-style: italic; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: .4rem; }
.utility .access svg { width: 14px; height: 14px; fill: var(--silver); }
.utility .links { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--navy); box-shadow: 0 2px 10px rgba(0, 1, 22, .08); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 150px; height: auto; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.site-nav a { display: block; padding: .55rem .6rem; font-weight: 700; font-style: italic; font-size: 1.02rem; color: var(--navy); text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--red-ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.header-cta { flex: none; order: 2; }
.site-nav { order: 1; }

@media (max-width: 1140px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 64px; }
  .brand img { width: 118px; }
  .header-cta { padding: .55rem 1rem; min-height: 44px; font-size: .98rem; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .8rem; background: var(--navy); color: #fff; border: 0; border-radius: var(--radius); font: italic 700 1rem var(--font); cursor: pointer; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .site-nav { width: 100%; order: 3; }
  .header-cta { order: 0; }
  .site-nav ul { flex-wrap: wrap; padding-bottom: .5rem; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .js .site-nav.open ul { flex-direction: column; align-items: stretch; }
  .js .site-nav.open a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); }
  .js .site-nav.open a[aria-current="page"] { color: var(--red-ink); }
}
@media (max-width: 520px) {
  .header-cta .long { display: none; }
  .utility .access span.extra { display: none; }
}
@media (min-width: 521px) { .header-cta .short { display: none; } }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before { /* the logo's silver lightning bolt, as a single slash */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, transparent 0 58%, rgba(168,169,173,.22) 58% 59.2%, transparent 59.2%);
}
.hero .wrap { position: relative; display: grid; gap: var(--space-4); padding-block: var(--space-4) var(--space-5); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem); margin-bottom: .35em; }
.hero h1 .accent { color: var(--red-on-navy); }
.hero .promise { font-size: 1.2rem; color: #e9edf4; max-width: 38em; }
.hero .chips { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.hero .chips a { display: inline-block; padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.hero .chips a:hover { background: #fff; color: var(--navy); }
.hero .chips .new a { border-color: var(--red-on-navy); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,1,22,.45); border: 4px solid #fff; }
.hero-photo figcaption { margin-top: .7rem; font-style: italic; font-weight: 700; color: var(--silver-200); font-size: 1rem; }
.hero .wrap { gap: var(--space-3); }
.hero-top h1 { margin-bottom: 0; }
.hero .kicker, .page-hero .kicker { color: var(--red-on-navy); }
.hero .promise { margin-bottom: 0; }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr 1.08fr; grid-template-areas: "top photo" "bottom photo"; column-gap: var(--space-4); row-gap: var(--space-3); }
  .hero-top { grid-area: top; align-self: end; }
  .hero-bottom { grid-area: bottom; align-self: start; }
  .hero-photo { grid-area: photo; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--navy); color: #e9edf4; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, transparent 0 70%, rgba(168,169,173,.2) 70% 71%, transparent 71%); }
.page-hero .wrap { position: relative; display: grid; gap: var(--space-4); padding-block: var(--space-4) var(--space-5); align-items: center; }
.page-hero h1 { color: #fff; }
.page-hero .lead { font-size: 1.2rem; max-width: 36em; }
.page-hero figure { margin: 0; }
.page-hero figure img { width: 100%; border-radius: var(--radius); border: 4px solid #fff; box-shadow: 0 18px 40px rgba(0,1,22,.45); }
.page-hero .facts { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 700; font-style: italic; color: #fff; }
.page-hero .facts li { display: flex; align-items: center; gap: .45rem; }
.page-hero .facts li::before { content: ""; width: 10px; height: 10px; background: var(--red); transform: skewX(-18deg); }
@media (min-width: 900px) { .page-hero.has-photo .wrap { grid-template-columns: 1.1fr 1fr; } }
.crumbs { font-size: .9rem; margin-bottom: var(--space-2); color: var(--silver-200); }
.crumbs a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-5); }
.section.tight { padding-block: var(--space-4); }
.section.mist { background: var(--mist); }
.section.navy, .on-navy { background: var(--navy); color: #e9edf4; }
.section.navy h2, .section.navy h3, .on-navy h2, .on-navy h3 { color: #fff; }
.section.ink { background: var(--navy-900); color: #e3e6ec; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: var(--space-4); }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.navy .section-head p, .ink .section-head p { color: #d5dbe6; }
.kicker { display: inline-block; font-style: italic; font-weight: 800; color: var(--red-ink); font-size: 1.05rem; margin-bottom: .35rem; }
.navy .kicker, .ink .kicker { color: var(--red-on-navy); }

.split { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.wide-text { grid-template-columns: 1.2fr 1fr; }
  .split.reverse > :first-child { order: 2; }
}
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo figcaption { font-size: .92rem; color: var(--muted); margin-top: .5rem; font-style: italic; }
.navy .photo figcaption, .ink .photo figcaption { color: #c9cfdb; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--red); transform: skewX(-18deg); }
.ticks.cols { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); column-gap: 1.5rem; }

/* Attraction features (home + attractions page) */
.features { display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: var(--ink); }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature .body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.feature h3 { margin-bottom: .35rem; color: var(--navy); }
.feature p { color: var(--muted); }
.feature .more { margin-top: auto; font-weight: 700; font-style: italic; color: var(--red-ink); text-decoration: none; }
.feature .more:hover { text-decoration: underline; }

/* Program list (training) */
.programs { display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .programs { grid-template-columns: repeat(2, 1fr); } }
.program { border-left: 5px solid var(--red); background: #fff; padding: var(--space-3); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: 0 4px 14px rgba(0,1,22,.07); }
.mist .program { background: #fff; }
.program h3 { margin-bottom: .2rem; }
.program .meta { font-weight: 700; font-style: italic; color: var(--red-ink); margin-bottom: .6rem; }
.program p:last-child, .program ul:last-child { margin-bottom: 0; }
.program a.go { font-weight: 700; font-style: italic; }

/* Values band (what they hold dear) */
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.values li { padding-left: 1.1rem; border-left: 3px solid var(--silver); }
.values strong { display: block; font-style: italic; font-size: 1.2rem; color: #fff; }

/* Price rows */
.prices { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .prices { grid-template-columns: repeat(2, 1fr); } }
.price-card { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); padding: var(--space-3); display: flex; flex-direction: column; gap: .4rem; }
.price-card h3 { margin: 0; }
.price-card .price { font: italic 800 2.4rem/1 var(--font); color: var(--red-ink); }
.price-card p { margin: 0; color: var(--muted); }
.price-card .btn { align-self: flex-start; margin-top: .6rem; }

table.cost { width: 100%; border-collapse: collapse; background: #fff; }
table.cost th, table.cost td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
table.cost thead th { background: var(--navy); color: #fff; font-style: italic; }
table.cost td.num, table.cost th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 1.25rem; border-top: 4px solid var(--navy); }
.steps li::before { content: counter(s); display: block; font: italic 800 2rem/1 var(--font); color: var(--red-ink); margin-bottom: .4rem; }
.steps strong { display: block; color: var(--navy); font-style: italic; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.1rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; font-style: italic; color: var(--navy); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red-ink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: var(--space-3) 0; }
.stat strong { display: block; font: italic 800 clamp(2.4rem, 1.8rem + 2vw, 3.2rem)/1 var(--font); color: var(--red-on-navy); }
.stat span { color: #d5dbe6; }

/* Notice for items to confirm */
.note { border-left: 4px solid var(--silver); background: var(--mist); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: .98rem; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: var(--space-4); }
.cta-band h2 { color: #fff; margin: 0 0 .25rem; font-size: var(--step-3); }
.cta-band p { margin: 0; font-size: 1.15rem; }
.cta-band .btn-navy { background: var(--navy-900); }
.cta-band .btn-navy:hover { background: var(--navy); }
.cta-band .btn-ghost { color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--red-ink); border-color: #fff; }
.cta-band .btn-row { margin: 0; }
.cta-band :focus-visible { outline-color: #fff; }

/* Contact */
.contact-grid { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-list strong { display: block; font-style: italic; color: var(--navy); }
.contact-list a { font-size: 1.15rem; font-weight: 600; }
.form { background: var(--mist); padding: var(--space-3); border-radius: var(--radius); border-top: 5px solid var(--navy); }
.form .field { margin-bottom: 1rem; }
.form label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--navy); }
.form input, .form textarea, .form select { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #9aa0ab; border-radius: var(--radius); background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--navy-700); outline-offset: 0; border-color: var(--navy); }
.form textarea { min-height: 9rem; resize: vertical; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .status { margin-top: 1rem; font-weight: 600; }
.form .status.ok { color: var(--turf); }
.form .status.err { color: var(--red-ink); }
.form .cf-turnstile { margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c9cfdb; font-size: .98rem; }
.site-footer .wrap { padding-block: var(--space-5) var(--space-3); }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: .8rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red-on-navy); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-logo { background: #fff; display: inline-block; padding: .5rem .7rem; border-radius: var(--radius); margin-bottom: 1rem; }
.footer-logo img { width: 150px; }
.site-footer address { font-style: normal; display: grid; gap: .35rem; margin-bottom: 1rem; }
.site-footer .phone { font: italic 800 1.4rem/1.2 var(--font); }
.fine { border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--space-4); padding-top: var(--space-3); font-size: .88rem; color: #aab2c2; display: grid; gap: .3rem; }
.fine p { margin: 0; }
.fine a { color: #d7dce6; text-decoration: underline; }

/* 404 */
.notfound { text-align: center; padding-block: var(--space-6); }
.notfound .btn-row { justify-content: center; }

/* Portrait photos: whole, never taller than the screen */
.portrait { display: flex; justify-content: center; }
.portrait img { width: auto; max-width: 100%; max-height: 560px; }
.page-hero figure .portrait img, .photo .portrait img { width: auto; }
.h3 { font-size: var(--step-2); font-weight: 700; }

/* Gallery: each photo whole, at its own shape */
.gallery { columns: 1; column-gap: 1rem; }
@media (min-width: 600px) { .gallery { columns: 2; } }
@media (min-width: 980px) { .gallery { columns: 3; } }
.g-item { break-inside: avoid; margin: 0 0 1rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(0,1,22,.08); }
.g-item img { width: 100%; height: auto; }
.g-item figcaption { padding: .6rem .9rem; font-weight: 700; font-style: italic; color: var(--navy); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0,1,22,.08); margin-bottom: 1rem; }
