/*
Theme Name: Reignite Collective
Theme URI: https://reignitecollective.com
Author: Apex Book Media
Author URI: https://apexbookmedia.com
Description: Custom theme for Reignite Collective — Heather Theisen-Gándara, EdD
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: reignite-collective
*/

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

/* CSS CUSTOM PROPERTIES — shared across all templates */
:root {
  --magenta:      #B8235F;
  --magenta-deep: #7D1547;
  --magenta-lite: #D45990;
  --blush:        #F2D0DF;
  --blush-soft:   #FBF0F5;
  --warm-white:   #FDFBFC;
  --off-white:    #F7F2F5;
  --gold:         #C5964A;
  --gold-light:   #E8C07A;
  --dark:         #1A0C14;
  --muted:        #7A5568;
  --border:       #EDD8E5;
  --white:        #FFFFFF;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; background: var(--warm-white); color: var(--dark); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* LANGUAGE TOGGLE */
.es-block  { display: none; }
.es-inline { display: none; }
body.lang-es .en-block  { display: none; }
body.lang-es .es-block  { display: block; }
body.lang-es .en-inline { display: none; }
body.lang-es .es-inline { display: inline; }
body.lang-es li.en-block { display: none; }
body.lang-es li.es-block { display: list-item; }

/* BUTTONS */
.btn { display: inline-block; cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; border-radius: 4px; transition: all 0.22s; }
.btn-magenta { background: var(--magenta); color: var(--white); padding: 15px 34px; border: 2px solid var(--magenta); }
.btn-magenta:hover { background: var(--magenta-deep); border-color: var(--magenta-deep); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,35,95,0.3); }
.btn-outline { background: transparent; color: var(--magenta); padding: 13px 32px; border: 2px solid var(--magenta); }
.btn-outline:hover { background: var(--magenta); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); padding: 15px 34px; border: 2px solid var(--gold); }
.btn-gold:hover { background: #A87A38; }
.btn-white { background: var(--white); color: var(--magenta); padding: 15px 34px; border: 2px solid var(--white); }
.btn-white:hover { background: var(--blush-soft); border-color: var(--blush-soft); }
.btn-outline-white { background: transparent; color: var(--white); padding: 13px 32px; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-lg { padding: 18px 42px; font-size: 0.84rem; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px 4px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.9); border-radius: 1px; transition: all 0.28s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE NAV */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 2px solid var(--border); box-shadow: 0 8px 28px rgba(184,35,95,0.1); z-index: 199; list-style: none; }
  .nav-links.nav-open { display: flex !important; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links li a { display: block; padding: 15px 24px; font-size: 0.84rem; width: 100%; color: var(--dark) !important; }
}

/* BLOG POST CONTENT — single.php */
.post-content { color: var(--muted); line-height: 1.9; font-size: 1.02rem; }
.post-content p { margin-bottom: 1.5em; }
.post-content h2 { font-family: 'Montserrat', sans-serif; font-size: 1.35rem; font-weight: 900; color: var(--dark); letter-spacing: -0.01em; margin: 2em 0 0.75em; line-height: 1.2; }
.post-content h3 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--dark); margin: 1.75em 0 0.6em; }
.post-content a { color: var(--magenta); text-decoration: underline; }
.post-content a:hover { color: var(--magenta-deep); }
.post-content ul, .post-content ol { padding-left: 1.6em; margin-bottom: 1.5em; }
.post-content li { margin-bottom: 0.5em; }
.post-content blockquote { border-left: 3px solid var(--magenta); padding: 16px 24px; margin: 2em 0; background: var(--blush-soft); font-style: italic; color: var(--dark); }
.post-content em { font-style: italic; color: var(--dark); }
.post-content strong { font-weight: 700; color: var(--dark); }

/* POST NAVIGATION */
.post-navigation { display: flex; gap: 20px; flex-wrap: wrap; }
.post-navigation a { font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--magenta); }
.post-navigation a:hover { color: var(--magenta-deep); }

/* FOOTER — desktop layout (inline styles moved to CSS for responsive control) */
footer { background: #0A0A0A; padding: 64px 72px 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* MOBILE NAV EXTRAS — hidden by default on desktop */
.nav-mobile-extra { display: none !important; }

/* GLOBAL MOBILE OVERRIDES */
@media (max-width: 768px) {
  /* Nav: hide desktop controls, reveal mobile menu items */
  #lang-toggle { display: none !important; }
  .nav-right .btn { display: none !important; }
  .site-nav { padding: 14px 20px !important; }
  .nav-mobile-extra { display: block !important; }

  /* Footer: override the 4-col inline grid */
  footer { padding: 48px 20px 28px !important; }
  .footer-top { grid-template-columns: 1fr !important; gap: 28px !important; margin-bottom: 24px !important; padding-bottom: 24px !important; }
  .footer-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }

  /* Blog archive page */
  .blog-archive { padding: 40px 20px 56px !important; }
  .blog-archive-grid { grid-template-columns: 1fr !important; }

  /* Single post page */
  .single-post { padding: 32px 20px 56px !important; }
  .single-post-img { height: 240px !important; }
  .single-post-cta { flex-direction: column !important; }
  .single-post-cta .btn-magenta { width: 100%; display: block; text-align: center; box-sizing: border-box; }
}

@media (max-width: 480px) {
  .ann-bar { letter-spacing: 0.06em !important; }
  .blog-archive h1 { font-size: 1.5rem !important; }
  .single-post-img { height: 200px !important; }
}
