/* ============================================================
   NSDRC — Shared Stylesheet
   North Shore Distance Running Club
   Colors: #29ABE2 (cyan-blue), #12263a (navy), white bg
   All buttons are pure CSS — no image dependencies
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@400;500;600&display=swap');

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

:root {
  --blue:       #29ABE2;
  --blue-dark:  #1a8fc2;
  --navy:       #12263a;
  --navy-light: #1c3a56;
  --white:      #ffffff;
  --off-white:  #f7f9fb;
  --border:     #e2e8ed;
  --text:       #2c3e50;
  --text-light: #5a6a7a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ──────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
  margin-left: auto;
}

.nav-links li a {
  display: block;
  padding: 0 16px;
  line-height: 68px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--white);
  border-bottom-color: var(--blue);
}

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 36px 40px 32px;
  border-bottom: 3px solid var(--blue);
}

.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.page-hero h1 span { color: var(--blue); }

.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

/* ── MAIN ─────────────────────────────────────────────────── */
main.page-content {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 40px 72px;
}

/* ── SECTION HEADING ──────────────────────────────────────── */
.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-left: 4px solid var(--blue);
  padding-left: 14px;
  margin-bottom: 32px;
}

/* ── BUTTONS — pure CSS, always visible ───────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(41,171,226,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
}

/* ── TRAINING TOP (Winter / Summer) ───────────────────────── */
.training-top {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.training-photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.training-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 180px;
}

img.shield { width: 150px; height: auto; }

.training-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  max-width: 340px;
  font-weight: 500;
}

.training-intro.centered {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ── SCHEDULE BLOCK ───────────────────────────────────────── */
.schedule-block {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 6px 6px;
  padding: 24px 32px 28px;
  margin-bottom: 32px;
}

.schedule-block h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── PROGRAM LIST ─────────────────────────────────────────── */
.program-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.program-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.12s;
}

.program-row:last-child { border-bottom: none; }
.program-row:hover { background: var(--off-white); }

.program-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── SUMMER ───────────────────────────────────────────────── */
.summer-top { margin-bottom: 32px; }

.summer-banner {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  margin-bottom: 20px;
}

.summer-photos {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.summer-photos img {
  height: 168px;
  width: auto;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summer-photos .shield { height: 158px; width: auto; }

/* ── JOIN ─────────────────────────────────────────────────── */
.join-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: 0 0 8px 8px;
  padding: 40px;
  max-width: 520px;
}

.join-card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.join-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.join-renew {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-light);
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.join-renew a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.join-renew a:hover { text-decoration: underline; }

.join-shield {
  display: block;
  width: 150px;
  height: auto;
  margin-top: 32px;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 680px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-info .tagline {
  font-size: 16px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-info .subheading {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 22px;
}

.contact-info img.shield {
  width: 120px;
  height: auto;
  margin-bottom: 22px;
}

.contact-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
}

.contact-body p { margin-bottom: 12px; }

.meeting-locations {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 0 4px 4px 0;
  padding: 9px 14px;
  font-size: 13px;
}

.loc-season {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-width: 90px;
}

.loc-place { color: var(--text); font-weight: 500; }

.contact-form-col h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* ── FORM ─────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 13px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #b0bec5; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41,171,226,0.15);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #b8dfc4;
  color: #155724;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}

.group-photo {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  margin-top: 28px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--blue);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  flex: 1;
}

.footer-fb-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.footer-fb-link:hover { opacity: 1; }

.footer-fb {
  width: 30px;
  height: 30px;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-fb-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .site-nav { padding: 0 16px; height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 4px; gap: 0; }
  .nav-logo { padding: 8px 0; }
  .nav-links { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .nav-links li a { font-size: 13px; padding: 0 10px; line-height: 40px; }
  .page-hero { padding: 24px 20px 20px; }
  .page-hero h1 { font-size: 32px; }
  main.page-content { padding: 28px 20px 52px; }
  .training-top { flex-direction: column; }
  .training-photo img { max-width: 100%; }
  .schedule-block { padding: 18px 16px; }
  .program-row { padding: 13px 16px; }
  .site-footer { padding: 20px; gap: 16px; }
  .join-card { padding: 24px 20px; }
}
