/* ============================================================
   Keys and Crows Paranormal — Stylesheet
   Palette: deep charcoal bg, cool grey-white text, teal accent
   ============================================================ */

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

:root {
  --bg:           #0a0c0f;
  --bg-raised:    #111318;
  --bg-card:      #181b21;
  --border:       rgba(255,255,255,0.07);
  --text:         #dde4ee;
  --text-muted:   rgba(221,228,238,0.55);
  --accent:       #3eb8a8;
  --accent-dim:   rgba(62,184,168,0.15);
  --accent-glow:  rgba(62,184,168,0.07);
  --white:        #ffffff;
  --radius:       6px;
  --nav-h:        60px;
  --max-w:        960px;
  --max-w-narrow: 720px;
  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.1rem; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,12,15,0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 1.5rem; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}

.nav-links { display: flex; list-style: none; gap: 0.25rem; align-items: center; }

.nav-links a {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.4rem 0.75rem; border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--accent); background: var(--accent-dim);
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 6px; width: 36px; height: 36px;
}

.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h);
    left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-raised); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem; gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.75rem; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 75vh;
  display: flex; align-items: center;
  overflow: hidden; padding: 5rem 1.5rem;
}

.hero::after {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(62,184,168,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 3rem;
}

.hero-logo-wrap { flex-shrink: 0; display: none; }
.hero-logo-wrap img { width: 160px; height: 160px; object-fit: contain; border-radius: 12px; }

.hero-text { flex: 1; }

.hero-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; padding: 0.3rem 0.75rem;
  border: 1px solid rgba(62,184,168,0.3); border-radius: 2px;
}

.hero-title {
  font-family: var(--font-display); letter-spacing: 0.04em;
  color: var(--white); margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted); margin-bottom: 1.25rem; max-width: 580px;
}

.hero-body {
  font-size: 1rem; color: var(--text-muted);
  max-width: 560px; line-height: 1.75;
}

@media (max-width: 600px) {
  .hero-inner { flex-direction: column; gap: 1.5rem; }
  .hero-logo-wrap img { width: 110px; height: 110px; }
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 4rem 1.5rem; border-top: 1px solid var(--border); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem;
}

.section-heading {
  font-family: var(--font-display); letter-spacing: 0.04em;
  color: var(--white); margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--text-muted); max-width: 600px;
  margin-bottom: 2.5rem; font-size: 1.02rem; line-height: 1.75;
}

/* ── Features grid ────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color var(--transition), background var(--transition);
}

.feature-card:hover { border-color: rgba(62,184,168,0.3); background: var(--bg-raised); }
.feature-card h3 { color: var(--accent); margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section {
  padding: 4rem 1.5rem; border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.cta-inner { max-width: var(--max-w-narrow); margin: 0 auto; text-align: center; }

.cta-heading {
  font-family: var(--font-display); letter-spacing: 0.04em;
  color: var(--white); margin-bottom: 0.75rem;
}

.cta-body { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.02rem; line-height: 1.75; }
.cta-email { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; }
.cta-email a { color: var(--accent); font-weight: 700; }

/* ── Social links ─────────────────────────────────────────── */
.social-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem;
}

.social-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.04em; padding: 0.5rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  text-decoration: none;
}

.social-link:hover {
  color: var(--accent); border-color: rgba(62,184,168,0.4);
  background: var(--accent-glow); opacity: 1;
}

.social-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  padding: 1.5rem; border-top: 1px solid var(--border);
  text-align: center; color: var(--text-muted);
  font-size: 0.82rem; letter-spacing: 0.04em;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); opacity: 1; }

/* ── Inner pages ──────────────────────────────────────────── */
.inner-page { max-width: var(--max-w-narrow); margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }

.inner-page h1 {
  font-family: var(--font-display); letter-spacing: 0.04em;
  color: var(--white); margin-bottom: 0.5rem;
}

.page-intro { color: var(--text-muted); font-size: 1.02rem; line-height: 1.75; margin-bottom: 2.5rem; }

/* ── About ────────────────────────────────────────────────── */
.about-section { margin-bottom: 2.5rem; }
.about-section h2 { font-size: 1.3rem; font-weight: 700; color: var(--accent); margin-bottom: 0.6rem; }
.about-section p { color: var(--text-muted); line-height: 1.8; white-space: pre-line; }

/* ── Bios ─────────────────────────────────────────────────── */
.bio-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 2rem 0; }
.bio-photo { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; background: rgba(255,255,255,0.05); flex-shrink: 0; }
.bio-photo-placeholder { width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 4rem; opacity: 0.3; flex-shrink: 0; }
.bio-name { font-size: 1.4rem; font-weight: 700; margin: 0; font-family: var(--font-display); }
.bio-role { font-size: 0.95rem; opacity: 0.6; margin: 0; color: var(--accent); }
.bio-text { font-size: 1rem; line-height: 1.8; opacity: 0.88; white-space: pre-line; max-width: 600px; }
.bio-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Investigations ───────────────────────────────────────── */
.investigations-list { display: flex; flex-direction: column; gap: 0; }
.investigation-card { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; padding: 2.5rem 0; border-top: 1px solid var(--border); }
.investigation-card:last-child { border-bottom: 1px solid var(--border); }
@media (max-width: 640px) { .investigation-card { grid-template-columns: 1fr; } }
.investigation-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: rgba(255,255,255,0.05); }
.investigation-img-placeholder { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; opacity: 0.3; }
.investigation-text h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.25rem; font-family: var(--font-display); }
.investigation-date { font-size: 0.85rem; opacity: 0.55; margin: 0 0 0.75rem; }
.investigation-summary { font-size: 0.97rem; line-height: 1.75; opacity: 0.88; white-space: pre-line; }

/* ── Equipment ────────────────────────────────────────────── */
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.equipment-card { display: flex; flex-direction: column; gap: 0.75rem; }
.equipment-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: rgba(255,255,255,0.05); }
.equipment-photo-placeholder { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; opacity: 0.3; }
.equipment-name { font-size: 1.1rem; font-weight: 700; margin: 0; }
.equipment-desc { font-size: 0.95rem; line-height: 1.7; opacity: 0.88; white-space: pre-line; }

/* ── Events ───────────────────────────────────────────────── */
.events-page { max-width: var(--max-w); margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.events-page h1 { font-family: var(--font-display); letter-spacing: 0.04em; color: var(--white); margin-bottom: 0.5rem; }
.events-subscribe { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.95rem; color: var(--text-muted); }
.events-subscribe a { font-weight: 700; text-underline-offset: 3px; text-decoration: underline; }
.calendar-embed { width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.calendar-embed iframe { display: block; width: 100%; height: 650px; border: 0; }
.calendar-placeholder { background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 4rem 2rem; text-align: center; color: var(--text-muted); font-size: 0.95rem; }
.calendar-placeholder p + p { margin-top: 0.5rem; }
@media (max-width: 600px) { .calendar-embed iframe { height: 480px; } }

/* ── Contact ──────────────────────────────────────────────── */
.contact-block { margin-bottom: 2rem; }
.contact-block h2 { font-weight: 700; color: var(--text); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.contact-block p, .contact-block a { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; }

/* ── Utility ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
