/*
Theme Name:  eClinton Ecosystem
Theme URI:   https://eclinton.com
Author:      eClinton
Author URI:  https://eclinton.com
Description: The eClinton Ecosystem — a dark cosmic sky where the Sun is the eClinton brand, a crescent Moon is eClinton Media, and glowing Stars are every product subdomain. Names are always visible beneath each star and everything expands on hover.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eclinton-ecosystem
Tags:        dark, full-width-template, custom-menu, custom-logo, featured-images, translation-ready
*/

/* =============================================================
   CSS VARIABLES
   ============================================================= */
:root {
  --sky:          #020510;
  --sky-mid:      #030818;
  --sky-far:      #0a1230;
  --gold:         #f4c842;
  --gold-glow:    rgba(244,200,66,0.5);
  --silver:       #c8d8f0;
  --star:         #a0c4ff;
  --muted:        rgba(160,196,255,0.38);
  --border:       rgba(160,196,255,0.07);
  --spring:       cubic-bezier(0.34,1.56,0.64,1);
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--sky);
  font-family: 'Rajdhani', sans-serif;
  color: var(--silver);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: var(--star); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* =============================================================
   CUSTOM CURSOR
   ============================================================= */
.eco-cursor {
  position: fixed;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .18s, height .18s, background .18s, box-shadow .18s;
  box-shadow: 0 0 10px 3px rgba(255,255,255,0.38);
  will-change: left, top;
}
.eco-cursor.on {
  width: 24px; height: 24px;
  background: rgba(244,200,66,0.88);
  box-shadow: 0 0 20px 8px rgba(244,200,66,0.52);
}

/* =============================================================
   SKY CANVAS + NEBULAE
   ============================================================= */
#eco-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.eco-nebula {
  position: fixed; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 1;
}
.eco-nebula-a { width:500px;height:250px;background:rgba(20,40,110,.28);top:5%;left:3%; }
.eco-nebula-b { width:380px;height:380px;background:rgba(55,18,80,.18);top:35%;right:5%; }
.eco-nebula-c { width:700px;height:180px;background:rgba(10,28,70,.22);bottom:18%;left:15%; }

.eco-bg-stars { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

/* =============================================================
   SITE HEADER
   ============================================================= */
.site-header {
  position: fixed; top:0; left:0; right:0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(2,5,16,.93) 0%, transparent 100%);
}
.site-branding { display: flex; align-items: center; gap: 11px; }
.eco-logo {
  width: 32px; height: 32px; border-radius: 50%; object-fit: contain;
  filter: drop-shadow(0 0 5px var(--gold-glow));
}
.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; letter-spacing: 5px; text-transform: uppercase;
  color: rgba(200,216,240,.72); font-weight: 400;
}
.site-title a { color: inherit; }

.primary-navigation ul  { list-style: none; display: flex; gap: 34px; }
.primary-navigation a   { font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(200,216,240,.44); transition: color .3s; }
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { color: var(--gold); }

.eco-menu-btn {
  display: none; background: none;
  border: 1px solid rgba(160,196,255,.2);
  color: var(--silver); padding: 7px 15px;
  font: .7rem/1 'Rajdhani', sans-serif;
  letter-spacing: 3px; text-transform: uppercase;
  cursor: none; transition: all .3s;
}
.eco-menu-btn:hover { border-color: var(--gold); color: var(--gold); }

/* =============================================================
   HERO — COSMIC SKY
   ============================================================= */
.eco-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; overflow: hidden;
}

/* ── SUN ── */
.eco-sun {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff6d0, #f4c842 38%, #e8900a 75%, #bf4e00);
  box-shadow:
    0 0 25px 12px rgba(244,200,66,.55),
    0 0 70px  35px rgba(244,150,20,.28),
    0 0 140px 70px rgba(200,100,10,.13);
  z-index: 20; cursor: none;
  transition: all .5s var(--spring);
}
.eco-sun::before {
  content: ''; position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,200,66,.25) 0%, transparent 70%);
  animation: eco-pulse 4s ease-in-out infinite;
}
.eco-sun:hover {
  width: 140px; height: 140px;
  margin-top: -20px; margin-left: -20px;
  box-shadow:
    0 0 55px 28px rgba(244,200,66,.75),
    0 0 120px 60px rgba(244,150,20,.50),
    0 0 240px 120px rgba(200,100,10,.22);
}
.eco-sun__logo {
  position: absolute; inset: 16px; border-radius: 50%;
  object-fit: contain; mix-blend-mode: overlay; opacity: .85;
}

