/* Charlotte Recreation — style.css
   Palette sampled directly from the department's own Lake Champlain sunset
   banner photo: pale sky -> peach -> sunset orange -> ridge -> deep water. */

:root {
  --lake-900: #0f2027;
  --lake-800: #16323c;
  --lake-700: #1d4351;
  --lake-600: #2a6076;
  --lake-500: #3d7d95;

  --sunset: #e2793f;
  --sunset-dark: #c4632e;
  --peach: #e9bc92;
  --gold: #d9a441;
  --green: #4a7c59;

  --cream: #f7f4ec;
  --stone: #ece7db;
  --line: #ddd6c7;
  --white: #ffffff;

  --ink: #17242a;
  --ink-soft: #52626a;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 32, 39, 0.12);
  --shadow-sm: 0 2px 10px rgba(15, 32, 39, 0.08);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--lake-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--lake-900);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.22rem; }

.wrap { width: min(1160px, 92%); margin: 0 auto; }
.center { text-align: center; }

/* ---------- skip link ---------- */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--lake-900); color: var(--white);
  padding: 0.7rem 1.1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */

.topbar {
  background: var(--lake-900);
  color: var(--stone);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex; justify-content: space-between;
  gap: 1rem; padding: 0.45rem 0; flex-wrap: wrap;
}
.topbar a { color: var(--stone); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar .tb-phone { font-weight: 700; color: var(--white); }

/* ---------- header / nav ---------- */

.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 14px rgba(15, 32, 39, 0.08);
}
.site-header .wrap {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.16rem; color: var(--lake-900); display: block;
}
.brand-sub {
  font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft); display: block;
}

.nav-toggle-box { display: none; }
.nav-toggle {
  display: none; cursor: pointer;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  border: 2px solid var(--lake-700); color: var(--lake-700);
  padding: 0.45rem 0.8rem; border-radius: var(--radius-sm);
}

.main-nav ul {
  list-style: none; display: flex;
  align-items: center; gap: 0.35rem;
}
.main-nav a {
  display: block; text-decoration: none;
  color: var(--lake-800); font-weight: 600; font-size: 0.94rem;
  padding: 0.5rem 0.72rem; border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--stone); }
.main-nav a[aria-current="page"] { color: var(--sunset-dark); }

