:root {
  --swac-black: #241A17;
  --swac-red: #C6452D;
  --swac-red-dark: #963221;
  --swac-orange: #F3702D;
  --swac-yellow: #F4C430;
  --swac-blue: #1F77C9;
  --swac-cream: #FFF8F1;
  --swac-sand: #F4E7D8;
  --bg: #fff8f1;
  --bg-soft: #fffaf5;
  --bg-panel: rgba(255, 250, 245, 0.9);
  --text: var(--swac-black);
  --muted: #6b524b;
  --primary: var(--swac-red);
  --primary-dark: var(--swac-red-dark);
  --sand: var(--swac-sand);
  --ochre: #d88948;
  --line: rgba(36, 26, 23, 0.12);
  --line-strong: rgba(198, 69, 45, 0.28);
  --shadow: 0 18px 44px rgba(36, 26, 23, 0.11);
  --shadow-soft: 0 10px 28px rgba(36, 26, 23, 0.08);
  --swac-gradient: linear-gradient(90deg, #c6452d 0%, #f3702d 28%, #f4c430 58%, #4b8fd1 100%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("assets/graphics/page-background.svg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  line-height: 1.55;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 248, 241, 0.58), rgba(255, 248, 241, 0.76)),
              radial-gradient(circle at 82% 38%, rgba(244, 196, 48, 0.16), transparent 27%),
              radial-gradient(circle at 16% 70%, rgba(31, 119, 201, 0.08), transparent 24%);
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 132px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(255, 248, 241, 0.94) 42%, rgba(255, 248, 241, 0) 100%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.flip-card:focus-visible {
  outline: 3px solid rgba(198, 69, 45, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  border: 0;
  border-radius: 0;
  background: rgba(255, 248, 241, 0.98);
  box-shadow: 0 1px 0 rgba(36, 26, 23, 0.05);
  opacity: 1;
}
.site-header.is-scrolled::before { opacity: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.02;
  font-size: clamp(1.1rem, 1.5vw, 1.52rem);
}
.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(76, 35, 25, 0.13));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 750;
  color: #2d1d19;
}
.site-nav a:not(.nav-button) {
  position: relative;
  padding: 8px 0;
}
.site-nav a:not(.nav-button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.2s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { width: 100%; }
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: #fff8f3;
  border-radius: 13px;
  background: var(--primary);
  box-shadow: 0 14px 26px rgba(180, 73, 52, 0.22);
}
.nav-button:hover { color: #fff; background: var(--primary-dark); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 248, 243, 0.82);
  padding: 10px 12px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}
.nav-toggle strong { margin-left: 6px; font-size: 0.9rem; }

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  min-height: 570px;
  padding: 56px 0 70px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(255, 248, 241, 0.99) 0%,
      rgba(255, 248, 241, 0.95) 31%,
      rgba(255, 248, 241, 0.62) 56%,
      rgba(255, 248, 241, 0.14) 100%),
    linear-gradient(180deg, rgba(244, 196, 48, 0.1), transparent 46%);
}
.hero-inner {
  position: relative;
  z-index: 4;
}
.hero-copy {
  position: relative;
  z-index: 4;
  max-width: min(880px, 58vw);
}
.hero-banner-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: clamp(540px, 50vw, 760px);
  z-index: 0;
  pointer-events: none;
}
.hero-banner-art img {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center right;
  opacity: 0.94;
}
.hero-fern {
  display: block;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.105em;
  font-size: 0.78rem;
  font-weight: 900;
}
h1, h2, h3 { margin-block: 0; letter-spacing: -0.045em; line-height: 1.06; }
.hero h1 {
  max-width: min(880px, 58vw);
  font-size: clamp(2.85rem, 4.15vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero-line {
  display: block;
}
.hero-text {
  max-width: 580px;
  margin-top: 22px;
  color: #4f3933;
  font-size: clamp(1rem, 1.12vw, 1.14rem);
  line-height: 1.56;
}
.hero-actions {
  margin-top: 28px;
}
.hero-graphic {
  display: none !important;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.button:disabled { transform: none; }
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fff8f2;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 30px rgba(198, 69, 45, 0.22);
}
.button-primary:hover { color: #fff; background: linear-gradient(135deg, var(--primary-dark), #742819); box-shadow: 0 18px 36px rgba(150, 50, 33, 0.28); }
.button-secondary {
  border-color: rgba(124, 48, 40, 0.42);
  color: var(--text);
  background: rgba(255, 248, 243, 0.56);
}
.button-secondary:hover { background: #fff8f3; color: var(--primary-dark); }
.button-full { width: 100%; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  margin-top: clamp(38px, 4.8vw, 58px);
  margin-bottom: 0;
}
.trust-strip article {
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 248, 243, 0.88);
  box-shadow: var(--shadow-soft);
}
.trust-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: -0.04em;
}
.trust-strip span { display: block; color: var(--muted); font-size: 0.94rem; }

.section-heading.centered {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 10px;
}
.section-heading.left {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
}
.section-heading span {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--swac-red), var(--swac-orange), var(--swac-yellow), transparent);
}
.section-heading.left span { flex: 1; background: linear-gradient(90deg, var(--swac-red), var(--swac-orange), var(--swac-yellow), transparent); }
h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 920; }
.section-intro {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--muted);
  text-align: center;
}
.left-text { margin-left: 0; text-align: left; }

