/* =============================================
   HOLY DOGS — Main Stylesheet
   Come Home to the Pack
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Special+Elite&family=Nunito:wght@300;400;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* --- Variables --- */
:root {
  --off-white: #F5F0E8;
  --aged-paper: #EDE3D0;
  --deep-purple: #2D0A4E;
  --purple-mid: #4A1870;
  --purple-light: #7B3FA0;
  --dark-purple: #1A0530;
  --muted-gold: #C9A84C;
  --gold-dark: #9B7A2E;
  --gold-light: #E8CFA0;
  --faded-blue: #6B8CAE;
  --beige: #D4C5A9;
  --burgundy: #6B1414;
  --pale-yellow: #F5F0A0;
  --text-dark: #1A0A2E;
  --text-mid: #3D1F5E;
  --shadow-purple: rgba(45, 10, 78, 0.3);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--off-white);
  color: var(--text-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* Scan lines for CRT feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.015) 2px,
    rgba(0,0,0,0.015) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-mid); text-decoration: none; }
a:hover { color: var(--muted-gold); text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--deep-purple);
}
h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--deep-purple);
}
.sacred-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.terminal-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.85em;
}
.typewriter-text {
  font-family: 'Special Elite', cursive;
}

/* --- Navigation --- */
.site-header {
  background: var(--dark-purple);
  border-bottom: 3px solid var(--muted-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo .logo-symbol {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.nav-logo .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: 0.05em;
  text-decoration: none;
  line-height: 1.1;
}
.nav-logo .logo-text span {
  display: block;
  font-family: 'Special Elite', cursive;
  font-size: 0.65rem;
  color: var(--muted-gold);
  letter-spacing: 0.2em;
  font-weight: 400;
  text-transform: uppercase;
}

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

.nav-links a {
  display: block;
  color: var(--beige);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  border-radius: 3px;
}
.nav-links a:hover {
  color: var(--muted-gold);
  text-decoration: none;
  background: rgba(201,168,76,0.1);
}
.nav-links .nav-cta a {
  background: var(--muted-gold);
  color: var(--dark-purple);
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 3px;
}
.nav-links .nav-cta a:hover {
  background: var(--gold-light);
  color: var(--dark-purple);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--muted-gold);
  color: var(--muted-gold);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 3px;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    gap: 0.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    padding: 0.6rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(201,168,76,0.1);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.btn-primary {
  background: var(--muted-gold);
  color: var(--dark-purple);
  border-color: var(--gold-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--dark-purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(201,168,76,0.4);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--off-white);
  border-color: var(--off-white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--off-white);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-dark {
  background: var(--deep-purple);
  color: var(--off-white);
  border-color: var(--purple-mid);
}
.btn-dark:hover {
  background: var(--purple-mid);
  color: var(--off-white);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--muted-gold);
  border-color: var(--muted-gold);
}
.btn-ghost:hover {
  background: var(--muted-gold);
  color: var(--dark-purple);
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(160deg, var(--dark-purple) 0%, var(--deep-purple) 50%, #3D0A6B 100%);
  color: var(--off-white);
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(107, 20, 20, 0.2) 0%, transparent 60%);
}

/* Vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: 'Special Elite', cursive;
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted-gold);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--off-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.hero h1 em {
  color: var(--muted-gold);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--beige);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-symbol {
  margin: 0 auto 2rem;
  opacity: 0.85;
}

/* Floating particles in hero */
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-gold);
  animation: float-particle linear infinite;
  opacity: 0;
}
@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* --- Section Styles --- */
.section {
  padding: 5rem 1.5rem;
}
.section-sm {
  padding: 3rem 1.5rem;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-inner-sm {
  max-width: 760px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-eyebrow {
  font-family: 'Special Elite', cursive;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted-gold);
  display: block;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.section-header p {
  margin-top: 1rem;
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Divider ornament */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 2rem auto;
  color: var(--muted-gold);
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--muted-gold));
  max-width: 120px;
}
.ornament::after {
  background: linear-gradient(to left, transparent, var(--muted-gold));
}
.ornament-icon {
  font-size: 1.2rem;
}

/* --- Dark section bg --- */
.bg-dark {
  background: var(--dark-purple);
  color: var(--off-white);
}
.bg-dark h2, .bg-dark h3 {
  color: var(--off-white);
}
.bg-dark .section-header p {
  color: var(--beige);
}

