/* ==========================================================
   North Georgia Paranormal Society — site styles
   ========================================================== */

:root {
  --bg: #000;
  --bg-raised: #0b0d0f;
  --bg-card: #101315;
  --line: #22272b;
  --text: #d9dcde;
  --text-dim: #8d959b;
  --heading: #eceeef;
  --accent: #8fd4c4;          /* pale spectral teal */
  --accent-dim: #4f8a7e;
  --accent-glow: rgba(143, 212, 196, 0.35);
  --radius: 6px;
  --max: 1120px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film-grain overlay across the whole site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.2rem; color: var(--text); max-width: 46rem; }
.muted { color: var(--text-dim); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 8px 14px;
  z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; mix-blend-mode: screen; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--heading);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  text-shadow: 0 0 12px var(--accent-glow);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #000;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .site-nav li a { display: block; padding: 12px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-ghost {
  color: var(--accent);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(143, 212, 196, 0.08);
  box-shadow: 0 0 18px var(--accent-glow);
}

/* ---------- Fog effect ---------- */
.fog {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.fog span {
  position: absolute;
  width: 140%;
  height: 60%;
  left: -20%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(200, 215, 220, 0.09) 0%, rgba(200, 215, 220, 0) 65%);
  filter: blur(30px);
  animation: drift 38s ease-in-out infinite alternate;
}
.fog span:nth-child(1) { bottom: -10%; animation-duration: 42s; }
.fog span:nth-child(2) { bottom: 10%; opacity: 0.7; animation-duration: 55s; animation-direction: alternate-reverse; }
.fog span:nth-child(3) { top: -15%; opacity: 0.5; animation-duration: 64s; }

@keyframes drift {
  from { transform: translateX(-12%); }
  to   { transform: translateX(12%); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0 80px;
  background: radial-gradient(ellipse at 50% 40%, #0d1213 0%, #000 65%);
}
/* No z-index here: a new stacking context would stop the logo's blend mode reaching the background */
.hero .container { position: relative; }
.hero-logo {
  width: min(380px, 78vw);
  margin: 0 auto 28px;
  mix-blend-mode: screen;      /* lets the logo's black background melt into the fog */
  animation: flicker 9s infinite;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 500;
  max-width: 34rem;
  margin: 0 auto 0.6em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
}
.hero p {
  max-width: 38rem;
  margin: 0 auto 2rem;
  color: var(--text-dim);
  font-size: 1.15rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.55; }
  94% { opacity: 1; }
  96% { opacity: 0.75; }
  97% { opacity: 1; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 110px 0 80px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 30% 0%, #0f1516 0%, #000 70%);
}
.page-hero .container { position: relative; z-index: 1; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 44rem; margin-bottom: 48px; }

/* Cards */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 30px rgba(143, 212, 196, 0.07);
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 18px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--line);
  padding-top: 20px;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 10px;
}
.steps h3 { font-size: 1.35rem; margin-bottom: 0.35em; }
.steps p { color: var(--text-dim); margin: 0; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* Confidentiality panel */
.seal {
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 36px 32px;
  background:
    linear-gradient(180deg, rgba(143, 212, 196, 0.05), rgba(143, 212, 196, 0) 60%),
    var(--bg-card);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Explanation tags (about page) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.tags span {
  font-size: 0.95rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--text-dim);
}

/* Quote */
.pullquote {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 500;
  color: var(--heading);
  line-height: 1.25;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 0;
}

/* CTA band */
.cta {
  position: relative;
  text-align: center;
  padding: 110px 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, #0f1617 0%, #000 70%);
}
.cta .container { position: relative; z-index: 1; }
.cta p { max-width: 36rem; margin: 0 auto 2rem; color: var(--text-dim); }
.contact-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-icon svg { width: 22px; height: 22px; flex: none; }
.cta .privacy-note {
  margin: 1.25rem auto 0;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav a { color: var(--text-dim); margin-left: 20px; }
.site-footer nav a:first-child { margin-left: 0; }
.site-footer nav a:hover { color: var(--heading); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fog span, .hero-logo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
