/*
Theme Name: 7th Boston Swineshead
Theme URI: https://7th-boston/
Author: 7th Boston Swineshead Scout Group
Description: Custom Gutenberg and ACF block theme for 7th Boston Swineshead Scout Group.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: seventh-boston
*/

/* Resource content links: visible at rest and on hover/keyboard focus. */
.resource-content a:not(:has(img)) {
  color: var(--scout-purple, #7413dc);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
.resource-content a:not(:has(img)):hover,
.resource-content a:not(:has(img)):focus-visible {
  color: var(--scout-ink, #17202a);
  background-color: var(--scout-yellow, #ffe627);
  text-decoration-thickness: 3px;
}
.resource-content a:focus-visible {
  outline: 3px solid var(--scout-purple, #7413dc);
  outline-offset: 3px;
}

:root {
  --scout-purple: #7413dc;
  --scout-teal: #00a794;
  --scout-yellow: #ffe627;
  --scout-ink: #17202a;
  --scout-paper: #f5f1e9;
  --scout-white: #fff;
}

/* Accessible display teal for white text; retains the established palette. */
:root { --scout-teal: #007f72; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--scout-paper); color: var(--scout-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 4px solid var(--scout-yellow); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 100000; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 18px; clip: auto; background: #fff; color: #000; }

body { font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
h1, h2, h3 { letter-spacing: -.045em; line-height: .95; }
.site-header { position: sticky; z-index: 1000; top: 0; height: 84px; padding: 0 5vw; display: flex; align-items: center; gap: 30px; background: #fff; border-bottom: 1px solid #ddd; }
.site-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--scout-purple); text-decoration: none; font-weight: 900; white-space: nowrap; }
.site-brand img { width: 145px; height: 52px; object-fit: contain; object-position: left center; }
.site-brand span { font-size: 18px; }
.primary-navigation ul, .fallback-navigation ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a, .fallback-navigation a { color: var(--scout-ink); text-decoration: none; font-size: 14px; font-weight: 800; }
.primary-navigation a:hover, .primary-navigation a:focus-visible { color: var(--scout-purple); }
.primary-navigation .menu-item-has-children { position: relative; }
.primary-navigation .menu-item-has-children>a { display: inline-flex; align-items: center; gap: 7px; }
.primary-navigation .menu-item-has-children>a::after { content: "⌄"; line-height: 1; transform: translateY(-2px); }
.primary-navigation .sub-menu { position: absolute; z-index: 20; top: calc(100% + 18px); left: 50%; width: 270px; padding: 16px; display: grid; gap: 3px; visibility: hidden; opacity: 0; transform: translate(-50%, 8px); background: #fff; box-shadow: 0 18px 35px #17202a26; transition: opacity .18s, transform .18s, visibility .18s; }
.primary-navigation .sub-menu::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.primary-navigation .sub-menu a { display: block; padding: 11px 12px; }
.primary-navigation .sub-menu a:hover, .primary-navigation .sub-menu a:focus-visible { background: var(--scout-paper); }
.primary-navigation .menu-item-has-children:hover>.sub-menu, .primary-navigation .menu-item-has-children:focus-within>.sub-menu { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.header-volunteer, .sb-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 15px 22px; background: var(--scout-purple); color: #fff; text-decoration: none; font-weight: 900; border: 0; }
.header-volunteer { background: #e22e12; }
.header-volunteer, .sb-button, .newsletter-panel button { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.header-volunteer:hover, .sb-button:hover, .newsletter-panel button:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 5px 0 #17202a66; filter: brightness(1.06); }
.sb-button--yellow { background: var(--scout-yellow); color: var(--scout-ink); }
.sb-text-link { color: #fff; font-weight: 900; text-underline-offset: 6px; }
.sb-eyebrow { color: var(--scout-purple); font-size: 12px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.single-heading .sb-eyebrow,
.sb-content-band--purple .sb-eyebrow { color: var(--scout-yellow); }
.sb-content-band--teal .sb-eyebrow { color: var(--scout-white); }
.menu-toggle { display: none; border: 0; background: transparent; font: inherit; font-weight: 900; }
.newsletter-panel { padding: 75px 7vw; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: center; background: var(--scout-teal); color: #fff; }
.newsletter-panel>div>span { color: var(--scout-white); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.newsletter-panel h2 { margin: 12px 0; font-size: clamp(44px, 5vw, 70px); }
.newsletter-panel form { display: grid; gap: 14px; }
.newsletter-panel label { display: grid; gap: 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.newsletter-panel input { min-height: 52px; padding: 13px; border: 2px solid #fff; font: inherit; }
.newsletter-panel button { min-height: 52px; padding: 13px 20px; border: 0; background: var(--scout-yellow); color: var(--scout-ink); font: inherit; font-weight: 900; cursor: pointer; }
.newsletter-panel button:disabled { cursor: not-allowed; opacity: .72; }
.newsletter-panel .newsletter-consent { grid-template-columns: 24px 1fr; align-items: start; font-size: 14px; font-weight: 400; text-transform: none; }
.newsletter-panel .newsletter-consent input { width: 22px; min-height: 22px; margin-top: 3px; }
.newsletter-panel .newsletter-consent a { font-weight: 900; text-underline-offset: 3px; }
.site-footer { padding: 70px 7vw 28px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; background: var(--scout-purple); color: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer>div { display: flex; flex-direction: column; gap: 10px; }
.site-footer>div>b { color: var(--scout-yellow); }
.footer-brand img { width: 120px; }
.footer-brand p { max-width: 320px; }
.site-footer nav ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; list-style: none; }
.footer-note { grid-column: 1/-1; margin: 25px 0 0; padding-top: 24px; border-top: 1px solid #ffffff44; font-size: 12px; }
main>article { padding: 80px 7vw; }
.archive-shell { padding: 100px 7vw; }
.archive-heading { max-width: 900px; margin-bottom: 55px; }
.archive-heading h1, .section-page-hero h1 { margin: 18px 0; font-size: clamp(64px, 8vw, 110px); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.archive-card { padding: 0; background: #fff; box-shadow: 7px 7px 0 #d7d1dd; }
.archive-card img { width: 100%; height: 240px; object-fit: cover; }
.archive-card>div { padding: 25px; }
.archive-card h2 { font-size: 27px; }
.archive-card a { color: var(--scout-purple); font-weight: 900; text-decoration: none; }
.event-list { display: grid; gap: 15px; }
.event-list article { display: grid; grid-template-columns: 180px 1fr; background: #fff; box-shadow: 6px 6px 0 #d7d1dd; }
.event-list time { padding: 30px; background: var(--scout-purple); color: #fff; font-size: 22px; font-weight: 900; }
.event-list article>div { padding: 28px; }
.event-list h2 { margin-top: 0; }
.section-page-hero { padding: 100px 7vw; background: var(--scout-purple); color: #fff; }
.section-page-hero p { max-width: 700px; font-size: 20px; }
.section-page-content { max-width: 1280px; margin: auto; }
.single-heading { max-width: none; margin-bottom: 0; padding: 90px 7vw; background: var(--scout-purple); color: #fff; }
.single-heading h1 { max-width: 1000px; margin: 14px 0 0; font-size: clamp(52px, 7vw, 94px); }
.single-content { max-width: 980px; margin: auto; padding: 70px 7vw 90px; font-size: 18px; }
.single-content>h2 { margin: 65px 0 20px; font-size: clamp(38px, 5vw, 60px); }
.single-content>h2:first-child { margin-top: 0; }
.single-content h3 { margin-top: 35px; font-size: 28px; }
.single-content .wp-block-columns { gap: 24px; margin: 40px 0; }
.single-content .wp-block-column { padding: 28px; background: #fff; box-shadow: 6px 6px 0 #d7d1dd; }
.single-content .wp-block-quote { margin: 45px 0; padding: 26px 32px; border-left: 8px solid var(--scout-teal); background: #fff; font-size: 22px; }
.single-content .wp-block-button__link { border-radius: 0; background: var(--scout-purple); font-weight: 900; }
.people-directory { margin-top: 65px; }
.people-directory>h2 { font-size: clamp(40px, 5vw, 62px); }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.people-grid article { overflow: hidden; background: #fff; box-shadow: 7px 7px 0 #d7d1dd; }
.people-grid article>img, .person-placeholder { width: 100%; height: 280px; object-fit: cover; object-position: top; }
.person-placeholder { display: grid; place-items: center; background: var(--scout-teal); color: #fff; font-size: 90px; }
.people-grid article>div { padding: 24px; }
.people-grid small { color: var(--scout-purple); font-weight: 900; text-transform: uppercase; }
.people-grid h3 { margin: 8px 0 12px; }
.contact-form { display: grid; gap: 20px; margin-top: 35px; padding: 38px; background: #fff; box-shadow: 9px 9px 0 #d7d1dd; }
.contact-form label { display: grid; gap: 7px; font-weight: 900; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 52px; padding: 13px; border: 2px solid #565b61; background: #fff; color: var(--scout-ink); font: inherit; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 4px solid var(--scout-yellow); outline-offset: 2px; border-color: #000; }
.contact-form textarea { resize: vertical; }
.contact-form .contact-consent { grid-template-columns: 24px 1fr; align-items: start; font-weight: 400; }
.contact-form .contact-consent input { width: 22px; min-height: 22px; margin-top: 3px; }
.contact-form .sb-button { justify-self: start; cursor: pointer; }
.form-notice { margin: 25px 0; padding: 20px; border-left: 7px solid var(--scout-teal); background: #fff; font-weight: 900; }
.form-notice--error { border-left-color: #d02620; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wp-section-hero { position: relative; min-height: 590px; display: grid; align-items: end; overflow: hidden; padding: 90px 7vw 75px; background: linear-gradient(90deg, #10131de8 0%, #10131d99 52%, transparent 82%), var(--section-hero) center/cover; color: #fff; }
.wp-section-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #10131dda 0%, #10131d88 48%, transparent 82%); }
.wp-section-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, #10131ddd, transparent); }
.wp-section-hero__copy { position: relative; z-index: 2; max-width: 760px; }
.wp-section-hero__copy h1 { margin: 18px 0; font-size: clamp(68px, 10vw, 145px); }
.wp-section-hero__copy p { max-width: 680px; font-size: 21px; font-weight: 700; }
.wp-section-hero__copy>img { max-width: 180px; max-height: 75px; margin-bottom: 20px; object-fit: contain; object-position: left; }
.wp-section-hero__mascot { position: absolute; z-index: 2; right: 6vw; bottom: 0; max-width: 34vw; max-height: 520px; object-fit: contain; filter: drop-shadow(10px 12px 0 #0003); }
.wp-section-intro, .wp-section-activities, .wp-section-gallery, .wp-section-team, .wp-section-updates, .wp-section-cta { padding: 80px 7vw; }
.wp-section-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 65px; background: #fff; }
.wp-section-intro h2, .wp-section-activities h2, .wp-section-gallery h2, .wp-section-team h2, .wp-section-updates h2, .wp-section-cta h2 { margin: 12px 0 24px; font-size: clamp(43px, 5vw, 70px); }
.wp-section-intro aside { padding: 36px; align-self: start; background: var(--scout-yellow); box-shadow: 9px 9px 0 var(--section); }
.wp-section-intro aside small { font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.wp-section-intro aside h3 { margin: 3px 0; font-size: 25px; }
.wp-section-activities>div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wp-section-activities article { min-height: 170px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; border-top: 8px solid var(--section); box-shadow: 6px 6px 0 #d7d1dd; }
.wp-section-activities article b { color: var(--section); font-size: 36px; }
.wp-section-activities article span { font-size: 22px; font-weight: 900; }
.wp-section-gallery { background: #fff; overflow: hidden; }
.sb-block-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.wp-gallery-controls { display: flex; gap: 10px; padding-bottom: 25px; }
.wp-gallery-controls button { width: 52px; height: 52px; border: 0; background: var(--section); color: #fff; font-size: 25px; font-weight: 900; cursor: pointer; }
.wp-gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: none; }
.wp-gallery-track::-webkit-scrollbar { display: none; }
.wp-gallery-track figure { min-width: 0; margin: 0; scroll-snap-align: start; }
.wp-gallery-track img { width: 100%; height: 350px; object-fit: cover; }
.wp-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wp-team-grid article { padding: 0 0 28px; text-align: center; background: #fff; box-shadow: 7px 7px 0 #d7d1dd; }
.wp-team-grid img { width: 100%; height: 300px; object-fit: cover; object-position: top center; }
.wp-team-grid h3 { margin: 8px 18px 4px; font-size: 28px; }
.wp-team-grid small { display: block; margin-top: 22px; color: var(--section); font-weight: 900; text-transform: uppercase; }
.wp-section-updates { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; background: #fff; }
.wp-mini-list { display: grid; gap: 15px; }
.wp-mini-list article { padding: 24px; border-left: 7px solid var(--section); background: var(--scout-paper); }
.wp-mini-list h3 { margin: 5px 0 0; font-size: 24px; }
.wp-mini-list a { color: var(--scout-purple); text-decoration: none; }
.wp-section-cta { display: grid; grid-template-columns: 160px 1fr auto; gap: 35px; align-items: center; background: var(--section); color: #fff; }
.wp-section-cta img { max-height: 170px; margin: -35px auto -80px; }
.wp-section-cta p { margin: 0; font-size: 19px; }

@media (max-width: 1250px) {
  .primary-navigation, .header-volunteer { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 9px; }
  .primary-navigation.is-open { position: fixed; inset: 84px 0 0 auto; width: min(420px, 90vw); display: block; padding: 35px; overflow-y: auto; background: #fff; box-shadow: -12px 10px 30px #0003; }
  .primary-navigation.is-open ul { align-items: stretch; flex-direction: column; }
  .primary-navigation.is-open a { display: block; padding: 12px 0; font-size: 20px; }
  .primary-navigation.is-open .menu-item-has-children>a { display: flex; }
  .primary-navigation.is-open .sub-menu { position: static; width: auto; padding: 0 0 8px 20px; visibility: visible; opacity: 1; transform: none; box-shadow: none; }
  .primary-navigation.is-open .sub-menu a { padding: 8px 0; font-size: 16px; }
  .wp-section-activities>div { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 700px) {
  .site-header { height: 72px; padding-inline: 5vw; }
  .site-brand img { width: 105px; }
  .site-brand span { max-width: 130px; white-space: normal; font-size: 13px; line-height: 1.1; }
  .primary-navigation.is-open { inset-block-start: 72px; }
  .newsletter-panel, .site-footer { grid-template-columns: 1fr; padding-inline: 6vw; }
  .footer-note { grid-column: auto; }
  .archive-shell, .section-page-hero { padding: 72px 6vw; }
  .archive-grid { grid-template-columns: 1fr; }
  .event-list article { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .wp-section-hero { min-height: 640px; }
  .wp-section-hero__copy h1 { font-size: 64px; }
  .wp-section-hero__mascot { max-height: 270px; position: absolute; right: -20px; bottom: 0; opacity: .38; }
  .wp-section-intro, .wp-section-updates, .wp-section-cta { grid-template-columns: 1fr; }
  .wp-section-intro, .wp-section-activities, .wp-section-gallery, .wp-section-team, .wp-section-updates, .wp-section-cta { padding: 65px 6vw; }
  .wp-section-activities>div, .wp-team-grid { grid-template-columns: 1fr; }
  .wp-gallery-track { grid-auto-columns: 86%; }
  .wp-gallery-track img { height: 290px; }
  .sb-block-heading { align-items: start; flex-direction: column; }
  .wp-gallery-controls { padding-bottom: 10px; }
  .wp-section-cta img { margin: -35px auto 0; }
}
