/* Reviews, map, quick actions & layout improvements */

/* ── Google Reviews ── */
.reviews-section {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.reviews-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.reviews-header h2 {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
  color: var(--fg);
}

.reviews-header h2 span { color: var(--accent-2); }

.reviews-header p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
  padding: 0 1.5rem;
}

.reviews-score-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
}

.reviews-score-num {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-2);
}

.reviews-stars {
  display: flex;
  gap: 2px;
  font-size: 1.25rem;
  color: #FBBF24;
  letter-spacing: 1px;
}

.reviews-score-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

.reviews-sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.35rem;
  box-shadow: 0 10px 30px -20px rgba(28, 25, 23, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.review-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-3px);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-2);
  flex-shrink: 0;
}

.review-author {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.2;
}

.review-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.review-stars-sm {
  color: #FBBF24;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #57534E;
  line-height: 1.55;
  flex: 1;
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-source svg {
  width: 14px;
  height: 14px;
}

.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 0 1.5rem;
}

.btn-google-review {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  background: #fff;
  color: var(--fg);
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 20px -12px rgba(28, 25, 23, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn-google-review:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 133, 244, 0.4);
}

.btn-google-review .g-icon {
  width: 20px;
  height: 20px;
}

/* ── Location / Map ── */
.location-section {
  padding: 5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: start;
}

.location-info h2 {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  color: var(--fg);
}

.location-info h2 span { color: var(--accent-2); }

.location-info > p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.location-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.location-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.45;
}

.location-detail-item .loc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.location-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.875rem;
}

.location-actions .loc-btn-primary {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(234, 88, 12, 0.5);
}

.location-actions .loc-btn-secondary {
  background: #fff;
  color: var(--accent-2);
  border: 1.5px solid rgba(249, 115, 22, 0.3);
}

.map-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #E7E5E4;
  min-height: 320px;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* ── Mobile quick bar ── */
.mobile-quick-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -8px 30px rgba(28, 25, 23, 0.08);
}

.mobile-quick-bar-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  max-width: 100%;
  margin: 0 auto;
}

.mobile-quick-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0.35rem 0.15rem;
  border-radius: 10px;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  line-height: 1.15;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-quick-bar a.is-active,
.mobile-quick-bar a.mq-courses.is-active {
  color: var(--accent-2);
  background: rgba(249, 115, 22, 0.08);
}

.mobile-quick-bar a .mq-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 0;
  color: inherit;
}

.mobile-quick-bar a .mq-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mobile-quick-bar a.is-active .mq-icon,
.mobile-quick-bar a.mq-courses.is-active .mq-icon {
  color: var(--accent-2);
}

.mobile-quick-bar a.mq-call { color: var(--fg); }

/* Mobile horizontal nav tabs (index + courses pages) */
.mobile-nav-tabs {
  position: sticky;
  top: calc(3.25rem + env(safe-area-inset-top, 0));
  z-index: 35;
  background: rgba(255, 251, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 1rem 0.55rem;
}

.mobile-nav-tabs-inner {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 80rem;
  margin: 0 auto;
}

.mobile-nav-tabs-inner::-webkit-scrollbar { display: none; }

.mobile-nav-tabs-inner a {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-tabs-inner a.is-active {
  color: var(--accent-2);
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.25);
}

/* ── Desktop utility strip ── */
.desktop-quick-strip {
  display: none;
  max-width: 80rem;
  margin: -1.5rem auto 2rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

.desktop-quick-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.dqs-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.dqs-item:hover { background: var(--accent-light); }

.dqs-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-light);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dqs-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.dqs-value {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.2;
}

/* ── Syllabus flyer-style banner ── */
.syllabus-flyer-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
}

.syllabus-flyer-banner.theme-green {
  background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
  color: #166534;
  border: 1px solid #86EFAC;
}

.syllabus-flyer-banner.theme-blue {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

.syllabus-flyer-banner.theme-red {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.syllabus-flyer-banner.theme-yellow {
  background: linear-gradient(135deg, #FEF9C3, #FDE047);
  color: #854D0E;
  border: 1px solid #FACC15;
}

@media (min-width: 1024px) {
  .desktop-quick-strip { display: block; }
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 28rem; }
  .location-grid { grid-template-columns: 1fr; }
  .map-wrap { order: -1; }
  .map-wrap iframe { min-height: 280px; }
}

/* WhatsApp icon (SVG mask — replaces clover placeholder) */
.fab.fa-whatsapp,
.fa-whatsapp,
.wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url('../images/whatsapp.svg') center / contain no-repeat;
  mask: url('../images/whatsapp.svg') center / contain no-repeat;
}
.fab.fa-whatsapp::before,
.fa-whatsapp::before { content: none !important; }

.whatsapp-float-icon .wa-svg-icon {
  width: 1.65rem;
  height: 1.65rem;
  filter: brightness(0) invert(1);
}

.mobile-quick-bar .mq-icon.wa-icon {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 0;
  line-height: 0;
}

@media (max-width: 767px) {
  .reviews-section,
  .location-section { padding: 3.5rem 0; }

  .mobile-quick-bar { display: block; }

  /* Circular WhatsApp button — sits above mobile nav bar */
  .whatsapp-float {
    left: auto;
    right: 1rem;
    bottom: calc(6.25rem + env(safe-area-inset-bottom, 0));
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    gap: 0;
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.4);
    z-index: 999;
  }

  .whatsapp-float-text {
    display: none !important;
  }

  .whatsapp-float-icon {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 50%;
  }

  .whatsapp-float-icon .wa-svg-icon {
    width: 1.55rem;
    height: 1.55rem;
  }

  .whatsapp-float:hover {
    transform: translateY(-2px) scale(1.05);
  }

  body.has-mobile-bar { padding-bottom: 5rem; }

  /* Nav logo fits beside menu + book button */
  .page-nav-brand,
  nav a:has(.site-logo) {
    min-width: 0;
    max-width: 52%;
  }
}

@media (min-width: 768px) {
  body.has-mobile-bar .whatsapp-float {
    bottom: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}
