/* ==========================================================
   CLEAN SPORT — Braintree Bowmen Theme A
   Palette: White | Forest Green #1e5c14 | Gold #c9a84c | Charcoal #2d2d2d
   ========================================================== */

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

:root {
  --green:  #1e5c14;
  --green-dark: #164010;
  --gold:   #c9a84c;
  --gold-dark: #a8892e;
  --text:   #2d2d2d;
  --text-light: #666;
  --bg:     #ffffff;
  --bg-alt: #f4f7f4;
  --border: #e0e0e0;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.10);
  --shadow-hover: 0 6px 24px rgba(0,0,0,.15);
  --max-w:  1200px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px;
}
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.25; color: var(--text); }
ul { list-style: none; }

/* ── Utilities ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: 8px; background: var(--green); color: #fff; padding: 8px 16px; border-radius: 0 0 var(--radius) var(--radius); font-size: 14px; font-weight: 600; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; letter-spacing: .3px; transition: all .2s;
  cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #1a1a1a; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-secondary:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.12); }

.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.site-logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.site-logo img { width: 44px; height: auto; }
.site-logo .site-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #1a1a1a; }

/* Nav */
.site-nav .nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 600; color: #111111;
  transition: background .15s, color .15s;
}
.nav-item > a:hover, .nav-item.current > a { background: var(--bg-alt); color: var(--green); }

/* Dropdown */
.sub-nav {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px 0; z-index: 200;
}
.nav-item.has-children:hover .sub-nav { display: block; }
.sub-nav li a { display: block; padding: 9px 18px; font-size: 14px; color: var(--text); }
.sub-nav li a:hover { background: var(--bg-alt); color: var(--green); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: .2s; border-radius: 2px; }

/* ── Hero ── */
.hero {
  min-height: 560px; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  background: url('/wp-content/uploads/2019/08/BB_field-e1578760117310.jpg') center/cover no-repeat;
  padding: 80px 24px;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(10,40,8,.65);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem); color: #fff; margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,.9); margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Section shared ── */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg-alt); }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; }
.view-all { font-size: 14px; font-weight: 600; color: var(--green); }
.view-all:hover { color: var(--green-dark); }

/* ── Pathway cards ── */
.pathways { background: #fff; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pathway-card {
  background: var(--bg-alt); border-radius: 12px; padding: 40px 32px;
  border: 1px solid var(--border); transition: box-shadow .2s, transform .2s;
  text-align: center;
}
.pathway-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.pathway-icon { font-size: 3rem; margin-bottom: 16px; }
.pathway-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--green); }
.pathway-card p { font-size: 15px; color: var(--text-light); line-height: 1.65; margin-bottom: 20px; }
.pathway-link { font-weight: 600; font-size: 14px; color: var(--gold-dark); }
.pathway-link:hover { color: var(--green); }

