/* ============================================================
   GraceRest — gracerest.org marketing + legal site
   Premium dark navy / gold, matching the GraceRest app palette.
   Static, dependency-free, mobile-first.
   ============================================================ */

:root {
  --bg: #050B14;
  --bg-grad-1: #050B14;
  --bg-grad-2: #08111F;
  --bg-grad-3: #0B1A2E;

  --card: #0E1726;
  --card-2: #142033;

  --gold: #D6B25E;
  --gold-soft: #E8C988;
  --blue: #5DADEC;
  --teal: #4FD1C5;
  --lavender: #A78BFA;

  --text: #F8FAFC;
  --text-2: #94A3B8;
  --text-3: #64748B;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow-gold: 0 0 30px rgba(214, 178, 94, 0.25);

  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;

  --maxw: 760px;

  --font:
    -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display',
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Iowan Old Style', 'Apple Garamond',
    Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 20% -10%, rgba(93,173,236,0.10), transparent 60%),
    radial-gradient(120% 80% at 90% 10%, rgba(167,139,250,0.08), transparent 55%),
    radial-gradient(120% 80% at 50% 110%, rgba(79,209,197,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2) 40%, var(--bg-grad-3));
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout shell ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

main { flex: 1 0 auto; padding: 8px 0 56px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 10, 20, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(93,173,236,0.45), transparent 60%),
    linear-gradient(160deg, #142033, #050B14);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  box-shadow: inset 0 0 14px rgba(93,173,236,0.20);
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--text);
  font-weight: 500;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.nav a { color: var(--text-2); }
.nav a:hover { color: var(--gold-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold-soft); }

@media (max-width: 520px) {
  .nav { gap: 14px; font-size: 13px; }
  .brand-name { font-size: 20px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 44px 28px 40px;
  margin-top: 28px;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(93,173,236,0.18), transparent 55%),
    radial-gradient(120% 100% at 100% 100%, rgba(214,178,94,0.18), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 260px; height: 260px;
  background: radial-gradient(closest-side, rgba(93,173,236,0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 9vw, 60px);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 12px 0 6px;
}
.hero .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 4.5vw, 22px);
  color: var(--text);
  opacity: 0.9;
  margin: 0 auto 14px;
  max-width: 30ch;
}
.hero .lede {
  color: var(--text-2);
  font-size: 15px;
  max-width: 52ch;
  margin: 0 auto 8px;
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #1a1306;
  border: 0;
  box-shadow: var(--shadow-glow-gold);
}
.btn.primary:hover { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); }

/* ---------- Availability pill ---------- */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(214,178,94,0.45);
  color: var(--gold-soft);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.feature {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.feature p { margin: 0; font-size: 13px; color: var(--text-2); }
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
}

/* ---------- Content / legal pages ---------- */
.page-head {
  margin-top: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 7vw, 42px);
  margin: 8px 0 4px;
}
.page-head .sub { color: var(--text-2); font-size: 14px; margin: 0; }
.effective {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
}

.content {
  background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  margin-top: 24px;
  box-shadow: var(--shadow-soft);
}
.content h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--text);
}
.content h2:first-child { margin-top: 0; }
.content p { margin: 0 0 14px; color: var(--text-2); }
.content ul { margin: 0 0 16px; padding-left: 20px; color: var(--text-2); }
.content li { margin-bottom: 8px; }
.content a { font-weight: 600; }
.content strong { color: var(--text); }

.callout {
  display: flex;
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, rgba(214,178,94,0.12), rgba(93,173,236,0.10));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  margin-top: 24px;
}
.callout .label { font-size: 12px; color: var(--text-3); }
.callout .email {
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: rgba(4, 10, 20, 0.6);
  padding: 28px 0 36px;
  margin-top: 20px;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  justify-content: center;
  font-size: 14px;
}
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--gold-soft); text-decoration: none; }
.footer-meta { color: var(--text-3); font-size: 12.5px; line-height: 1.7; }
.footer-meta a { color: var(--gold-soft); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
