/* RetroMental — Global Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
  --bg:      #0D0D0D;
  --surface: #161616;
  --border:  #2a2a2a;
  --text:    #FFFFFF;
  --muted:   #888888;
  --primary: #00ADAD;
  --accent:  #F4A0B0;
  --survive: #FF6B6B;
  --strive:  #00ADAD;
  --thrive:  #FFB800;
  --radius:  12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--primary);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1rem; color: var(--muted); }
.mobile-nav a:hover { color: var(--text); }
.mob-cta {
  margin-top: 0.5rem;
  background: var(--primary);
  color: var(--bg);
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-align: center;
}

/* ── PAGE HEADER ── */
.page-hdr {
  text-align: center;
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}
.page-eye {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-sub { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── SECTION ── */
.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }

/* ── BUTTONS ── */
.btn-p {
  display: inline-block;
  background: var(--primary);
  color: var(--bg);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  transition: opacity .2s;
  font-size: 0.9rem;
}
.btn-p:hover { opacity: 0.85; }

.btn-g {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  transition: border-color .2s;
  font-size: 0.9rem;
}
.btn-g:hover { border-color: var(--primary); }

/* ── BLOG GRID ── */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tag-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tag-btn:hover { border-color: var(--primary); color: var(--primary); }
.tag-btn.active { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.tag-btn.survive.active { background: var(--survive); border-color: var(--survive); }
.tag-btn.strive.active  { background: var(--strive);  border-color: var(--strive); }
.tag-btn.thrive.active  { background: var(--thrive);  border-color: var(--thrive); color: #000; }

.blog-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
.blog-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  width: 180px;
}
.blog-search input::placeholder { color: var(--muted); }

#blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.bcard {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
  cursor: pointer;
}
.bcard:hover { transform: translateY(-4px); border-color: var(--primary); }

.bcard-img {
  height: 200px;
  background-color: var(--border);
  overflow: hidden;
  position: relative;
}
.bcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bcard-body { padding: 1.2rem; }
.bcard-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.bcard-tag.survive { background: rgba(255,107,107,0.15); color: var(--survive); }
.bcard-tag.strive  { background: rgba(0,173,173,0.15);   color: var(--strive); }
.bcard-tag.thrive  { background: rgba(255,184,0,0.15);   color: var(--thrive); }
.bcard-tag.general { background: rgba(136,136,136,0.15); color: var(--muted); }

.bcard-date { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem; }
.bcard-title { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.5rem; }
.bcard-exc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.blog-empty { text-align: center; color: var(--muted); padding: 4rem 0; }
.load-more { text-align: center; margin-top: 2.5rem; }

/* ── ART GALLERY ── */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.art-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s;
}
.art-card:hover { transform: translateY(-4px); }
.art-card img { width: 100%; height: 260px; object-fit: cover; }
.art-info { padding: 1.2rem; }
.art-phase {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 0.4rem;
}
.art-phase.survive { color: var(--survive); }
.art-phase.strive  { color: var(--strive); }
.art-phase.thrive  { color: var(--thrive); }
.art-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.art-desc  { font-size: 0.85rem; color: var(--muted); }

/* ── POST READER ── */
.post-container { max-width: 720px; margin: 0 auto; padding: 3rem 2rem 6rem; }
.post-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.post-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.post-tag.survive { color: var(--survive); }
.post-tag.strive  { color: var(--strive); }
.post-tag.thrive  { color: var(--thrive); }
.post-date { font-size: 0.8rem; color: var(--muted); }
.post-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.post-feature-img {
  width: 100%; height: 400px; object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}
.post-body { font-size: 1.1rem; line-height: 1.85; color: #e0e0e0; }
.post-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--text); }
.post-body h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: var(--text); }
.post-body p  { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { margin: 1rem 0 1rem 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  color: var(--muted);
  font-style: italic;
}
.post-body img { border-radius: var(--radius); margin: 1.5rem 0; max-width: 100%; }
.post-back { margin-bottom: 2rem; }
.post-back a { color: var(--muted); font-size: 0.9rem; transition: color .2s; }
.post-back a:hover { color: var(--primary); }

/* ── PHASE CARDS ── */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.phase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .2s;
}
.phase-card:hover { border-color: var(--primary); }
.phase-num { font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1rem; }
.phase-card h2 { font-family: 'DM Serif Display', serif; font-size: 1.8rem; margin-bottom: 0.75rem; }
.phase-card p  { color: var(--muted); line-height: 1.6; }
.phase-card.survive { border-top: 3px solid var(--survive); }
.phase-card.strive  { border-top: 3px solid var(--strive); }
.phase-card.thrive  { border-top: 3px solid var(--thrive); }

