/* Final public-site layout overrides. Kept separate from the legacy stylesheet. */

.site-hero { min-height: 650px; }
.site-hero .hero-overlay { min-height: 620px; }
.site-nav { min-height: 88px; padding: 9px 24px; }
.site-nav #wpb-logo { width: 76px; margin: 0; border-radius: 12px; }
.site-nav .navbar-nav { gap: 8px; }
.site-nav .nav-link { padding: .6rem .95rem; font-size: 1.08rem; font-weight: 700; }
.site-nav .navbar-toggler {
  padding: .55rem .65rem;
  border: 2px solid #fff;
  border-radius: 9px;
  background: rgba(0, 0, 0, .28);
  box-shadow: 0 0 0 3px rgba(210, 163, 71, .22);
}
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 4px rgba(210, 163, 71, .55); }
.site-nav .navbar-toggler-icon { filter: brightness(0) invert(1); }

.club-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 56px;
  align-items: center;
  margin-top: 72px;
  padding: 56px 30px;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.club-story h2 { margin: 10px 0 20px; color: #fff; font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: 1.05; }
.club-story-copy > p:not(.section-kicker) { max-width: 680px; margin-bottom: 14px; color: #c9c6bd; }
.club-story-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.club-story-facts div { padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.04); }
.club-story-facts strong, .club-story-facts span { display: block; }
.club-story-facts strong { color: #d2a347; font-family: 'Cormorant Garamond', serif; font-size: 2.15rem; line-height: 1; }
.club-story-facts span { margin-top: 7px; color: #c9c6bd; font-size: .83rem; line-height: 1.5; }
.club-story-image { margin: 0; }
.club-story-image img { width: 100%; height: 380px; border-radius: 16px; object-fit: cover; }
.club-story-image figcaption { margin-top: 10px; color: #c9c6bd; font-size: .85rem; line-height: 1.5; }

.club-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  max-width: 1200px;
  margin: 48px auto 0 !important;
}

.club-gallery img {
  display: block;
  width: 100% !important;
  height: 210px !important;
  margin: 0 !important;
  border-radius: 14px;
  object-fit: cover;
}

.junior-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.junior-gallery img { height: 260px !important; }

.membership-fees {
  margin: 72px auto 0 !important;
  padding: 48px 36px !important;
  border-radius: 18px !important;
  background: #102016 !important;
}

.fees-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 32px !important;
}

.fees-grid article {
  padding: 22px 16px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.04) !important;
}

.fees-grid h3 { font-family: 'Manrope', sans-serif; font-size: .82rem; color: #c9c6bd; }
.fees-grid strong { display: block; color: #d2a347; font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; line-height: 1.25; }
.fees-grid span { color: #c9c6bd; font-size: .85rem; }

footer#contact {
  margin: 76px 0 0 !important;
  padding: 42px 0 18px !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
  background: #0b1a12 !important;
  box-shadow: none !important;
  text-align: left !important;
}

footer#contact .footer-grid,
footer#contact > .container .row {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) !important;
  gap: 36px !important;
  width: min(1200px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
}

footer#contact strong { display: block; color: #fff; font-size: 1.1rem; }
footer#contact p { margin: 8px 0 0 !important; color: #d8ddd8; font-size: .9rem; line-height: 1.65; }
footer#contact a { display: block; margin-bottom: 8px; color: #fff; }
footer#contact a:hover { color: #d2a347; }
footer#contact .section-kicker { margin: 0 0 10px !important; color: #d2a347; }
footer#contact .text-md-end { text-align: right !important; }

footer#contact .pixelio-copyright {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: min(1200px, calc(100% - 48px)) !important;
  margin: 28px auto 0 !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255,255,255,.16) !important;
  color: #d8ddd8 !important;
  font-size: .8rem !important;
}

footer#contact .pixelio-copyright a { display: inline-flex; margin: 0; }
footer#contact .pixelio-copyright img {
  display: block;
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  object-fit: contain;
}

