/* ===========================
   PREVENT HORIZONTAL SCROLL
   =========================== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ===========================
   TOP BANNER — matches sketch:
   Row 1: >>> Not sure where to start?
   Row 2: Take the 3-min quiz to find...
   Row 3: [Take the Quiz] [Message]
   =========================== */
.matchmaker-bar {
  background: var(--teal);
}

/* Desktop layout */
.mm-row1, .mm-row2, .mm-row3 { display: none; }
/* Desktop uses old .matchmaker-inner layout — keep it */
.matchmaker-inner { display: flex; }

@media (max-width: 640px) {
  /* Hide desktop inner, show mobile rows */
  .matchmaker-inner { display: none !important; }
  .mm-row1, .mm-row2, .mm-row3 { display: flex; }

  .matchmaker-bar {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .mm-row1 {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }
  .mm-row1 .anim-chevron {
    color: var(--peach);
    font-size: 1.1rem;
    font-weight: 800;
    font-family: monospace;
    display: flex;
    gap: 0;
  }
  .mm-row1 .anim-chevron span {
    opacity: 0;
    animation: chevron-flash 1.6s infinite;
  }
  .mm-row1 .anim-chevron span:nth-child(1) { animation-delay: 0s; }
  .mm-row1 .anim-chevron span:nth-child(2) { animation-delay: 0.15s; }
  .mm-row1 .anim-chevron span:nth-child(3) { animation-delay: 0.3s; }
  .mm-title {
    color: white;
    font-weight: 700;
    font-size: 0.92rem;
  }
  .mm-row2 {
    color: rgba(255,255,255,0.88);
    font-size: 0.78rem;
    text-align: center;
    justify-content: center;
    width: 100%;
  }
  .mm-row3 {
    flex-direction: row;
    gap: 8px;
    width: 100%;
    justify-content: center;
  }
  .mm-row3 .btn-matchmaker,
  .mm-row3 .btn-matchmaker-chat {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.82rem;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 0;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
  }
  .mm-row3 .btn-matchmaker-white {
    background: white;
    color: var(--teal);
    border: none;
  }
  .mm-row3 .btn-matchmaker-chat {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.6);
  }
}

/* ===========================
   NAVBAR — Logo left, buttons + hamburger right
   =========================== */
@media (max-width: 640px) {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245,240,230,0.97);
  }
  .nav-inner {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  /* Hide desktop nav links */
  .nav-links { display: none !important; }
  /* Hide desktop CTA buttons */
  .desktop-only { display: none !important; }

  /* Logo */
  .nav-logo { gap: 6px; flex-shrink: 0; }
  .logo-mark { height: 26px; width: 26px; }
  .typographic-logo .logo-main { font-size: 0.88rem; }
  .typographic-logo .logo-sub { display: none; }

  /* Push buttons + hamburger to the right */
  .nav-mobile-btns {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    align-items: flex-end;
  }
  .btn-mob-free {
    display: block;
    background: var(--peach);
    color: var(--blue-dark);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
  }
  .btn-mob-book {
    display: block;
    background: var(--blue);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
  }

  /* Hamburger */
  .nav-hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
  }
}

/* ===========================
   MOBILE MENU — full screen
   =========================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  flex-direction: column;
  padding: 0 24px 32px;
  overflow-y: auto;
}
/* JS sets display:flex to open */

.mobile-nav-close {
  align-self: flex-end;
  margin-top: 16px;
  margin-bottom: 8px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 4px 8px;
  line-height: 1;
}
.mobile-nav .nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  color: var(--text-dark);
  text-decoration: none;
  display: block;
}
.mobile-nav-btns {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid rgba(0,0,0,0.06);
}
.mobile-nav-btns .btn-free-session,
.mobile-nav-btns .btn-primary {
  flex: 1;
  text-align: center;
  justify-content: center;
  font-size: 0.85rem;
  padding: 12px 8px !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  display: flex;
  align-items: center;
}

/* ===========================
   MARQUEE — two capsule rows
   =========================== */
