@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --fire: #8f2b08;
  --fire-dark: #3b1005;
  --gold: #ffb300;
  --gold-light: #ffe94a;
  --cream: #fff8e9;
  --paper: #fffdf8;
  --ink: #1d1009;
  --muted: #765f50;
  --line: rgba(72, 32, 13, .14);
  --shadow: 0 24px 70px rgba(51, 20, 4, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(31, 10, 3, .96);
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand strong { display: block; font-size: 11px; letter-spacing: .08em; }
.brand small { display: block; color: #ffd994; font-size: 9px; margin-top: 3px; }
.header-link { font-weight: 800; text-decoration: none; font-size: 13px; border-bottom: 1px solid #ffd45c; padding-bottom: 3px; }

.hero {
  min-height: 650px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(27,7,1,.83), rgba(93,22,4,.38), rgba(22,5,1,.8)),
    url("assets/retreat-flyer.jpg") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 192, 30, .18), transparent 45%);
  pointer-events: none;
}
.hero-content { width: min(900px, 92%); text-align: center; position: relative; z-index: 2; padding: 70px 0; }
.eyebrow, .section-label {
  font-weight: 800; letter-spacing: .16em; font-size: 11px;
  margin: 0 0 12px;
}
.hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(70px, 15vw, 170px);
  line-height: .78; margin: 0;
  letter-spacing: -.035em; font-weight: 900;
  text-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.theme-pill {
  display: inline-block; background: #e51e16; color: white; border-radius: 6px;
  padding: 6px 16px; font-weight: 900; font-size: 13px; margin-top: 22px;
}
.hero h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(45px, 9vw, 92px); line-height: .82; margin: 8px 0;
  font-weight: 800;
}
.verse { font-weight: 700; margin: 8px 0 18px; color: #ffe68a; }
.event-name { font-size: 13px; font-weight: 800; letter-spacing: .16em; }

.primary-btn, .secondary-btn, .whatsapp-btn {
  border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; justify-content: center; align-items: center; gap: 14px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  font-weight: 900; letter-spacing: .04em; font-size: 12px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.primary-btn {
  background: linear-gradient(135deg, #ffdc20, #ffad00);
  color: #2b1102; box-shadow: 0 12px 30px rgba(255, 173, 0, .24);
}
.primary-btn:hover, .secondary-btn:hover, .whatsapp-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.hero .primary-btn { margin-top: 16px; }

.event-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #ffe400; color: #241100;
  padding: 18px clamp(18px, 6vw, 80px); gap: 12px;
}
.event-strip > div { display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center; font-size: 12px; }
.icon { font-size: 20px; }

.content-grid {
  max-width: 1160px; margin: 0 auto; padding: 72px 20px;
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 55px; align-items: start;
}
.about { padding-top: 40px; }
.about .section-label, .card-heading .section-label { color: var(--fire); }
.about h2, .registration-card h2, .admin-top h1, .admin-login h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(42px, 6vw, 66px); line-height: .9; margin: 0 0 18px;
  font-weight: 800;
}
.about > p:not(.section-label) { color: var(--muted); line-height: 1.8; max-width: 540px; }
.scripture-card {
  margin-top: 32px; padding: 24px; border-left: 5px solid var(--gold);
  background: white; box-shadow: 0 10px 35px rgba(50,20,5,.08);
}
.scripture-card span { font-family: Georgia, serif; font-size: 54px; color: var(--gold); line-height: .5; }
.scripture-card p { line-height: 1.7; font-family: Georgia, serif; font-size: 17px; }
.scripture-card strong { font-size: 12px; color: var(--fire); }

.registration-card {
  background: var(--paper); padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px;
}
.card-heading > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 28px; }
label { display: block; color: #402417; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
label > span { color: #d22613; }
label input, label select, label textarea, .search-input, #adminToken {
  width: 100%; margin-top: 7px; border: 1px solid #dfd2c6; background: white;
  border-radius: 7px; padding: 13px 12px; outline: none; color: var(--ink);
}
label textarea { resize: vertical; }
label input:focus, label select:focus, label textarea:focus, .search-input:focus, #adminToken:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,179,0,.13);
}
.full { grid-column: 1 / -1; }
.consent { display: flex; gap: 9px; margin: 22px 0; align-items: flex-start; font-weight: 500; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--fire); }
.submit-btn { width: 100%; }
.privacy-note { text-align: center; font-size: 10px; color: #8a7668; margin: 12px 0 0; }
.form-message { margin: 15px 0; padding: 12px 14px; border-radius: 7px; font-size: 12px; line-height: 1.5; }
.form-message.error { background: #fff0ed; color: #9e2416; border: 1px solid #f0b7ae; }
.form-message.success { background: #eef9ed; color: #276d27; border: 1px solid #b6dbb1; }

.footer { padding: 30px 20px; text-align: center; background: #241006; color: #ffe6b4; font-size: 11px; line-height: 1.7; }

.success-page, .admin-page { min-height: 100vh; background: radial-gradient(circle at 50% 0%, #fff2bf, var(--cream) 38%); }
.success-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 35px 18px; }
.success-card { width: min(620px, 100%); background: white; border-radius: 16px; padding: clamp(25px, 6vw, 52px); box-shadow: var(--shadow); text-align: center; }
.success-icon { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #eaf7e7; color: #2c7a2c; font-size: 34px; font-weight: 900; }
.success-card h1 { font-family: "Barlow Condensed", sans-serif; font-size: 58px; margin: 0 0 10px; line-height: .9; }
.success-card > p:not(.section-label) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ticket { text-align: left; margin: 28px 0; border: 1px dashed #d5b978; background: #fffaf0; padding: 18px; border-radius: 10px; display: grid; gap: 14px; }
.ticket div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #eadfca; padding-bottom: 10px; }
.ticket div:last-child { border-bottom: 0; padding-bottom: 0; }
.ticket span { font-size: 9px; letter-spacing: .1em; font-weight: 800; color: #8b705e; }
.ticket strong { text-align: right; font-size: 12px; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.secondary-btn { background: white; color: var(--fire); border: 1px solid #d9c5b6; }
.whatsapp-btn { background: #1f9d45; color: white; }
.text-link { width: 100%; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--fire); }

.admin-wrap { max-width: 1250px; margin: 0 auto; padding: 50px 18px 80px; }
.admin-login { width: min(500px, 100%); margin: 70px auto; background: white; padding: 38px; border-radius: 15px; box-shadow: var(--shadow); text-align: center; }
.admin-icon { font-size: 34px; margin-bottom: 15px; }
.admin-login h1 { font-size: 52px; }
.admin-login > p:not(.section-label) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.admin-login form { display: grid; gap: 12px; margin-top: 24px; }
.admin-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-top h1 { font-size: 65px; }
.admin-top p { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 25px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: 0 8px 24px rgba(50,20,5,.06); }
.stat-card span { display: block; font-size: 10px; font-weight: 800; color: var(--muted); }
.stat-card strong { display: block; font-family: "Barlow Condensed"; font-size: 38px; margin-top: 4px; color: var(--fire); }
.table-card { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(50,20,5,.06); }
.table-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.table-header h2 { margin: 0; font-size: 18px; }
.table-header p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.search-input { margin: 0; width: min(340px, 100%); }
.table-scroll { overflow: auto; max-height: 65vh; }
table { border-collapse: collapse; width: 100%; min-width: 1050px; font-size: 11px; }
th, td { padding: 11px 12px; border-bottom: 1px solid #eee6df; text-align: left; white-space: nowrap; }
th { background: #fff8eb; position: sticky; top: 0; z-index: 2; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: #715648; }
.empty-cell { text-align: center; color: var(--muted); padding: 35px; }

@media (max-width: 850px) {
  .content-grid { grid-template-columns: 1fr; gap: 30px; }
  .about { padding-top: 0; }
  .event-strip { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-top { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .site-header { min-height: 64px; }
  .brand strong { font-size: 9px; }
  .brand small { font-size: 7px; }
  .header-link { font-size: 11px; }
  .hero { min-height: 620px; }
  .hero h1 { font-size: 73px; }
  .hero h2 { font-size: 47px; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .registration-card { border-radius: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .table-header { align-items: stretch; flex-direction: column; }
  .search-input { width: 100%; }
  .admin-login { padding: 25px 18px; }
  .admin-top h1 { font-size: 53px; }
  .ticket div { flex-direction: column; gap: 4px; }
  .ticket strong { text-align: left; }
}
@media print {
  .site-header, .success-actions, .footer { display: none !important; }
  .success-wrap { min-height: auto; padding: 0; }
  .success-card { box-shadow: none; width: 100%; }
}
