/* ======================================================
   HealingStudies.com — Fresh Responsive Style Package
   Mobile-first • iOS-safe • JS-controlled menu
   ====================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg: #0b0f14;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: rgba(255,255,255,.12);
  --brand: #7dd3fc;
  --brand2: #a7f3d0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15,23,42,.12);
  --shadow: 0 10px 24px rgba(15,23,42,.12);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none }

/* ---------- Layout ---------- */
.container {
  max-width: 1120px;
  padding: 0 16px;
  margin: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,15,20,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.brand-text strong { font-size: 15px }
.brand-text span {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0b1220;
  border: none;
}

/* ---------- Desktop Nav ---------- */
.nav-links.desktop {
  display: flex;
  gap: 6px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 12px;
}
.nav-links a.active {
  background: rgba(125,211,252,.15);
}

/* ---------- Actions ---------- */
.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- Hamburger ---------- */
.nav-toggle {
  display: none;
  font-size: 20px;
}

/* ======================================================
   MOBILE MENU — FIXED VERSION
   ====================================================== */

/* CLOSED by default */
.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* When JS removes [hidden] */
.mobile-panel:not([hidden]) {
  display: block;
}

.mobile-panel .nav-links {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
}
.mobile-panel a {
  padding: 14px;
  border-radius: 14px;
  background: var(--card);
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0;
}
.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.kicker {
  font-size: 13px;
  color: var(--muted);
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

/* ---------- Sections ---------- */
.section {
  padding: 30px 0;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* ---------- Lists ---------- */
.item {
  padding: 16px;
  background: var(--card);
  border-radius: 14px;
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

/* ======================================================
   RESPONSIVE BREAKPOINTS
   ====================================================== */

@media (max-width: 760px) {
  .nav-links.desktop { display: none }
  .nav-toggle { display: inline-flex }
}