/*
Theme Name: RuneHealing — Бережная Эзотерика
Theme URI: https://runehealing.ru
Author: RuneHealing Team
Description: Легкая SEO-тема для портала runehealing.ru в эстетике «Скандинавский велнес и бережная мистика».
Version: 1.0.8
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: runehealing
*/

:root {
  --rh-bg: #F7F5F0;
  --rh-surface: #FFFFFF;
  --rh-border: #E6E1D6;
  --rh-altar: #152925;
  --rh-altar-elevated: #1D3732;
  --rh-altar-border: #2D4D46;
  --rh-gold: #C49B57;
  --rh-gold-hover: #B08642;
  --rh-gold-soft: rgba(196, 155, 87, 0.14);
  --rh-sage: #5E7870;
  --rh-sage-soft: rgba(94, 120, 112, 0.14);
  --rh-terracotta: #B56556;
  --rh-text: #1E2422;
  --rh-text-muted: #5C6662;
  --rh-text-on-dark: #F7F5F0;
  --rh-text-on-dark-muted: #B6C4BF;
  --rh-font-serif: 'Cormorant Garamond', Georgia, serif;
  --rh-font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --rh-radius-card: 16px;
  --rh-radius-lg: 24px;
  --rh-radius-pill: 999px;
  --rh-container: 1200px;
  --rh-reading: 740px;
  --rh-transition: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rh-bg);
  color: var(--rh-text);
  font-family: var(--rh-font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: all var(--rh-transition); }
h1, h2, h3, h4 { font-family: var(--rh-font-serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
p { margin: 0 0 1.1rem; }

.rh-container { width: 100%; max-width: var(--rh-container); margin: 0 auto; padding: 0 20px; }
.rh-reading { width: 100%; max-width: var(--rh-reading); margin: 0 auto; }
.rh-section { padding: 52px 0; }
.rh-section-sm { padding: 28px 0; }
.rh-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.rh-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--rh-gold); margin-bottom: 6px; }

/* Buttons & Cards */
.rh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--rh-radius-pill); font-size: 0.92rem;
  font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all var(--rh-transition);
}
.rh-btn-gold { background: var(--rh-gold); color: var(--rh-altar); }
.rh-btn-gold:hover { background: var(--rh-gold-hover); transform: translateY(-1px); }
.rh-btn-dark { background: var(--rh-altar); color: var(--rh-text-on-dark); }
.rh-btn-outline { background: transparent; border-color: var(--rh-border); color: var(--rh-text); }
.rh-btn-outline:hover { border-color: var(--rh-gold); color: var(--rh-gold-hover); }
.rh-btn-sm { padding: 8px 16px; font-size: 0.84rem; }

.rh-badge {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--rh-radius-pill);
  font-size: 0.78rem; font-weight: 600; background: var(--rh-sage-soft); color: var(--rh-sage);
}
.rh-badge-gold { background: var(--rh-gold-soft); color: #8F6B2D; }
.rh-badge-dark { background: rgba(255,255,255,0.1); color: var(--rh-gold); }

.rh-card {
  background: var(--rh-surface); border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius-card); padding: 24px; transition: all var(--rh-transition);
}
.rh-card-interactive:hover {
  border-color: var(--rh-gold); transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(21, 41, 37, 0.06);
}

/* Header */
.rh-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247, 245, 240, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rh-border);
}
.rh-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.rh-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--rh-font-serif); font-size: 1.55rem; font-weight: 700; color: var(--rh-altar); }
.rh-logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--rh-altar);
  color: var(--rh-gold); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.rh-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 24px; }
.rh-nav a { font-size: 0.94rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.rh-nav a:hover { border-bottom-color: var(--rh-gold); }

/* Grids & Bento */
.rh-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rh-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rh-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rh-bento-flagship {
  grid-column: span 2; grid-row: span 2;
  background: radial-gradient(circle at top right, #23453E 0%, var(--rh-altar) 72%);
  color: var(--rh-text-on-dark); border: 1px solid var(--rh-altar-border);
  border-radius: var(--rh-radius-lg); padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.rh-bento-flagship h3 { color: var(--rh-text-on-dark); font-size: 1.9rem; }
.rh-bento-flagship p { color: var(--rh-text-on-dark-muted); }

/* Timeline & Callouts */
.rh-timeline { padding-left: 26px; margin: 20px 0 32px; border-left: 2px solid var(--rh-border); }
.rh-timeline-item { position: relative; padding-bottom: 20px; }
.rh-timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--rh-gold); border: 3px solid var(--rh-bg);
}
.rh-timeline-date { font-size: 0.82rem; font-weight: 700; color: var(--rh-gold-hover); text-transform: uppercase; }
.rh-callout-warning {
  background: var(--rh-surface); border: 1px solid var(--rh-border);
  border-left: 4px solid var(--rh-terracotta); border-radius: 12px; padding: 20px 24px; margin: 24px 0;
}
.rh-callout-healing {
  background: var(--rh-surface); border: 1.5px solid var(--rh-gold);
  border-radius: var(--rh-radius-card); padding: 24px; margin: 24px 0;
}

/* Footer & Mobile Bar */
.rh-footer { background: var(--rh-altar); color: var(--rh-text-on-dark); padding: 52px 0 36px; margin-top: 48px; }
.rh-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--rh-altar-border); }
.rh-footer h4 { color: var(--rh-gold); }
.rh-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rh-footer li a { color: var(--rh-text-on-dark-muted); font-size: 0.9rem; }
.rh-footer li a:hover { color: var(--rh-gold); }

