:root {
  --bg: #070706;
  --panel: rgba(12, 14, 14, 0.92);
  --panel-soft: rgba(17, 18, 18, 0.84);
  --line: rgba(211, 160, 54, 0.34);
  --line-strong: rgba(237, 183, 73, 0.72);
  --gold: #f0b93d;
  --gold-deep: #b9821f;
  --gold-light: #ffd779;
  --text: #f7f1e8;
  --muted: #c6bba9;
  --dark-text: #1b1205;
  --shadow: 0 20px 65px rgba(0, 0, 0, 0.55);
  --radius-lg: 16px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 10%, rgba(194, 130, 34, 0.16), transparent 34rem),
    linear-gradient(180deg, #090909 0%, #050505 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.page-shell {
  width: min(1310px, calc(100% - 8vw));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #100b04;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7.2vw;
  background: linear-gradient(180deg, #f7efdF 0%, #ead6ad 100%);
  border-bottom: 1px solid rgba(155, 104, 20, 0.38);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  position: relative;
  z-index: 10;
}

.brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(60, 34, 3, 0.18));
}

.donate-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 45px;
  padding: 0.75rem 1.35rem;
  border-radius: 9px;
  background: linear-gradient(180deg, #1b1205 0%, #2b1b07 100%);
  color: #f7e6bd;
  border: 1px solid rgba(155, 104, 20, .52);
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 22px rgba(0,0,0,.20);
  transition: transform .18s ease, filter .18s ease;
}
.donate-pill:hover { transform: translateY(-1px); filter: brightness(1.05); }

.hero {
  position: relative;
  min-height: clamp(700px, 78vh, 860px);
  overflow: hidden;
  border-bottom: 1px solid rgba(207, 150, 43, 0.20);
}

.hero-bg {
  position: absolute;
  inset: 0;
  transform: none;
  overflow: hidden;
  background: #050505;
}

/*
  Layer 1: the same Court photo fills the whole hero behind the headline.
  Layer 2: the full uncropped artwork stays visible on the right.
*/
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/court-of-life-hero.jpg");
  background-repeat: no-repeat;
}

.hero-bg::before {
  inset: -18px;
  background-size: cover;
  background-position: center center;
  opacity: .42;
  filter: blur(2px);
  transform: scale(1.04);
}

.hero-bg::after {
  background-size: auto 96%;
  background-position: calc(100% - 3vw) center;
  opacity: .96;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.74) 31%, rgba(0,0,0,.42) 53%, rgba(0,0,0,.14) 78%, rgba(0,0,0,.08) 100%),
    radial-gradient(circle at 78% 31%, rgba(0,0,0,0) 0, rgba(0,0,0,0.02) 24rem, rgba(0,0,0,0.34) 64rem),
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.04) 53%, rgba(5,5,5,.95) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(48px, 6vw, 82px);
  padding-bottom: 110px;
}

.eyebrow {
  margin: 0 0 1.2rem;
  max-width: 520px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.78rem, 1vw, .98rem);
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(4rem, 7.2vw, 6.45rem);
  line-height: .9;
  color: #fff7e9;
  text-wrap: balance;
}
h1 span { color: var(--gold); }

.hero-copy {
  margin: 1.8rem 0 0;
  max-width: 520px;
  color: #f0e6d8;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 2.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  min-width: 205px;
  min-height: 82px;
  padding: 1rem 1.45rem;
  border-radius: 9px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.15;
}
.button small {
  display: block;
  margin-top: .25rem;
  font-size: .94rem;
}
.button-icon { font-size: 1.75rem; line-height: 1; }
.button-primary {
  background: linear-gradient(180deg, #ffd66c 0%, #e4a030 100%);
  color: #160f06;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44), 0 18px 30px rgba(0,0,0,.22);
}
.button-secondary {
  background: rgba(8, 10, 10, .54);
  color: #f8f0e2;
  border: 1px solid rgba(233, 179, 73, .62);
}
.button:hover { transform: translateY(-2px); }
.button-secondary:hover { background: rgba(233,179,73,.08); border-color: rgba(255,215,121,.84); }

.quick-links {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.45rem;
  margin-top: -42px;
}

.feature-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.25rem 1.6rem 1.25rem 1.35rem;
  border: 1px solid rgba(217, 161, 49, .33);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(18,20,20,.95), rgba(12,13,13,.95));
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 205, 95, .75);
  background: linear-gradient(180deg, rgba(24,24,22,.98), rgba(13,14,14,.98));
}
.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--gold);
  background: radial-gradient(circle at 35% 25%, rgba(246,198,86,.26), rgba(246,198,86,.08) 56%, rgba(0,0,0,.2));
  border: 1px solid rgba(236, 181, 70, .35);
  font-size: 1.9rem;
}
.card-text strong {
  display: block;
  margin-bottom: .18rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.82rem);
  line-height: 1.1;
}
.card-text small {
  color: var(--muted);
  font-size: .96rem;
}
.card-arrow {
  color: var(--gold);
  font-size: 2.35rem;
  line-height: 1;
}

