/* ==========================================================================
   Pub Passport – Custom CSS (extends Tailwind utilities)
   ========================================================================== */

/* ---------- Base ---------- */
body {
  margin: 0;
  padding: 0;
  background-color: #F8F5F0;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typography Helpers ---------- */
.text-underline-gold {
  text-decoration: underline;
  text-decoration-color: #D4A373;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.dotted-underline {
  background-image: linear-gradient(to right, #D4A373 33%, rgba(255,255,255,0) 0%);
  background-position: bottom;
  background-size: 8px 2px;
  background-repeat: repeat-x;
  padding-bottom: 4px;
}

/* ---------- Scrollbar Hide ---------- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
#mobile-menu.active {
  transform: translateX(0);
}
#mobile-menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
#mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ---------- Mobile Menu Item Animations ---------- */
.menu-item-animate {
  opacity: 0;
  transform: translateX(20px);
  animation: slideIn 0.4s ease-out forwards;
}
@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}
.menu-item-animate:nth-child(1) { animation-delay: 0.1s; }
.menu-item-animate:nth-child(2) { animation-delay: 0.15s; }
.menu-item-animate:nth-child(3) { animation-delay: 0.2s; }
.menu-item-animate:nth-child(4) { animation-delay: 0.25s; }
.menu-item-animate:nth-child(5) { animation-delay: 0.3s; }

/* ---------- WordPress Nav Menu Integration ---------- */
#primary-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#primary-menu li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item a {
  color: #D4A373;
}

/* Mobile wp_nav_menu inside sliding panel */
#mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Form Styles ---------- */
.form-input {
  width: 100%;
  border: 1px solid #EFEBE4;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
  background-color: #F8F5F0;
  color: #1f2937;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: #D4A373;
  box-shadow: 0 0 0 3px rgba(212,163,115,0.2);
  background-color: #ffffff;
}
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #1F3D2B;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.checkbox-custom {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #D4A373;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.checkbox-custom:checked {
  background-color: #8B1E1E;
  border-color: #8B1E1E;
}
.checkbox-custom:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- FAQ Accordion ---------- */
.faq-accordion .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}
.faq-accordion.active .faq-content {
  max-height: 500px;
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.faq-accordion .fa-chevron-down {
  transition: transform 0.3s ease;
}
.faq-accordion.active .fa-chevron-down {
  transform: rotate(180deg);
}

/* ---------- Become a Partner – Progress Bar ---------- */
#iymb3x { width: 68%; }

/* ---------- Shadow Utilities (mirrors Tailwind custom config) ---------- */
.shadow-soft    { box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); }
.shadow-floating { box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1); }

/* ---------- Animate Bounce (mirrors Tailwind default) ---------- */
.animate-bounce {
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

/* ---------- Partner With Us – Plotly Chart Responsive ---------- */
#impact-chart { height: 250px; width: 100%; }

/* ---------- Utility overrides for WP core ---------- */
img { max-width: 100%; height: auto; }
a { color: inherit; }
*, *::before, *::after { box-sizing: border-box; }