/* ── News grid ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: #fff; border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.news-card-image { display: block; height: 220px; overflow: hidden; position: relative; }
.news-card-image img { width: 100%; height: 220px; object-fit: cover; object-position: center; display: block; transition: transform .3s; }
.news-card:hover .news-card-image img { transform: scale(1.04); }
.news-card-image-placeholder { height: 220px; background: linear-gradient(135deg, var(--green) 0%, #2d7a22 100%); }
.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-badge {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  background: var(--green); color: #fff; text-transform: uppercase; letter-spacing: .5px;
}
.cat-badge:first-child { background: var(--green); }
.cat-badge:nth-child(2) { background: var(--gold-dark); }
.news-card h3 { font-size: 1.1rem; margin-bottom: 6px; line-height: 1.35; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--green); }
.news-date { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.news-excerpt { font-size: 14px; color: var(--text-light); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.read-more { font-size: 13px; font-weight: 600; color: var(--green); margin-top: auto; }
.read-more:hover { color: var(--gold-dark); }

/* ── Events strip ── */
.upcoming-events { background: var(--bg-alt); text-align: center; }
.upcoming-events h2 { margin-bottom: 32px; font-size: 2rem; }
.events-strip { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.event-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; padding: 16px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 240px;
  text-align: left;
}
.event-date {
  display: flex; flex-direction: column; align-items: center;
  background: var(--green); color: #fff; padding: 10px 14px; border-radius: 6px;
  min-width: 52px;
}
.event-day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-month { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.event-info h4 { font-size: 15px; font-family: var(--font-body); font-weight: 600; }
.event-info h4 a { color: var(--text); }
.event-info h4 a:hover { color: var(--green); }

/* ── About ── */
.about-snippet { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.about-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 16px; }
.about-text .btn { margin-top: 8px; }
.about-crest img { width: 160px; height: auto; opacity: .9; }

/* ── Locations ── */
.locations { background: var(--bg-alt); }
.locations h2 { font-size: 2rem; margin-bottom: 40px; text-align: center; }
.locations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.location-card {
  background: #fff; border-radius: 12px; padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.location-card h3 { font-size: 1.3rem; color: var(--green); margin-bottom: 4px; }
.location-dates { font-size: 13px; color: var(--gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.location-card p { font-size: 15px; margin-bottom: 16px; color: var(--text-light); }
.location-card strong { color: var(--text); }
.shooting-times { margin-bottom: 20px; }
.shooting-times li { font-size: 14px; color: var(--text-light); padding: 4px 0; border-bottom: 1px solid var(--border); }
.shooting-times li:last-child { border-bottom: none; }
.map-wrapper { border-radius: 8px; overflow: hidden; }
.map-wrapper iframe { display: block; }

/* ── Footer ── */
.site-footer {
  background: var(--text); color: rgba(255,255,255,.8); padding: 48px 0 24px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; margin-bottom: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: auto; background: rgba(255,255,255,.9); border-radius: 6px; padding: 3px; }
.footer-brand-name { font-family: var(--font-head); font-size: 18px; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { color: rgba(255,255,255,.85); font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-social a {
  display: inline-block; padding: 8px 18px; border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px; color: rgba(255,255,255,.8); font-size: 14px;
}
.footer-social a:hover { background: rgba(255,255,255,.1); color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.75); flex-wrap: wrap; gap: 8px;
}

/* ── Inner pages ── */
.page-inner { padding: 60px 0 80px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); margin-bottom: 32px; }
.breadcrumb a { color: var(--green); }
.breadcrumb span { color: var(--text-light); }
.post-single h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.post-meta { display: flex; gap: 16px; font-size: 14px; color: var(--text-light); margin-bottom: 28px; flex-wrap: wrap; }
.post-meta a { color: var(--green); }
.post-hero { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; margin-bottom: 32px; }
.post-content { font-size: 16px; line-height: 1.8; }
.post-content h2 { font-size: 1.6rem; margin: 40px 0 16px; }
.post-content h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--green); text-decoration: underline; }
.post-content img { border-radius: var(--radius); margin: 24px 0; }
.post-content table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 14px; overflow-x: auto; display: block; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 6px 12px; text-align: left; }
.post-content th { background: var(--green); color: #fff; font-weight: 600; white-space: nowrap; }
.post-content tr:nth-child(even) { background: var(--bg-alt); }
.post-content td:first-child { white-space: nowrap; }

.list-title { font-size: 2rem; margin-bottom: 40px; }
.list-title + .news-grid { background: none; }

/* ── Pagination ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 6px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); color: var(--text); transition: .15s;
}
.pagination a:hover, .pagination .active { background: var(--green); color: #fff; border-color: var(--green); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-crest { display: none; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .pathway-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .events-strip { flex-direction: column; align-items: stretch; }
  .event-item { min-width: unset; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 16px 24px;
  }
  .site-nav.open { display: block; }
  .site-nav .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-item > a { padding: 12px 8px; width: 100%; }
  .sub-nav { display: block; position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}
