/*
Theme Name: Somnechron
Theme URI: https://somnechron.ai
Description: Custom child theme for Somnechron AI Consulting — v2.0.2. Hard overrides for Kadence 1.4.x palette. Dark theme with gold accents applied via high-specificity CSS.
Author: Somnechron
Author URI: https://somnechron.ai
Template: kadence
Version: 2.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: somnechron
*/

/*
 * PARENT THEME: Requires Kadence (free).
 * Install from Appearance > Themes > Add New before activating.
 */

/* ════════════════════════════════════════
   BRAND VARIABLES
   ════════════════════════════════════════ */

:root {
  --sc-deep:        #06090f;
  --sc-card:        #0c1019;
  --sc-surface:     #111827;
  --sc-gold:        #c9a227;
  --sc-gold-warm:   #d4a843;
  --sc-gold-glow:   rgba(201, 162, 39, 0.15);
  --sc-gold-dim:    rgba(201, 162, 39, 0.08);
  --sc-text:        #e8e2d6;
  --sc-text-sec:    #9a9488;
  --sc-text-muted:  #5e5a52;
  --sc-border:      rgba(201, 162, 39, 0.12);
  --sc-border-solid:#1e2130;
  --sc-font-display: 'Cormorant Garamond', Georgia, serif;
  --sc-font-body:    'Outfit', system-ui, sans-serif;
  --sc-radius:      2px;
  --sc-transition:  0.3s ease;
}

/* ════════════════════════════════════════
   GLOBAL
   ════════════════════════════════════════ */

/* ── Kadence hard overrides ──
   Kadence applies its palette via inline CSS variables and its own
   selectors. These rules use !important to force the Somnechron
   dark palette regardless of Kadence's Customizer state. */

:root,
body,
html {
  --global-palette1: #c9a227 !important;
  --global-palette2: #d4a843 !important;
  --global-palette3: #e8e2d6 !important;
  --global-palette4: #9a9488 !important;
  --global-palette5: #5e5a52 !important;
  --global-palette6: #3d3a35 !important;
  --global-palette7: #111827 !important;
  --global-palette8: #0c1019 !important;
  --global-palette9: #06090f !important;
}

body,
body.flavor,
body.flavor-flavor,
.site {
  background-color: #06090f !important;
  background: #06090f !important;
  color: #e8e2d6 !important;
  font-family: 'Outfit', system-ui, sans-serif !important;
  font-weight: 300 !important;
  line-height: 1.7 !important;
}

.site-container,
.site-inner,
.content-wrap,
.entry-content-wrap,
.site-main {
  background-color: transparent !important;
  background: transparent !important;
}

.content-area,
.site-content {
  background: transparent !important;
}

/* Content backgrounds — Kadence wraps content in .content-bg */
.content-bg,
.site-container .content-bg {
  background: transparent !important;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.kadence-page-title h1,
.wp-block-heading {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  color: #e8e2d6 !important;
}

p,
.entry-content p,
.entry-content,
.entry-summary,
li,
td,
th {
  color: #9a9488 !important;
}

a,
a:visited,
.entry-content a,
.entry-content a:visited {
  color: #c9a227 !important;
  transition: color 0.3s ease;
}

a:hover,
a:focus,
.entry-content a:hover,
.entry-content a:focus {
  color: #d4a843 !important;
}

/* Kadence header */
.site-header,
#masthead,
.site-header-wrap,
header.site-header,
.site-header-row-container-inner {
  background: rgba(6, 9, 15, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.12) !important;
}

.site-header a,
.header-navigation a,
.site-header .main-navigation a,
.header-menu-container a,
.nav--toggle-sub a,
#masthead a {
  color: #9a9488 !important;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header a:hover,
.header-navigation a:hover,
#masthead a:hover {
  color: #c9a227 !important;
}

.site-branding .site-title,
.site-branding .site-title a,
.custom-logo-link {
  color: #e8e2d6 !important;
}

/* Kadence footer */
.site-footer,
#colophon,
footer.site-footer,
.site-footer-wrap,
.footer-widget-area {
  background: #06090f !important;
  border-top: 1px solid rgba(201, 162, 39, 0.12) !important;
  color: #5e5a52 !important;
}

.site-footer a,
#colophon a {
  color: #5e5a52 !important;
}

.site-footer a:hover,
#colophon a:hover {
  color: #c9a227 !important;
}

/* Kadence buttons */
.wp-block-button__link,
.button,
button,
input[type="submit"],
.entry-content .wp-block-button__link {
  background-color: #c9a227 !important;
  color: #06090f !important;
  font-family: 'Outfit', system-ui, sans-serif !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 2px !important;
}

