/**
 * css/numerology-numbers.css — Per-number archetype landing pages.
 *
 * Phase 5 / Numerology brand v2 (2026-05-06).
 * Loaded on /numerology/numbers/{N}/ via numerology-number.php.
 */

/* ═══════════ HERO — giant numeral glyph ═══════════ */
.num-archetype-hero {
  position: relative;
  text-align: center;
}

.num-archetype-numeral {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0 0.5rem;
}
.num-archetype-numeral-glyph {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  font-size: clamp(7rem, 18vw, 12rem);
  line-height: 0.85;
  background: linear-gradient(180deg, #8E6E3A 0%, #D4AC68 45%, #FAF6E9 65%, #6B1F2C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 0 rgba(184, 145, 80, 0.3);
  letter-spacing: -0.02em;
  filter: drop-shadow(0 4px 18px rgba(212, 172, 104, 0.4));
}
.num-archetype-master-tag {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8E6E3A;
  margin-top: 0.4rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(184, 145, 80, 0.45);
  border-radius: 999px;
  background: rgba(255, 251, 240, 0.6);
}

/* "The Pioneer" — larger + nudged down from the H1 above it */
.num-archetype-page .page-hero-script {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  margin-top: 0.6rem;
  line-height: 1.05;
}

/* "leadership · initiation · independence" tag — larger + bolder, same gold color */
.num-archetype-tag {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  color: #8E6E3A;
  letter-spacing: 0.03em;
  margin-top: 0.8rem;
}

/* ═══════════ SECTIONS ═══════════ */
.num-archetype-section {
  max-width: 760px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  font-family: 'EB Garamond', serif;
}
/* Pull the FIRST section closer to the gold rule under the hero */
.num-archetype-section.num-archetype-intro {
  margin-top: 1.5rem;
}

/* Section h2 ("Across your chart") — touch larger */
.num-archetype-section h2 {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 4.8vw, 3.4rem);
  color: #6B1F2C;
  text-align: center;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}
.num-archetype-section h2 em { color: #8E6E3A; }

/* Section h3 — match editorial weight + size */
.num-archetype-section h3 {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  color: #3A1F38;
  margin: 2.4rem 0 0.9rem;
  line-height: 1.2;
}

/* Body paragraphs — match the editorial typography exactly */
.num-archetype-section p {
  font-family: 'EB Garamond', serif;
  font-size: 1.12rem;
  line-height: 1.78;
  color: #3a2826;
  margin: 0 0 1.3rem;
}
.num-archetype-section p strong { color: #6B1F2C; font-weight: 700; }
/* Italic emphasis stays burgundy (gold was too hard to read inside body copy) */
.num-archetype-section p em { color: #6B1F2C; font-style: italic; }
.num-archetype-section ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.num-positions-list li {
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.95) 0%, rgba(247, 235, 210, 0.7) 100%);
  border-left: 4px solid #D4AC68;
  border-radius: 1px;
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #3a2826;
}
/* "As your Life Path" — promoted to a stacked sub-heading, much larger + bolder */
.num-positions-list li strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.55rem);
  letter-spacing: 0.01em;
  color: #6B1F2C;
}

/* ═══════════ INTRO — drop-cap on first paragraph ═══════════ */
.num-archetype-intro p:first-of-type::first-letter {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  float: left;
  padding: 0.4rem 0.6rem 0 0;
  color: #6B1F2C;
}

/* ═══════════ POSITIONS section ═══════════ */
.num-archetype-positions .page-hero-dept {
  text-align: center;
  margin-bottom: 0.4rem;
}

/* ═══════════ CALCULATOR CTA MINI-PORTALS ═══════════ */
.num-archetype-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 720px) {
  .num-archetype-cta-grid { grid-template-columns: repeat(3, 1fr); }
}