.bg-purple {
  background: var(--deep-purple);
  color: var(--off-white);
}
.bg-purple h2, .bg-purple h3 {
  color: var(--off-white);
}

.bg-aged {
  background: var(--aged-paper);
}

.bg-beige {
  background: #EAE0CC;
}

/* --- Three Truths / Pillars --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background: rgba(201,168,76,0.15);
  border: 2px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.pillar-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--muted-gold);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.pillar-card p {
  color: var(--beige);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Founder Quote --- */
.founder-quote-section {
  background: linear-gradient(135deg, var(--deep-purple), var(--dark-purple));
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.founder-quote-section::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 15rem;
  color: rgba(201,168,76,0.06);
  line-height: 1;
  pointer-events: none;
}

.founder-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-style: italic;
  color: var(--off-white);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.founder-attr {
  font-family: 'Special Elite', cursive;
  color: var(--muted-gold);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.founder-attr::before {
  content: '— ';
}

/* --- Testimonials --- */
.testimonials-section {
  background: var(--aged-paper);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--off-white);
  border: 1px solid var(--beige);
  border-top: 3px solid var(--deep-purple);
  padding: 1.75rem;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s;
}
.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-stars {
  color: var(--muted-gold);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.15em;
}

.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--deep-purple);
  border: 2px solid var(--muted-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  display: block;
}
.testimonial-loc {
  font-size: 0.75rem;
  color: #888;
  font-family: 'Special Elite', cursive;
}

/* Testimonial carousel */
.testimonial-carousel-wrap {
  position: relative;
  overflow: hidden;
}
.testimonial-carousel {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1.5rem;
}
.testimonial-carousel-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--beige);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--deep-purple);
  transform: scale(1.3);
}

