/*
  Custom styles that complement the Tailwind utility classes used in index.html.
  Tailwind is loaded via CDN in index.html <head>.
*/

/* Deep, understated gradient for the hero banner */
.hero-bg {
  background: linear-gradient(135deg, #0a2e1e 0%, #0c5f36 55%, #0f7a44 100%);
}

/* Quick-fact pills: quiet, outlined, not shouty */
.fact-pill {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  color: #ecfdf3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

/* Season cards */
.season-card {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 24px -12px rgba(15, 23, 42, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.season-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 20px 30px -14px rgba(15, 23, 42, 0.18);
}

.season-card.is-current {
  border-width: 2px;
  border-color: #0f7a44;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 24px -12px rgba(15, 23, 42, 0.12),
    0 0 0 4px rgba(245, 158, 11, 0.18), 0 0 28px 2px rgba(245, 158, 11, 0.35);
}

.season-card.is-current:hover {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 20px 30px -14px rgba(15, 23, 42, 0.18),
    0 0 0 4px rgba(245, 158, 11, 0.22), 0 0 32px 4px rgba(245, 158, 11, 0.45);
}

.season-label {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0c5f36;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #edf2ee;
}

.season-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: #334155;
  font-size: 0.975rem;
}

.season-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
}

.icon {
  flex-shrink: 0;
  font-size: 1rem;
  opacity: 0.85;
}

.map-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.map-link:hover {
  color: #0c5f36;
  border-bottom-color: #0c5f36;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  background: #0f7a44;
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(15, 122, 68, 0.55);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-link:hover {
  background: #0c5f36;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(15, 122, 68, 0.6);
}

.whatsapp-subtext {
  max-width: 28rem;
  margin: 0.9rem auto 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* Meet the Admins carousel */
.admin-carousel {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 34rem;
  margin: 0 auto;
}

.admin-track {
  flex: 1;
  overflow: hidden;
}

.admin-slide {
  display: none;
  justify-content: center;
  animation: fade-in 0.25s ease;
}

.admin-slide.active {
  display: flex;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Framed-photo card: a mat border around the image with the name as a caption */
.admin-frame {
  background: #ffffff;
  padding: 0.75rem 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.2);
}

.admin-photo {
  display: block;
  width: 24rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.25rem;
}

.admin-name {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid #edf2ee;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0c5f36;
}

.admin-desc {
  margin-top: 0.3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.carousel-nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #0c5f36;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.carousel-nav:hover {
  background: #ecfdf3;
  transform: translateY(-1px);
}

.carousel-nav-left {
  margin-right: 0.75rem;
}

.carousel-nav-right {
  margin-left: 0.75rem;
}

.admin-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.admin-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #d1fae0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.admin-dot.active {
  background: #0f7a44;
}

/* "Active now" tag: a quiet label, not a badge shouting for attention */
.now-tag {
  position: absolute;
  top: -0.7rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  color: #0c5f36;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid #d1fae0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.now-tag .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #0f7a44;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .now-tag .dot {
    animation: none;
  }
}

/* Decorative divider between sections */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.divider-line {
  flex: 1;
  max-width: 9rem;
  height: 1px;
  background: #d1fae0;
}

.divider-icon {
  font-size: 1.75rem;
  transform: rotate(-25deg);
}

/* FAQs accordion */
.faq-list {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item.open {
  border-color: #0f7a44;
  box-shadow: 0 12px 24px -14px rgba(15, 23, 42, 0.18);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #0c5f36;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f7a44;
  transition: transform 0.2s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 12rem;
}

.faq-answer p {
  padding: 0 1.4rem 1.1rem;
  color: #475569;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    transition: none;
  }
}

/* WhatsApp join captcha */
#captcha-modal.flex {
  display: flex;
}

.captcha-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  font-size: 1.4rem;
  line-height: 1;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
}

.captcha-close:hover {
  color: #475569;
}

.captcha-grid {
  position: relative;
  display: grid;
  /* Matches the hand-drawn grid lines baked into Captcha_Image.png (976x961),
     measured in pixels: columns split at 240/488/735, rows split at 247/495/734. */
  grid-template-columns: 24.6% 25.4% 25.3% 24.7%;
  grid-template-rows: 25.7% 25.8% 24.9% 23.6%;
  aspect-ratio: 976 / 961;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-image: url('../img/Captcha_Image.png');
  background-size: 100% 100%;
  background-position: top center;
}

.captcha-cell {
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.captcha-cell.selected {
  background: rgba(15, 122, 68, 0.4);
  border-color: #0f7a44;
}

.captcha-error {
  text-align: center;
  font-size: 0.85rem;
  color: #dc2626;
  margin-top: 0.75rem;
}