.eco-sun-label {
  position: absolute; top: calc(12% + 118px); left: 50%;
  transform: translateX(-50%); text-align: center;
  pointer-events: none; z-index: 20;
}
.eco-sun-label__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 300; letter-spacing: 8px;
  color: var(--gold); text-shadow: 0 0 35px rgba(244,200,66,.8);
}
.eco-sun-label__sub {
  font-size: .65rem; letter-spacing: 5px; text-transform: uppercase;
  color: rgba(244,200,66,.44); margin-top: 6px;
}

/* ── CRESCENT MOON (SVG — geometry-based, no background matching needed) ── */
.eco-moon-wrap {
  position: absolute; top: 8%; right: 10%;
  z-index: 20; display: flex; flex-direction: column; align-items: center;
  cursor: none; text-decoration: none;
  transition: transform .5s var(--spring);
}
.eco-moon-wrap:hover { transform: scale(1.45); }

.eco-moon-svg {
  width: 70px; height: 70px; overflow: visible;
  filter:
    drop-shadow(0 0 10px rgba(200,216,240,.5))
    drop-shadow(0 0 28px rgba(180,200,240,.22));
  transition: filter .5s var(--spring);
}
.eco-moon-wrap:hover .eco-moon-svg {
  filter:
    drop-shadow(0 0 22px rgba(200,216,240,.88))
    drop-shadow(0 0 65px rgba(180,200,240,.52));
}

/* ── ALWAYS-VISIBLE STAR LABELS ── */
.eco-star-tag {
  display: block; margin-top: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-size: .58rem; letter-spacing: 3px; text-transform: uppercase;
  white-space: nowrap; pointer-events: none;
  transition: letter-spacing .32s, color .32s, text-shadow .32s;
}
/* Moon tag colours */
.eco-moon-wrap .eco-star-tag {
  color: rgba(200,216,240,.52);
  text-shadow: 0 0 10px rgba(200,216,240,.28);
}
.eco-moon-wrap:hover .eco-star-tag {
  color: rgba(220,235,255,.96);
  letter-spacing: 5px;
  text-shadow: 0 0 18px rgba(200,216,240,.72);
}

/* ── PRODUCT STAR WRAPS ── */
.eco-stars-field { position: absolute; inset: 0; z-index: 15; pointer-events: none; }

.eco-star-wrap {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  cursor: none; pointer-events: all; z-index: 15;
}
.eco-star-ball {
  border-radius: 50%; flex-shrink: 0;
  transition:
    width  0.4s cubic-bezier(0.34,1.56,0.64,1),
    height 0.4s cubic-bezier(0.34,1.56,0.64,1),
    margin 0.4s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.4s ease;
}

/* ── SCROLL HINT ── */
.eco-hint {
  position: absolute; bottom: 50px; left: 0; right: 0;
  text-align: center; z-index: 20; pointer-events: none;
}
.eco-hint p {
  font-size: .75rem; letter-spacing: 6px; text-transform: uppercase;
  color: rgba(160,196,255,.75);
  text-shadow: 0 0 20px rgba(160,196,255,.6), 0 0 40px rgba(160,196,255,.3);
  animation: eco-float 6s ease-in-out infinite;
}

/* =============================================================
   PRODUCTS SECTION
   ============================================================= */
.eco-products {
  position: relative; z-index: 10; padding: 100px 24px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(4,7,22,.97) 14%,
    rgba(4,7,22,.97) 86%,
    transparent 100%);
}
.eco-section-head { text-align: center; margin-bottom: 55px; }
.eco-section-head__eye  { font-size: .62rem; letter-spacing: 7px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eco-section-head__title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; letter-spacing: 4px; color: var(--silver); }

