/* ==========================================================================
   HSVLesbians.com - Design System & Core Stylesheet
   Modern, Warm, Inclusive, Responsive, Privacy-First Dating & Community UI
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --primary: #7C2D84;             /* Deep Rich Amethyst */
  --primary-hover: #63236A;
  --primary-light: #F3E8F6;
  --primary-gradient: linear-gradient(135deg, #7C2D84 0%, #B83280 100%);
  --secondary: #E11D48;           /* Warm Rose / Coral */
  --secondary-hover: #BE123C;
  --secondary-light: #FFE4E6;
  
  /* Trust & Status Colors */
  --trust-teal: #0D9488;          /* Verified / Health Trust */
  --trust-teal-light: #CCFBF1;
  --success: #10B981;
  --warning: #F59E0B;
  --info: #3B82F6;
  --online-green: #22C55E;

  /* Neutral & Background Tones */
  --bg-page: #FAF7FC;             /* Soft lavender mist */
  --bg-card: #FFFFFF;
  --bg-surface: #F5EEF9;
  --bg-dark: #1A1024;             /* Deep violet dark */
  --bg-dark-card: #271936;
  
  /* Typography Colors */
  --text-main: #1F1726;           /* High contrast slate */
  --text-muted: #5C5266;
  --text-subtle: #8A7E96;
  --text-inverse: #FFFFFF;

  /* Borders & Shadows */
  --border-color: #E7DDEB;
  --border-light: #F1E9F5;
  --border-focus: #7C2D84;
  --shadow-sm: 0 1px 3px rgba(31, 23, 38, 0.06), 0 1px 2px rgba(31, 23, 38, 0.04);
  --shadow-md: 0 4px 14px rgba(31, 23, 38, 0.08);
  --shadow-lg: 0 10px 30px rgba(31, 23, 38, 0.12);
  --shadow-xl: 0 20px 45px rgba(31, 23, 38, 0.16);

  /* Layout & Sizing */
  --max-width: 1240px;
  --max-width-narrow: 840px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  --header-height: 76px;
  --font-main: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
}

