/* ============================================
   7 Nights to Body Freedom — Base Styles
   ============================================ */

:root {
  --bg-primary: #1a1a2e;
  --text-primary: #f5f0e8;
  --text-body: rgba(245, 240, 232, 0.82);
  --text-muted: rgba(245, 240, 232, 0.45);
  --text-faint: rgba(245, 240, 232, 0.3);
  --gold: #c9a96e;
  --gold-muted: rgba(201, 169, 110, 0.7);
  --gold-border: rgba(201, 169, 110, 0.15);
  --gold-border-strong: rgba(201, 169, 110, 0.2);
  --gold-bg: rgba(201, 169, 110, 0.06);
  --gold-bg-hover: rgba(201, 169, 110, 0.1);
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --content-max-width: 640px;
  --padding-desktop: 48px 40px 56px;
  --padding-mobile: 32px 20px 40px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-body);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.3;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility Classes */
.eyebrow {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.gold-divider {
  width: 48px;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.4;
  border: none;
  margin: 20px 0;
}

.gold-divider--centered {
  margin-left: auto;
  margin-right: auto;
}

.italic-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
  font-weight: 300;
}

.track-meta {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 10px 0 10px 22px;
  margin: 32px 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 17px;
  color: rgba(232, 213, 176, 0.85);
  line-height: 1.6;
}

.card {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  padding: 28px 24px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: var(--gold-border-strong);
}

.info-box {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  padding: 20px 24px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.72);
}

.gentle-warning {
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 2px;
  padding: 20px 24px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-body);
}

.bedtime-note {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
  font-style: italic;
}

/* Section wrapper */
.section {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--padding-desktop);
}

/* Section divider with label */
.section-label-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 32px;
}

.section-label-divider::before,
.section-label-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.2;
}

.section-label-divider span {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.4s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-screen .eyebrow {
  margin-bottom: 24px;
}

.loading-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 32px;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

/* Hide content until Memberstack loads */
.ms-content-hidden {
  display: none !important;
}

/* Mobile */
@media (max-width: 680px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 17px; }

  body { font-size: 14px; }

  .section {
    padding: var(--padding-mobile);
  }

  .card {
    padding: 24px 20px;
  }

  .info-box {
    padding: 16px 20px;
  }
}
