/*
Theme Name: BMS Social Hub
Theme URI: https://bmspta.co.uk
Author: Broadstone Middle School PTA
Description: A bright, community-first theme for The Social Hub at Broadstone Middle School.
Version: 1.0.1
Text Domain: bms-social-hub
*/

:root {
  --ink: #14213d;
  --paper: #f9f7f2;
  --white: #ffffff;
  --blue: #0067ed;
  --blue-dark: #0754bd;
  --yellow: #ffdc32;
  --pink: #ff5376;
  --mint: #41d3a2;
  --line: #14213d;
  --shadow: 6px 6px 0 var(--ink);
  --soft-shadow: 0 18px 50px rgba(20, 33, 61, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Arial", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link { position: absolute; left: -999px; top: 1rem; background: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.eyebrow { margin: 0 0 .6rem; text-transform: uppercase; font-size: .8rem; font-weight: 900; letter-spacing: .13em; }
.display { margin: 0; font-size: clamp(3.2rem, 8.5vw, 7.9rem); line-height: .88; letter-spacing: -.075em; font-weight: 950; text-transform: uppercase; }
.section-title { margin: 0; max-width: 800px; font-size: clamp(2.35rem, 5.5vw, 5rem); line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.lead { font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.45; }

.topbar { background: var(--ink); color: var(--white); font-size: .84rem; font-weight: 800; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; min-height: 34px; text-align: center; }
.topbar a { color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #f9f7f2; border-bottom: 2px solid var(--line); box-shadow: 0 3px 0 rgba(20,32,58,.08); }
.nav-row { display: grid; grid-template-columns: auto 1fr auto; min-height: 82px; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 49px; height: 49px; background: var(--blue); color: var(--white); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--yellow); font-weight: 950; letter-spacing: -.05em; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.03em; }
.brand-copy small { margin-top: .25rem; font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; }
.main-nav { justify-self: center; display: flex; align-items: center; gap: 1.65rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 850; font-size: .93rem; }
.main-nav a:hover, .main-nav a:focus-visible { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--pink); }
.nav-actions { display: flex; gap: .65rem; }
.menu-toggle { display: none; border: 2px solid var(--ink); background: var(--white); padding: .55rem .75rem; font-weight: 900; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .72rem 1.15rem; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; text-transform: uppercase; font-size: .83rem; font-weight: 950; letter-spacing: .05em; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover, .button:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button--blue { background: var(--blue); color: var(--white); }
.button--pink { background: var(--pink); color: var(--ink); }
.button--plain { background: var(--white); }

.hero { overflow: hidden; border-bottom: 2px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); min-height: 690px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 5.5rem 5rem 5rem 0; }
.hero-copy .display span { display: block; color: var(--blue); }
.hero-intro { max-width: 670px; margin: 1.7rem 0 1.8rem; font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-note { margin: 1.6rem 0 0; font-size: .85rem; font-weight: 800; }
.hero-art { position: relative; min-height: 570px; background: var(--blue) url('assets/images/bms-atrium.jpg') center / cover no-repeat; border-left: 2px solid var(--ink); overflow: hidden; }
.hero-art::selection { background: transparent; }
.hero-art .school-badge { position: absolute; z-index: 4; left: 6%; top: 6%; display: flex; align-items: center; gap: .7rem; padding: .65rem .9rem; background: rgba(255,255,255,.94); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 950; text-transform: uppercase; }
.hero-art .school-badge img { width: 42px; height: auto; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border: 2px solid var(--ink); border-radius: 50%; }
.hero-art::before { width: 390px; height: 390px; right: -95px; top: -100px; background: var(--yellow); }
.hero-art::after { width: 250px; height: 250px; left: -70px; bottom: -70px; background: var(--pink); }
.burst { position: absolute; inset: 5% 4% 20% 5%; z-index: 1; }
.burst i { position: absolute; left: 50%; top: 44%; width: 3px; height: clamp(95px, 16vw, 180px); background: var(--yellow); transform-origin: 50% 100%; border-radius: 3px; }
.burst i:nth-child(1) { transform: rotate(0deg) translateY(-100%); }
.burst i:nth-child(2) { transform: rotate(30deg) translateY(-100%); }
.burst i:nth-child(3) { transform: rotate(60deg) translateY(-100%); }
.burst i:nth-child(4) { transform: rotate(90deg) translateY(-100%); }
.burst i:nth-child(5) { transform: rotate(120deg) translateY(-100%); }
.burst i:nth-child(6) { transform: rotate(150deg) translateY(-100%); }
.burst i:nth-child(7) { transform: rotate(180deg) translateY(-100%); }
.burst i:nth-child(8) { transform: rotate(210deg) translateY(-100%); }
.burst i:nth-child(9) { transform: rotate(240deg) translateY(-100%); }
.burst i:nth-child(10) { transform: rotate(270deg) translateY(-100%); }
.burst i:nth-child(11) { transform: rotate(300deg) translateY(-100%); }
.burst i:nth-child(12) { transform: rotate(330deg) translateY(-100%); }
.event-sticker { position: absolute; z-index: 4; right: 7%; bottom: 8%; width: min(380px, 86%); padding: 1.4rem; background: var(--white); border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); transform: rotate(-2deg); }
.event-sticker p { margin: 0; }
.event-sticker .ten { float: right; margin-left: .7rem; color: var(--pink); font-size: 4.8rem; line-height: .85; font-weight: 950; letter-spacing: -.08em; }
.event-sticker strong { display: block; margin-bottom: .4rem; font-size: 1.4rem; line-height: 1.05; text-transform: uppercase; }

.ticker { background: var(--yellow); border-bottom: 2px solid var(--line); overflow: hidden; }
.ticker-track { width: max-content; padding: .8rem 0; animation: marquee 28s linear infinite; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; }
.ticker span { margin-right: 2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ticker-track { animation: none; } }

.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 7vw, 8rem); align-items: start; }
.intro-grid .lead { margin-top: 0; }
.name-card { position: relative; margin-top: 2rem; padding: 1.5rem; background: var(--blue); color: var(--white); border: 2px solid var(--ink); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.name-card strong { display: block; color: var(--yellow); font-size: 1.4rem; }

.impact { background: var(--ink); color: var(--white); }
.impact-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.impact-head p { max-width: 470px; margin: 0; }
.impact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.impact-card { min-height: 250px; padding: 1.55rem; color: var(--ink); border: 2px solid var(--white); box-shadow: 6px 6px 0 rgba(255,255,255,.22); }
.impact-card:nth-child(1) { grid-column: span 5; background: var(--yellow); transform: rotate(-1deg); }
.impact-card:nth-child(2) { grid-column: span 3; background: var(--mint); transform: rotate(1.2deg); }
.impact-card:nth-child(3) { grid-column: span 4; background: var(--pink); transform: rotate(-.8deg); }
.impact-card:nth-child(4) { grid-column: 3 / span 4; background: var(--white); transform: rotate(.7deg); }
.impact-card:nth-child(5) { grid-column: span 4; background: var(--blue); color: var(--white); transform: rotate(-1deg); }
.impact-card .icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 2rem; border: 2px solid currentColor; border-radius: 50%; font-size: 1.55rem; }
.impact-card h3 { margin: 0 0 .45rem; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; }
.impact-card p { margin: 0; }