/* Base Reset & Typography */
*, *::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-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.25rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

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

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-teal { color: var(--trust-teal); }
.text-white { color: #FFFFFF; }

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-secondary {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.badge-teal {
  background-color: var(--trust-teal-light);
  color: var(--trust-teal);
}

.badge-dark {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.badge-outline {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background: var(--bg-card);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background-color: var(--online-green);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 45, 132, 0.35);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--secondary);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.3);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-light {
  background: #FFFFFF;
  color: var(--primary);
  border: 1px solid var(--border-color);
}

.btn-light:hover {
  background: var(--bg-surface);
  color: var(--primary-hover);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(124, 45, 132, 0.25);
}

.site-logo span.highlight {
  color: var(--secondary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4rem 0 5rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(243, 232, 246, 0.8) 0%, rgba(250, 247, 252, 1) 70%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.hero-title .gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Quick Matchmaker Card */
.matchmaker-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  position: relative;
}

.matchmaker-card-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.matchmaker-card-header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.matchmaker-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.form-control, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(124, 45, 132, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.matchmaker-footer-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Trust Pill Badges in Hero */
.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--trust-teal);
  flex-shrink: 0;
}

/* ==========================================================================
   Section Headers & Generic Section Layout
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background-color: #FFFFFF;
}

.section-dark {
  background-color: var(--bg-dark);
  color: #FFFFFF;
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: #FFFFFF;
}

.section-dark p {
  color: #BDB3C9;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header .badge {
  margin-bottom: 0.85rem;
}

.section-header h2 {
  margin-bottom: 0.85rem;
}

.section-header p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* ==========================================================================
   Trust & Safety Pillars (Section 5)
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.trust-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #D3BEDE;
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon-box.teal {
  background: var(--trust-teal-light);
  color: var(--trust-teal);
}

.trust-icon-box.rose {
  background: var(--secondary-light);
  color: var(--secondary);
}

.trust-card h3 {
  font-size: 1.2rem;
}

.trust-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   How It Works (Section 6)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 45, 132, 0.3);
}

.step-card h3 {
  font-size: 1.15rem;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Member Discovery & Card Grid (Section 7)
   ========================================================================== */
.discovery-toolbar {
  background: #FFFFFF;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(124, 45, 132, 0.25);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

.member-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #D3BEDE;
}

.member-card-photo {
  position: relative;
  height: 240px;
  background-color: #E2D9E8;
  overflow: hidden;
}

.member-avatar-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.member-card-status {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.member-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.member-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.member-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.member-location {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.member-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.member-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.member-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   Location-Based Discovery (Section 8)
   ========================================================================== */
.locations-tabs-container {
  margin-top: 2rem;
}

.location-tabs-nav {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.location-tab-btn {
  padding: 0.65rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  background: transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.location-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.location-card {
  background: #FFFFFF;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.location-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.location-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.location-card span {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.location-card-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Community & Discussion Forums (Section 9)
   ========================================================================== */
.forum-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.forum-cat-card {
  background: #FFFFFF;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.forum-cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.forum-cat-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.forum-threads-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thread-item {
  background: #FFFFFF;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.2s ease;
}

.thread-item:hover {
  border-color: #C8B0D6;
  background-color: var(--bg-surface);
}

.thread-main {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-grow: 1;
}

.thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.thread-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.thread-meta {
  font-size: 0.82rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.thread-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ==========================================================================
   Education & Resources Hub (AEO + GEO + E-E-A-T) (Section 10-14)
   ========================================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #D3BEDE;
}

.resource-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.85rem;
}

.resource-card h3 {
  font-size: 1.25rem;
}

.resource-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* AEO Direct Answer Box */
.aeo-direct-answer {
  background: #F4FBF9;
  border-left: 4px solid var(--trust-teal);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.aeo-direct-answer .aeo-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--trust-teal);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.aeo-direct-answer p {
  color: #134E48;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

/* GEO Key Takeaways Box */
.geo-takeaways {
  background: #FBF8FD;
  border: 1px solid #E6DBEE;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.geo-takeaways h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.geo-takeaways ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.geo-takeaways li {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* E-E-A-T Author & Reviewer Box */
.eeat-author-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.author-credentials {
  font-size: 0.85rem;
  color: var(--trust-teal);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.author-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Medical Disclaimer Box */
.medical-disclaimer-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: #92400E;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* ==========================================================================
   FAQ Accordion (Section 13)
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.5rem;
  background-color: #FAFAFD;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   Success Stories & Testimonials
   ========================================================================== */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.story-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-quote {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  position: relative;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.story-author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ==========================================================================
   Conversion CTA Banner
   ========================================================================== */
.cta-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  color: #FFFFFF;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1.15rem;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #D4C9DE;
  padding: 4.5rem 0 2rem 0;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand .site-logo {
  color: #FFFFFF;
}

.footer-brand p {
  color: #A699B5;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #A699B5;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-disclaimer-bar {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  color: #8E7F9E;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8E7F9E;
}

/* ==========================================================================
   Modals & Overlays
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 7, 24, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #FFFFFF;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.3rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-subtle);
  background: var(--bg-surface);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #E2D5E8;
  color: var(--text-main);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

/* Wizard Steps Progress */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  position: relative;
}

.wizard-progress::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}

.wizard-step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-subtle);
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

.wizard-step-indicator.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #FFFFFF;
}

.wizard-step-indicator.completed {
  border-color: var(--trust-teal);
  background: var(--trust-teal);
  color: #FFFFFF;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 3000;
  pointer-events: none;
}

.toast {
  background: var(--bg-dark);
  color: #FFFFFF;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  border-left: 4px solid var(--trust-teal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section {
    padding: 3.5rem 0;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .thread-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