.num-archetype-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.3rem 1rem 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, #FDFAEE 0%, transparent 70%),
    linear-gradient(160deg, #FAF3E0 0%, #F0E0BD 100%);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  box-shadow:
    inset 0 0 0 1px rgba(212, 172, 104, 0.4),
    inset 0 0 0 5px #FAF3E0,
    inset 0 0 0 6px var(--cta-color, #B89150),
    0 6px 18px rgba(74, 28, 38, 0.10);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.4s ease;
  overflow: hidden;
}
.num-archetype-cta:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(212, 172, 104, 0.5),
    inset 0 0 0 5px #FAF3E0,
    inset 0 0 0 6px #6B1F2C,
    0 14px 30px rgba(74, 28, 38, 0.22);
}

/* Tiny burgundy Roman numeral floating top-center */
.num-archetype-cta-roman {
  font-family: 'EB Garamond', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--cta-color, #6B1F2C);
  padding: 0 0.5rem;
  margin-bottom: 0.2rem;
  text-shadow: 0 1px 0 rgba(255, 251, 232, 0.55);
}

.num-archetype-cta-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0.4rem 0.4rem 1rem;
  width: 100%;
}

.num-archetype-cta-eyebrow {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cta-color, #8E6E3A);
  margin-bottom: 0.5rem;
}
.num-archetype-cta-name {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  color: #6B1F2C;
  line-height: 1.1;
  margin: 0 0 0.45rem;
  text-shadow: 0 1px 0 rgba(255, 251, 232, 0.6);
}
.num-archetype-cta-tag {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.08rem;
  color: #5e4a3a;
  line-height: 1.4;
}

/* L-shape decorative corners (visible inside the gold inset frame) */
.num-archetype-cta-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid #6B1F2C;
  pointer-events: none;
  z-index: 3;
  transition: width 0.4s, height 0.4s, border-color 0.3s;
}
.num-archetype-cta-corner-tl { top: 12px;    left: 12px;  border-right: none; border-bottom: none; }
.num-archetype-cta-corner-tr { top: 12px;    right: 12px; border-left: none;  border-bottom: none; }
.num-archetype-cta-corner-bl { bottom: 56px; left: 12px;  border-right: none; border-top: none; }
.num-archetype-cta-corner-br { bottom: 56px; right: 12px; border-left: none;  border-top: none; }
.num-archetype-cta:hover .num-archetype-cta-corner {
  width: 18px;
  height: 18px;
  border-color: var(--cta-color, #8E6E3A);
}

/* Action bar at bottom — fills with burgundy on hover */
.num-archetype-cta-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% + 2rem);
  margin: auto -1rem 0;
  padding: 0.8rem 0.8rem;
  background: linear-gradient(180deg, rgba(107, 31, 44, 0.06) 0%, rgba(107, 31, 44, 0.12) 100%);
  border-top: 1.5px solid #6B1F2C;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B1F2C;
  transition: background 0.35s ease, color 0.35s ease, gap 0.3s ease, border-top-color 0.3s ease;
}
.num-archetype-cta:hover .num-archetype-cta-action {
  background: linear-gradient(180deg, #6B1F2C 0%, #4A1620 100%);
  color: #F4DCA6;
  border-top-color: #D4AC68;
  gap: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(244, 220, 166, 0.25);
}
.num-archetype-cta-action-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}
.num-archetype-cta:hover .num-archetype-cta-action-arrow { transform: translateX(2px); }

