/*
Theme Name: CSBC Performing Arts Boosters
Theme URI: https://csbcboosters.org/
Author: CSBC Performing Arts Boosters
Description: A cinematic green-and-gold WordPress theme supporting Catholic Schools of Broome County K–12 performing arts.
Version: 1.1.7
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: csbc-boosters
*/

:root {
  --green: #144734;
  --green-deep: #071c15;
  --green-mid: #0e3527;
  --gold: #f5be0b;
  --gold-soft: #ffda60;
  --ink: #09110e;
  --cream: #f7f6f0;
  --white: #ffffff;
  --muted: #a8b8b1;
  --line: rgba(255, 255, 255, 0.17);
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Poppins", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(100% - 96px, 1320px);
  margin-inline: auto;
}

.hero {
  min-height: 900px;
  height: 100svh;
  max-height: 1040px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/hero-csbc-production.jpg");
  background-size: cover;
  background-position: center 48%;
  transform: scale(1.025);
  animation: heroPush 12s ease-out both;
}

body.admin-bar .hero {
  min-height: calc(100svh - 32px);
}

@media (max-width: 782px) {
  body.admin-bar .hero {
    min-height: calc(100svh - 46px);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 13, 9, 0.98) 0%, rgba(4, 20, 14, 0.91) 34%, rgba(5, 24, 17, 0.48) 59%, rgba(2, 10, 8, 0.25) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 25%, rgba(0, 0, 0, 0.48));
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}

.csbc-block-section,
.csbc-block-section .wp-block-group,
.csbc-block-section .wp-block-buttons,
.csbc-block-section .wp-block-button,
.csbc-block-section .wp-block-shortcode {
  margin-block: 0;
}