/* Keep the Juniorlings gallery unique: use different club photos on content cards. */
.pathway-card:nth-child(2) {
  background-image: linear-gradient(rgba(20,51,35,.9), rgba(20,51,35,.82)), url('../assets/images/junior-collage.png') !important;
}

.junior-details article:nth-child(1) {
  background-image: linear-gradient(rgba(12,31,20,.87), rgba(12,31,20,.87)), url('../assets/images/amelia-cheshire-compound-under-12-champ.jpg') !important;
}

.junior-details article:nth-child(2) {
  background-image: linear-gradient(rgba(12,31,20,.87), rgba(12,31,20,.87)), url('../assets/images/amelia2.jpg') !important;
}

.junior-details article:nth-child(3) {
  background-image: linear-gradient(rgba(12,31,20,.87), rgba(12,31,20,.87)), url('../assets/images/bray.jpg') !important;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  margin-top: 76px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(210,163,71,.35);
  border-radius: 18px;
  background: #143323;
}

.contact-panel h2 { margin: 0 0 14px; color: #fff; font-size: clamp(2.25rem, 4vw, 3.7rem); }
.contact-panel p { color: #e3e7e3; line-height: 1.7; }
.contact-panel-address a { color: #dcb04d; font-weight: 800; }
.contact-form { display: grid; gap: 9px; }
.contact-form label { color: #fff; font-size: .88rem; font-weight: 800; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  color: #12241a;
  background: #fff;
}
.contact-form textarea { resize: vertical; }
.contact-form .learn-btn { justify-self: start; margin-top: 8px; }
.contact-form-note { margin: 4px 0 0; color: #cbd5ce; font-size: .82rem; }

.records-intro { padding: 86px 30px 34px; }
.records-intro .split-heading { align-items: end; }
.records-intro p { max-width: 640px; }
.records-panel { margin-top: 24px; padding: clamp(22px, 4vw, 42px); border-radius: 18px; background: #143323; }
.records-controls { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.records-controls label { display: grid; gap: 6px; color: #e6ebe6; font-size: .8rem; font-weight: 800; }
.records-controls input, .records-controls select { width: 100%; min-height: 46px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 10px 12px; color: #102219; background: #fff; }
.records-meta { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 18px; color: #dce6df; font-size: .88rem; }
.records-table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: #fff; }
.records-table { width: 100%; min-width: 780px; border-collapse: collapse; color: #17271f; font-size: .9rem; }
.records-table th { padding: 13px 14px; text-align: left; color: #fff; background: #0b1a12; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.records-table td { padding: 13px 14px; border-bottom: 1px solid #e4e9e5; vertical-align: top; }
.records-table tr:last-child td { border-bottom: 0; }
.records-table tbody tr:hover { background: #f5f8f5; }
.records-score { color: #875c0c; font-size: 1rem; font-weight: 900; }
.records-empty { margin: 0; padding: 30px; color: #dce6df; text-align: center; }
.records-error { color: #ffe0d9; }

@media (max-width: 900px) {
  .club-story { grid-template-columns: 1fr; gap: 28px; margin-top: 52px; padding: 42px 24px; }
  .club-story-image img { height: 260px; }
  .contact-panel { grid-template-columns: 1fr; }
  .records-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-gallery, .junior-gallery { grid-template-columns: 1fr !important; width: calc(100% - 32px); }
  .club-gallery img, .junior-gallery img { height: 220px !important; }
  .fees-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  footer#contact .footer-grid,
  footer#contact > .container .row { grid-template-columns: 1fr !important; gap: 22px !important; }
  footer#contact .text-md-end { text-align: left !important; }
}

@media (max-width: 768px) {
  .club-story-facts { grid-template-columns: 1fr; }
  .site-nav { min-height: 72px; padding: 8px 14px; }
  .site-nav #wpb-logo { width: 56px; }
  .site-nav .nav-link { font-size: 1rem; }
  .site-nav .navbar-toggler { padding: .5rem .6rem; }
  .records-intro { padding: 56px 24px 22px; }
  .records-controls { grid-template-columns: 1fr; }
  .records-meta { align-items: flex-start; flex-direction: column; }
}
