/* ════════════════════════════════════════════════
   FAQ PAGE - MindBridge Kenya
   Matching the updated theme (Deep Purple / White / Lime Green)
   ════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ─── VARIABLES ─── */
:root {
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5f4;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-deep: #3b0764;
  --green: #a3e635;
  --text-dark: #12101f;
  --text-mid: #4b4b6b;
  --text-muted: #9090b0;
  --white: #ffffff;
  --border: rgba(167,139,250,0.16);
  --radius-pill: 999px;
  --shadow: 0 4px 32px rgba(120,60,240,0.09);
  --shadow-lg: 0 16px 64px rgba(120,60,240,0.14);
  --transition: 0.22s ease;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: #ddd6fe;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── PAGE BACKGROUND ─── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, #c4b5f4 0%, #a78bfa55 40%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 80%, #ddd6fe 0%, transparent 60%),
    #ddd6fe;
  pointer-events: none;
}

/* ─── SCROLL CONTAINER ─── */
.scroll-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ─── CARD BASE ─── */
.card {
  background: var(--white);
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 0;
  padding: 80px 5%;
}

/* ════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  width: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.4px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--purple-100);
  color: var(--purple-600);
}

.chev { font-size: 10px; opacity: 0.45; }

.btn-book {
  background: var(--purple-600) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  box-shadow: 0 3px 16px rgba(139,92,246,0.30);
  transition: all var(--transition) !important;
}

.btn-book:hover {
  background: var(--purple-700) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.35) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════
   SECTION TAG
   ════════════════════════════════════════════════ */
.section-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple-600);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.tag-num {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  font-weight: 400;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ════════════════════════════════════════════════
   FAQ HERO
   ════════════════════════════════════════════════ */
.faq-hero-card {
  background: linear-gradient(135deg, var(--purple-100) 0%, var(--white) 100%);
  text-align: center;
  padding: 80px 5% 60px;
}

.faq-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.faq-hero-sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   FAQ TABS
   ════════════════════════════════════════════════ */
.faq-categories-card {
  background: var(--white);
  padding: 24px 5%;
  border-bottom: 1px solid var(--border);
}

.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.faq-tab {
  background: var(--purple-100);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-tab:hover {
  background: var(--purple-400);
  color: white;
}

.faq-tab.active {
  background: var(--purple-600);
  color: white;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

/* ════════════════════════════════════════════════
   FAQ ACCORDION
   ════════════════════════════════════════════════ */
.faq-accordion-card {
  background: var(--white);
  padding-top: 40px;
}

.faq-category {
  max-width: 900px;
  margin: 0 auto 56px;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--purple-100);
}

.faq-category-header i {
  font-size: 36px;
  color: var(--purple-600);
}

.faq-category-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--purple-100);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.faq-item:hover {
  border-color: var(--purple-300);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: rgba(124,58,237,0.06);
}

.faq-question i {
  font-size: 18px;
  transition: transform 0.3s ease;
  color: var(--purple-600);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 28px 24px 28px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════
   FAQ CONTACT CTA
   ════════════════════════════════════════════════ */
.faq-contact-cta {
  max-width: 700px;
  margin: 40px auto 0;
  text-align: center;
  background: linear-gradient(135deg, var(--purple-100), #f5f0ff);
  padding: 48px 40px;
  border-radius: 32px;
}

.faq-contact-cta i {
  font-size: 52px;
  color: var(--purple-600);
  margin-bottom: 20px;
}

.faq-contact-cta h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
}

.faq-contact-cta p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.faq-contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px 12px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--purple-400);
  transition: all var(--transition);
}

.btn-cta-outline:hover {
  background: var(--purple-600);
  border-color: var(--purple-600);
  color: white;
}

.btn-cta-outline:hover .arrow-dot.dark {
  background: white;
  color: var(--purple-600);
}

.arrow-dot {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  color: #2d2d00;
  font-weight: 700;
}

.arrow-dot.dark {
  background: var(--text-dark);
  color: white;
}

/* ════════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════════ */
.cta-card {
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://placehold.co/1920x600/7c3aed/white?text=MindBridge+Community') center/cover no-repeat;
  filter: brightness(0.7);
  z-index: 0;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,10,60,0.5), rgba(30,10,60,0.7));
  z-index: 1;
}

.cta-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 5%;
}

.cta-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  color: white;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px 14px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  gap: 16px;
}

/* ════════════════════════════════════════════════
   CONTACT SECTION
   ════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  margin-top: 24px;
}

.contact-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.contact-body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-mid);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple-600);
  font-size: 18px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--purple-600);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group label i {
  margin-right: 6px;
  color: var(--purple-600);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  background: var(--white);
  outline: none;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-dark);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px 14px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  gap: 16px;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ════════════════════════════════════════════════
   FOOTER - CLEAN VERSION (4 COLUMNS)
   ════════════════════════════════════════════════ */
.footer-card {
  background: var(--text-dark);
  padding: 64px 5% 40px;
  width: 100%;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  max-width: 320px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-links-grid h5 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.footer-links-grid ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-grid li {
  margin: 0;
  padding: 0;
}

.footer-links-grid a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.22s ease;
}

.footer-links-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.30);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 28px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.30);
  text-decoration: none;
  transition: color 0.22s ease;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.footer-dev {
  text-align: center;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-dev p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-dev a {
  color: var(--purple-400);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-dev a:hover {
  color: var(--purple-300);
}

.footer-dev i {
  margin: 0 2px;
}

/* ════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(18,16,31,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: 28px;
  padding: 48px 44px 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-box h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  margin-bottom: 8px;
}

.helplines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.helpline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--purple-100);
  border-radius: 20px;
}

.helpline a {
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-600);
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .contact-grid,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .card {
    padding: 60px 5%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    z-index: 300;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    padding: 12px 16px;
    border-radius: 12px;
  }
  
  .btn-book {
    text-align: center;
  }
  
  .burger {
    display: flex;
  }
  
  .faq-hero-card {
    padding: 60px 5% 50px;
  }
  
  .faq-hero-title {
    font-size: 36px;
  }
  
  .faq-tabs {
    gap: 8px;
  }
  
  .faq-tab {
    padding: 8px 20px;
    font-size: 13px;
  }
  
  .faq-question {
    font-size: 15px;
    padding: 18px 22px;
  }
  
  .faq-category-header h2 {
    font-size: 24px;
  }
  
  .faq-category-header i {
    font-size: 28px;
  }
  
  .faq-contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .faq-contact-cta {
    padding: 36px 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card {
    padding: 48px 5%;
  }
}

@media (max-width: 480px) {
  .faq-hero-title {
    font-size: 32px;
  }
  
  .faq-tab {
    padding: 6px 14px;
    font-size: 12px;
  }
  
  .faq-question {
    font-size: 14px;
    padding: 14px 18px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 18px 18px 18px;
  }
  
  .faq-contact-cta {
    padding: 28px 20px;
  }
  
  .contact-grid {
    gap: 32px;
  }
  
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
}