/* =====================================================
   buddhism.css — Sacred Figurines, Buddhism Series
   ===================================================== */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: #1c1b14;
  background: #f8f5ef;
  line-height: 1.75;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.2; }
p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Neutral tokens (match main site) ── */
:root {
  --cream:      #f0ebe0;
  --warm-white: #f8f5ef;
  --dark:       #1c1b14;
  --medium:     #46433a;
  --muted:      #7a7568;
  --border:     rgba(28,27,20,0.12);

  /* active theme — overridden by .theme-* on <body> */
  --tc:         #E4C67C;
  --tc-light:   #FBF3DC;
  --tc-dark:    #7a5c1e;
}

/* ── Theme classes ── */
.theme-punya   { --tc: #E4C67C; --tc-light: #FBF3DC; --tc-dark: #7a5c1e; }
.theme-bodhi   { --tc: #B5DBBD; --tc-light: #E8F5EB; --tc-dark: #2e6641; }
.theme-shanti  { --tc: #86CED8; --tc-light: #DFF4F7; --tc-dark: #1f6b78; }
.theme-maitri  { --tc: #E39AC1; --tc-light: #FAEDF4; --tc-dark: #8a3060; }
.theme-karuna  { --tc: #D6CFC7; --tc-light: #F5F2EF; --tc-dark: #5a5048; }
.theme-amrita  { --tc: #B5DBBD; --tc-light: #E8F5EB; --tc-dark: #2e6641; }
.theme-abhaya  { --tc: #86CED8; --tc-light: #DFF4F7; --tc-dark: #1f6b78; }
.theme-santana { --tc: #E39AC1; --tc-light: #FAEDF4; --tc-dark: #8a3060; }

/* ── Layout ── */
.container      { max-width: 720px;  margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }

/* ── Site header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(248,245,239,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--medium);
}
.nav-brand a:hover { color: var(--dark); }
.nav-links {
  list-style: none; display: flex; gap: 1.75rem;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.nav-links a:hover { color: var(--dark); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 9rem 2rem 5rem;
  background: linear-gradient(168deg, var(--tc-light) 0%, var(--warm-white) 65%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: var(--tc); opacity: 0.16; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--tc); opacity: 0.1; pointer-events: none;
}

.hero-ornament {
  width: 150px; height: 150px; margin: 0 auto 2rem; position: relative;
}
.hero-ornament::before, .hero-ornament::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50% 0 50% 0; background: var(--tc);
}
.hero-ornament::before { opacity: 0.65; }
.hero-ornament::after  { transform: rotate(90deg); opacity: 0.35; }

.series-label {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}
.figurine-name {
  font-size: clamp(2.8rem, 7vw, 4.8rem); font-weight: 300;
  color: var(--dark); margin-bottom: 0.4rem; letter-spacing: 0.02em;
}
.sanskrit {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.1rem; color: var(--tc-dark); letter-spacing: 0.14em; margin-bottom: 0.5rem;
}
.theme-kicker {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3rem;
}
.blessing-box {
  max-width: 440px; text-align: left;
  border-left: 3px solid var(--tc);
  padding: 1.2rem 1.75rem;
  background: rgba(255,255,255,0.6);
  border-radius: 0 8px 8px 0;
}
.blessing-title {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--tc-dark); margin-bottom: 0.45rem; font-weight: 400;
}
.blessing-copy {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.2rem; color: var(--medium); line-height: 1.5; margin-bottom: 0;
}

/* ── Figurine shape (CSS visual, no image needed) ── */
.figurine-shape {
  width: 100px; height: 140px; border-radius: 50px 50px 40% 40% / 50px 50px 70px 70px;
  background: var(--tc);
  margin: 0 auto 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), inset 0 -8px 20px rgba(255,255,255,0.3);
  position: relative; opacity: 0.9;
}
.figurine-shape::after {
  content: ''; position: absolute;
  bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 10px; border-radius: 50%;
  background: rgba(0,0,0,0.06);
}

/* ── Content sections ── */
.section { padding: 5rem 0; }
.section.bg-cream { background: var(--cream); }
.section.bg-theme { background: var(--tc-light); }

.label {
  display: block; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--tc-dark); margin-bottom: 0.7rem; font-weight: 400;
}
.section h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 300;
  color: var(--dark); margin-bottom: 1.75rem;
}
.section p { font-size: 0.97rem; color: var(--medium); max-width: 640px; }

.pull-quote {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.35rem; color: var(--dark);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.5rem 0; margin: 2.5rem 0; line-height: 1.55;
}

/* ── Use / practice list ── */
.use-list { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.use-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  color: var(--medium); font-size: 0.95rem; line-height: 1.5;
}
.use-list li::before {
  content: ''; flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 3px;
  border-radius: 50% 0 50% 0; background: var(--tc); opacity: 0.75;
}

/* ── Resource gateway ── */
.resource-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; margin-top: 2.5rem;
}
.resource-card {
  display: block; background: white; border-radius: 8px;
  padding: 1.5rem; border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.resource-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.rc-icon  { font-size: 1.5rem; margin-bottom: 0.75rem; line-height: 1; }
.rc-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
  color: var(--dark); margin-bottom: 0.3rem;
}
.rc-desc  { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-bottom: 0; }

/* ── Related themes ── */
.related { padding: 5rem 0; background: var(--dark); text-align: center; }
.related .label { color: var(--tc); }
.related h2 { color: var(--warm-white); margin-bottom: 2.5rem; font-size: clamp(1.6rem,3.5vw,2.4rem); }
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(155px, 200px)); justify-content: center; gap: 0.85rem; }
.tc-card {
  display: block; border-radius: 8px; padding: 1.2rem; overflow: hidden;
  position: relative; transition: transform 0.2s, box-shadow 0.2s;
}
.tc-card::before {
  content: ''; position: absolute; inset: 0; background: var(--bg, #eee);
  opacity: 0.85; transition: opacity 0.2s;
}
a.tc-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }
a.tc-card:hover::before { opacity: 1; }
.tc-card > * { position: relative; z-index: 1; }
.tc-card-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; display: block; margin-bottom: 0.2rem; color: var(--dark); }
.tc-card-word { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: #46433a; display: block; }
.tc-card.current { border: 6px solid var(--hl, var(--tc)); }

.bg-punya   { --bg: #E4C67C; }
.bg-bodhi   { --bg: #B5DBBD; }
.bg-shanti  { --bg: #86CED8; }
.bg-maitri  { --bg: #E39AC1; }
.bg-karuna  { --bg: #D6CFC7; }
.bg-amrita  { --bg: #B5DBBD; }
.bg-abhaya  { --bg: #86CED8; }
.bg-santana { --bg: #E39AC1; }

/* ── Closing ── */
.closing { padding: 6rem 0; text-align: center; }
.closing-ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2.5rem;
}
.closing-ornament::before, .closing-ornament::after {
  content: ''; flex: 1; max-width: 80px; height: 1px; background: var(--tc);
}
.closing-ornament span {
  width: 8px; height: 8px; border-radius: 50% 0 50% 0; background: var(--tc); display: block;
}
.closing-text {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  color: var(--medium); max-width: 540px; margin: 0 auto; line-height: 1.65;
}

/* ── Footer ── */
.site-footer {
  padding: 2.5rem 2rem; text-align: center;
  border-top: 1px solid var(--border); background: var(--cream);
}
.site-footer p { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; list-style: none; }
.footer-links a { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--dark); }

/* ── Supporting pages ── */
.support-hero {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(168deg, var(--tc-light) 0%, var(--warm-white) 65%);
  text-align: center;
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2.5rem; transition: color 0.2s;
}
.back-link:hover { color: var(--dark); }
.back-link::before { content: '←'; font-style: normal; font-size: 0.9rem; }
.support-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; color: var(--dark); margin-bottom: 0.75rem; }
.sanskrit-script {
  font-family: 'Noto Serif Devanagari', serif;
  font-weight: 600;
  font-size: clamp(4rem, 10vw, 6.5rem);
  line-height: 1.2;
  color: var(--tc);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}
.support-hero .sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.1rem; color: var(--medium); }
.support-body { padding: 4rem 0; }
.support-body h2 { font-size: 1.65rem; color: var(--dark); font-weight: 300; margin: 2.75rem 0 1rem; }
.support-body h2:first-child { margin-top: 0; }
.support-body p { font-size: 0.95rem; color: var(--medium); max-width: 640px; }
.support-divider { width: 48px; height: 2px; background: var(--tc); margin: 3rem 0; }

.res-list { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.res-list li { padding: 1.25rem 1.5rem; background: var(--cream); border-radius: 6px; border-left: 3px solid var(--tc); }
.res-title { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--dark); display: block; margin-bottom: 0.2rem; }
.res-type  { font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--tc-dark); display: block; margin-bottom: 0.35rem; font-weight: 400; }
.res-desc  { font-size: 0.84rem; color: var(--muted); line-height: 1.5; margin-bottom: 0; }

/* ── Supporting page subnav ── */
.support-subnav {
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  margin-top: 1.75rem;
}
.support-subnav a {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: 20px;
  color: var(--muted); border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.support-subnav a:hover { background: var(--tc); color: var(--dark); border-color: var(--tc); }
.support-subnav a.active { background: var(--tc); color: var(--dark); border-color: var(--tc); font-weight: 400; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .container, .container-wide { padding: 0 1.25rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .section { padding: 3.5rem 0; }
  .site-header { padding: 1rem 1.25rem; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
  .resource-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
}
