/* Bright Mentors — Custom additions on top of Tailwind */

:root {
  --bm-blue: #1F6FA8;
  --bm-blue-dark: #15527E;
  --bm-orange: #F47920;
  --bm-orange-dark: #DD6B0F;
  --bm-ink: #1A2433;
  --bm-bg: #FAFAF7;
  --bm-line: #E5E7EB;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--bm-ink);
  background: var(--bm-bg);
}

.font-display {
  font-family: 'Sora', system-ui, sans-serif;
}

/* Reveal-on-scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Hero floating shapes */
.float-shape {
  position: absolute;
  border-radius: 50%;
  animation: float-bob 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* FAQ accordion plus icon rotation */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary .faq-plus { transition: transform 0.2s ease; }
details[open] > summary .faq-plus { transform: rotate(45deg); }

/* Smooth focus styles */
:focus-visible {
  outline: 3px solid var(--bm-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle nav active underline */
.nav-link[aria-current="page"] {
  color: var(--bm-blue);
  position: relative;
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--bm-orange);
}

/* Logo height in header */
.logo-img { height: 44px; width: auto; }

/* Form input styles */
.form-input {
  width: 100%;
  border: 1.5px solid var(--bm-line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color .15s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--bm-blue);
}
.form-input::placeholder { color: #9CA3AF; }

/* Mobile menu */
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-menu.open { max-height: 500px; }

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 14px 18px;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
  color: white;
}
.whatsapp-fab svg { flex-shrink: 0; }
.whatsapp-fab .label { display: none; }

/* Pulsing ring effect */
.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab::before { animation: none; }
}

/* Show label on wider screens */
@media (min-width: 640px) {
  .whatsapp-fab .label { display: inline; }
}
@media (max-width: 639px) {
  .whatsapp-fab { padding: 14px; }
}

/* Select dropdown styling */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231F6FA8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
select.form-input optgroup {
  font-weight: 700;
  color: var(--bm-blue);
  font-style: normal;
}
select.form-input option {
  color: var(--bm-ink);
  font-weight: 400;
  padding: 0.5em;
}