.programs {
  position: relative;
  padding-top: 18px;
}
.programs::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 36px;
  height: 280px;
  z-index: -1;
  background-image: url("assets/graphics/section-waves.svg");
  background-repeat: no-repeat;
  background-size: 72% auto;
  background-position: left top;
  opacity: 0.24;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  perspective: 1500px;
}
.flip-card {
  min-height: 364px;
  outline: none;
  perspective: 1500px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 364px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.64s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.flip-card:hover .flip-card-inner,
.flip-card:focus-visible .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.program-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 250, 245, 0.88)),
    var(--bg-panel);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  overflow: hidden;
}
.program-front {
  align-items: center;
  justify-content: center;
  padding: 28px 26px 26px;
  text-align: center;
}
.program-front::before,
.program-back::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--swac-gradient);
  opacity: 0.88;
}
.program-front img {
  width: 116px;
  height: 116px;
  margin-bottom: 20px;
  object-fit: contain;
}
.program-front h3 {
  margin-bottom: 13px;
  font-size: clamp(1.2rem, 1.7vw, 1.48rem);
  line-height: 1.1;
}
.program-front h3 small { font-size: 0.68em; font-weight: 650; letter-spacing: -0.02em; }
.program-front p {
  margin: 0;
  color: #4e332c;
  font-size: 0.98rem;
  line-height: 1.45;
}
.program-front span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(198, 69, 45, 0.16);
  background: linear-gradient(135deg, rgba(244, 196, 48, 0.26), rgba(243, 112, 45, 0.14));
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 750;
}
.program-back {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-content: stretch;
  padding: 24px;
  transform: rotateY(180deg);
}
.program-back h3 {
  margin-bottom: 14px;
  font-size: 1.22rem;
  line-height: 1.12;
}
.program-back h3 small { font-size: 0.78em; font-weight: 650; }
.program-back ul {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.38;
  color: #432a24;
}
.program-back li {
  position: relative;
  padding-left: 25px;
}
.program-back li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 16px;
  height: 16px;
  background: url("assets/icons/check.svg") center / contain no-repeat;
}
.program-contact {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.3;
}
.program-contact strong { font-size: 0.94rem; }
.program-contact a {
  color: var(--primary-dark);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.flip-card:nth-child(3n + 2) .program-front::before,
.flip-card:nth-child(3n + 2) .program-back::before {
  background: var(--swac-gradient);
}
.flip-card:nth-child(3n) .program-front::before,
.flip-card:nth-child(3n) .program-back::before {
  background: var(--swac-gradient);
}
.split-contact { gap: 5px; }

.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: stretch;
  margin-top: 82px;
}
.soft-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 248, 241, 0.78)),
    rgba(255, 248, 241, 0.86);
  box-shadow: var(--shadow);
}
.about-panel,
.form-panel { padding: 36px; }
.about-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 241, 0.82) 58%, rgba(244, 231, 216, 0.58)),
    radial-gradient(circle at 100% 0%, rgba(244, 196, 48, 0.18), transparent 34%),
    rgba(255, 248, 241, 0.9);
}
.about-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--swac-gradient);
  opacity: 0.86;
}
.about-panel h2,
.form-panel h2 { margin-bottom: 18px; }
.about-panel p,
.form-panel p { color: #442c26; }
.about-panel p:last-of-type { margin-bottom: 0; }
.affiliation-note {
  position: relative;
  margin-top: 24px;
  padding: 15px 17px 15px 19px;
  border: 1px solid rgba(198, 69, 45, 0.13);
  border-left: 4px solid rgba(75, 143, 209, 0.72);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(244, 196, 48, 0.14), rgba(75, 143, 209, 0.08)),
    rgba(255, 250, 245, 0.68);
  color: #49362f;
  font-weight: 690;
  line-height: 1.5;
  box-shadow: 0 8px 18px rgba(36, 26, 23, 0.045);
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.values div {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 2px;
  text-align: center;
  font-size: 0.9rem;
}
.values img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(198, 69, 45, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 241, 0.22)),
    linear-gradient(135deg, rgba(198, 69, 45, 0.16), rgba(243, 112, 45, 0.14), rgba(244, 196, 48, 0.22));
  padding: 9px;
  box-shadow: 0 8px 18px rgba(36, 26, 23, 0.055);
}
.values div:nth-child(2) img {
  border-color: rgba(243, 112, 45, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 241, 0.22)),
    linear-gradient(135deg, rgba(243, 112, 45, 0.15), rgba(244, 196, 48, 0.24));
}
.values div:nth-child(3) img {
  border-color: rgba(75, 143, 209, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 241, 0.22)),
    linear-gradient(135deg, rgba(244, 196, 48, 0.16), rgba(75, 143, 209, 0.14));
}