.fireworks { background: var(--blue); color: var(--white); overflow: hidden; border-block: 2px solid var(--ink); }
.official-poster { margin: 0 0 clamp(3rem, 6vw, 5rem); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--pink); background: #000; }
.official-poster img { width: 100%; height: auto; }
.official-poster figcaption { padding: .65rem 1rem; background: var(--ink); color: var(--white); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.fireworks-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.date-block { position: relative; min-height: 490px; display: grid; place-items: center; }
.date-card { width: min(420px, 100%); padding: 2rem; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--pink); transform: rotate(-3deg); text-align: center; }
.date-card .month { display: block; text-transform: uppercase; font-weight: 950; letter-spacing: .18em; }
.date-card .day { display: block; margin: .15rem 0; font-size: clamp(7rem, 14vw, 10rem); line-height: .85; letter-spacing: -.09em; font-weight: 950; }
.date-card .year { font-size: 2rem; font-weight: 950; }
.fireworks-copy .section-title { color: var(--yellow); }
.event-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 2rem 0; }
.fact { padding: .9rem 1rem; border: 2px solid rgba(255,255,255,.75); }
.fact b { display: block; color: var(--yellow); text-transform: uppercase; font-size: .74rem; letter-spacing: .09em; }
.fact span { font-size: 1.05rem; font-weight: 800; }
.fineprint { max-width: 620px; font-size: .85rem; opacity: .88; }