.eco-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2px; max-width: 1100px; margin: 0 auto;
}
.eco-card {
  background: rgba(8,12,38,.6); border: 1px solid var(--border);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: background .38s, border-color .38s; cursor: none;
}
.eco-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 2px; height: 0; background: var(--star); transition: height .38s;
}
.eco-card:hover::before { height: 100%; }
.eco-card:hover { background: rgba(12,22,58,.82); border-color: rgba(160,196,255,.18); }

.eco-card__dot {
  width: 9px; height: 9px; border-radius: 50%; margin-bottom: 20px;
  transition: width .3s, height .3s, box-shadow .3s;
}
.eco-card:hover .eco-card__dot { width: 14px; height: 14px; }
.eco-card__name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--silver); margin-bottom: 5px; letter-spacing: 2px; }
.eco-card__url  { font-size: .6rem; letter-spacing: 3px; color: rgba(160,196,255,.34); margin-bottom: 15px; }
.eco-card__desc { font-size: .82rem; line-height: 1.88; color: rgba(180,200,240,.44); }
.eco-card__link {
  display: inline-block; margin-top: 18px; font-size: .6rem;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(160,196,255,.36);
  border-bottom: 1px solid rgba(160,196,255,.14); padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.eco-card__link:hover { color: var(--star); border-color: var(--star); }

/* =============================================================
   ABOUT / CTA
   ============================================================= */
.eco-about {
  padding: 90px 30px; max-width: 860px; margin: 0 auto; text-align: center;
}
.eco-about p {
  font-family: 'Cormorant Garamond', serif; font-size: 1.45rem;
  font-weight: 300; line-height: 1.85; color: rgba(200,216,240,.48);
}
.eco-about strong { color: var(--silver); font-weight: 400; }

.eco-cta { padding: 90px 30px; text-align: center; position: relative; z-index: 20; background: rgba(4,7,22,.6); }
.eco-btn {
  display: inline-block; padding: 14px 46px;
  border: 1px solid rgba(160,196,255,.6);
  font: .7rem/1 'Rajdhani', sans-serif;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--star); cursor: none;
  transition: color .3s, background .3s, border-color .3s;
  position: relative; overflow: hidden;
  z-index: 20;
  background: rgba(4,7,22,.5);
}
.eco-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--star); transform: scaleX(0);
  transform-origin: left; transition: transform .38s; z-index: -1;
}
.eco-btn:hover { color: var(--sky); border-color: var(--star); }
.eco-btn:hover::before { transform: scaleX(1); }

/* =============================================================
   STANDARD WP CONTENT
   ============================================================= */
.entry-header { padding: 148px 30px 46px; max-width: 860px; margin: 0 auto; }
.entry-title  { font-family: 'Cormorant Garamond', serif; font-size: 2.7rem; font-weight: 300; letter-spacing: 4px; color: var(--silver); line-height: 1.22; }
.entry-meta   { font-size: .6rem; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.entry-content { max-width: 760px; margin: 0 auto; padding: 34px 30px 68px; font-size: .97rem; line-height: 1.96; color: rgba(200,216,240,.54); }
.entry-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.72rem; font-weight: 400; color: var(--silver); letter-spacing: 2px; margin: 34px 0 13px; }
.entry-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.24rem; font-weight: 400; color: var(--silver); letter-spacing: 2px; margin: 28px 0 11px; }
.entry-content p  { margin-bottom: 20px; }
.entry-content blockquote { border-left: 2px solid var(--star); padding: 6px 22px; margin: 26px 0; font-family: 'Cormorant Garamond', serif; font-size: 1.12rem; color: rgba(200,216,240,.47); font-style: italic; }

/* =============================================================
   SITE FOOTER
   ============================================================= */