.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(103, 53, 42, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px 15px;
  color: var(--text);
  outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
input::placeholder, textarea::placeholder { color: rgba(75, 48, 42, 0.62); }
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(180, 73, 52, 0.72);
  box-shadow: 0 0 0 4px rgba(180, 73, 52, 0.12);
}
textarea { min-height: 132px; resize: vertical; }
.form-note { margin: -2px 0 0; color: var(--muted); font-size: 0.84rem; }
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-status {
  min-height: 1.3em;
  margin: -2px 0 0;
  font-size: 0.9rem;
  font-weight: 650;
}
.form-status.is-success { color: #376238; }
.form-status.is-error { color: var(--primary-dark); }
.contact-form.is-sending button[type="submit"] {
  opacity: 0.72;
  cursor: progress;
}

.visit-card { overflow: hidden; }
.visit-card > img {
  width: 100%;
  height: 154px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.visit-card-body {
  display: grid;
  gap: 12px;
  padding: 28px;
}
.visit-card h3 { margin-bottom: 2px; font-size: 1.62rem; }
.visit-card p { margin: 0; color: #3e2923; font-size: 0.96rem; line-height: 1.48; }
.visit-card a:not(.button) { color: var(--primary-dark); font-weight: 800; overflow-wrap: anywhere; }
.visit-card a.visit-email {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: 0.96rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.35;
}
.visit-card hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

.contacts {
  position: relative;
  margin-top: 78px;
  margin-bottom: 64px;
}
.contacts::before {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -28px;
  width: min(560px, 72vw);
  height: 190px;
  z-index: -1;
  background: url("assets/graphics/section-waves.svg") center / contain no-repeat;
  opacity: 0.22;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.contact-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 188px;
  padding: 25px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 248, 241, 0.9)),
    rgba(255, 248, 241, 0.92);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--swac-orange), var(--swac-yellow));
  opacity: 0.85;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(88, 39, 28, 0.12); }
