/*
Theme Name: JW Music
Theme URI: https://jw-music.org/
Author: JW Music, Inc.
Description: Accessible, responsive custom theme for JW Music, Inc.
Version: 1.14.6
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: jw-music
License: GNU General Public License v2 or later
*/

:root {
  --navy: #03264c;
  --navy-dark: #001a36;
  --gold: #e8a51c;
  --gold-dark: #bd7d00;
  --cream: #fbf8f1;
  --ink: #142033;
  --muted: #566273;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 26, 54, 0.12);
  --max: 1200px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--navy);
}
a:hover {
  color: var(--gold-dark);
}
h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  color: var(--navy);
  margin-top: 0;
}
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.screen-reader-text {
  position: absolute !important;
  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 {
  clip: auto !important;
  height: auto;
  width: auto;
  top: 8px;
  left: 8px;
  padding: 0.75rem;
  background: #fff;
  z-index: 9999;
}
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--gold);
  border-radius: 5px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: #f3bb49;
  color: var(--navy-dark);
}
.button-outline {
  background: transparent;
  color: #fff;
}
.site-topbar {
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.83rem;
}
.topbar-inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}
.topbar-inner a {
  color: #fff;
  text-decoration: none;
}
.site-header {
  position: relative;
  background: #fff;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}
.custom-logo {
  max-height: 68px;
  width: auto;
}
.site-title {
  font:
    700 1.55rem Georgia,
    serif;
  text-decoration: none;
}
.menu-toggle {
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
}
.primary-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.primary-nav.is-open {
  display: block;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: block;
  padding: 0.7rem;
  text-decoration: none;
  font-weight: 700;
}
.header-donate {
  display: none;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    110deg,
    rgba(0, 26, 54, 0.97),
    rgba(3, 38, 76, 0.82)
  );
  color: #fff;
}
.hero.has-image {
  background-position: center;
  background-size: cover;
}
.hero.has-image:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 26, 54, 0.96) 0%,
    rgba(0, 26, 54, 0.72) 55%,
    rgba(0, 26, 54, 0.25) 100%
  );
}
.hero-inner {
  position: relative;
  padding: 4.5rem 0;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-copy {
  max-width: 650px;
}
.eyebrow {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.hero h1 {
  font-size: clamp(2.35rem, 7vw, 4.7rem);
  color: #fff;
  margin: 0.3rem 0 1rem;
}
.hero h1 em {
  color: var(--gold);
  font-weight: 400;
}
.hero p {
  font-size: 1.15rem;
  max-width: 580px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.section {
  padding: 4rem 0;
}
.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}
.section-title:after,
.content-title:after {
  content: "";
  display: block;
  width: 62px;
  height: 4px;
  background: var(--gold);
  margin: 0.65rem auto 0;
}
.cards {
  display: grid;
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 26, 54, 0.06);
}
.card-body {
  padding: 1.35rem;
}
.card h3 {
  font-size: 1.35rem;
}
.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.learn-more {
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.mission-band {
  background: var(--navy);
  color: #fff;
}
.mission-grid {
  display: grid;
  gap: 2rem;
}
.mission-band h2,
.mission-band h3 {
  color: var(--gold);
}
.mission-band blockquote {
  font:
    italic 1.5rem Georgia,
    serif;
  color: var(--gold);
  margin: 1rem 0;
}
.impact {
  background: var(--cream);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat {
  padding: 1.5rem 0.5rem;
}
.stat strong {
  display: block;
  font:
    700 clamp(2rem, 6vw, 3.5rem) Georgia,
    serif;
  color: var(--navy);
}
.events-list {
  display: grid;
  gap: 1rem;
}
.event {
  display: grid;
  grid-template-columns: 85px 1fr;
  border: 1px solid #e4e4e4;
  border-radius: var(--radius);
  overflow: hidden;
}
.event-date {
  background: var(--gold);
  color: var(--navy-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-weight: 800;
}
.event-date strong {
  font-size: 1.7rem;
}
.event-body {
  padding: 1rem;
}
.cta {
  background: linear-gradient(120deg, var(--gold), #f5c55a);
  text-align: center;
}
.cta h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.site-footer {
  background: var(--navy-dark);
  color: #dce6f0;
  padding: 3rem 0 1rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.site-footer h2,
.site-footer h3 {
  color: #fff;
}
.site-footer a {
  color: #fff;
}
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
}
.content-wrap {
  padding: 3rem 0;
  min-height: 55vh;
}
.content-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-align: center;
}
.entry-content > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.entry-content > .alignwide {
  max-width: var(--max);
}
.entry-content > .alignfull {
  max-width: none;
}
.archive-grid {
  display: grid;
  gap: 1.25rem;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.pagination {
  margin-top: 2rem;
}
.donation-shell {
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fff;
}
.give-form-wrap,
.givewp-donation-form {
  font-family: inherit !important;
}
input,
textarea,
select {
  max-width: 100%;
  padding: 0.75rem;
  border: 1px solid #aab3bd;
  border-radius: 5px;
  font: inherit;
}
input:focus,
textarea:focus,
select:focus,
a:focus,
button:focus {
  outline: 3px solid rgba(232, 165, 28, 0.45);
  outline-offset: 2px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.empty-state {
  padding: 2rem;
  border: 2px dashed #ccd3da;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .events-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .menu-toggle {
    display: none;
  }
  .primary-nav {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0;
  }
  .primary-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .primary-nav a {
    padding: 0.7rem 0.8rem;
  }
  .header-donate {
    display: inline-flex;
  }
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mockup-aligned homepage composition. */
.homepage-layout {
  position: relative;
  z-index: 3;
  margin-top: -2.2rem;
  background: #fff;
}
.home-main,
.home-sidebar {
  min-width: 0;
}
.home-section {
  padding: 3rem 1rem;
}
.programs-section {
  padding-top: 3.7rem;
}
.home-sidebar {
  background: var(--navy);
  color: #fff;
}
.mission-panel {
  padding: 3rem 1.5rem;
}
.mission-panel h2 {
  color: var(--gold);
  font-size: 1.65rem;
  margin-bottom: 0.55rem;
}
.mission-panel h2:after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.45rem;
}
.mission-panel p {
  font-size: 0.95rem;
}
.mission-panel blockquote {
  margin: 1.5rem 0 0;
  color: var(--gold);
  font:
    italic 700 1.3rem Georgia,
    serif;
  line-height: 1.25;
}
.events-panel {
  background: #f6bd42;
  color: var(--navy-dark);
  padding: 1.25rem;
}
.events-panel > h2 {
  font:
    700 1.2rem Arial,
    sans-serif;
  text-transform: uppercase;
}
.events-panel .events-list {
  grid-template-columns: 1fr;
}
.events-panel .event {
  background: #fff;
  border-color: rgba(0, 26, 54, 0.15);
}
.events-panel .event-date {
  background: var(--navy);
  color: #fff;
}
.events-panel .event-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.left-title {
  text-align: left;
}
.left-title:after {
  margin-left: 0;
}
@media (min-width: 980px) {
  .hero-inner {
    height: 385px;
    min-height: 385px;
    padding: 2.25rem 0;
    align-items: center;
  }
  .hero-copy {
    max-width: 520px;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 4vw, 3.7rem);
  }
  .hero:after {
    content: "";
    position: absolute;
    z-index: 2;
    left: -4%;
    bottom: -54px;
    width: 78%;
    height: 92px;
    background: #fff;
    border-radius: 50% 50% 0 0/75% 75% 0 0;
    transform: rotate(-1deg);
  }
  .homepage-layout {
    display: grid;
    grid-template-columns: minmax(0, 72%) minmax(280px, 28%);
    max-width: var(--max);
    margin: -3rem auto 0;
  }
  .home-main {
    padding-top: 1rem;
  }
  .home-main .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .home-main .card-body {
    padding: 1rem;
  }
  .home-main .card h3 {
    font-size: 1.08rem;
  }
  .home-main .card p {
    font-size: 0.84rem;
    line-height: 1.45;
  }
  .home-sidebar {
    border-top: 7px solid var(--gold);
    border-radius: 48% 48% 0 0/5% 5% 0 0;
    overflow: hidden;
  }
  .mission-panel {
    padding: 3.5rem 2.2rem 2.75rem;
  }
  .events-panel {
    margin: 0 0.8rem 1rem;
    border-radius: 8px;
  }
  .impact {
    padding-top: 2.2rem;
  }
  .stats .stat {
    padding: 1rem 0.35rem;
  }
  .stat strong {
    font-size: 2.4rem;
  }
}
/* Warm program section and compact circular program artwork from the approved mockup. */
.homepage-layout,
.home-main,
.programs-section {
  background: #faf8f2;
}
.programs-section .cards {
  align-items: stretch;
}
.programs-section .card {
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border-color: #ebe6dc;
  text-align: center;
  padding-top: 1.15rem;
  box-shadow: 0 3px 12px rgba(0, 26, 54, 0.055);
}
.programs-section .card > img.program-icon {
  display: block;
  width: 76px;
  height: 76px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  border: 0;
  background: var(--navy);
}
.programs-section .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 0.8rem;
}
.programs-section .card h3 {
  margin-bottom: 0.45rem;
}
.programs-section .learn-more {
  align-self: center;
  margin-top: auto;
  padding-top: 1rem;
  display: inline-block;
}
.home-main .impact {
  background: #f1efe8;
}
/* Version 1.2: three-image hero and mockup-matched wave. */
.hero-collage {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  color: #fff;
}
.hero-collage:before,
.hero-collage:after {
  display: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  min-height: 0;
}
.hero-collage .hero-copy {
  position: relative;
  z-index: 2;
  max-width: none;
  padding: 2.25rem 1rem 2.75rem;
  background: var(--navy-dark);
}
.hero-collage .eyebrow {
  display: none;
}
.hero-collage h1 {
  font-size: clamp(2.35rem, 10vw, 3.35rem);
  margin: 0 0 0.85rem;
  max-width: 560px;
}
.hero-collage p {
  font-size: 1rem;
  margin: 0;
  max-width: 470px;
}
.hero-main-media,
.hero-side-media {
  min-width: 0;
}
.hero-main-media {
  height: 300px;
  background: #173452;
}
.hero-main-media img,
.hero-side-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-side-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 180px;
  gap: 5px;
  background: var(--gold);
  padding-top: 5px;
}
.hero-photo-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: #fff;
  background: #173452;
}
.hero-curve {
  display: none;
}
.homepage-layout {
  margin-top: 0;
}
@media (min-width: 980px) {
  .hero-collage {
    height: 370px;
  }
  .hero-grid {
    grid-template-columns: minmax(315px, 30%) minmax(0, 50%) minmax(235px, 20%);
    height: 370px;
  }
  .hero-collage .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem clamp(2rem, 4vw, 4.5rem);
    padding-right: 2rem;
    background: linear-gradient(100deg, var(--navy-dark), var(--navy));
  }
  .hero-collage h1 {
    font-size: clamp(2.35rem, 3vw, 3.2rem);
    line-height: 1.06;
  }
  .hero-collage p {
    font-size: 1rem;
    line-height: 1.45;
  }
  .hero-collage .actions {
    margin-top: 1.15rem;
  }
  .hero-main-media {
    height: 370px;
  }
  .hero-side-media {
    height: 370px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 7px;
    padding: 0 0 0 7px;
  }
  .hero-side-media img:first-child {
    border-radius: 0 0 0 16px;
  }
  .hero-side-media img:last-child {
    border-radius: 16px 0 0 0;
  }
  .hero-curve {
    display: block;
    position: absolute;
    z-index: 5;
    left: -3%;
    bottom: -37px;
    width: 77%;
    height: 65px;
    background: #faf8f2;
    border-top: 7px solid var(--gold);
    border-radius: 50% 50% 0 0/72% 72% 0 0;
    transform: rotate(-1.1deg);
    transform-origin: center;
  }
  .homepage-layout {
    max-width: none;
    width: 100%;
    margin: -1px auto 0;
    grid-template-columns: minmax(0, 72%) minmax(280px, 28%);
  }
  .home-sidebar {
    border-top: 7px solid var(--gold);
    border-radius: 55% 0 0 0/7% 0 0 0;
  }
  .programs-section {
    padding-top: 2.8rem;
  }
}
/* Version 1.3: curved header edge and two-tone hero headline. */
.site-header {
  z-index: 50;
}
.site-header:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: -24px;
  height: 45px;
  background: #fff;
  border-radius: 0 0 52% 48%/0 0 80% 70%;
  transform: rotate(-0.45deg);
  pointer-events: none;
}
.hero-collage {
  padding-top: 20px;
}
.hero-collage h1 span,
.hero-collage h1 em {
  display: block;
}
.hero-collage h1 em {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
  margin-top: 0.12em;
}
.hero-collage h1 em:after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  background: var(--gold);
  margin-top: 0.35em;
  border-radius: 3px;
}
@media (min-width: 980px) {
  .hero-collage {
    height: 390px;
    padding-top: 20px;
  }
  .hero-grid {
    height: 370px;
  }
  .hero-collage h1 {
    font-size: clamp(2.2rem, 2.4vw, 2.75rem);
    line-height: 1.08;
    max-width: 480px;
  }
  .hero-collage .hero-copy {
    padding-top: 2.7rem;
  }
  .hero-curve {
    height: 57px;
    bottom: -34px;
    border-top-width: 6px;
    border-radius: 50% 50% 0 0/62% 62% 0 0;
  }
  .hero-side-media,
  .hero-main-media {
    height: 370px;
  }
}
/* Version 1.3.1: reliable four-column Impact display. */
.impact .stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.impact .stat {
  min-width: 0;
}
.impact .stat strong,
.impact .stat span {
  display: block;
}
.impact .stat span {
  font-weight: 700;
  line-height: 1.3;
}
@media (min-width: 700px) {
  .impact .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Version 1.3.2: keep hero actions safely above the lower wave. */
@media (min-width: 980px) {
  .hero-collage {
    height: 410px;
  }
  .hero-grid {
    height: 390px;
  }
  .hero-collage .hero-copy {
    padding-top: 2.4rem;
    padding-bottom: 5rem;
  }
  .hero-collage .actions {
    margin-top: 1rem;
    margin-bottom: 0;
  }
  .hero-main-media,
  .hero-side-media {
    height: 390px;
  }
}
/* Version 1.4: deep flattened-S header wave, clean hero crop, optional social links. */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}
.topbar-social a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.header-inner {
  position: relative;
  z-index: 4;
}
.site-header {
  overflow: visible;
}
.site-header:after {
  content: "";
  display: block;
  position: absolute;
  z-index: 2;
  left: -7%;
  right: auto;
  bottom: -68px;
  width: 67%;
  height: 94px;
  background: #fff;
  border-radius: 0 0 55% 48%/0 0 92% 100%;
  transform: rotate(2.2deg);
  pointer-events: none;
}
.site-header:before {
  content: "";
  position: absolute;
  z-index: 2;
  right: -8%;
  bottom: -27px;
  width: 66%;
  height: 54px;
  background: #fff;
  border-radius: 0 0 48% 55%/0 0 82% 68%;
  transform: rotate(-0.7deg);
  pointer-events: none;
}
.hero-main-media {
  overflow: hidden;
}
.hero-main-media img {
  transform: scale(1.025);
  transform-origin: center center;
}
@media (max-width: 699px) {
  .topbar-inner {
    align-items: flex-start;
  }
  .topbar-right {
    align-items: flex-end;
    flex-direction: column;
    gap: 0.35rem;
  }
  .topbar-right > span {
    display: none;
  }
  .topbar-social a {
    width: 28px;
    height: 28px;
  }
  .site-header:after,
  .site-header:before {
    display: none;
  }
  .hero-collage {
    padding-top: 0;
  }
}
/* Version 1.4.1: footer social controls and credit. */
.site-footer .social-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.site-footer .social-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}
.site-footer .social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.powered-by {
  font-weight: 700;
}
.powered-by a {
  text-decoration: none;
}
.powered-by a:hover {
  text-decoration: underline;
}
/* Version 1.4.2: shallower upper hero wave. */
@media (min-width: 700px) {
  .site-header:after {
    left: -6%;
    bottom: -39px;
    width: 66%;
    height: 61px;
    border-radius: 0 0 54% 48%/0 0 70% 76%;
    transform: rotate(1.15deg);
  }
  .site-header:before {
    right: -7%;
    bottom: -19px;
    width: 65%;
    height: 38px;
    border-radius: 0 0 48% 54%/0 0 62% 55%;
    transform: rotate(-0.35deg);
  }
}
/* Version 1.4.3: seamless gold-line connection at the 72 percent column boundary. */
@media (min-width: 980px) {
  .hero-curve {
    left: -3%;
    width: 75.15%;
    z-index: 5;
  }
  .home-sidebar {
    position: relative;
    z-index: 6;
    border-top-width: 6px;
    border-radius: 38% 0 0 0/5% 0 0 0;
  }
}
/* Version 1.5: continuous responsive wave artwork matching the supplied mockup. */
@media (min-width: 700px) {
  .site-header:after {
    content: "";
    display: block;
    position: absolute;
    z-index: 2;
    left: 0;
    right: auto;
    top: 100%;
    bottom: auto;
    width: 100%;
    height: 72px;
    background: transparent url("assets/images/header-wave.png") center top/100%
      100% no-repeat;
    border: 0;
    border-radius: 0;
    transform: none;
  }
  .site-header:before {
    display: none;
  }
}
@media (min-width: 980px) {
  .hero-curve {
    display: block;
    position: absolute;
    z-index: 5;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 72px;
    background: transparent url("assets/images/hero-bottom-wave.png") center
      bottom/100% 100% no-repeat;
    border: 0;
    border-radius: 0;
    transform: none;
  }
  .home-sidebar {
    position: relative;
    z-index: 6;
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }
}
/* Version 1.5.1: waves reduced to half their previous vertical depth. */
@media (min-width: 700px) {
  .site-header:after {
    height: 36px;
  }
}
@media (min-width: 980px) {
  .hero-curve {
    height: 36px;
  }
}
/* Version 1.5.2: antialiased waves and safe action spacing. */
@media (min-width: 980px) {
  .hero-collage .hero-copy {
    padding-top: 2.1rem;
    padding-bottom: 8rem;
  }
  .hero-collage .actions {
    margin-top: 0.9rem;
  }
}
/* Version 1.5.3: remove contaminated left edge from the supplied hero crop. */
@media (min-width: 980px) {
  .hero-main-media img {
    width: 100%;
    max-width: none;
    transform: scale(1.22);
    transform-origin: right center;
  }
  .hero-main-media {
    background: var(--navy-dark);
  }
}
/* Version 1.5.4: natural hero framing for clean source photography. */
@media (min-width: 980px) {
  .hero-main-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    transform: none;
    transform-origin: center;
    object-fit: cover;
    object-position: center 22%;
  }
}
/* Version 1.5.5: zero top strip, face-safe framing, and action clearance. */
@media (min-width: 980px) {
  .hero-collage {
    padding-top: 0;
  }
  .hero-grid {
    height: 410px;
  }
  .hero-main-media,
  .hero-side-media {
    height: 410px;
  }
  .hero-main-media {
    background: transparent;
  }
  .hero-main-media img {
    object-position: center top;
  }
  .hero-collage .actions {
    position: relative;
    transform: translateY(-22px);
  }
}
/* Version 1.5.6: restore natural spacing between copy and hero actions. */
@media (min-width: 980px) {
  .hero-collage .actions {
    position: static;
    transform: none;
    margin-top: 1.25rem;
    margin-bottom: 0;
  }
}
/* Version 1.5.7: smooth vector-rendered finish on the right navigation wave. */
@media (min-width: 700px) {
  .site-header:before {
    content: "";
    display: block;
    position: absolute;
    z-index: 3;
    right: -3%;
    left: auto;
    top: calc(100% - 2px);
    bottom: auto;
    width: 48%;
    height: 22px;
    background: #fff;
    border: 0;
    border-radius: 0 0 52% 48%/0 0 88% 72%;
    transform: rotate(-0.35deg);
    pointer-events: none;
  }
}
/* Version 1.5.8: raised middle-to-right navigation wave. */
@media (min-width: 700px) {
  .site-header:before {
    display: none;
  }
}
/* Version 1.5.9: shallow smooth finish at the right end of the header wave. */
@media (min-width: 700px) {
  .site-header:before {
    content: "";
    display: block;
    position: absolute;
    z-index: 3;
    right: -2%;
    left: auto;
    top: calc(100% - 1px);
    bottom: auto;
    width: 43%;
    height: 9px;
    background: #fff;
    border: 0;
    border-radius: 0 0 50% 50%/0 0 90% 75%;
    transform: rotate(-0.12deg);
    pointer-events: none;
  }
}
/* Version 1.6: stable straight header with one shallow logo dip. */
@media (min-width: 700px) {
  .site-header:before {
    display: none;
  }
  .site-header:after {
    content: "";
    display: block;
    position: absolute;
    z-index: 3;
    left: -5%;
    right: auto;
    top: calc(100% - 17px);
    bottom: auto;
    width: 45%;
    height: 34px;
    background: #fff;
    border: 0;
    border-radius: 50%;
    transform: none;
    pointer-events: none;
  }
}
.donate-page {
  background: var(--cream);
}
.donate-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff;
  text-align: center;
  padding: 3.25rem 0;
}
.donate-hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4rem);
  margin-bottom: 0.75rem;
}
.donate-hero h1:after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--gold);
  margin: 0.7rem auto 0;
}
.donate-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
}
.donate-main {
  padding: 3rem 0 4rem;
}
.donate-container {
  max-width: 1100px;
}
.donate-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
}
.donation-card {
  max-width: 920px;
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #d9dee4;
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.donation-card fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 2rem;
}
.donation-card legend {
  font:
    700 1.35rem Georgia,
    serif;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.donation-choice-row,
.donation-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.donation-choice,
.donation-amount {
  min-height: 54px;
  padding: 0.75rem;
  border: 2px solid #cbd3dc;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font:
    800 1rem Arial,
    sans-serif;
  cursor: pointer;
}
.donation-amount {
  font-size: 1.15rem;
}
.donation-choice:hover,
.donation-amount:hover,
.donation-choice.is-selected,
.donation-amount.is-selected {
  border-color: var(--gold);
  background: var(--navy);
  color: #fff;
}
.custom-amount {
  margin-top: 1rem;
}
.custom-amount label,
.donor-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--navy);
}
.currency-input {
  display: flex;
  align-items: center;
  max-width: 320px;
  border: 1px solid #aab3bd;
  border-radius: 5px;
}
.currency-input span {
  padding-left: 0.8rem;
  font-weight: 800;
}
.currency-input input {
  border: 0;
  width: 100%;
}
.field-error {
  color: #a12622;
  font-weight: 700;
  margin: 0.35rem 0 0;
}
.donation-summary {
  padding: 1rem;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  margin: -0.5rem 0 2rem;
}
.donor-grid {
  display: grid;
  gap: 1rem;
}
.donor-grid input,
.donor-grid textarea {
  width: 100%;
}
.payment-options {
  display: grid;
  gap: 1rem;
}
.payment-option {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.payment-option:hover,
.payment-option:focus {
  background: var(--navy);
  color: #fff;
}
.payment-option strong {
  font-size: 1.05rem;
}
.payment-option span {
  font-size: 0.88rem;
}
.donation-trust {
  padding-left: 1.75rem;
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
}
.donation-trust:before {
  content: "🔒";
  position: absolute;
  left: 0;
}
.donation-status,
.payment-embed {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 7px;
  background: #f2f5f8;
}
.donation-card.has-stripe-embed {
  display: none;
}
.payment-embed[data-payment-panel="stripe"] {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #d9dee4;
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.payment-embed[data-payment-panel="stripe"] > h3 {
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.payment-embed[data-payment-panel="stripe"] > p {
  margin-top: 0;
  color: var(--muted);
}
.payment-embed[data-payment-panel="stripe"] .simpay-checkout-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
  width: 100% !important;
  max-width: none !important;
  margin-top: 1.5rem;
}
.payment-embed[data-payment-panel="stripe"]
  .simpay-checkout-form
  > .simpay-conditional-field {
  grid-column: 1 / -1;
}
.payment-embed[data-payment-panel="stripe"]
  .simpay-checkout-form
  > .simpay-conditional-field:has(.simpay-name-container) {
  grid-column: 1;
}
.payment-embed[data-payment-panel="stripe"]
  .simpay-checkout-form
  > .simpay-conditional-field:has(.simpay-email-container) {
  grid-column: 2;
}
.payment-embed[data-payment-panel="stripe"] .simpay-form-control {
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 1.25rem !important;
}
.payment-embed[data-payment-panel="stripe"] .simpay-label-wrap,
.payment-embed[data-payment-panel="stripe"] .simpay-label-wrap label,
.payment-embed[data-payment-panel="stripe"] .simpay-label-wrap legend {
  color: var(--navy) !important;
  font-weight: 800 !important;
}
.payment-embed[data-payment-panel="stripe"] input[type="text"],
.payment-embed[data-payment-panel="stripe"] input[type="email"],
.payment-embed[data-payment-panel="stripe"] input[type="tel"],
.payment-embed[data-payment-panel="stripe"] select {
  min-height: 48px;
  border: 1px solid #aab3bd !important;
  border-radius: 7px !important;
  background: #fff !important;
}
.payment-embed[data-payment-panel="stripe"] .simpay-multi-plan-radio-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.payment-embed[data-payment-panel="stripe"] .simpay-price-selection-label {
  margin: 0 !important;
}
.payment-embed[data-payment-panel="stripe"]
  .simpay-price-selection-label
  label {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 2px solid #cbd3dc;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}
.payment-embed[data-payment-panel="stripe"]
  .simpay-price-selection-label
  input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.payment-embed[data-payment-panel="stripe"]
  .simpay-price-selection-label
  label:has(input:checked) {
  border-color: var(--gold);
  background: var(--navy);
  color: #fff;
}
.payment-embed[data-payment-panel="stripe"] .simpay-checkout-btn {
  width: 100% !important;
  min-height: 52px;
  border-color: var(--gold) !important;
  border-radius: 7px !important;
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  font-weight: 900 !important;
}
.payment-embed[data-payment-panel="stripe"] .simpay-checkout-btn:hover {
  background: #f3bb49 !important;
}
@media (max-width: 720px) {
  .payment-embed[data-payment-panel="stripe"] .simpay-checkout-form {
    grid-template-columns: 1fr;
  }
  .payment-embed[data-payment-panel="stripe"]
    .simpay-checkout-form
    > .simpay-conditional-field:has(.simpay-name-container),
  .payment-embed[data-payment-panel="stripe"]
    .simpay-checkout-form
    > .simpay-conditional-field:has(.simpay-email-container) {
    grid-column: 1;
  }
  .payment-embed[data-payment-panel="stripe"] .simpay-multi-plan-radio-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.donation-impact {
  padding: 4rem 0;
  background: #fff;
  text-align: center;
}
.donation-impact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.donation-impact-grid {
  display: grid;
  gap: 1rem;
}
.donation-impact-grid article {
  padding: 1.75rem;
  border: 1px solid #e0e4e8;
  border-radius: var(--radius);
  box-shadow: 0 3px 15px rgba(0, 26, 54, 0.06);
}
.donation-impact-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.5rem;
}
.donation-impact-grid h3 {
  margin: 0.8rem 0 0.4rem;
}
.donation-impact-grid p {
  margin: 0;
}
@media (min-width: 640px) {
  .donation-choice-row {
    grid-template-columns: repeat(2, minmax(0, 180px));
  }
  .donation-amounts {
    grid-template-columns: repeat(5, 1fr);
  }
  .donor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .donor-wide {
    grid-column: 1/-1;
  }
  .payment-options {
    grid-template-columns: repeat(2, 1fr);
  }
  .donation-impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
