/* ===================================
   I Believe Mouna — Global Styles
   =================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Code+Pro:wght@400;500&display=swap');

/* CSS Custom Properties */
:root {
  --primary: #5B2C6F;
  --primary-light: #D7BDE2;
  --primary-dark: #3B1C4A;
  --accent-warm: #D4A84B;
  --accent-teal: #5DADE2;
  --bg: #FAF8F5;
  --bg-alt: #F3EDF7;
  --text-primary: #2C2C2C;
  --text-secondary: #6B6B6B;
  --border: #E8E0ED;
  --evidence-bg: #FFF9EC;
  --danger: #C0392B;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'Source Code Pro', monospace;
  --max-width: 720px;
  --max-width-wide: 960px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.3;
  margin-bottom: 0.75em;
  color: var(--primary-dark);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.85rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  margin-bottom: 1.25em;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 0.5em 1em;
  z-index: 1000;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
  background: var(--primary-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(59,28,74,0.15);
}

.nav-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--primary-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 0.5rem 1rem 1rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    display: block;
  }
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.content-section-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* Section dividers */
.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem auto;
  max-width: var(--max-width);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1.25rem 4rem;
}

.hero h1 {
  color: #fff;
  font-size: 3.25rem;
  margin-bottom: 0.5em;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  opacity: 0.92;
  margin-bottom: 1.5em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.25rem; }
  .hero .subtitle { font-size: 1.1rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-warm);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: #c99b3e;
  color: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(91,44,111,0.08);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}

/* Stats / fact cards */
.fact-card {
  background: #fff;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.fact-card strong {
  color: var(--primary);
}

/* ===== EVIDENCE BOX ===== */
.evidence-box {
  background: var(--evidence-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.evidence-box h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.5em;
}

.evidence-box ul {
  list-style: none;
  padding: 0;
}

.evidence-box li {
  padding: 0.2em 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== PULL QUOTE ===== */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  border-left: 4px solid var(--accent-warm);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-alt);
  border-radius: 0 6px 6px 0;
  color: var(--primary-dark);
}

/* ===== CONTENT WARNING ===== */
.content-warning {
  background: #FFF3E0;
  border: 1px solid #FFCC02;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.content-warning strong {
  color: var(--danger);
}

.content-warning a {
  font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 52px;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 3px solid var(--primary-light);
  background: #fff;
}

.timeline-dot.cat-stalking { border-color: var(--primary); background: var(--primary-light); }
.timeline-dot.cat-violence { border-color: var(--danger); background: #F5B7B1; }
.timeline-dot.cat-identity { border-color: var(--accent-teal); background: #D6EAF8; }
.timeline-dot.cat-legal { border-color: var(--accent-warm); background: #FDEBD0; }
.timeline-dot.cat-relationship { border-color: var(--text-secondary); background: #E5E5E5; }

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.timeline-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.timeline-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 2rem;
  }

  .timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 2.5rem;
    padding-left: 0;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
    padding-left: 2.5rem;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
    left: auto;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
  }
}

/* Timeline legend */
.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
}

.timeline-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
}

/* ===== EVIDENCE TABLE ===== */
.evidence-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.evidence-table th {
  background: var(--bg-alt);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
}

.evidence-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.evidence-table tr:hover td {
  background: var(--bg-alt);
}

.evidence-id {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}

/* Responsive table wrapper */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

/* ===== AUDIO PLAYER ===== */
.audio-player-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.audio-player-wrap audio {
  width: 100%;
  margin-bottom: 1rem;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,44,111,0.1);
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.form-success {
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  display: none;
}

.form-success.show {
  display: block;
}

/* ===== RESOURCE LIST ===== */
.resource-category {
  margin-bottom: 2.5rem;
}

.resource-category h3 {
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.resource-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.resource-item .resource-contact {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--primary);
}

/* ===== SUPPORT PAGE ===== */
.support-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.support-card h3 {
  color: var(--primary);
  margin-bottom: 0.5em;
}

.support-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2.5rem 1.25rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--primary-light);
}

.site-footer p {
  margin-bottom: 0.5em;
}

/* ===== ALT BACKGROUND SECTIONS ===== */
.bg-alt {
  background: var(--bg-alt);
}

.bg-white {
  background: #fff;
}

/* ===== PAGE HEADER (interior pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.3em;
}

.page-header p {
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== STORY SECTIONS ===== */
.story-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.story-section:last-child {
  border-bottom: none;
}

.story-section h2 {
  margin-bottom: 1rem;
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

/* ===== FADE IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn-group { display: none; }
  body { background: #fff; }
  .hero { background: none; color: var(--text-primary); padding: 1rem 0; }
  .hero h1 { color: var(--primary-dark); }
}