.contact-tag {
  width: fit-content;
  margin: 0 0 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(198, 69, 45, 0.12);
  background: rgba(244, 231, 216, 0.72);
  color: var(--primary-dark);
  font-size: 0.68rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-card h3 { font-size: 1.38rem; font-weight: 790; line-height: 1.08; }
.contact-card .role {
  margin: 0 0 6px;
  color: #69463b;
  font-weight: 620;
  font-size: 0.92rem;
  line-height: 1.42;
}
.contact-card a {
  display: block;
  color: #3e2722;
  font-size: 0.93rem;
  font-weight: 580;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.contact-card a[href^="mailto"] {
  color: var(--primary-dark);
  font-weight: 600;
}
.contact-card a[href^="tel"]::before { content: "☎ "; color: var(--primary); }
.contact-card a[href^="mailto"]::before { content: "✉ "; color: var(--primary); }

.onwa-supports {
  position: relative;
  margin-top: 0;
  margin-bottom: 88px;
}
.onwa-supports::before {
  content: "";
  position: absolute;
  right: -32px;
  top: -34px;
  width: min(520px, 70vw);
  height: 170px;
  z-index: -1;
  background: url("assets/graphics/section-waves.svg") center / contain no-repeat;
  opacity: 0.18;
  transform: scaleX(-1);
}
.onwa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.onwa-card::before {
  background: linear-gradient(90deg, var(--swac-blue), var(--swac-red), var(--swac-orange));
}
.onwa-card .contact-tag {
  color: #164f84;
  background: rgba(31, 119, 201, 0.09);
  border-color: rgba(31, 119, 201, 0.16);
}

.program-modal[hidden] { display: none; }
.program-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 20px;
}
.program-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 23, 20, 0.42);
}
.program-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid rgba(255, 248, 243, 0.55);
  border-radius: 24px 24px 18px 18px;
  background: #fff8f3;
  box-shadow: 0 22px 54px rgba(47, 23, 20, 0.28);
}
.modal-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 56px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 12px 12px -36px auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 243, 0.94);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.program-modal-content {
  padding: 34px 28px 28px;
}
.program-modal-content h2 {
  padding-right: 42px;
  font-size: clamp(1.55rem, 7vw, 2.2rem);
}
.program-modal-content ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 20px;
  padding: 0;
  list-style: none;
  color: #432a24;
  font-size: 0.95rem;
}
.program-modal-content li {
  position: relative;
  padding-left: 26px;
}
.program-modal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 17px;
  height: 17px;
  background: url("assets/icons/check.svg") center / contain no-repeat;
}
.program-modal-content .program-contact {
  margin-top: 0;
  font-size: 0.92rem;
}

.page-main {
  padding: 34px 0 88px;
}

.page-hero {
  padding: 76px 0 34px;
}