.wp-block-button__link:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  background-color: #d4a843 !important;
  color: #06090f !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: #e8e2d6 !important;
  border: 1px solid rgba(201, 162, 39, 0.12) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: #c9a227 !important;
  color: #c9a227 !important;
}

/* Kadence sidebar and widget areas */
.widget-area,
.sidebar,
.primary-sidebar {
  background: transparent !important;
  color: #9a9488 !important;
}

/* Block editor content area colors */
.entry-content,
.entry-content > *,
.wp-block-group,
.wp-block-columns,
.wp-block-column {
  color: inherit;
}

/* Kadence separator / HR */
.wp-block-separator,
hr {
  border-color: rgba(201, 162, 39, 0.12) !important;
  opacity: 1;
}

/* ════════════════════════════════════════
   BRANDED BUTTONS (shortcode/component use)
   ════════════════════════════════════════ */

.sc-btn-secondary {
  background: transparent;
  color: var(--sc-text);
  border: 1px solid var(--sc-border);
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--sc-radius);
  transition: all var(--sc-transition);
  display: inline-block;
}

.sc-btn-secondary:hover {
  border-color: var(--sc-gold);
  color: var(--sc-gold);
}

/* ════════════════════════════════════════
   HEADER / NAV — additional refinements
   (base overrides handled in Global section above)
   ════════════════════════════════════════ */

/* ════════════════════════════════════════
   SECTION & TYPOGRAPHY
   ════════════════════════════════════════ */

.sc-section { padding: 6rem 0; }

.sc-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sc-gold);
  margin-bottom: 1rem;
}

.sc-section-title {
  font-family: var(--sc-font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* ════════════════════════════════════════
   BASE CARD
   ════════════════════════════════════════ */

.sc-card {
  background: var(--sc-card);
  border: 1px solid var(--sc-border);
  padding: 2.2rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  border-radius: var(--sc-radius);
}

.sc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sc-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.sc-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-3px);
}

.sc-card:hover::before { opacity: 1; }

/* ════════════════════════════════════════
   v2.0: PILLAR CARDS (CAiO 5 pillars)
   ════════════════════════════════════════ */

.sc-pillar-card {
  background: var(--sc-card);
  border: 1px solid var(--sc-border);
  border-left: 3px solid var(--sc-gold);
  padding: 1.8rem 2rem;
  margin-bottom: 1.25rem;
  transition: all var(--sc-transition);
  border-radius: var(--sc-radius);
}

.sc-pillar-card:hover {
  border-left-color: var(--sc-gold-warm);
  background: var(--sc-surface);
}

.sc-pillar-number {
  font-family: var(--sc-font-display);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(201, 162, 39, 0.25);
  float: left;
  margin-right: 1.2rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.sc-pillar-title {
  font-family: var(--sc-font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--sc-text);
  margin-bottom: 0.4rem;
}

.sc-pillar-desc {
  font-size: 0.9rem;
  color: var(--sc-text-sec);
  line-height: 1.6;
  clear: both;
}

/* ════════════════════════════════════════
   v2.0: DIMENSION CARDS (6-dim assessment)
   ════════════════════════════════════════ */

.sc-dimension-card {
  background: var(--sc-card);
  border: 1px solid var(--sc-border);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1rem;
  border-radius: var(--sc-radius);
  transition: all var(--sc-transition);
}

.sc-dimension-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
}

.sc-dimension-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.sc-dimension-num {
  font-family: var(--sc-font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--sc-gold);
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sc-border);
  flex-shrink: 0;
}

.sc-dimension-title {
  font-family: var(--sc-font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--sc-text);
  margin: 0;
}

.sc-dimension-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc-dimension-list li {
  font-size: 0.88rem;
  color: var(--sc-text-sec);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.sc-dimension-list li::before {
  content: '\25C6';
  color: var(--sc-gold);
  font-size: 0.5rem;
  position: absolute;
  left: 0;
  top: 0.55rem;
}

/* ════════════════════════════════════════
   v2.0: TIER CARDS (CAiO engagement tiers)
   ════════════════════════════════════════ */

.sc-tier-card {
  background: var(--sc-card);
  border: 1px solid var(--sc-border);
  padding: 2rem;
  margin-bottom: 1.25rem;
  border-radius: var(--sc-radius);
  position: relative;
  transition: all var(--sc-transition);
}

.sc-tier-card:hover {
  border-color: rgba(201, 162, 39, 0.25);
}

.sc-tier-card[data-tier="1"] { border-top: 3px solid var(--sc-gold); }
.sc-tier-card[data-tier="2"] { border-top: 3px solid var(--sc-text-sec); }
.sc-tier-card[data-tier="3"] { border-top: 3px solid var(--sc-text-muted); }

.sc-tier-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sc-gold);
  margin-bottom: 0.75rem;
}

