/* =========================================================
   THE SACRED PHALLUS — Main Stylesheet
   ========================================================= */

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

:root {
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --cream:      #f5f0e8;
  --dark:       #1a1410;
  --dark-mid:   #2c2318;
  --text:       #3a2e22;
  --text-light: #6b5e4e;
  --white:      #ffffff;

  --font-heading: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  --font-body:    'EB Garamond', 'Garamond', 'Georgia', serif;
  --font-ui:      'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 860px;
  --section-pad: 90px 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 400; }

p {
  margin-bottom: 1.4rem;
  color: var(--cream);
  opacity: 0.92;
}

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

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

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad);
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, #a8762e 100%);
  color: var(--dark);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  margin-top: 1rem;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.35);
  color: var(--dark);
  text-decoration: none;
  opacity: 0.95;
}

.cta-btn.secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  margin-left: 16px;
}

.cta-btn.secondary:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-light);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 20, 16, 0.75) 0%,
    rgba(26, 20, 16, 0.45) 50%,
    rgba(26, 20, 16, 0.80) 100%
  );
  z-index: 1;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: sepia(0.18) brightness(0.82);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 48px 24px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  color: var(--gold-light);
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
  margin-bottom: 1.2rem;
  letter-spacing: 0.08em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--cream);
  opacity: 0.88;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

/* =========================================================
   ALTAR PIECE SECTION
   ========================================================= */
.altar-piece {
  background-color: var(--dark-mid);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.altar-piece p {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* =========================================================
   HISTORY / LINEAGE SECTION
   ========================================================= */
.history {
  background-color: var(--dark);
  position: relative;
}

.history::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 48px;
}

.history p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.cta-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-top: 2rem;
  opacity: 1;
}

/* =========================================================
   QUIZ SECTION
   ========================================================= */
.quiz-section {
  background: linear-gradient(180deg, var(--dark-mid) 0%, var(--dark) 100%);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.quiz-intro {
  font-size: 1.05rem;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.quiz-question {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}

.quiz-question:hover {
  border-color: rgba(201, 168, 76, 0.28);
}

.question-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  opacity: 1;
}

.quiz-question label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--cream);
  opacity: 0.88;
  line-height: 1.55;
  transition: opacity 0.15s ease;
}

.quiz-question label:hover {
  opacity: 1;
}

.quiz-question input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

.quiz-submit-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* =========================================================
   ARCHETYPE RESULTS
   ========================================================= */
#quiz-results {
  margin-top: 2.5rem;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

#archetype-display {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 6px;
  padding: 40px;
  margin-bottom: 2rem;
}

#archetype-display h3 {
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

#archetype-display .archetype-subtitle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

#archetype-display p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* =========================================================
   DEPOSIT SECTION
   ========================================================= */
.deposit-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 6px;
  padding: 40px;
  margin-top: 2rem;
}

.deposit-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.deposit-options {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#deposit-response {
  margin-top: 1.5rem;
  padding: 20px 24px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background-color: var(--dark);
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  padding: 32px 24px;
  text-align: center;
}

.footer p {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--cream);
  opacity: 0.4;
  margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  :root { --section-pad: 60px 16px; }

  .quiz-question { padding: 20px 20px; }
  .deposit-section { padding: 24px 20px; }
  #archetype-display { padding: 24px 20px; }

  .deposit-options { flex-direction: column; }
  .cta-btn.secondary { margin-left: 0; }
}

/* =========================================================
   GOOGLE FONTS IMPORT (add to <head> if preferred)
   ========================================================= */
/* @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@400;500;600&display=swap'); */
