/* FaithForge — single-file stylesheet
   Dark-mode first, mobile-first, utility-lean, accessible. */

/* ===== CSS Variables ===== */
:root {
  --bg: #0e0f12;
  --bg-elev: #333333;
  --panel: #171a20;
  --text: #e8eaf0;
  --muted: #a8afc0;
  --brand: #7dd3fc;      /* accent (sky-ish) */
  --brand-2: #a78bfa;    /* secondary accent */
  --danger: #fb7185;

  --border: #242833;
  --shadow: 0 6px 20px rgba(0,0,0,.35);

  --radius: 14px;
  --container: 1120px;
  --space: 20px;
}

/* Optional light mode (system) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --bg-elev: #ffffff;
    --panel: #ffffff;
    --text: #0b1020;
    --muted: #58607a;
    --border: #e6e8ef;
    --shadow: 0 10px 24px rgba(0,0,0,.08);
  }
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124,58,237,.12), transparent 60%),
              radial-gradient(1200px 600px at 110% 10%, rgba(14,165,233,.12), transparent 60%),
              var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.4rem); }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1rem; border-radius: 999px;
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  text-decoration: none; font-weight: 600; box-shadow: var(--shadow);
}
.btn:hover { background: var(--bg-elev); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0b1020; border: none; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border: 1px solid var(--border); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* ===== Accessibility ===== */
.skip {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus { position: static; width: auto; height: auto; padding: .5rem; background: var(--brand); color: #0b1020; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg), transparent 20%);
  border-bottom: 1px solid var(--border);
}
.header-logo {
	height:64px;
	width:64px;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(145deg, var(--brand), var(--brand-2)); color: #0b1020; font-weight: 900;
}
.brand-text { letter-spacing: .2px; }
.site-nav { display: flex; gap: 16px; align-items: center; }
.site-nav a { color: var(--text); padding: 8px 10px; border-radius: 10px; }
.site-nav a:hover { background: var(--bg-elev); text-decoration: none; }

/* Mobile nav (checkbox hack) */
.nav-toggle { display: none; }
.nav-burger { display: none; width: 40px; height: 40px; position: relative; cursor: pointer; }
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); content: "";
  top: 19px;
}
.nav-burger span::before { top: -8px; }
.nav-burger span::after  { top: 8px; }

@media (max-width: 860px) {
  .site-nav { position: absolute; inset: 64px 0 auto 0; padding: 12px 16px; display: grid; gap: 8px;
    background: var(--bg); border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: .22s ease; }
  .nav-burger { display: block; }
  .nav .btn { width: 100%; justify-content: center; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); }
}

/* ===== Hero ===== */
.hero { padding: 96px 0 72px; text-align: center; }
.hero-title { font-weight: 900; letter-spacing: .2px; }
.hero-subtitle { color: var(--muted); max-width: 720px; margin: 10px auto 24px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Values / Cards ===== */
.values { padding: 40px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service ul, .list { margin: .4rem 0 0 1rem; padding: 0; }
.service li, .list li { margin: .2rem 0; }

/* Responsive grids */
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ===== About ===== */
.about .about-card { align-self: start; }

/* ===== Pricing ===== */
.price h3 { margin-bottom: .25rem; }
.price img { width:128px; height:128px; float:right; }
.price .muted { margin-bottom: .6rem; display: block; }

/* ===== Forms ===== */
.form label { display: grid; gap: 6px; margin-bottom: 12px; }
input, textarea {
  width: 100%; padding: .8rem .9rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand), white 20%); }
.form-note { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

/* ===== Contact ===== */
.contact { padding-bottom: 96px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg));
  padding: 28px 0;
}
.footer-grid { display: grid; gap: 16px; grid-template-columns: 2fr 1fr 1fr; align-items: center; }
.brand-footer { font-weight: 800; display: inline-flex; gap: .6rem; align-items: center; }
.footer-nav { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
