/*
Theme Name: Luton & Flitwick District Scouts
Theme URI: https://example.org
Author: Luton & Flitwick District Scouts
Description: Block (Full Site Editing) theme for Luton & Flitwick District Scouts, built around the official Scout Association brand colours and the district's real section logos.
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luton-flitwick-scouts
*/

/* ---------- Layout helpers ---------- */
.section-pad { padding: 72px 0; }
.eyebrow-badge {
  display: inline-block;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  background: var(--wp--preset--color--primary-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.is-style-on-dark .eyebrow-badge,
.has-foreground-background-color .eyebrow-badge { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Header ---------- */
.site-header-outer {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header-inner img.wp-block-site-logo {
  border-radius: 12px;
}
.site-logo-lockup img {
  height: 42px !important;
  width: auto !important;
}
.wp-block-navigation { font-weight: 600; }
.wp-block-navigation a { border-radius: 999px; }
.wp-block-navigation-item a:hover { background: var(--wp--preset--color--primary-light); color: var(--wp--preset--color--primary-dark); }

/* ---------- Hero ---------- */
.hero-banner {
  background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 100%);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.hero-banner h1 { color: #fff; }
.hero-banner p { color: rgba(255,255,255,.88); }
.hero-art-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  color: #fff;
}
.finder-box {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}
.finder-box .finder-label {
  display: block;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wp--preset--color--primary);
  margin-bottom: 10px;
}
.finder-box input[type="text"] {
  border: 1.5px solid var(--wp--preset--color--line);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: .95rem;
}
.finder-box .finder-note { font-size: .85rem; color: var(--wp--preset--color--foreground-alt); margin-top: 10px; }

/* ---------- Cards ---------- */
.wp-block-group.card-block {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 18px;
  padding: 28px;
  height: 100%;
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--wp--preset--color--primary-light);
  color: var(--wp--preset--color--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
}

/* ---------- Contact details rows ---------- */
.contact-detail {
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 22px;
}

/* ---------- Section "try:" card logo chip (Our Sections page) ---------- */
.card-logo-badge {
  background: #fff;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 12px;
  margin: 0 0 14px !important;
}
.card-logo-badge img { height: 26px !important; width: auto !important; object-fit: contain; }

/* ---------- Dark stat strip ---------- */
.stats-strip {
  background: var(--wp--preset--color--foreground);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-strip .wp-block-column {
  padding: 26px 20px;
  border-right: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.stats-strip .wp-block-column:last-child { border-right: 0; }
.stats-strip strong {
  display: block;
  font-family: "Nunito Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.stats-strip span { color: rgba(255,255,255,.65); font-size: .85rem; }

/* ---------- Section tiles (age groups) ---------- */
.section-tile {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20,10,40,.08), 0 1px 2px rgba(20,10,40,.06);
  height: 100%;
}
.tile-bar { display: block; height: 6px; width: 100%; }
.tile-body { padding: 20px; }
.tile-logo { margin: 0 0 8px; }
.tile-logo img { height: 30px !important; width: auto !important; object-fit: contain; }
.tile-age {
  display: block;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  color: var(--wp--preset--color--foreground-alt);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 6px;
}
.tile-desc { color: var(--wp--preset--color--foreground-alt); font-size: .9rem; margin: 0 0 8px; }
.tile-link { margin: 0; }
.tile-link a {
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  font-size: .88rem;
  text-decoration: none;
}
.section-tile:hover .tile-link a { text-decoration: underline; }

/* ---------- Bands ---------- */
.band-teal {
  background: var(--wp--preset--color--secondary);
  border-radius: 24px;
  overflow: hidden;
}
.band-teal h2, .band-teal p { color: #fff; }
.band-dark {
  background: var(--wp--preset--color--foreground);
  border-radius: 24px;
  text-align: center;
}
.band-dark h2, .band-dark p { color: #fff; }
.band-dark .finder-row input[type="text"] { border-radius: 999px; padding: 12px 18px; border: none; }

.placeholder-media {
  border-radius: 18px;
  background: repeating-linear-gradient(135deg, var(--wp--preset--color--background-alt), var(--wp--preset--color--background-alt) 14px, #fff 14px, #fff 28px);
  border: 1.5px dashed var(--wp--preset--color--line);
  color: var(--wp--preset--color--foreground-alt);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 20px;
}

/* ---------- Testimonial ---------- */
.testimonial-block {
  background: var(--wp--preset--color--primary-light);
  border-radius: 20px;
  text-align: center;
}
.testimonial-block p.quote-text {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--wp--preset--color--primary-dark);
}

/* ---------- FAQ (core/details block) ---------- */
.wp-block-details {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.wp-block-details summary { font-weight: 700; cursor: pointer; }

/* ---------- Story cards (Query Loop) ---------- */
.story-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
}
.story-card .wp-block-post-featured-image { margin: 0; }
.story-card-body { padding: 20px; }
.story-card .wp-block-post-date {
  font-size: .8rem;
  color: var(--wp--preset--color--foreground-alt);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wp--preset--color--primary-dark);
  color: rgba(255,255,255,.8);
}
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .wp-block-navigation a { border-radius: 0; }

/* ---------- Section tile grid (age groups on homepage/sections page) ---------- */
.section-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- Page hero band (gradient header used on inner pages) ---------- */
.page-hero-band {
  background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 100%);
  color: #fff;
}

/* ---------- Section detail logo (Our Sections page) ---------- */
.section-logo-img { margin: 16px 0; }
.section-logo-img img { height: 40px !important; width: auto !important; }

/* ---------- Section "in action" photos (Our Sections page) ---------- */
.section-photo img {
  border-radius: 12px;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* ---------- Group meeting-time lists (single group page + Our Sections "groups running X") ---------- */
.lfs-meetings-list,
.lfs-section-groups-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lfs-meetings-list-item,
.lfs-section-groups-item {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
}
.lfs-section-groups-item a {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
}
.lfs-no-offerings,
.lfs-no-groups {
  color: var(--wp--preset--color--foreground-alt);
  font-size: 0.9rem;
}

/* ---------- Event date/time/venue line ---------- */
.lfs-event-details {
  color: var(--wp--preset--color--foreground-alt);
  font-size: 0.85rem;
  margin: 4px 0 8px;
}
.wp-block-post-terms {
  font-size: 0.85rem;
  color: var(--wp--preset--color--primary);
  font-weight: 600;
}

/* core/columns already stacks to 1 column at 781px automatically (WP core CSS);
   the grid-layout components below use WP's native "grid" layout type instead,
   which doesn't auto-stack, so they still need explicit breakpoints. */
@media (max-width: 900px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .wp-block-column:nth-child(2) { border-right: 0; }
  .section-tiles-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