.csbc-block-section .wp-block-group__inner-container {
  display: contents;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 5px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  max-width: 255px;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav a {
  position: relative;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 2px;
  background: var(--gold);
  transition: right 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  right: 0;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

.hero-content {
  padding-top: clamp(118px, 13vh, 180px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 32px;
  height: 2px;
  background: currentColor;
}

.eyebrow.dark {
  color: var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

h1 {
  max-width: 790px;
  margin-bottom: 28px;
  font-size: clamp(68px, 7.6vw, 116px);
  line-height: 0.93;
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.button,
.hero-actions .wp-block-button__link {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 26px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible,
.hero-actions .wp-block-button__link:hover,
.hero-actions .wp-block-button__link:focus-visible {
  transform: translateY(-2px);
}

.hero-actions .wp-block-button__link {
  border-radius: 0;
}

.hero-actions .wp-block-button__link span,
.support-link .link-arrow,
.text-link-wrap .link-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.hero-actions .wp-block-button__link:hover span,
.support-link a:hover .link-arrow,
.text-link-wrap a:hover .link-arrow {
  transform: translateX(5px);
}

.button svg,
.header-cta svg,
.support-card a svg,
.text-link svg {
  transition: transform 180ms ease;
}

.button:hover svg,
.header-cta:hover svg,
.support-card a:hover svg,
.text-link:hover svg {
  transform: translateX(5px);
}

.button-primary,
.button-primary .wp-block-button__link {
  background: var(--gold);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-primary .wp-block-button__link:hover,
.button-primary .wp-block-button__link:focus-visible {
  background: var(--gold-soft);
}

.button-secondary,
.button-secondary .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--white);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-secondary .wp-block-button__link:hover,
.button-secondary .wp-block-button__link:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.scroll-cue {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: var(--gold);
}

.section {
  padding: 132px 0;
  scroll-margin-top: 30px;
}

.impact {
  background: var(--cream);
  color: var(--ink);
}

.section-intro h2 {
  margin-bottom: 0;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.98;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: 80px;
  align-items: start;
}

.split-intro > p,
.split-intro > .wp-block-group__inner-container > p,
.center-intro > p,
.center-intro > .wp-block-group__inner-container > p {
  margin-bottom: 4px;
  color: #4b5a54;
  font-size: 17px;
  line-height: 1.75;
}

.split-intro > p,
.split-intro > .wp-block-group__inner-container > p {
  margin-top: 46px;
}

.impact .impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 56px;
  border-top: 1px solid rgba(20, 71, 52, 0.25);
  border-bottom: 1px solid rgba(20, 71, 52, 0.25);
}

.impact-card {
  min-height: 330px;
  padding: 34px 22px 36px;
  border-right: 1px solid rgba(20, 71, 52, 0.25);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.impact-card:first-child {
  border-left: 1px solid rgba(20, 71, 52, 0.25);
}

.impact-card:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-8px);
}

.impact-number {
  margin-bottom: 74px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 32px;
}

.impact-card h3,
.support-card h3 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.impact-card p,
.support-card > p:not(.card-eyebrow):not(.support-link),
.support-card > .wp-block-group__inner-container > p:not(.card-eyebrow):not(.support-link) {
  margin-bottom: 0;
  color: #5a6661;
  font-size: 14px;
  line-height: 1.75;
}

.impact-card:hover p {
  color: rgba(255, 255, 255, 0.74);
}

.support {
  position: relative;
  background:
    radial-gradient(circle at 72% 0%, rgba(245, 190, 11, 0.09), transparent 27%),
    var(--green-deep);
}

.center-intro {
  max-width: 780px;
  margin: 0 auto 68px;
  text-align: center;
}

.center-intro .eyebrow {
  justify-content: center;
}

.center-intro h2 {
  margin-bottom: 26px;
}

.center-intro > p {
  color: var(--muted);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.support .support-grid {
  margin-top: 56px;
}

.support-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.support-card:hover {
  border-color: rgba(245, 190, 11, 0.72);
  background: rgba(20, 71, 52, 0.42);
  transform: translateY(-8px);
}

.card-eyebrow {
  min-height: 48px;
  margin-bottom: 70px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.support-card .card-eyebrow {
  min-height: 32px;
  margin-bottom: 38px;
}

.support-card h3 {
  font-size: 52px;
}

.support-card > p:not(.card-eyebrow) {
  color: var(--muted);
}

.support-link {
  margin-top: auto;
  margin-bottom: 0;
}

.support-card .support-link a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-top: 26px;
  border-bottom: 1px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 2.2;
}

.contact {
  position: relative;
  overflow: hidden;
  background: var(--green);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.contact-orb {
  position: absolute;
  width: 530px;
  height: 530px;
  right: -100px;
  top: -150px;
  border: 2px solid rgba(245, 190, 11, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(245, 190, 11, 0.05), 0 0 0 110px rgba(245, 190, 11, 0.03);
}

.contact-inner {
  position: relative;
}

.contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: 76px;
  align-items: center;
}

.contact h2 {
  max-width: 880px;
  margin-bottom: 26px;
  font-size: clamp(70px, 8vw, 116px);
  line-height: 0.92;
}

.contact-inner > p:not(.eyebrow):not(.launch-note):not(.text-link-wrap),
.contact-inner > .wp-block-group__inner-container > p:not(.eyebrow):not(.launch-note):not(.text-link-wrap) {
  max-width: 720px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.75;
}

.button-placeholder {
  cursor: default;
}

.button-placeholder:hover {
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 700;
}

.text-link-wrap {
  margin: 0;
}

.launch-note {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.contact-form {
  position: relative;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 22, 15, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.form-heading {
  margin-bottom: 30px;
}

.form-heading .card-eyebrow {
  min-height: 0;
  margin-bottom: 14px;
}

.form-heading h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-heading > p:last-child,
.form-heading > .wp-block-group__inner-container > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.form-grid,
.contact-form .frm-fluent-form fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .ff-el-group {
  margin-bottom: 18px;
}

.contact-form .ff-el-input--label label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form .ff-el-form-control {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-form input.ff-el-form-control,
.contact-form select.ff-el-form-control {
  height: 50px;
  padding: 0 14px;
}

.contact-form textarea.ff-el-form-control {
  min-height: 118px;
  padding: 13px 14px;
  resize: vertical;
}

.contact-form .ff-el-form-control:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.contact-form select.ff-el-form-control option {
  background: var(--green-deep);
  color: var(--white);
}

.contact-form .frm-fluent-form fieldset > .ff-el-group:nth-child(n + 3),
.contact-form .frm-fluent-form fieldset > .ff_submit_btn_wrapper {
  grid-column: 1 / -1;
}

.contact-form .ff-btn-submit {
  width: 100%;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-form .ff-btn-submit:hover,
.contact-form .ff-btn-submit:focus-visible {
  background: var(--gold-soft);
  color: var(--ink);
  transform: translateY(-2px);
}

.contact-form .ff-el-is-error .ff-el-form-control {
  border-color: #ff9b88;
}

.contact-form .text-danger,
.contact-form .error {
  color: #ffd0c7;
  font-size: 11px;
}

.contact-form .ff-message-success {
  padding: 18px;
  border: 1px solid var(--gold);
  background: rgba(245, 190, 11, 0.1);
  color: var(--white);
  box-shadow: none;
}

.form-status {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

footer {
  padding: 78px 0 24px;
  background: #050b08;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 72px;
  padding-bottom: 60px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-note {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.7;
}

.footer-heading {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) a {
  display: block;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.footer-grid > div:not(:first-child) a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
}

@keyframes heroPush {
  from { transform: scale(1.06); }
  to { transform: scale(1.025); }
}

@media (max-width: 1040px) {
  .shell {
    width: min(100% - 56px, 1320px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-card:nth-child(2) {
    border-right: 1px solid rgba(20, 71, 52, 0.25);
  }

  .impact-card:nth-child(n+3) {
    border-top: 1px solid rgba(20, 71, 52, 0.25);
  }

  .impact-card:last-child {
    grid-column: 1 / -1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 36px, 1320px);
  }

  .hero {
    min-height: 760px;
    height: auto;
    padding-bottom: 80px;
  }

  .hero-image {
    background-position: 66% center;
    opacity: 0.68;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(3, 18, 12, 0.96), rgba(3, 18, 12, 0.74)), linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.65));
  }

  .site-header {
    height: 90px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-copy small,
  .header-cta svg {
    display: none;
  }

  .brand-copy strong {
    max-width: 170px;
    font-size: 13px;
    line-height: 1.15;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-content {
    padding-top: 94px;
  }

  h1 {
    font-size: clamp(60px, 17vw, 84px);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 90px 0;
  }

  .split-intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split-intro > p,
  .split-intro > .wp-block-group__inner-container > p {
    margin-top: 0;
  }

  .impact-grid,
  .support-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .impact .impact-grid {
    margin-top: 44px;
  }

  .support .support-grid {
    margin-top: 44px;
  }

  .impact-card,
  .impact-card:first-child {
    min-height: auto;
    border: 0;
    border-top: 1px solid rgba(20, 71, 52, 0.25);
  }

  .impact-card:last-child {
    grid-column: auto;
    border-bottom: 1px solid rgba(20, 71, 52, 0.25);
  }

  .impact-number {
    margin-bottom: 46px;
  }

  .support-card {
    min-height: 360px;
  }

  .contact h2 {
    font-size: clamp(62px, 18vw, 92px);
  }

  .contact-orb {
    opacity: 0.45;
  }

  .contact-form {
    padding: 30px 22px;
  }

  .form-grid,
  .contact-form .frm-fluent-form fieldset {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form .frm-fluent-form fieldset > .ff-el-group,
  .contact-form .frm-fluent-form fieldset > .ff_submit_btn_wrapper {
    grid-column: 1;
  }

  .footer-grid {
    gap: 36px;
  }

  .footer-bottom {
    gap: 12px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