@media (max-width: 640px) {
  .marquee-band {
    gap: 8px !important;
    padding: 12px 0 !important;
    overflow: hidden !important;
    max-width: 100vw !important;
  }
  .marquee-row { overflow: hidden !important; }
  .marquee-track-1 { animation-duration: 30s !important; }
  .marquee-track-2 { animation-duration: 26s !important; }
  .marquee-band .capsule-card {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .marquee-band .capsule-title {
    font-size: 0.82rem;
  }
}

/* ===========================
   HERO
   =========================== */
@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding: 24px 20px 32px;
    gap: 20px;
    text-align: center;
    align-items: center;
  }
  .hero-content { max-width: 100%; order: 2; }
  .hero-heading { font-size: 1.9rem !important; line-height: 1.2; margin-bottom: 12px; }
  .hero-subtext { font-size: 0.9rem; margin-bottom: 18px; }
  .hero-image {
    display: flex !important;
    justify-content: center;
    order: 1;
    width: 100%;
  }
  .hero-visual { width: 200px !important; height: 200px !important; }
  .aura-1 { width: 200px !important; height: 200px !important; }
  .aura-2 { width: 158px !important; height: 158px !important; }
  .aura-3 { width: 116px !important; height: 116px !important; }
  .breath-core { width: 76px !important; height: 76px !important; }
  .thought-pill { font-size: 0.58rem; padding: 4px 8px; }
  .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .btn-hero-primary, .btn-hero-outline {
    flex: 1;
    min-width: 0;
    height: 44px;
    font-size: 0.8rem;
    padding: 0 10px;
  }
}

/* ===========================
   EXPERT CARDS — buttons side by side
   =========================== */
@media (max-width: 640px) {
  .experts { padding: 36px 0; }
  .experts-carousel { padding: 8px 14px 20px; gap: 12px; }
  .expert-card { flex: 0 0 74vw; max-width: 270px; }
  .expert-photo-wrap { height: 190px; }
  .expert-info { padding: 14px 14px 16px; }
  .expert-card-btns {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px;
    margin-top: 8px;
    align-items: stretch;
  }
  .expert-card-btns .btn-outline,
  .expert-card-btns .btn-primary {
    flex: 1 !important;
    font-size: 0.72rem !important;
    padding: 7px 4px !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    height: auto !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* ===========================
   STATS
   =========================== */
@media (max-width: 640px) {
  .stats { padding: 36px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 18px 10px; }
  .stat-number { font-size: 1.9rem; }
  .stat-label { font-size: 0.72rem; }
}

/* ===========================
   HOW IT WORKS
   =========================== */
@media (max-width: 640px) {
  .how-it-works { padding: 36px 0; }
  .how-steps-new { grid-template-columns: 1fr !important; gap: 16px; }
  .how-step-new { text-align: center; align-items: center; padding: 0 0 12px; }
}

/* ===========================
   REVIEWS
   =========================== */
@media (max-width: 640px) {
  .reviews-section { padding: 36px 0; }
  .reviews-horizontal-track .review-card { flex: 0 0 80vw; }
}

/* ===========================
   PHONE FIELD — fix overlap
   =========================== */
@media (max-width: 640px) {
  .phone-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
  }
  .phone-code-select { width: 100% !important; max-width: 100% !important; }
  .phone-wrap input[type="tel"] { width: 100% !important; }
}

/* ===========================
   CONTACT FORM
   =========================== */
@media (max-width: 640px) {
  .contact { padding: 36px 0; }
  .contact-inner { flex-direction: column; gap: 20px; }
  .contact-info-panel { padding: 24px 18px; }
  .contact-info-panel h2 { font-size: 1.5rem; }
  .contact-form { padding: 20px 16px; grid-template-columns: 1fr !important; }
  .form-group input, .form-group select, .form-group textarea {
    font-size: 16px !important;
    padding: 11px 13px;
  }
  .concerns-checkbox-grid { grid-template-columns: 1fr !important; }
}

/* ===========================
   GENERAL SECTIONS
   =========================== */
@media (max-width: 640px) {
  .section-inner { padding: 0 18px; }
  .section-title { font-size: 1.6rem !important; }
  .section-subtitle { white-space: normal !important; font-size: 0.87rem; }
  .concerns { padding: 36px 0; }
}

/* ===========================
   WHATSAPP FAB
   =========================== */
.whatsapp-fab {
  position: fixed !important;
  bottom: 24px !important;
  right: 20px !important;
  width: 52px !important;
  height: 52px !important;
  background: #25d366 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(37,211,102,0.5) !important;
  z-index: 500 !important;
  text-decoration: none !important;
  transition: transform 0.2s !important;
}
.whatsapp-fab:hover { transform: scale(1.1) !important; }

/* ===========================
   FOOTER
   =========================== */
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 24px; padding: 32px 18px; }
  .footer-col { width: 100%; }
  .footer-logo-section { text-align: center; }
  .footer-links { text-align: center; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding: 14px 18px; }
}

/* ===========================
   DESKTOP — hide mobile-only elements
   =========================== */
@media (min-width: 641px) {
  .nav-mobile-btns { display: none !important; }
  .nav-hamburger { display: none !important; }
  .mm-row1, .mm-row2, .mm-row3 { display: none !important; }
  .matchmaker-inner { display: flex !important; }
}