/* --- Join CTA Banner --- */
.join-banner {
  background: linear-gradient(100deg, var(--deep-purple), #5A1A8A);
  color: var(--off-white);
  text-align: center;
  padding: 5rem 1.5rem;
}
.join-banner h2 {
  color: var(--off-white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.join-banner p {
  color: var(--beige);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--off-white);
  border: 1px solid var(--beige);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-header {
  background: var(--deep-purple);
  padding: 1.5rem;
  color: var(--off-white);
}
.card-header h3 {
  color: var(--off-white);
  font-size: 1.1rem;
}
.card-body {
  padding: 1.5rem;
}
.card-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* --- Page hero (interior pages) --- */
.page-hero {
  background: linear-gradient(160deg, var(--dark-purple), var(--deep-purple));
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--off-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 80%, 0 0);
}
.page-hero.bg-aged::after {
  background: var(--aged-paper);
}
.page-hero h1 {
  color: var(--off-white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  z-index: 1;
}
.page-hero p {
  color: var(--beige);
  max-width: 580px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

/* --- FAQ Styles --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--beige);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--deep-purple);
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--deep-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--deep-purple);
  transition: transform 0.3s, background 0.2s;
  font-family: monospace;
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--deep-purple);
  color: var(--off-white);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 0 1.25rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 0.95rem;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--beige);
  background: var(--off-white);
  border-radius: 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--deep-purple);
  box-shadow: 0 0 0 3px rgba(45,10,78,0.12);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232D0A4E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.35rem;
  font-family: 'Special Elite', cursive;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--deep-purple);
  flex-shrink: 0;
}
.form-check label {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 0;
  font-weight: 400;
}

/* Confession form specific */
.confession-form-wrap {
  background: var(--aged-paper);
  border: 2px solid var(--beige);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.confession-form-wrap .form-group label {
  font-family: 'Special Elite', cursive;
  letter-spacing: 0.05em;
}

/* --- Events / Gatherings --- */
.event-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--beige);
}
.event-date-badge {
  background: var(--deep-purple);
  color: var(--off-white);
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  border-bottom: 3px solid var(--muted-gold);
  flex-shrink: 0;
}
.event-date-badge .ev-month {
  font-family: 'Special Elite', cursive;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-gold);
  display: block;
}
.event-date-badge .ev-day {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  line-height: 1;
  display: block;
}

.event-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.event-info .event-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.event-tag {
  background: var(--deep-purple);
  color: var(--gold-light);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-family: 'Special Elite', cursive;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-info p {
  font-size: 0.88rem;
  color: var(--text-mid);
}
.event-info .event-loc {
  font-size: 0.8rem;
  color: #888;
  font-family: 'Special Elite', cursive;
  margin-top: 0.4rem;
}

/* --- Sacred Texts --- */
.resource-card {
  background: var(--off-white);
  border: 1px solid var(--beige);
  border-left: 4px solid var(--deep-purple);
  padding: 1.5rem;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-left-color 0.2s, box-shadow 0.2s;
}
.resource-card:hover {
  border-left-color: var(--muted-gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.resource-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.resource-info h4 {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.resource-info p {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.resource-info a {
  font-size: 0.82rem;
  color: var(--deep-purple);
  font-weight: 700;
  text-decoration: underline;
}
.resource-info a:hover {
  color: var(--muted-gold);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark-purple);
  color: var(--beige);
  padding: 3.5rem 1.5rem 1.5rem;
  border-top: 3px solid var(--muted-gold);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: #9985B0;
}
.footer-brand .nav-logo .logo-text {
  font-size: 1rem;
}

.footer-col h4 {
  font-family: 'Special Elite', cursive;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-gold);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.4rem;
}
.footer-col ul li a {
  color: #9985B0;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--muted-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.72rem;
  color: #5A4870;
  line-height: 1.6;
  max-width: 500px;
  font-family: 'Special Elite', cursive;
}
.footer-legal a {
  color: #5A4870;
  text-decoration: underline;
}

.footer-counter {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #3D2860;
  text-align: right;
}
.footer-counter span {
  display: block;
  color: #4A3870;
}

/* --- Quiz Styles --- */
.quiz-container {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-progress {
  margin-bottom: 2rem;
}
.quiz-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.4rem;
  font-family: 'Special Elite', cursive;
}
.quiz-progress-bar {
  height: 6px;
  background: var(--beige);
  border-radius: 3px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--deep-purple);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.quiz-step {
  display: none;
  animation: quiz-in 0.4s ease;
}
.quiz-step.active {
  display: block;
}
@keyframes quiz-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.quiz-question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.quiz-sub {
  font-size: 0.85rem;
  color: #888;
  font-family: 'Special Elite', cursive;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  background: var(--off-white);
  border: 2px solid var(--beige);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.quiz-option::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--beige);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s;
}
.quiz-option:hover {
  border-color: var(--deep-purple);
  background: rgba(45,10,78,0.04);
  transform: translateX(4px);
}
.quiz-option:hover::before {
  border-color: var(--deep-purple);
}
.quiz-option.selected {
  border-color: var(--deep-purple);
  background: rgba(45,10,78,0.07);
}
.quiz-option.selected::before {
  background: var(--deep-purple);
  border-color: var(--deep-purple);
  box-shadow: inset 0 0 0 3px var(--off-white);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Result page */
.result-reveal {
  text-align: center;
  animation: result-in 0.6s ease;
}
@keyframes result-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.result-emblem {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--deep-purple);
  border: 4px solid var(--muted-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 3rem;
  box-shadow: 0 0 40px rgba(201,168,76,0.3);
}

.result-type-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--deep-purple);
  margin-bottom: 0.5rem;
}

.result-type-label {
  font-family: 'Special Elite', cursive;
  color: var(--muted-gold);
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}

.result-description {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.result-next-step {
  background: var(--aged-paper);
  border-left: 4px solid var(--burgundy);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  text-align: left;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.result-next-step h4 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-family: 'Special Elite', cursive;
  margin-bottom: 0.4rem;
}
.result-next-step p {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.result-share-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Hidden Pages --- */
.hidden-page {
  background: #080410;
  min-height: 100vh;
  color: #C0B0D0;
  font-family: 'Space Mono', monospace;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hidden-page-inner {
  max-width: 680px;
  width: 100%;
}
.hidden-page h1 {
  font-family: 'Special Elite', cursive;
  color: #C0B0D0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.hidden-page p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #8070A0;
  margin-bottom: 1.25rem;
}
.hidden-page a {
  color: #9985B0;
  text-decoration: underline;
}
.hidden-page a:hover {
  color: var(--muted-gold);
}
.hidden-red {
  color: #A03030;
}
.hidden-gold {
  color: var(--muted-gold);
}
.terminal-block {
  background: #0D0820;
  border: 1px solid #2A1850;
  padding: 1.5rem;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 2;
  margin-bottom: 1.5rem;
  white-space: pre-wrap;
}
.terminal-cursor::after {
  content: '█';
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Thank You / Confirmation --- */
.thankyou-wrap {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1.5rem;
}
.thankyou-wrap .thankyou-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* --- Glitch Text --- */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text.glitching {
  animation: text-flicker 0.08s linear 3;
}
@keyframes text-flicker {
  0% { opacity: 1; transform: none; }
  33% { opacity: 0.6; transform: skewX(-3deg) translateX(2px); color: #A03030; }
  66% { opacity: 0.9; transform: skewX(2deg) translateX(-1px); }
  100% { opacity: 1; transform: none; }
}

/* Glitch overlay text via data attribute */
.has-secret {
  cursor: default;
}

/* --- Loading Ritual Overlay --- */
#ritual-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark-purple);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.8s ease;
}
#ritual-overlay.done {
  opacity: 0;
  pointer-events: none;
}
.ritual-symbol {
  animation: ritual-pulse 1.5s ease-in-out infinite;
}
@keyframes ritual-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}
.ritual-text {
  font-family: 'Special Elite', cursive;
  color: var(--muted-gold);
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.ritual-text span {
  display: inline-block;
  animation: ritual-letter 2s ease-in-out infinite;
}

/* --- Easter Egg Overlay --- */
#easter-egg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#easter-egg-overlay.visible {
  display: flex;
  animation: egg-appear 0.3s ease;
}
@keyframes egg-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
.egg-content {
  text-align: center;
  color: var(--off-white);
  font-family: 'Space Mono', monospace;
  max-width: 500px;
  padding: 2rem;
}
.egg-content h2 {
  color: var(--muted-gold);
  font-family: 'Special Elite', cursive;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.egg-content p {
  font-size: 0.85rem;
  color: #C0B0D0;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.egg-dismiss {
  font-size: 0.72rem;
  color: #5A4870;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --- Misc Utilities --- */
.text-center { text-align: center; }
.text-gold { color: var(--muted-gold); }
.text-purple { color: var(--deep-purple); }
.text-burgundy { color: var(--burgundy); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* Redacted text effect */
.redacted {
  background: var(--text-dark);
  color: transparent;
  user-select: none;
  border-radius: 2px;
  transition: all 0.3s;
  cursor: pointer;
}
.redacted.revealed {
  background: transparent;
  color: var(--text-dark);
}

/* Warning / sinister callout */
.warning-box {
  background: rgba(107, 20, 20, 0.08);
  border: 1px solid rgba(107, 20, 20, 0.25);
  border-left: 4px solid var(--burgundy);
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem;
  color: var(--text-mid);
  font-family: 'Special Elite', cursive;
  margin: 1.5rem 0;
}

/* Visitor counter */
#visitor-counter {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #3D2860;
  letter-spacing: 0.15em;
}

/* Subtle flicker on paw icon */
.flicker {
  animation: icon-flicker 8s ease-in-out infinite;
}
@keyframes icon-flicker {
  0%, 94%, 96%, 98%, 100% { opacity: 1; }
  95%, 97% { opacity: 0.1; }
}

/* Hover reveal text */
.hover-reveal {
  position: relative;
  cursor: crosshair;
}
.hover-reveal .reveal-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--burgundy);
  color: var(--off-white);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
.hover-reveal:hover .reveal-text {
  opacity: 1;
}

/* Email capture inline */
.email-capture {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  flex-wrap: wrap;
}
.email-capture input {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: var(--off-white);
  border-radius: 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
}
.email-capture input::placeholder {
  color: rgba(255,255,255,0.4);
}
.email-capture input:focus {
  outline: none;
  border-color: var(--muted-gold);
}

/* Member ID widget */
.member-id-card {
  background: var(--dark-purple);
  border: 2px solid var(--muted-gold);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 300px;
  font-family: 'Space Mono', monospace;
  text-align: center;
}
.member-id-card .mid-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--muted-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}
.member-id-card .mid-number {
  font-size: 1.6rem;
  color: var(--off-white);
  letter-spacing: 0.15em;
  display: block;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .section {
    padding: 3.5rem 1rem;
  }
  .hero {
    min-height: 80vh;
    padding: 3rem 1rem;
  }
  .quiz-container {
    padding: 0;
  }
  .confession-form-wrap {
    padding: 1.5rem;
  }
  .event-item {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
  }
  .event-date-badge .ev-day {
    font-size: 1.4rem;
  }
}