.join-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 8rem); }
.ways { display: grid; gap: 1rem; }
.way { display: grid; grid-template-columns: 62px 1fr auto; gap: 1.2rem; align-items: center; padding: 1.2rem; background: var(--white); border: 2px solid var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.way:hover { transform: translate(-3px,-3px); box-shadow: 5px 5px 0 var(--ink); }
.way-num { font-size: 2rem; font-weight: 950; color: var(--blue); }
.way h3 { margin: 0; font-size: 1.1rem; text-transform: uppercase; }
.way p { margin: .2rem 0 0; font-size: .94rem; }
.way a { font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.team { background: var(--mint); border-block: 2px solid var(--ink); }
.team-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.team-head .lead { max-width: 470px; margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.team-card { display: flex; align-items: center; gap: 1.2rem; min-height: 180px; padding: 1.5rem; background: var(--white); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.team-card:nth-child(2) { background: var(--yellow); transform: translateY(-10px); }
.team-card:nth-child(3) { background: var(--pink); }
.team-initials { flex: 0 0 auto; display: grid; place-items: center; width: 72px; height: 72px; background: var(--blue); color: var(--white); border: 2px solid var(--ink); border-radius: 50%; font-size: 1.25rem; font-weight: 950; letter-spacing: -.03em; }
.team-card h3 { margin: 0 0 .35rem; font-size: 1.35rem; line-height: 1.05; text-transform: uppercase; }
.team-card p { margin: 0; font-weight: 800; }

.quote { padding: 3.5rem 0; background: var(--blue); color: var(--white); border-block: 2px solid var(--ink); }
.quote blockquote { margin: 0; max-width: 980px; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.08; font-weight: 900; letter-spacing: -.035em; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .9rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }

.contact { background: var(--yellow); }
.contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.contact .section-title { max-width: 880px; }
.contact-links { display: grid; gap: .7rem; justify-items: start; }
.contact-mail { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 900; text-decoration-thickness: 3px; text-underline-offset: 5px; }

.site-footer { padding: 3rem 0; background: var(--ink); color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 62px; height: auto; padding: .45rem; background: var(--white); border-radius: 50%; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 3rem; }
.footer-grid h2, .footer-grid h3 { margin-top: 0; text-transform: uppercase; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { color: var(--white); }
.legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.35); font-size: .78rem; opacity: .8; }
.legal a { color: inherit; text-underline-offset: 3px; }
.legal a:hover, .legal a:focus-visible { opacity: 1; }

@media (max-width: 900px) {
  .nav-row { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; min-height: calc(100vh - 82px); padding: 2rem max(2rem, calc((100vw - 1180px) / 2)); background: #f9f7f2; flex-direction: column; align-items: flex-start; justify-content: flex-start; justify-self: stretch; border-top: 2px solid var(--ink); box-shadow: 0 12px 24px rgba(20,32,58,.18); overflow-y: auto; }
  .main-nav.is-open { display: flex; }
  .main-nav a { font-size: 1.5rem; }
  .nav-actions .button--plain { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 4.5rem 0 3rem; }
  .hero-art { min-height: 500px; border-left: 0; border-top: 2px solid var(--ink); }
  .intro-grid, .fireworks-grid, .join-grid { grid-template-columns: 1fr; }
  .impact-card:nth-child(n) { grid-column: span 6; }
  .impact-head, .team-head { align-items: start; flex-direction: column; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card:nth-child(2) { transform: none; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 1.25rem, 1180px); }
  .topbar { font-size: .73rem; }
  .nav-row { min-height: 74px; gap: .75rem; }
  .brand-copy small { display: none; }
  .brand-mark { width: 43px; height: 43px; }
  .brand-copy strong { font-size: 1rem; }
  .nav-actions .button { display: none; }
  .main-nav { min-height: calc(100vh - 74px); padding-inline: 1.25rem; }
  .hero-copy { padding-top: 3.6rem; }
  .display { font-size: clamp(3rem, 18vw, 5.2rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-art { min-height: 430px; }
  .hero-art .school-badge { top: 1rem; left: 1rem; font-size: .72rem; }
  .event-sticker { right: 7%; bottom: 9%; }
  .event-sticker .ten { font-size: 4rem; }
  .impact-grid { display: grid; grid-template-columns: 1fr; }
  .impact-card:nth-child(n) { grid-column: 1; min-height: 220px; }
  .team-card { min-height: 150px; }
  .event-facts { grid-template-columns: 1fr; }
  .date-block { min-height: 390px; }
  .date-card .day { font-size: 8rem; }
  .way { grid-template-columns: 45px 1fr; }
  .way > a { grid-column: 2; }
}