.page-hero h1 {
  max-width: 760px;
  margin: 8px 0 18px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.page-content {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.page-content article {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 248, 243, 0.86);
  box-shadow: var(--shadow-soft);
}

.page-content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-content p {
  margin: 0;
  color: #432a24;
}

.page-content a {
  color: var(--primary-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  color: #fff8f2;
  background:
    radial-gradient(circle at 74% 110%, rgba(243, 112, 45, 0.28), transparent 38%),
    linear-gradient(135deg, var(--swac-black), #4b211b 62%, #66281d);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: #fff8f2;
}
.footer-brand:hover { color: #fff; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; }
.footer-brand strong { display: block; line-height: 1.05; }
.footer-brand small { display: block; margin-top: 4px; color: #f2d6c6; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 900;
}
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: #f1d1c2;
  font-size: 0.9rem;
}
.footer-links a[aria-current="page"] { color: #fff; font-weight: 800; }
.footer-links a:hover { color: #fff; }

@media (max-width: 1080px) {
  .hero {
    min-height: 540px;
    padding: 42px 0 56px;
  }
  .hero h1 {
    max-width: 760px;
    font-size: clamp(2.55rem, 5.2vw, 3.65rem);
    line-height: 1.03;
  }
  .hero-banner-art img {
    object-position: 60% center;
    opacity: 0.68;
  }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-contact { grid-template-columns: 1fr 1fr; }
  .visit-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); }
  .visit-card > img { height: 100%; min-height: 230px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onwa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: 1fr; max-width: 620px; }
}

@media (max-width: 760px) {
  body { background-size: auto 100%; }
  .section-shell,
  .site-header,
  .footer-inner { width: min(100% - 28px, var(--max)); }
  .site-header { padding: 14px 0; }
  .brand img { width: 50px; height: 50px; }
  .brand span { font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 78px;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(340px, calc(100vw - 28px));
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 248, 243, 0.96);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 4px; }
  .nav-button { min-height: 48px; }
  .hero {
    min-height: auto;
    padding: 28px 0 42px;
    overflow: hidden;
  }
  .hero-inner,
  .hero-copy {
    position: relative;
    z-index: 3;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero::after {
    z-index: 1;
    background:
      linear-gradient(
        180deg,
        rgba(255, 248, 243, 0.78) 0%,
        rgba(255, 248, 243, 0.92) 42%,
        rgba(255, 248, 243, 0.98) 100%
      );
  }
  .hero h1 {
    position: relative;
    z-index: 3;
    max-width: 100%;
    font-size: clamp(2.25rem, 10vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }
  .hero-line {
    display: inline;
  }
  .hero-banner-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    min-height: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .hero-banner-art img {
    position: absolute;
    top: 0;
    right: -34vw;
    width: 120vw;
    height: 300px;
    max-width: none;
    object-fit: contain;
    object-position: top right;
    opacity: 0.22;
    transform: none;
  }
  .hero-fern,
  .hero-leaf,
  .fern,
  .leaf-accent { display: none !important; }
  .hero-text,
  .hero-actions {
    position: relative;
    z-index: 3;
  }
  .hero-actions { gap: 12px; }
  .button { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; margin: 34px auto 0; }
  .section-heading.centered { grid-template-columns: 42px 1fr 42px; gap: 12px; text-align: center; }
  .program-grid { grid-template-columns: 1fr; }
  .flip-card,
  .flip-card-inner { min-height: 292px; }
  .flip-card:hover .flip-card-inner,
  .flip-card:focus-visible .flip-card-inner,
  .flip-card.is-flipped .flip-card-inner { transform: none; }
  .program-back { display: none; }
  .program-front { padding: 28px 24px 24px; }
  .about-contact { grid-template-columns: 1fr; margin-top: 56px; }
  .about-panel,
  .form-panel,
  .visit-card-body { padding: 26px; }
  .values { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .visit-card { display: block; }
  .visit-card > img { height: 190px; min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .onwa-grid { grid-template-columns: 1fr; }
  .page-main { padding: 16px 0 64px; }
  .page-hero { padding: 42px 0 26px; }
  .page-content article { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .visit-card a.visit-email {
    white-space: normal;
    overflow-wrap: anywhere;
    letter-spacing: normal;
  }
}

@media (max-width: 430px) {
  .hero {
    padding-top: 22px;
  }
  .hero-banner-art img {
    right: -46vw;
    width: 135vw;
    height: 260px;
    opacity: 0.18;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .flip-card:hover .flip-card-inner,
  .flip-card:focus-visible .flip-card-inner,
  .flip-card.is-flipped .flip-card-inner { transform: none; }
  .program-back { display: none; }
}

/* ================================
   Mobile hero artwork fix
   Keeps desktop unchanged
================================ */

@media (max-width: 760px) {
  .hero {
    position: relative;
    display: block;
    min-height: auto !important;
    padding: 22px 0 38px !important;
    overflow: hidden;
  }

  .hero-inner,
  .hero-copy,
  .hero-trust {
    position: relative;
    z-index: 3;
  }

  .hero-copy {
    max-width: 100% !important;
  }

  .hero-copy::before {
    opacity: 0.18;
  }

  .hero-fern,
  .hero-leaf,
  .fern,
  .leaf-accent,
  [class*="fern"] {
    display: none !important;
  }

  .hero-graphic,
  .hero-banner,
  .hero-banner-art,
  .hero-art {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    pointer-events: none;
    overflow: hidden;
  }

  .hero-graphic::before,
  .hero-banner::before,
  .hero-banner-art::before,
  .hero-art::before {
    display: none !important;
  }

  .hero-graphic img,
  .hero-banner img,
  .hero-banner-art img,
  .hero-art img {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 260px !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: top right !important;
    opacity: 0.16 !important;
    transform: none !important;
  }

  .eyebrow,
  .hero-title,
  .hero h1,
  .hero-text,
  .hero-actions {
    position: relative;
    z-index: 3;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.25rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
    max-width: 100% !important;
  }

  .hero h1 span,
  .hero-title span {
    white-space: normal !important;
  }

  .hero-text {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .trust-strip {
    margin-top: 0 !important;
  }
}

@media (max-width: 430px) {
  .hero-graphic img,
  .hero-banner img,
  .hero-banner-art img,
  .hero-art img {
    right: 0 !important;
    width: 100% !important;
    height: 230px !important;
    opacity: 0.14 !important;
  }
}

/* =========================================
   MOBILE HERO FIX — keep desktop unchanged
   ========================================= */

@media (min-width: 1451px) {
  .hero-fern {
    position: absolute;
    left: -5px;
    top: 160px;
    width: 290px;
    height: 650px;
    z-index: 2;
    opacity: 0.8;
    pointer-events: none;
    overflow: hidden;
    transform: rotate(8deg);
    transform-origin: center center;
  }

  .hero-fern img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .hero {
    position: relative;
    display: block;
    min-height: auto !important;
    padding: 28px 0 44px !important;
    overflow: hidden !important;
  }

  /* Hide the decorative fern completely on mobile */
  .hero-fern,
  .hero-fern img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* Make the hero artwork a background layer only */
  .hero-graphic,
  .hero-banner,
  .hero-banner-art,
  .hero-art {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  .hero-graphic img,
  .hero-banner img,
  .hero-banner-art img,
  .hero-art img {
    position: absolute !important;
    top: 0 !important;
    right: -46vw !important;
    left: auto !important;
    bottom: auto !important;
    width: 135vw !important;
    height: 260px !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: top right !important;
    opacity: 0.18 !important;
    transform: none !important;
  }

  /* Keep text/content above decorative layers */
  .hero-inner,
  .hero-copy,
  .hero-trust,
  .eyebrow,
  .hero-title,
  .hero h1,
  .hero-text,
  .hero-actions {
    position: relative !important;
    z-index: 3 !important;
  }

  .hero-copy {
    max-width: 100% !important;
  }

  .hero-title,
  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.25rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.04em !important;
    max-width: 100% !important;
  }

  .hero-title span,
  .hero h1 span {
    white-space: normal !important;
  }

  .hero-text {
    max-width: 100% !important;
    font-size: 1rem !important;
  }

  .hero-actions {
    margin-top: 20px !important;
  }
}

@media (max-width: 430px) {
  .hero-graphic img,
  .hero-banner img,
  .hero-banner-art img,
  .hero-art img {
    right: -58vw !important;
    width: 150vw !important;
    height: 230px !important;
    opacity: 0.14 !important;
  }
}

@media (max-width: 1450px) {
  .hero-fern {
    display: none !important;
  }
}

@media (min-width: 1451px) {
  .hero-fern {
    display: block;
  }
}