.sc-tier-title {
  font-family: var(--sc-font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--sc-text);
  margin-bottom: 0.5rem;
}

.sc-tier-desc {
  font-size: 0.9rem;
  color: var(--sc-text-sec);
  margin-bottom: 0.75rem;
}

.sc-tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc-tier-list li {
  font-size: 0.85rem;
  color: var(--sc-text-sec);
  padding: 0.35rem 0;
  padding-left: 1.2rem;
  position: relative;
  border-bottom: 1px solid var(--sc-border);
}

.sc-tier-list li:last-child { border-bottom: none; }

.sc-tier-list li::before {
  content: '\2014';
  color: var(--sc-gold);
  position: absolute;
  left: 0;
}

/* ════════════════════════════════════════
   v2.0: FRAMEWORK REFERENCE BLOCKS
   ════════════════════════════════════════ */

.sc-framework-ref {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  background: var(--sc-gold-dim);
  border-left: 2px solid rgba(201, 162, 39, 0.3);
  margin: 1.25rem 0;
  border-radius: var(--sc-radius);
}

.sc-fw-icon {
  color: var(--sc-gold);
  font-size: 0.7rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.sc-fw-text {
  font-size: 0.9rem;
  color: var(--sc-text);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.sc-fw-source {
  font-size: 0.78rem;
  color: var(--sc-text-muted);
  font-style: italic;
}

/* ════════════════════════════════════════
   v2.0: PROCESS STEPS
   ════════════════════════════════════════ */

.sc-process-step {
  position: relative;
  padding: 1.5rem 0 1.5rem 4rem;
  border-bottom: 1px solid var(--sc-border);
}

.sc-process-step:last-child { border-bottom: none; }

.sc-step-num {
  font-family: var(--sc-font-display);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(201, 162, 39, 0.2);
  position: absolute;
  left: 0;
  top: 1.3rem;
}

.sc-step-title {
  font-family: var(--sc-font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--sc-text);
  margin-bottom: 0.3rem;
}

.sc-step-desc {
  font-size: 0.9rem;
  color: var(--sc-text-sec);
  line-height: 1.6;
}

/* ════════════════════════════════════════
   v2.0: STATS
   ════════════════════════════════════════ */

.sc-stat {
  text-align: center;
  padding: 1.5rem 1rem;
}

.sc-stat-number {
  font-family: var(--sc-font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--sc-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.sc-stat-label {
  font-size: 0.8rem;
  color: var(--sc-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   v2.0: MATURITY GAUGE
   ════════════════════════════════════════ */

.sc-maturity-gauge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

.sc-gauge-pips {
  display: flex;
  gap: 0.4rem;
}

.sc-gauge-pip {
  width: 2rem;
  height: 0.4rem;
  background: var(--sc-border-solid);
  border-radius: 2px;
  transition: background var(--sc-transition);
}

.sc-gauge-pip.active {
  background: var(--sc-gold);
  box-shadow: 0 0 6px rgba(201, 162, 39, 0.3);
}

.sc-gauge-label {
  font-size: 0.78rem;
  color: var(--sc-text-muted);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════
   CTA BLOCK
   ════════════════════════════════════════ */

.sc-cta-block {
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
}

.sc-cta-block::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--sc-gold-dim), transparent 60%);
  pointer-events: none;
}

.sc-cta-body {
  font-size: 1rem;
  color: var(--sc-text-sec);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ════════════════════════════════════════
   FOOTER — additional refinements
   (base overrides handled in Global section above)
   ════════════════════════════════════════ */

/* ════════════════════════════════════════
   BLOG / POSTS — additional refinements
   ════════════════════════════════════════ */

.entry-title {
  font-weight: 400 !important;
}

.entry-content {
  line-height: 1.8 !important;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #e8e2d6 !important;
  margin-top: 2rem;
}

/* ════════════════════════════════════════
   SCROLL ANIMATIONS
   ════════════════════════════════════════ */

.sc-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.sc-animate.sc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════ */

.sc-gold { color: var(--sc-gold); }
.sc-bg-card { background: var(--sc-card); }
.sc-bg-surface { background: var(--sc-surface); }
.sc-border-gold { border: 1px solid var(--sc-border); }
.sc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.sc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sc-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 768px) {
  .sc-grid-2, .sc-grid-3, .sc-grid-4 { grid-template-columns: 1fr; }
}
