/*
Theme Name: Pack 756
Theme URI: https://www.pack756.org
Author: Cub Scout Pack 756
Description: Block theme for Cub Scout Pack 756, Hyattsville, Maryland. Written from scratch in Scouting America brand colors.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pack756
*/

/* ---------- Base ---------- */
.wp-site-blocks > * { margin-block-start: 0; }
.p756-main > * { margin-block-start: 0; }
.p756-wrap { max-width: 1160px; margin-inline: auto; padding-inline: 32px; box-sizing: border-box; }
.p756-sec { padding-block: 72px; }
.p756-stack > * { margin-block: 0; }
.p756-stack { display: flex; flex-direction: column; gap: 16px; }
.p756-lede { font-size: 1.125rem; line-height: 1.55; color: #36454F; max-width: 40rem; }
.p756-eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.p756-more a { font-weight: 700; }

/* ---------- Buttons ---------- */
.wp-block-button__link { font-weight: 700; font-size: 1.0625rem; border-radius: 6px; padding: 16px 28px; }
.wp-block-button.is-style-outline > .wp-block-button__link { padding: 14px 26px; border-width: 2px; }
.p756-on-blue .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #fff; }
.p756-on-gold .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #003366; color: #fff; }
.p756-on-gold .wp-block-button.is-style-outline > .wp-block-button__link { color: #003366; border-color: #003366; }
.wp-block-button__link:hover, .wp-block-button__link:focus-visible { filter: brightness(0.93); }
a:focus-visible, .wp-block-button__link:focus-visible { outline: 3px solid #FCD116; outline-offset: 3px; }

/* ---------- Header ---------- */
.p756-header { background: #003366; color: #fff; }
.p756-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.p756-header-row > * { margin-block: 0; }
.p756-brand { display: flex; align-items: center; gap: 14px; }
.p756-brand > * { margin-block: 0; }
.p756-mark { width: 52px; height: 52px; flex: none; border-radius: 50%; background: #FCD116; color: #003366; border: 3px solid #fff; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--slab); font-weight: 900; font-size: 1.1875rem; line-height: 1; }
.p756-brand-text > * { margin-block: 0; }
.p756-header .wp-block-site-title { font-family: var(--wp--preset--font-family--slab); font-weight: 700; font-size: 1.3125rem; line-height: 1.1; }
.p756-header .wp-block-site-title a { color: #fff; text-decoration: none; }
.p756-loc { font-size: 0.8125rem; color: #9AB3D5; letter-spacing: 0.08em; text-transform: uppercase; }
.p756-header .wp-block-navigation { color: #fff; font-weight: 500; font-size: 0.9375rem; gap: 22px; }
.p756-header .wp-block-navigation a:hover { color: #FCD116; text-decoration: none; }
.p756-header .wp-block-navigation .p756-nav-cta > a { background: #FCD116; color: #003366; font-weight: 700; padding: 12px 22px; border-radius: 6px; }
.p756-header .wp-block-navigation .p756-nav-cta > a:hover { color: #003366; filter: brightness(0.93); }
.p756-header .wp-block-navigation__responsive-container.is-menu-open { background: #003366; color: #fff; padding: 24px; }
.p756-header .wp-block-navigation__responsive-container-open, .p756-header .wp-block-navigation__responsive-container-close { color: #fff; }

/* ---------- Hero ---------- */
.p756-hero { background: #003F87; color: #fff; }
.p756-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 72px; }
.p756-hero-row > * { margin-block: 0; }
.p756-hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.p756-hero-copy > * { margin-block: 0; }
.p756-badge { background: #FCD116; color: #003366; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; }
.p756-hero-title { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 900; line-height: 1.02; color: #fff; }
.p756-hero-text { font-size: 1.25rem; line-height: 1.55; color: #E9E9E4; max-width: 32.5rem; }
.p756-hero-photo { flex: 1.25 1 480px; min-width: 0; margin: 0 14px 14px 0; }
.p756-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 6px solid #fff; box-shadow: 14px 14px 0 #FCD116; box-sizing: border-box; }
.p756-stripe { height: 10px; background: repeating-linear-gradient(135deg, #FCD116 0 22px, #003F87 22px 44px); }

/* ---------- What's next ---------- */
.p756-next-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border: 2px solid #003F87; border-radius: 10px; padding: 28px 32px; }
.p756-next-row > * { margin-block: 0; }
.p756-next-row .p756-stack { flex: 1 1 420px; gap: 8px; }

/* ---------- Dens ---------- */
.p756-tan { background: #E9E9E4; }
.p756-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-block: 32px 0; }
.p756-grid > * { margin-block: 0; }
.p756-den { background: #fff; border-radius: 10px; border-top: 12px solid #003F87; padding: 20px 18px 22px; box-shadow: 0 2px 0 #D6CEBD; display: flex; flex-direction: column; gap: 6px; }
.p756-den > * { margin-block: 0; }
.p756-den h3 { font-size: 1.5rem; font-weight: 900; color: #003366; }
.p756-den p { font-size: 0.9375rem; font-weight: 700; color: #515354; }
.p756-den h3 a { color: inherit; text-decoration: none; }
.p756-den h3 a:hover { text-decoration: underline; }
.p756-den--lion { border-top-color: #FCD116; }
.p756-den--tiger { border-top-color: #E8731A; }
.p756-den--wolf { border-top-color: #CE1126; }
.p756-den--bear { border-top-color: #9AB3D5; }
.p756-note { border-top: 2px solid #D6CEBD; padding-top: 18px; margin-block: 28px 0; color: #36454F; }

/* ---------- Program ---------- */
.p756-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.p756-split > * { margin-block: 0; }
.p756-split-a { flex: 1 1 320px; min-width: 0; }
.p756-split-b { flex: 2 1 520px; min-width: 0; }
.p756-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 4px solid #003F87; }
.p756-steps > * { margin-block: 0; }
.p756-step { padding: 24px 20px 24px 0; border-bottom: 1px solid #D6CEBD; display: flex; flex-direction: column; gap: 8px; }
.p756-step > * { margin-block: 0; }
.p756-step .p756-num { font-family: var(--wp--preset--font-family--slab); font-weight: 900; font-size: 0.9375rem; color: #003F87; letter-spacing: 0.08em; }
.p756-step h3 { font-size: 1.375rem; color: #003366; }
.p756-step p { color: #515354; line-height: 1.5; }

/* ---------- Leaders band ---------- */
.p756-navy { background: #003366; color: #fff; }
.p756-navy h2 { color: #fff; }
.p756-navy .p756-lede { color: #E9E9E4; }
.p756-navy .p756-eyebrow { color: #FCD116; }
.p756-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p756-tiles > * { margin-block: 0; }
.p756-tiles p a { display: block; background: #003F87; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.0625rem; padding: 22px 18px; border-radius: 8px; }
.p756-tiles p.p756-tile-gold a { background: #FCD116; color: #003366; }
.p756-tiles p a:hover { filter: brightness(1.12); }

/* ---------- Where we meet ---------- */
.p756-photos { display: flex; flex-direction: column; gap: 12px; }
.p756-photos > * { margin: 0; }
.p756-photos img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 10px; }
.p756-photo-a img { aspect-ratio: 16 / 9; }
.p756-photo-b img { aspect-ratio: 16 / 6; }
.p756-address { font-size: 1.25rem; line-height: 1.45; color: #232528; }
.p756-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.p756-links > * { margin-block: 0; }

/* ---------- Join band ---------- */
.p756-gold { background: #FCD116; color: #003366; }
.p756-gold h2 { color: #003366; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; line-height: 1.05; }
.p756-join-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.p756-join-row > * { margin-block: 0; }
.p756-join-row .p756-stack { flex: 1 1 460px; gap: 10px; }
.p756-join-row .p756-stack p { font-size: 1.1875rem; line-height: 1.5; }

/* ---------- Inner pages ---------- */
.p756-pagehead { background: #003F87; color: #fff; padding-block: 48px; }
.p756-pagehead .wp-block-post-title, .p756-pagehead h1 { color: #fff; font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 900; margin: 0; }
.p756-page { padding-block: 56px 80px; padding-inline: 32px; }
.p756-page .p756-lede { max-width: 760px; font-size: 1.25rem; }
.p756-page h2 { margin-block: 3rem 1rem; }
.p756-page > .p756-grid, .p756-page > .p756-steps { margin-block: 1.5rem; }
.p756-page .wp-block-buttons { margin-block-start: 2.5rem; }
.p756-page .p756-den p a { font-weight: 700; }

/* ---------- Footer ---------- */
.p756-footer { background: #232528; color: #E9E9E4; font-size: 0.9375rem; }
.p756-footer a { color: #fff; }
.p756-footer a:hover { color: #FCD116; }
.p756-foot-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-block: 48px 40px; }
.p756-foot-row > * { margin-block: 0; }
.p756-foot-col { display: flex; flex-direction: column; gap: 10px; }
.p756-foot-col > * { margin-block: 0; }
.p756-foot-name { font-family: var(--wp--preset--font-family--slab); font-weight: 700; font-size: 1.375rem; color: #fff; }
.p756-foot-head { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #FCD116; }
.p756-foot-legal { border-top: 1px solid #515354; padding-block: 18px 28px; font-size: 0.8125rem; color: #9AB3D5; }

@media (max-width: 600px) {
  .p756-wrap { padding-inline: 20px; }
  .p756-sec { padding-block: 52px; }
  .p756-hero-row { padding-block: 48px; gap: 32px; }
  .p756-page { padding-inline: 20px; }
  .p756-tiles { grid-template-columns: 1fr; }
}

/* Five or more steps: three even columns instead of an orphaned last card */
@media (min-width: 900px) {
  .p756-steps:has(> .p756-step:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
