:root {
  color-scheme: dark;
  --bg: #090d16;
  --bg-lift: rgba(18, 24, 37, 0.78);
  --bg-deep: rgba(8, 12, 20, 0.82);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f3ea;
  --muted: #b8becb;
  --soft: #7f8ca3;
  --blue: #5da8ff;
  --violet: #8c6dff;
  --rose: #f078b6;
  --amber: #f9b45f;
  --green: #57d8aa;
  --danger: #ffb86f;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

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

.hidden {
  display: none !important;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient-bg {
  position: fixed;
  inset: -18%;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(93, 168, 255, 0.32), transparent 28rem),
    radial-gradient(circle at 82% 6%, rgba(240, 120, 182, 0.18), transparent 30rem),
    radial-gradient(circle at 45% 82%, rgba(249, 180, 95, 0.18), transparent 24rem),
    #090d16;
  animation: ambient-shift 22s linear infinite alternate;
}

.ambient-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/graceville-hero.png");
  background-position: center;
  background-size: cover;
  opacity: 0.13;
  filter: saturate(1.08) contrast(1.1);
}

@keyframes ambient-shift {
  from {
    transform: scale(1) rotate(0deg);
  }

  to {
    transform: scale(1.05) rotate(5deg);
  }
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  width: min(1160px, calc(100% - 28px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  backdrop-filter: blur(18px);
  isolation: isolate;
}

.topbar-action {
  position: relative;
  z-index: 2;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}

.hero-section,
.core-panel {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
}

.hero-section {
  min-height: calc(100svh - 72px);
  padding: 20px 0 34px;
  display: grid;
  align-content: end;
  gap: 22px;
}

.hero-art {
  min-height: 45svh;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, transparent 40%, rgba(9, 13, 22, 0.82) 100%),
    url("/assets/graceville-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding-bottom: 4px;
}

.church-name,
.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 840px;
  margin-bottom: 16px;
  background: linear-gradient(118deg, #ffffff 0%, #b8ddff 36%, #ffd29a 72%, #ff9ccd 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(58px, 18vw, 128px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 24px;
  color: rgba(247, 243, 234, 0.82);
  font-size: clamp(17px, 4.8vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: grid;
  gap: 12px;
}

.primary-link,
.secondary-link,
.registration-form button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 820;
}

.primary-link,
.registration-form button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #e8edf5;
  color: #111827;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.primary-link:hover,
.registration-form button:hover {
  border-color: #fff;
  background: #fff;
}

.primary-link:active,
.registration-form button:active {
  transform: translateY(1px);
}

.primary-link:focus-visible,
.registration-form button:focus-visible {
  outline: 3px solid rgba(93, 168, 255, 0.5);
  outline-offset: 3px;
}

.secondary-link {
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
}

.core-panel {
  padding: 24px 0 72px;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2,
.card-title h2,
.form-head h2,
.map-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 9vw, 54px);
  line-height: 0.98;
  letter-spacing: 0;
}

.panel-heading p,
.form-head p,
.payment-card p,
.map-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.info-flow {
  display: grid;
  gap: 14px;
}

.timeline-card {
  order: 1;
}

.payment-card {
  order: 2;
}

.registration-card {
  order: 3;
}

.map-card {
  order: 4;
}

.timeline-card,
.registration-card,
.payment-card,
.map-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--bg-lift);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.timeline-card,
.payment-card,
.map-card {
  padding: 20px;
}

.card-title {
  margin-bottom: 14px;
}

.card-title .eyebrow {
  display: block;
  margin-bottom: 0;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 7px;
  width: 1px;
  background: linear-gradient(var(--danger), var(--green));
  opacity: 0.42;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-dot {
  width: 15px;
  height: 15px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(87, 216, 170, 0.11), 0 0 22px rgba(87, 216, 170, 0.5);
}

.timeline-item.warning .timeline-dot {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 184, 111, 0.12), 0 0 22px rgba(255, 184, 111, 0.45);
}

.timeline-item span {
  display: block;
  margin-bottom: 3px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item strong {
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.08;
}

.registration-card {
  padding: 20px;
}

.form-head h2 {
  margin-bottom: 18px;
}

.registration-form {
  display: grid;
  gap: 15px;
}

.deadline-strip {
  border: 1px solid rgba(249, 180, 95, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(249, 180, 95, 0.1);
  color: #ffd8a4;
  font-size: 14px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  outline: none;
  text-transform: none;
}

input::placeholder {
  color: rgba(184, 190, 203, 0.52);
}

input:focus {
  border-color: rgba(93, 168, 255, 0.76);
  box-shadow: 0 0 0 4px rgba(93, 168, 255, 0.13);
}

.check-line {
  min-height: 58px;
  border: 1px solid rgba(87, 216, 170, 0.18);
  border-radius: 15px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 11px;
  background: rgba(87, 216, 170, 0.08);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.check-line input {
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  accent-color: var(--green);
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.form-message {
  margin: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}

.form-message.success {
  background: rgba(87, 216, 170, 0.13);
  color: #a8f4d6;
}

.form-message.error,
.admin-message {
  background: rgba(255, 184, 111, 0.15);
  color: #ffd0a0;
}

.after-submit {
  border: 1px solid rgba(87, 216, 170, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(87, 216, 170, 0.1);
}

.after-submit span {
  display: block;
  margin-bottom: 4px;
  color: #a8f4d6;
  font-weight: 840;
}

.after-submit p {
  margin: 0;
  color: var(--muted);
}

.payment-card {
  display: grid;
  gap: 14px;
}

.payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-tags span {
  border: 1px solid rgba(249, 180, 95, 0.2);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(249, 180, 95, 0.09);
  color: #ffd8a4;
  font-size: 13px;
  font-weight: 820;
}

.amount {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(48px, 15vw, 76px);
  letter-spacing: 0;
  line-height: 0.95;
}

.copy-row {
  width: 100%;
  min-height: 68px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.copy-row small {
  display: block;
  margin-bottom: 3px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-row b {
  font-size: 18px;
}

.copy-row em {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(93, 168, 255, 0.16);
  color: #cbe5ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.map-card {
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.map-copy {
  min-width: 0;
}

.map-copy h2 {
  max-width: 13ch;
  font-size: clamp(27px, 6.2vw, 42px);
  line-height: 1.05;
}

.location-line {
  white-space: nowrap;
}

.map-copy p {
  margin-top: 18px;
}

.map-widget {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-deep);
}

.map-widget iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.84) contrast(1.04);
  pointer-events: none;
}

.map-widget.unlocked iframe {
  pointer-events: auto;
}

.map-unlock {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(9, 13, 22, 0.46);
  color: #fff;
  cursor: pointer;
  font-weight: 820;
  backdrop-filter: blur(3px);
}

.map-widget.unlocked .map-unlock {
  display: none;
}
