/* Custom overrides for Footmender Astro migration */

/* Fix any Webflow-specific quirks in Astro context */
body {
  min-height: 100vh;
}

/* Language selector styles */
.lang-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-selector a {
  text-decoration: none;
  color: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: background-color 0.2s;
}

.lang-selector a:hover,
.lang-selector a.active {
  background-color: rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #e2e2e2;
}

.faq-question {
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  content: '−';
}

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

.faq-item.open .faq-answer {
  max-height: 1000px;
  padding-bottom: 1.25rem;
}

/* Dropdown menus */
.dropdown-list {
  display: none;
  opacity: 0;
  transition: opacity 0.2s;
  position: absolute;
  z-index: 999;
}

.dropdown-list.w--open,
.nav-menu-wrapper.w--open {
  display: block !important;
  opacity: 1 !important;
}

/* Mobile nav */
@media (max-width: 991px) {
  .nav-menu-wrapper {
    display: none;
  }
  .nav-menu-wrapper.w--open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    padding: 1rem;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ===== VISUAL POLISH ===== */

/* Page header hero image overlay - let Webflow CSS handle positioning */

.div-block-12 {
  position: absolute;
  right: 5%;
  bottom: 0;
  z-index: 2;
}

.header-accommodating-image {
  max-height: 280px;
  width: auto;
}

/* Ensure hero text sits above the image overlay */
.hero-wrapper.v1.has-cover .page-header {
  position: relative;
  z-index: 3;
}

/* White background modifier for product images in cards */
.image-wrapper.content-card-v20.video-wrapper.white-background {
  background-color: #fff;
}

.image-wrapper.content-card-v20.video-wrapper.white-background .image.cover-image {
  object-fit: contain;
  padding: 1rem;
}

/* Cards container stacking */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Category buttons active state */
.category-button.w--current {
  background-color: #1a1a2e;
  color: #fff;
}

.category-button.w--current .display-2 {
  color: #fff;
}

/* Marquee animation - ensure continuous scroll */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.testimonial-marquee.marquee {
  display: flex;
  gap: 1rem;
}

/* Review cards in marquee */
.review-card {
  flex-shrink: 0;
}

/* Reviews section spacing */
.reviews-section .paragraph-22 {
  text-align: center;
}

/* Stats section intro padding */
.section-card.stats-section.padding {
  padding: 2rem;
}

.paragraph-12.no-padding {
  margin-bottom: 0;
}

/* Footer verification text */
footer.footer-wrapper > .paragraph-22 {
  text-align: center;
  padding: 1rem 0;
}

/* Mobile responsive adjustments */
@media (max-width: 479px) {
  .header-accommodating-image {
    max-height: 140px;
  }
}

/* heading-small - don't override Webflow's font-weight: 300 */

/* Buttons row centering */
.buttons-row {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* "How Footmender works" headings */
.heading-12,
.heading-13 {
  text-align: center;
}

/* Card title-top-bottom-avatar in marquee */
.card.title-top-bottom-avatar {
  flex-shrink: 0;
}

/* Ensure base-icon-font and filled-icons-font render (Webflow icon fonts) */
.base-icon-font::before {
  content: '→';
}

.filled-icons-font.review-stars::before {
  content: '★';
  color: #c41230;
}