.nav-cta {
  background: var(--sunset); color: var(--white) !important;
  padding: 0.55rem 1.05rem !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--sunset-dark) !important; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none;
  font-weight: 700; font-size: 0.97rem;
  padding: 0.8rem 1.5rem; border-radius: var(--radius-sm);
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sunset { background: var(--sunset); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-sunset:hover { background: var(--sunset-dark); }
.btn-lake { background: var(--lake-700); color: var(--white); }
.btn-lake:hover { background: var(--lake-800); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline-ink { border: 2px solid var(--lake-700); color: var(--lake-700); }
.btn-outline-ink:hover { background: var(--lake-700); color: var(--white); }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- hero (sunset recreated from the department photo) ---------- */

.hero {
  position: relative; overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg,
      #b7b8bc 0%, #d7cab7 16%, #e9bc92 30%,
      #e9966c 42%, #cb9571 54%, #8d7f7c 66%,
      #414247 80%, #1e212a 93%, #12151e 100%);
}
.hero::after {
  /* ridge line + water, drawn so nothing is upscaled or pixelated */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'><path d='M0 96 L60 78 L130 92 L210 62 L300 88 L380 70 L470 96 L560 74 L650 92 L740 66 L840 90 L930 72 L1030 94 L1120 78 L1200 90 L1200 300 L0 300 Z' fill='%232f3a41'/></svg>") bottom / 100% 100% no-repeat;
  opacity: 0.96;
}
.hero .wrap { position: relative; z-index: 2; padding: 4.6rem 0 3.4rem; max-width: 780px; margin-inline: auto; }
.hero .kicker {
  display: inline-block; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(15, 32, 39, 0.42); color: var(--peach);
  padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: 1.1rem;
  backdrop-filter: blur(2px);
}
.hero h1 { color: var(--white); text-shadow: 0 3px 22px rgba(10, 20, 26, 0.5); }
.hero .lede {
  font-size: 1.12rem; margin: 1rem 0 1.7rem;
  color: #f2ece2; text-shadow: 0 2px 14px rgba(10, 20, 26, 0.55); max-width: 40rem;
}

/* ---------- page header (interior pages) ---------- */

.page-head {
  background: linear-gradient(150deg, var(--lake-900), var(--lake-700));
  color: var(--white); padding: 3.2rem 0 3rem;
}
.page-head h1 { color: var(--white); }
.page-head p { color: #cfdce2; max-width: 46rem; margin-top: 0.7rem; }
.crumb { font-size: 0.82rem; color: #9db6c1; margin-bottom: 0.6rem; }
.crumb a { color: #cfdce2; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- sections ---------- */

section { padding: 4rem 0; }
section.alt { background: var(--white); }
section.tight { padding: 2.6rem 0; }

.section-head { margin-bottom: 2.2rem; }
.section-head.center { max-width: 46rem; margin-inline: auto; }
.eyebrow {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sunset-dark); margin-bottom: 0.45rem;
}
.section-head p { color: var(--ink-soft); margin-top: 0.6rem; }

/* ---------- quick links strip ---------- */

.quick {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.quick a {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.25rem;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.quick a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--lake-900); }
.quick span { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.25rem; }

/* ---------- program cards ---------- */

.prog-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}
.prog-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.prog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prog-card > img { width: 100%; height: 172px; object-fit: cover; background: var(--stone); }
/* small source logos (not photos) — show whole mark instead of cropping/upscaling */
.prog-card > img.logo-img { object-fit: contain; padding: 1.1rem; background: var(--stone); }
.prog-card .pad { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.prog-card h3 { margin-bottom: 0.35rem; }
.prog-card p { font-size: 0.93rem; color: var(--ink-soft); flex: 1; }

.meta { list-style: none; font-size: 0.88rem; color: var(--ink-soft); margin: 0.7rem 0 0.9rem; }
.meta li { padding-left: 1.15rem; position: relative; margin-bottom: 0.18rem; }
.meta li::before { content: "•"; position: absolute; left: 0.25rem; color: var(--sunset); font-weight: 700; }

.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.24rem 0.6rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.tag-youth { background: #e3f0e6; color: #2f6b40; }
.tag-adult { background: #e2edf3; color: #205870; }
.tag-fit   { background: #fbeadd; color: #a9531f; }
.tag-class { background: #f0ebf7; color: #5a4585; }
.tag-beach { background: #fdf0dd; color: #97671b; }

.price {
  font-family: var(--font-display); font-weight: 700;
  color: var(--lake-900); font-size: 1.02rem; margin-bottom: 0.8rem;
}
.price .res { color: var(--ink-soft); font-size: 0.84rem; font-weight: 500; font-family: var(--font-body); }

/* ---------- fee table ---------- */

.fee-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.fee-table caption { text-align: left; font-size: 0.86rem; color: var(--ink-soft); padding-bottom: 0.6rem; }
.fee-table th, .fee-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.fee-table thead th { background: var(--lake-800); color: var(--white); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-table td.num { font-weight: 700; color: var(--lake-900); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- split / feature ---------- */

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.6rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split ul { margin: 1rem 0 1.4rem 1.1rem; color: var(--ink-soft); }
.split li { margin-bottom: 0.35rem; }

/* ---------- callout ---------- */

.callout {
  background: linear-gradient(135deg, var(--lake-800), var(--lake-600));
  color: var(--white); border-radius: var(--radius);
  padding: 2.2rem 2rem; box-shadow: var(--shadow);
}
.callout h2, .callout h3 { color: var(--white); }
.callout p { color: #d3e2e8; margin: 0.6rem 0 1.2rem; }

.notice {
  background: #fdf4e3; border-left: 4px solid var(--gold);
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  font-size: 0.93rem; color: #6b5320; margin-top: 1.2rem;
}
.notice strong { color: #4d3a12; }

/* ---------- facilities list ---------- */

.fac-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.fac {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow-sm);
}
.fac h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.fac .addr { font-size: 0.86rem; color: var(--ink-soft); }
.fac ul { list-style: none; margin-top: 0.7rem; font-size: 0.88rem; color: var(--ink-soft); }
.fac li { padding-left: 0.95rem; position: relative; }
.fac li::before { content: "–"; position: absolute; left: 0; color: var(--lake-500); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); }
.contact-card dt { font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { font-size: 1.04rem; font-weight: 600; color: var(--lake-900); }
.contact-card dd a { color: var(--lake-700); text-decoration: none; }
.contact-card dd a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.site-footer { background: var(--lake-900); color: #b9cbd3; padding: 3rem 0 1.5rem; font-size: 0.93rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.7rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.2rem; }
.site-footer a { color: #b9cbd3; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.35rem; }
.foot-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.foot-brand img { width: 44px; filter: brightness(0) invert(1); opacity: 0.92; }
.foot-brand span { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 2.2rem; padding-top: 1.1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.84rem; color: #8ea6b0;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; width: 100%;
    border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.6rem;
  }
  .nav-toggle-box:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .main-nav a { padding: 0.65rem 0.5rem; }
  .nav-cta { text-align: center; margin-top: 0.4rem; }
  .site-header .wrap { flex-wrap: wrap; }
  .hero .wrap { padding: 3.6rem 0 4rem; }
  .topbar .wrap { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .prog-card:hover, .quick a:hover { transform: none; }
}