.rh-mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--rh-border); padding: 8px 6px; justify-content: space-around;
}
.rh-mobile-tab { display: flex; flex-direction: column; align-items: center; font-size: 0.72rem; font-weight: 600; color: var(--rh-text-muted); }

@media (max-width: 960px) {
  .rh-bento, .rh-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  body { padding-bottom: 64px; }
  .rh-nav { display: none; }
  .rh-mobile-bar { display: flex; }
  .rh-grid-2, .rh-grid-3, .rh-bento, .rh-footer-grid { grid-template-columns: 1fr; }
  .rh-bento-flagship { grid-column: span 1; grid-row: span 1; }
}

/* Video Box & Backdrop Underlay (16:9 Responsive) */
.rh-video-box {
  margin: 36px 0 28px;
  background: var(--rh-surface);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius-lg);
  padding: 20px;
  box-shadow: 0 12px 30px rgba(21, 41, 37, 0.05);
}
.rh-video-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.rh-video-box-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rh-gold-hover);
}
.rh-video-box-source {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--rh-radius-pill);
  background: var(--rh-sage-soft);
  color: var(--rh-sage);
}
.rh-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--rh-radius-card);
  overflow: hidden;
  background: radial-gradient(circle at top right, #23453E 0%, var(--rh-altar) 75%);
  border: 1px solid var(--rh-altar-border);
}
.rh-video-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--rh-text-on-dark);
}
.rh-video-backdrop-glyph {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(196, 155, 87, 0.14);
  border: 1px solid rgba(196, 155, 87, 0.45);
  color: var(--rh-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 12px;
}
.rh-video-backdrop-title {
  font-family: var(--rh-font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rh-text-on-dark);
  margin-bottom: 6px;
}
.rh-video-backdrop-note {
  max-width: 440px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--rh-text-on-dark-muted);
}
.rh-video-embed {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.rh-video-embed iframe,
.rh-video-embed video,
.rh-video-embed .wp-video,
.rh-video-embed .mejs-container {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.rh-video-box-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--rh-text-muted);
}
.rh-video-direct-link {
  font-weight: 600;
  color: var(--rh-altar);
  border-bottom: 1px solid var(--rh-gold);
}
.rh-video-direct-link:hover {
  color: var(--rh-gold-hover);
}
@media (max-width: 600px) {
  .rh-video-box { padding: 14px; }
  .rh-video-backdrop { padding: 16px; }
  .rh-video-backdrop-note { font-size: 0.8rem; }
}

/* Original RuneHealing Blockquotes */
.rh-reading blockquote,
.wp-block-quote {
  position: relative;
  margin: 32px 0;
  padding: 28px 32px 26px 36px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FBF9F4 100%);
  border: 1px solid var(--rh-border);
  border-left: 4px solid var(--rh-gold);
  border-radius: 4px var(--rh-radius-card) var(--rh-radius-card) 4px;
  box-shadow: 0 10px 26px rgba(21, 41, 37, 0.045);
  font-family: var(--rh-font-serif);
  font-size: clamp(1.25rem, 2vw, 1.48rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--rh-altar);
}
.rh-reading blockquote::before,
.wp-block-quote::before {
  content: 'ᛟ';
  position: absolute;
  top: -14px;
  left: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rh-altar);
  color: var(--rh-gold);
  border: 1px solid var(--rh-gold);
  font-style: normal;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(21, 41, 37, 0.15);
}
.rh-reading blockquote::after,
.wp-block-quote::after {
  content: '”';
  position: absolute;
  right: 22px;
  bottom: -14px;
  font-family: var(--rh-font-serif);
  font-style: normal;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--rh-gold);
  opacity: 0.22;
  pointer-events: none;
}
.rh-reading blockquote p {
  margin: 0 0 12px;
}
.rh-reading blockquote p:last-of-type {
  margin-bottom: 0;
}
.rh-reading blockquote cite,
.wp-block-quote cite {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--rh-font-sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rh-sage);
}
.rh-reading blockquote cite::before,
.wp-block-quote cite::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--rh-gold);
}

/* Pinned Service Cards in Horoscopes Archive */
.rh-service-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF6EE 100%);
  border: 1.5px solid rgba(196, 155, 87, 0.55);
}
.rh-service-card:hover {
  border-color: var(--rh-gold);
}
