/* The Wright Way Foundation — site styles (tokens from the design system) */
:root {
  --Blue1: #000095;
  --Green: #00933a;
  --Blue2: #00233f;
  --gold: #ecbe6c;
  --Ivory: #fcf7dc;
  --White: #fbf4ec;
  --lightblue: #40bce0;
  --blue3: #6292c0;
  --Blue4: #153f87;
  --TaglineBlue: #003d8b;

  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 40px; --space-6: 64px; --space-7: 96px;
  --radius-sm: 4px; --radius-md: 10px; --radius-pill: 999px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--White); color: var(--Blue2);
  font-family: var(--font-sans); font-size: 16px; line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--Blue1); }
a:hover { color: var(--Blue4); }
:focus-visible { outline: 3px solid var(--Blue1); outline-offset: 2px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--space-4); }
@media (max-width: 600px) { .wrap { padding: 0 var(--space-3); } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-3); top: var(--space-3); z-index: 100; background: var(--White); padding: var(--space-2) var(--space-3); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; color: inherit; }
.h1 { font-size: 52px; line-height: 56px; font-weight: 800; letter-spacing: -0.01em; }
.h2 { font-size: 34px; line-height: 42px; font-weight: 800; }
.h3 { font-size: 22px; line-height: 30px; font-weight: 700; }
.display { font-family: var(--font-serif); font-size: 64px; line-height: 68px; font-weight: 700; }
.event-title { font-family: var(--font-serif); font-size: 40px; line-height: 48px; font-weight: 700; }
.quote { font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 34px; font-weight: 400; }
.eyebrow { display: block; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--TaglineBlue); margin-bottom: var(--space-2); }
.dark .eyebrow { color: var(--gold); }
.lead { font-size: 18px; line-height: 30px; }
.caption { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--Blue4); }
p { margin: 0 0 var(--space-3); }
@media (max-width: 760px) {
  .h1 { font-size: 36px; line-height: 42px; }
  .h2 { font-size: 28px; line-height: 34px; }
  .display { font-size: 40px; line-height: 46px; }
  .event-title { font-size: 30px; line-height: 36px; }
  .quote { font-size: 20px; line-height: 30px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: 0.02em;
  padding: 14px 26px; border-radius: var(--radius-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--Blue1); color: var(--White); }
.btn-primary:hover { background: var(--Blue4); color: var(--White); }
.btn-donate { background: var(--gold); color: var(--Blue2); }
.btn-donate:hover { background: #f3d08e; color: var(--Blue2); }
.btn-outline { background: transparent; color: var(--Blue1); border-color: var(--Blue4); }
.btn-outline:hover { background: var(--Blue1); color: var(--White); border-color: var(--Blue1); }
.dark .btn-outline { color: var(--White); border-color: var(--gold); }
.dark .btn-outline:hover { background: var(--gold); color: var(--Blue2); }
.btn-gdt { background: var(--lightblue); color: var(--Blue2); }
.btn-gdt:hover { background: #6fd0ec; color: var(--Blue2); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- header ---------- */
.site-header { background: var(--White); border-bottom: 1px solid rgba(0,35,63,.08); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 76px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--Blue1); }
.brand img { width: 52px; height: 52px; }
.brand span { font-weight: 800; font-size: 16px; line-height: 18px; }
.brand small { display: block; font-weight: 700; font-size: 10px; letter-spacing: .14em; color: var(--TaglineBlue); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--Blue2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--Blue1); box-shadow: inset 0 -3px 0 var(--Green); }
.nav-links .btn { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--Blue4); border-radius: var(--radius-sm); color: var(--Blue1); font: 700 14px var(--font-sans); padding: 8px 12px; cursor: pointer; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--White); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--space-3) var(--space-4); border-bottom: 1px solid rgba(0,35,63,.1); }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: var(--space-2); width: 100%; }
}