/* ── ENERGY METER ── */
.energy-grid { display: grid; gap: 1rem; }
.energy-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.energy-level {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  font-weight: 700;
  min-width: 60px;
  text-align: center;
}
.energy-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.energy-info p  { font-size: 0.85rem; color: var(--muted); }
.energy-bar { height: 4px; background: var(--border); border-radius: 4px; margin-top: 0.75rem; overflow: hidden; }
.energy-fill { height: 100%; border-radius: 4px; background: var(--primary); }

/* ── RESOURCES ── */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.res-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.res-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.res-card p  { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.res-link { color: var(--primary); font-size: 0.85rem; font-weight: 600; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-img img { border-radius: var(--radius); width: 100%; }
.about-text h2 { font-family: 'DM Serif Display', serif; font-size: 2.5rem; margin-bottom: 1.5rem; }
.about-text p  { color: var(--muted); margin-bottom: 1rem; line-height: 1.7; }
.about-text .quote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.1rem;
}
.about-stats { display: flex; gap: 2rem; margin-top: 2rem; }
.stat-n { font-family: 'DM Serif Display', serif; font-size: 2.5rem; color: var(--primary); }
.stat-l { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

/* ── SUBSCRIBE ── */
.subscribe-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
}
.subscribe-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
.subscribe-section p { color: var(--muted); margin-bottom: 2rem; }
.sub-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.sub-form input {
  flex: 1;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
}
.sub-form input:focus { border-color: var(--primary); }
.sub-form button {
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.sub-form button:hover { opacity: 0.85; }
.sub-note { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.flogo { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.flogo span { color: var(--accent); }
.ftag { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.5; }
.fsocial { display: flex; gap: 0.75rem; }
.fsoc {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  transition: all .2s;
}
.fsoc:hover { border-color: var(--primary); color: var(--primary); }
.fcol h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.fcol ul { list-style: none; }
.fcol li { margin-bottom: 0.6rem; }
.fcol a { font-size: 0.9rem; color: var(--muted); transition: color .2s; }
.fcol a:hover { color: var(--text); }
.foot-bot { max-width: 1200px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.fcopy { font-size: 0.8rem; color: var(--muted); }

/* ── HOME HERO ── */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,173,173,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--primary); margin-bottom: 1.5rem; }
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero-title em { color: var(--primary); font-style: normal; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.6; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-img { margin-top: 4rem; max-width: 300px; }

.phase-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.phase-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid;
}
.phase-pill.survive { color: var(--survive); border-color: var(--survive); }
.phase-pill.strive  { color: var(--strive);  border-color: var(--strive); }
.phase-pill.thrive  { color: var(--thrive);  border-color: var(--thrive); }

.home-blog { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 2.5rem; }
#home-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }

/* ── LOADING SPINNER ── */
.spinner {
  display: flex; align-items: center; justify-content: center;
  padding: 4rem; color: var(--muted); gap: 0.75rem;
}
.spinner::before {
  content: '';
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SHOP ── */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.shop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s;
}
.shop-card:hover { transform: translateY(-4px); }
.shop-card img { width: 100%; height: 260px; object-fit: cover; background: var(--border); }
.shop-info { padding: 1.25rem; }
.shop-name { font-weight: 600; margin-bottom: 0.3rem; }
.shop-price { color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.shop-coming { text-align: center; padding: 5rem 2rem; color: var(--muted); }
.shop-coming h2 { font-family: 'DM Serif Display', serif; font-size: 2rem; margin-bottom: 1rem; color: var(--text); }

/* ── UTILITIES ── */
.gap-1 { display: flex; gap: 1rem; flex-wrap: wrap; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .phase-strip { gap: 0.75rem; flex-wrap: wrap; }
  .post-feature-img { height: 240px; }
}
@media (max-width: 480px) {
  .foot-top { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  .section { padding: 3rem 1rem; }
}