.site-footer {
  position: relative; z-index: 10; padding: 48px 28px; text-align: center;
  border-top: 1px solid rgba(160,196,255,.05);
}
.eco-footer-cols { display: flex; justify-content: center; gap: 46px; margin-bottom: 34px; flex-wrap: wrap; }
.eco-footer-col h4 { font-size: .58rem; letter-spacing: 5px; text-transform: uppercase; color: var(--muted); margin-bottom: 15px; }
.eco-footer-col ul { list-style: none; }
.eco-footer-col li { margin-bottom: 8px; }
.eco-footer-col a  { font-size: .76rem; letter-spacing: 1px; color: rgba(200,216,240,.3); transition: color .3s; }
.eco-footer-col a:hover { color: var(--star); }
.eco-footer-copy { font-size: .56rem; letter-spacing: 4px; color: rgba(160,196,255,.15); text-transform: uppercase; }

/* =============================================================
   WIDGETS / COMMENTS / PAGINATION
   ============================================================= */
.widget-area  { padding: 48px 28px; border-top: 1px solid var(--border); }
.widget-title { font-size: .6rem; letter-spacing: 5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.comments-area { max-width: 760px; margin: 0 auto; padding: 34px 30px; }
.comments-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; letter-spacing: 3px; color: var(--silver); margin-bottom: 34px; }
.comment-form input,
.comment-form textarea {
  background: rgba(10,15,42,.82); border: 1px solid var(--border);
  color: var(--silver); padding: 11px 15px; width: 100%; margin-bottom: 13px;
  font: .88rem/1.5 'Rajdhani', sans-serif; letter-spacing: 1px; outline: none;
  transition: border-color .3s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: rgba(160,196,255,.28); }
.comment-form .submit {
  background: transparent; border: 1px solid rgba(160,196,255,.22);
  color: var(--star); padding: 10px 34px;
  font: .67rem/1 'Rajdhani', sans-serif; letter-spacing: 4px; text-transform: uppercase;
  cursor: none; transition: all .3s;
}
.comment-form .submit:hover { background: var(--star); color: var(--sky); }
.nav-links .page-numbers {
  display: inline-block; padding: 7px 13px; font-size: .66rem;
  letter-spacing: 2px; color: var(--muted);
  border: 1px solid var(--border); transition: all .3s;
}
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current { border-color: rgba(160,196,255,.28); color: var(--star); }

/* =============================================================
   KEYFRAMES
   ============================================================= */
@keyframes eco-pulse   { 0%,100%{transform:scale(1);opacity:.5}    50%{transform:scale(1.25);opacity:.83} }
@keyframes eco-twinkle { 0%,100%{opacity:.34;transform:scale(1)}   50%{opacity:1;transform:scale(1.32)}   }
@keyframes eco-float   { 0%,100%{opacity:.26;transform:translateY(0)} 50%{opacity:.54;transform:translateY(-7px)} }
@keyframes eco-shoot   { 0%{transform:translateX(0) translateY(0) rotate(-28deg);opacity:1;width:2px} 100%{transform:translateX(-380px) translateY(228px) rotate(-28deg);opacity:0;width:96px} }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  .site-header { padding: 14px 18px; }
  .primary-navigation { display: none; }
  .primary-navigation.open {
    display: flex; flex-direction: column;
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(2,5,16,.97); padding: 22px;
    border-top: 1px solid var(--border);
  }
  .primary-navigation.open ul { flex-direction: column; gap: 16px; }
  .eco-menu-btn { display: block; }
  .eco-sun { width: 80px; height: 80px; }
  .eco-sun:hover { width: 112px; height: 112px; }
  .eco-sun-label { top: calc(12% + 94px); }
  .eco-sun-label__name { font-size: 1.85rem; letter-spacing: 5px; }
  .eco-moon-wrap { top: 7%; right: 7%; }
  .eco-moon-svg  { width: 54px; height: 54px; }
  .eco-products  { padding: 68px 16px; }
  .entry-header, .entry-content, .comments-area { padding-left: 18px; padding-right: 18px; }
  .eco-footer-cols { flex-direction: column; align-items: center; gap: 26px; }
  .site-footer { padding: 34px 18px; }
}
