/* ============================================================
   Church Technology — warm dark theme (candlelight gold / rose / emerald)
   ============================================================ */

:root {
  --bg: #120b09;
  --bg-alt: #180f0c;
  --panel: rgba(255, 244, 230, 0.04);
  --panel-border: rgba(255, 224, 189, 0.1);
  --gold: #ffb454;
  --rose: #ff5d73;
  --emerald: #2bd97e;
  --amber: #ffd166;
  --text: #f7efe4;
  --text-dim: #beb0a1;
  --text-faint: #8a7c6d;
  --radius: 20px;
  --max-width: 1180px;
  --header-h: 86px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 600px at 88% -8%, rgba(255, 180, 84, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 15%, rgba(43, 217, 126, 0.14), transparent 55%),
    radial-gradient(800px 620px at 45% 118%, rgba(255, 93, 115, 0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Sora', system-ui, sans-serif;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 1em;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Gradient text / accents ---------- */

.gradient-text {
  background: linear-gradient(90deg, var(--gold), var(--rose) 60%, var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: 999px;
  background: rgba(255, 180, 84, 0.08);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px var(--gold);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(90deg, var(--gold), var(--rose));
  color: #1a0e05;
  box-shadow: 0 0 24px -4px rgba(255, 180, 84, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px -2px rgba(255, 93, 115, 0.7);
}

.btn-ghost {
  background: rgba(255, 244, 230, 0.03);
  border-color: var(--panel-border);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(18, 11, 9, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 224, 189, 0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.header-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  margin-right: 10px;
  margin-top: 10px;
}

.footer-logo {
  width: 250px;
  height: 250px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 244, 230, 0.06);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 244, 230, 0.03);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 11, 9, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  gap: 6px;
  z-index: 99;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  padding: 16px 6px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 224, 189, 0.08);
}

.mobile-menu .btn { margin-top: 20px; }

/* ---------- Page shell ---------- */

main {
  padding-top: var(--header-h);
}

section {
  padding: 96px 0;
  position: relative;
}

section.tight { padding: 64px 0; }

/* ---------- Hero ---------- */

.hero {
  padding: 150px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 900px;
  margin: 0 auto 22px;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Section headers ---------- */

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 180, 84, 0.4);
  box-shadow: 0 18px 40px -20px rgba(255, 180, 84, 0.35);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.icon-cyan { background: rgba(255, 180, 84, 0.14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255,180,84,0.3); }
.icon-magenta { background: rgba(255, 93, 115, 0.14); color: var(--rose); box-shadow: inset 0 0 0 1px rgba(255,93,115,0.3); }
.icon-violet { background: rgba(43, 217, 126, 0.14); color: var(--emerald); box-shadow: inset 0 0 0 1px rgba(43,217,126,0.3); }
.icon-green { background: rgba(43, 217, 126, 0.14); color: var(--emerald); box-shadow: inset 0 0 0 1px rgba(43,217,126,0.3); }

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.card ul li {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}

.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* ---------- Service rows (per-service pricing) ---------- */

.service-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255, 224, 189, 0.08);
}

.service-row:last-child { border-bottom: none; }

.service-row.reverse .service-info { order: 2; }
.service-row.reverse .service-price-card { order: 1; }

.service-info .pill { margin-bottom: 14px; }
.service-info h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.check-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 7px 0;
  padding-left: 26px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

.service-price-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.service-price-card .pill { margin-bottom: 14px; }
.service-price-card .price-tag { justify-content: center; }
.service-price-card p { font-size: 0.85rem; margin-bottom: 22px; }

@media (max-width: 768px) {
  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
  }
  .service-row.reverse .service-info,
  .service-row.reverse .service-price-card {
    order: initial;
  }
}

/* ---------- Panel / CTA band ---------- */

.cta-band {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,180,84,0.14), rgba(255,93,115,0.12), rgba(43,217,126,0.1));
  border: 1px solid var(--panel-border);
  padding: 64px 40px;
  text-align: center;
}

.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

/* ---------- Pricing ---------- */

.price-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin: 12px 0;
}

.price-tag span {
  font-size: 1rem;
  color: var(--text-faint);
  font-weight: 400;
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill-cyan { background: rgba(255,180,84,0.16); color: var(--gold); }
.pill-magenta { background: rgba(255,93,115,0.16); color: var(--rose); }

.featured {
  border-color: var(--rose);
  box-shadow: 0 0 44px -14px rgba(255, 93, 115, 0.55);
}

/* ---------- Forms ---------- */

.field {
  margin-bottom: 18px;
  text-align: left;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 244, 230, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.16);
}

.form-success {
  padding: 20px;
  border-radius: 12px;
  background: rgba(43, 217, 126, 0.1);
  border: 1px solid rgba(43, 217, 126, 0.35);
  color: var(--emerald);
  font-weight: 600;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid rgba(255, 224, 189, 0.08);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  color: var(--text-dim);
  padding: 6px 0;
  font-size: 0.92rem;
}

.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 224, 189, 0.08);
  color: var(--text-faint);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 70px; }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Loading UI (restyled from default template) ---------- */

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--emerald); }
.invalid { outline: 1px solid var(--rose); }
.validation-message { color: var(--rose); }

#blazor-error-ui {
  background: #2a1a12;
  color: #fff;
  bottom: 0;
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  display: none;
  left: 0;
  padding: 0.8rem 1.2rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: #b32121;
  padding: 1rem;
  color: white;
  border-radius: 8px;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.loading-progress {
  position: absolute;
  display: block;
  width: 8rem;
  height: 8rem;
  inset: 20vh 0 auto 0;
  margin: 0 auto;
}

.loading-progress circle {
  fill: none;
  stroke: rgba(255, 224, 189, 0.1);
  stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: var(--gold);
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-dim);
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading Church Technology…");
}

code {
  color: var(--rose);
}