/* ---------- sections ---------- */
section { padding: var(--space-6) 0; }
.section-ivory { background: var(--Ivory); }
.dark { background: var(--Blue2); color: var(--White); }
.royal { background: var(--Blue1); color: var(--White); }
.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.rule { width: 64px; height: 4px; background: var(--Green); border: 0; margin: var(--space-3) 0 var(--space-4); }
.center .rule { margin-left: auto; margin-right: auto; }
.dark .rule { background: var(--gold); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-2 > *, .grid-3 > * { min-width: 0; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding: var(--space-7) 0 var(--space-6); }
.hero .grid-2 { gap: var(--space-6); }
.hero p.lead { max-width: 560px; margin-top: var(--space-4); }
.hero .btn-row { margin-top: var(--space-5); }
.hero-media { position: relative; }
.hero-media .seal { width: 100%; max-width: 440px; margin: 0 auto; }
@media (max-width: 860px) { .hero-media .seal { max-width: 240px; } }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.photo-stack img { border-radius: var(--radius-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.photo-stack img:first-child { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 860px) { .hero { padding: var(--space-6) 0 var(--space-5); } }

/* ---------- cards ---------- */
.card { background: var(--White); border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(0,35,63,.1); display: flex; flex-direction: column; }
.section-ivory .card { background: #fffdf3; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card-body p { margin: 0; }
.card-body .more { margin-top: auto; padding-top: var(--space-3); font-weight: 700; text-decoration: none; }
.card-body .more::after { content: " \2192"; }

.stat-band { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.stat-band div { flex: 1 1 200px; border-top: 4px solid var(--Green); padding-top: var(--space-3); }
.dark .stat-band div { border-color: var(--gold); }
.stat-band strong { display: block; font-size: 20px; line-height: 28px; font-weight: 800; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-md); }
.gallery figcaption { margin-top: var(--space-2); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- page header (inner pages) ---------- */
.page-hero { padding: var(--space-7) 0 var(--space-6); }
.page-hero p.lead { max-width: 680px; margin-top: var(--space-4); }

/* ---------- story / timeline ---------- */
.prose { max-width: 720px; }
.prose p { font-size: 17px; line-height: 29px; }
.prose h2 { margin: var(--space-5) 0 var(--space-3); }
blockquote.pull { margin: var(--space-5) 0; padding: 0 0 0 var(--space-4); border: 0; position: relative; }
blockquote.pull::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: var(--Green); border-radius: 2px; }
blockquote.pull cite { display: block; margin-top: var(--space-2); font-style: normal; font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--TaglineBlue); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid rgba(0,35,63,.12); }
.timeline .yr { font-weight: 800; font-size: 20px; color: var(--Green); }
.dark .timeline li { border-color: rgba(251,244,236,.18); }
.dark .timeline .yr { color: var(--gold); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: var(--space-1); } }
.note-988 { font-size: 14px; line-height: 22px; color: var(--Blue4); background: var(--Ivory); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); max-width: 720px; }

/* ---------- Good Deed Tuesday sub-brand ---------- */
.gdt { background-color: #061633; background-image: radial-gradient(rgba(64,188,224,.55) 1px, transparent 1.5px), radial-gradient(rgba(251,244,236,.35) 1px, transparent 1.5px); background-size: 48px 48px, 72px 72px; background-position: 0 0, 24px 36px; color: var(--White); position: relative; }
.gdt > * { position: relative; }
.gdt .eyebrow { color: var(--lightblue); }
.gdt-title { color: var(--lightblue); font-weight: 900; font-size: 64px; line-height: 64px; letter-spacing: -0.01em; text-transform: uppercase; }
@media (max-width: 760px) { .gdt-title { font-size: 42px; line-height: 44px; } }
.bubble { display: inline-block; background: #f6d64a; color: var(--Blue2); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .02em; padding: var(--space-3) var(--space-4); border: 3px solid var(--Blue2); border-radius: 6px; box-shadow: 4px 4px 0 var(--Blue2); max-width: 520px; }
.book { display: block; max-width: 340px; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: 0 20px 40px rgba(0,35,63,.35); transition: transform .2s; }
a:hover .book { transform: translateY(-4px) rotate(-1deg); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--space-3); align-items: start; background: #fffdf3; border-radius: var(--radius-md); padding: var(--space-4); border: 1px solid rgba(0,35,63,.1); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lightblue); color: var(--Blue2); font-weight: 800; grid-row: span 2; }
.video-frame { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--Blue2); max-width: 420px; margin: 0 auto; aspect-ratio: 9/16; box-shadow: 0 20px 40px rgba(0,35,63,.25); }
.video-frame video, .video-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- gala ---------- */
.gala-hero { background: var(--Blue2); color: var(--White); padding: var(--space-7) 0; }
.gala-hero .script { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 32px; line-height: 40px; display: block; margin-bottom: var(--space-2); }
.gala-hero .display { color: var(--gold); }
.gala-hero .invite { border-radius: var(--radius-md); box-shadow: 0 0 0 1px rgba(236,190,108,.5), 0 30px 60px rgba(0,0,0,.35); }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: var(--space-5) 0; }
.details div { border-top: 1px solid var(--gold); padding-top: var(--space-3); }
.details dt { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.details dd { margin: var(--space-1) 0 0; font-weight: 600; }
@media (max-width: 600px) { .details { grid-template-columns: 1fr; } }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.tier { border: 1px solid rgba(0,35,63,.15); border-radius: var(--radius-md); padding: var(--space-4) var(--space-3); background: #fffdf3; text-align: center; display: flex; flex-direction: column; gap: var(--space-1); }
.tier .price { font-family: var(--font-serif); font-weight: 700; font-size: 30px; line-height: 38px; color: var(--Blue1); }
.tier .name { font-weight: 700; }
.tier .inc { font-size: 14px; color: var(--Blue4); }
.tier.feature { background: var(--Blue2); color: var(--White); border-color: var(--Blue2); }
.tier.feature .price { color: var(--gold); }
.tier.feature .inc { color: var(--Ivory); }
@media (max-width: 980px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- form ---------- */
.form-card { background: #fffdf9; border: 1px solid rgba(0,35,63,.12); border-radius: var(--radius-md); padding: var(--space-5); max-width: 860px; margin: 0 auto; }
@media (max-width: 600px) { .form-card { padding: var(--space-4) var(--space-3); } }
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); }
legend { font-weight: 800; font-size: 20px; line-height: 28px; color: var(--Blue1); padding: 0; margin-bottom: var(--space-3); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
label .opt { font-weight: 500; color: var(--Blue4); font-size: 13px; }
.req { color: #b3261e; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: 16px/24px var(--font-sans); color: var(--Blue2);
  background: #fff; border: 1.5px solid var(--blue3); border-radius: var(--radius-sm); padding: 11px 12px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--Blue1); outline-offset: 1px; border-color: var(--Blue1); }
.hint { font-size: 13px; line-height: 20px; color: var(--Blue4); margin-top: 4px; }
.check { display: flex; gap: var(--space-2); align-items: flex-start; font-weight: 500; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--Blue1); }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.radio-row input { accent-color: var(--Blue1); width: 18px; height: 18px; }
.hidden-field { position: absolute; left: -9999px; }
.guardian { display: none; }
.guardian.show { display: block; }
.form-msg { margin-top: var(--space-3); font-weight: 600; }
.error-msg { color: #b3261e; font-size: 14px; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: var(--space-4); }

/* ---------- footer ---------- */
.site-footer { background: var(--Blue2); color: var(--White); padding: var(--space-6) 0 var(--space-4); }
.site-footer a { color: var(--White); }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-5); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.foot-grid h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-3); }
.foot-brand { display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-3); }
.foot-brand img { width: 64px; height: 64px; background: var(--White); border-radius: 50%; padding: 4px; }
.foot-brand strong { font-size: 18px; }
.foot-base { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid rgba(251,244,236,.18); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ---------- sponsors ---------- */
.sponsor-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.sponsor-grid li { background: #fff; border: 1px solid rgba(0,35,63,.1); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; padding: var(--space-4); height: 170px; }
.sponsor-grid img { max-height: 120px; max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 860px) { .sponsor-grid { grid-template-columns: repeat(2, 1fr); } .sponsor-grid li { height: 140px; padding: var(--space-3); } .sponsor-grid img { max-height: 96px; } }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-3 img { aspect-ratio: 4/5; object-position: center 30%; }
@media (max-width: 860px) { .gallery-3 { grid-template-columns: repeat(2, 1fr); } }
