/* ============================================================
   DivergenCIE Coaching — Shared CSS
   Light mode default · Dark mode via html.dark
   divergencie.co.uk
   ============================================================ */

/* ── LIGHT MODE (default) ── */
:root {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f4f4f4;
  --bg-tertiary:   #d5e8f0;
  --navy:          #1a3c5e;
  --gold:          #e8a832;
  --gold-dim:      #c98820;
  --gold-pale:     rgba(232,168,50,0.12);
  --sky:           #4a9fd4;
  --coral:         #e05a4e;
  --charcoal:      #5c5248;
  --text-primary:  #1a1a1a;
  --text-muted:    #666666;
  --text-footer:   #888888;
  --bg-info:       #d5e8f0;
  --bg-light-gold: #fff8e7;
  --border:        rgba(0,0,0,0.1);
  --border-subtle: rgba(0,0,0,0.06);
  --shadow:        0 2px 16px rgba(0,0,0,0.08);
  --radius:        0px;
  --transition:    0.22s ease;
}

/* ── DARK MODE ── */
html.dark {
  --bg-primary:    #0a0a0a;
  --bg-secondary:  #111111;
  --bg-tertiary:   #1a1a1a;
  --navy:          #1a3c5e;
  --gold:          #f5c842;
  --gold-dim:      #c9a030;
  --gold-pale:     rgba(245,200,66,0.12);
  --sky:           #4a9fd4;
  --coral:         #e05a4e;
  --charcoal:      #5c5248;
  --text-primary:  #ffffff;
  --text-muted:    rgba(255,255,255,0.55);
  --text-footer:   rgba(255,255,255,0.35);
  --bg-info:       #1a1a2e;
  --bg-light-gold: rgba(245,200,66,0.06);
  --border:        rgba(255,255,255,0.1);
  --border-subtle: rgba(255,255,255,0.06);
  --shadow:        0 2px 24px rgba(0,0,0,0.5);
}

/* ── SHARED RESETS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Satoshi', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── SHARED UTILITIES ── */
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: #0a0a0a;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.85rem 2rem; border: 2px solid var(--gold);
  cursor: pointer; transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-primary:hover { background: transparent; color: var(--gold); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--text-primary);
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.85rem 2rem; border: 2px solid var(--border);
  cursor: pointer; transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── SHARED NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
#nav.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
html.dark #nav.scrolled {
  background: rgba(10,10,10,0.94);
  box-shadow: 0 1px 0 var(--gold-pale);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  max-width: 1400px; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 900; font-size: 1.1rem; letter-spacing: -0.02em;
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.nav-logo-text { font-weight: 900; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--text-primary); }
.nav-logo-text span { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-right {
  display: flex; align-items: center; gap: 0.75rem;
}
.nav-cta {
  background: var(--gold); color: #0a0a0a;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.6rem 1.5rem; border: 2px solid var(--gold);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.nav-cta:hover { background: transparent; color: var(--gold); }

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-pale);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

/* ── MOBILE NAV ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
#mobile-menu {
  display: none; flex-direction: column;
  background: var(--bg-secondary); padding: 1.5rem 2rem; gap: 1rem;
  border-top: 1px solid var(--gold-pale);
}
html.dark #mobile-menu { background: rgba(10,10,10,0.97); }
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition);
}
#mobile-menu a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .nav-links, .nav-cta-desktop { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── SHARED ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-anim].anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SHARED BUTTONS (used on inner pages + footer) ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: #0a0a0a;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.85rem 2rem; border: 2px solid var(--gold);
  border-radius: 0;
  cursor: pointer; transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-gold svg { flex-shrink: 0; }
.btn-gold:hover { background: transparent; color: var(--gold); transform: translateY(-2px); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  background: transparent;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.85rem 2rem;
  cursor: pointer; transition: background var(--transition), border-color var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* ── SHARED FOOTER CTA ── */
.footer-cta {
  background: #0a0a0a;
  border-top: 2px solid var(--gold);
  padding: 80px 24px;
  text-align: center;
}
html.dark .footer-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 60%, #1a1100 100%);
}
.footer-cta-inner {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 36px;
}
.footer-cta-headline {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; color: #fff; line-height: 1.1; margin: 0;
}
.footer-cta-sub {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700; color: var(--gold); margin: 8px 0 0;
}
.footer-cta-btns {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.footer-cta-btn {
  padding: 16px 40px; font-size: 1rem; font-weight: 700;
  border-radius: 6px; text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.footer-cta-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* ── SHARED SITE FOOTER ── */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(245,200,66,0.12);
  padding: 64px 24px 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px; padding-bottom: 56px;
}
.footer-logo { width: 120px; height: auto; border-radius: 6px; margin-bottom: 16px; display: block; }
.footer-tagline { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.6; margin: 0 0 8px; }
.footer-domain { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin: 0 0 20px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  color: rgba(255,255,255,0.55);
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); background: rgba(245,200,66,0.08); }
.footer-social a svg { width: 16px; height: 16px; }
.footer-col-title {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 20px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact-icon { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.footer-contact a, .footer-contact span { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }
.footer-accreditations { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-accred-badge {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; padding: 4px 8px;
}
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.78rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); text-decoration: none; font-size: 0.78rem; transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-cta-btns { flex-direction: column; width: 100%; }
  .footer-cta-btn { width: 100%; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