.contact-panel {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 2.2rem;
  margin-top: 1.2rem;
  padding: 1.2rem 1.65rem;
  border: 1px solid rgba(217, 161, 49, .37);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(15,17,17,.90), rgba(10,11,11,.96));
  box-shadow: var(--shadow);
}

.contact-intro h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2.05rem, 3.2vw, 3rem);
  line-height: 1.06;
}
.gold-rule {
  width: 44px;
  height: 2px;
  display: block;
  margin: 1.05rem 0 1.05rem;
  background: var(--gold);
}
.contact-intro p {
  max-width: 370px;
  margin: 0;
  color: #ddd3c2;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  grid-template-areas:
    "name email send"
    "message message send";
  gap: .85rem 1rem;
  align-items: start;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--text);
  background: rgba(23,24,23,.86);
  border: 1px solid rgba(206, 156, 61, .25);
  border-radius: 5px;
  outline: none;
  padding: .88rem 1rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(240, 185, 61, .85);
  box-shadow: 0 0 0 3px rgba(240, 185, 61, .10);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aaa296; }
#name { grid-area: name; }
#email { grid-area: email; }
#message { grid-area: message; min-height: 78px; resize: vertical; }
.send-block { grid-area: send; min-width: 210px; }
.button-send {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffd66b 0%, #e4a133 100%);
  color: #150e05;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44), 0 14px 28px rgba(0,0,0,.20);
  transition: transform .18s ease, filter .18s ease;
}
.button-send:hover { transform: translateY(-1px); filter: brightness(1.06); }
.response-note {
  margin: .85rem 0 0;
  color: #c9bead;
  font-size: .92rem;
}

.site-footer {
  margin-top: .8rem;
  border-top: 1px solid rgba(217, 161, 49, .20);
  background: rgba(11,12,13,.98);
}
.footer-inner {
  min-height: 145px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: 1.05rem 1.2rem;
}
.footer-logo {
  padding-right: 2rem;
  border-right: 1px solid rgba(217,161,49,.38);
}
.footer-logo img {
  width: 138px;
  height: 108px;
  object-fit: contain;
}
.footer-contact {
  display: grid;
  gap: .36rem;
  font-style: normal;
  color: #ede3d2;
}
.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.footer-contact a:hover { color: var(--gold-light); }
.footer-contact span span,
.footer-contact a span { color: var(--gold); }
.copyright {
  margin: 0;
  color: rgba(238,226,207,.44);
  white-space: nowrap;
  align-self: end;
  padding-bottom: .75rem;
}

.sr-only,
.hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

body.sent .contact-panel,
body.error .contact-panel { border-color: rgba(255, 215, 121, .86); }
.status-message {
  grid-column: 1 / -1;
  margin: .1rem 0 0;
  color: var(--gold-light);
  font-weight: 650;
}
body.error .status-message { color: #ffbdbd; }

@media (max-width: 980px) {
  .site-header { height: 90px; padding-inline: 5vw; }
  .brand img { width: 82px; height: 82px; }
  .hero { min-height: 720px; }
  .hero-bg::before {
    opacity: .48;
    background-size: cover;
    background-position: center center;
  }
  .hero-bg::after {
    background-size: auto 92%;
    background-position: right center;
  }
  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.68) 45%, rgba(0,0,0,.26) 100%),
      linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.70) 100%);
  }
  .quick-links { grid-template-columns: 1fr; margin-top: -18px; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-form {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "name email"
      "message message"
      "send send";
  }
  .send-block { min-width: 0; display: grid; grid-template-columns: minmax(190px, 260px) 1fr; gap: 1rem; align-items: center; }
  .response-note { margin: 0; }
  .footer-inner { grid-template-columns: auto 1fr; }
  .copyright { grid-column: 1 / -1; justify-self: center; padding-bottom: 0; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 32px, 560px); }
  .site-header { height: 80px; }
  .brand img { width: 72px; height: 72px; }
  .donate-pill { min-height: 40px; padding: .65rem .95rem; }
  .hero { min-height: 760px; }
  .hero-bg::before {
    opacity: .32;
    background-size: cover;
    background-position: center center;
  }
  .hero-bg::after {
    background-size: 96% auto;
    background-position: center bottom 1.5rem;
  }
  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.74) 45%, rgba(0,0,0,.55) 100%);
  }
  .hero-content { padding-top: 42px; padding-bottom: 300px; }
  h1 { font-size: clamp(3.1rem, 16vw, 4.15rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; max-width: 330px; }
  .button { width: 100%; min-height: 74px; }
  .feature-card {
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.1rem;
  }
  .card-arrow { grid-column: 2; justify-self: end; margin-top: -.5rem; }
  .card-icon { width: 52px; height: 52px; }
  .contact-panel { padding: 1.1rem; }
  .contact-form {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "email" "message" "send";
  }
  .send-block { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .footer-logo { border-right: 0; padding-right: 0; }
  .footer-logo img { width: 118px; height: 92px; }
  .copyright { justify-self: start; white-space: normal; }
}