/* ═══════════ TWO-COL: career + famous ═══════════ */
.num-archetype-twocol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}
.num-archetype-card {
  padding: 2rem 1.6rem;
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.98) 0%, rgba(247, 235, 210, 0.92) 100%);
  border: 1px solid rgba(184, 145, 80, 0.45);
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(74, 28, 38, 0.04);
}
.num-archetype-card h3 {
  margin-top: 0.4rem;
  text-align: center;
}
/* "VOCATION" / "ARCHETYPES" eyebrows on the two-col cards — bigger + bolder */
.num-archetype-card .page-hero-dept {
  text-align: center;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.32em;
}
.num-archetype-card p {
  font-family: 'EB Garamond', serif;
  font-size: 1.12rem;
  line-height: 1.78;
  color: #3a2826;
  margin: 0 0 1.2rem;
}
.num-archetype-card p:last-child { margin-bottom: 0; }
/* Inside these card paragraphs, italic emphasis stays burgundy (NOT gold) so it's readable */
.num-archetype-card p em {
  color: #6B1F2C;
  font-style: italic;
}
.num-archetype-card p strong { color: #6B1F2C; font-weight: 700; }

/* ═══════════ NAV (prev / home / next) — illuminated wayfinder ═══════════ */
.num-archetype-nav {
  max-width: 1080px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.num-archetype-nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1.4rem;
}

/* Prev / Next pills — substantial illuminated cards */
.num-archetype-nav-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  padding: 1.1rem 1.4rem;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, #FDFAEE 0%, transparent 70%),
    linear-gradient(160deg, #FAF3E0 0%, #F0E0BD 100%);
  box-shadow:
    inset 0 0 0 1px rgba(212, 172, 104, 0.4),
    inset 0 0 0 5px #FAF3E0,
    inset 0 0 0 6px #B89150,
    0 6px 18px rgba(74, 28, 38, 0.12);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.4s ease;
}
.num-archetype-nav-prev {
  text-align: left;
}
.num-archetype-nav-next {
  grid-template-columns: 1fr auto;
  text-align: right;
}
.num-archetype-nav-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(212, 172, 104, 0.5),
    inset 0 0 0 5px #FAF3E0,
    inset 0 0 0 6px #6B1F2C,
    0 14px 30px rgba(74, 28, 38, 0.25);
}

.num-archetype-nav-arrow {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #D4AC68;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
  text-shadow: 0 1px 0 rgba(255, 251, 232, 0.55);
}
.num-archetype-nav-card:hover .num-archetype-nav-arrow {
  color: #6B1F2C;
}
.num-archetype-nav-prev:hover .num-archetype-nav-arrow { transform: translateX(-3px); }
.num-archetype-nav-next:hover .num-archetype-nav-arrow { transform: translateX(3px); }

.num-archetype-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.num-archetype-nav-eyebrow {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8E6E3A;
}

/* "Number 1" — now the prominent label (burgundy + matched to title size) */
.num-archetype-nav-roman {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  letter-spacing: 0.01em;
  color: #6B1F2C;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 251, 232, 0.55);
}

/* "The Pioneer" — sub-label, slightly smaller, gold-deep (different color) */
.num-archetype-nav-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  letter-spacing: 0.02em;
  color: #8E6E3A;
  line-height: 1.2;
}

/* Center "All Numbers" button — burgundy filled pill, centered ornaments */
.num-archetype-nav-home {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem;
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #F4DCA6;
  background: linear-gradient(180deg, #6B1F2C 0%, #4A1620 100%);
  border: 1px solid #8E6E3A;
  box-shadow:
    inset 0 1px 0 rgba(244, 220, 166, 0.18),
    0 6px 18px rgba(74, 28, 38, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  white-space: nowrap;
}
.num-archetype-nav-home:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #4A1620 0%, #2D0E15 100%);
  box-shadow:
    inset 0 1px 0 rgba(244, 220, 166, 0.25),
    0 12px 26px rgba(74, 28, 38, 0.45);
}
.num-archetype-nav-home-orn {
  font-size: 0.85rem;
  color: #D4AC68;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(212, 172, 104, 0.5);
}
.num-archetype-nav-home-text {
  display: inline-block;
}

/* ═══════════ MOBILE ═══════════ */
@media (max-width: 700px) {
  .num-archetype-section { margin: 2.5rem auto; }
  .num-archetype-twocol { gap: 1rem; }
  .num-archetype-nav-row { grid-template-columns: 1fr; gap: 0.8rem; }
  .num-archetype-nav-prev, .num-archetype-nav-next { justify-self: stretch; }
  .num-archetype-nav-card { padding: 0.95rem 1.1rem; }
  .num-archetype-nav-home { width: 100%; }
  .num-archetype-cta-grid { grid-template-columns: repeat(2, 1fr); }
}
