/* =====================================================================
   Jama Foundation — post-migration layout fixes
   These rules fill in CSS classes that exist in HTML but were not
   exported from Webflow (inner-page templates were never in the export).
   ===================================================================== */

/* Inner-page hero section
   banner-img-wrap is position:absolute with inset:0 0 0 auto — it needs
   a positioned parent with a real height or it anchors to the viewport. */
.page-hero-section {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* The hero owns its container — no dependency on Webflow's .base-container.
   This is what makes the page-hero a self-contained (deep) module: its layout
   is reasoned about in one place and never overrides a Webflow class. */
.page-hero__inner {
  width: 100%;
  max-width: 1345px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-hero-content-wrap {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px;
  max-width: 520px;
  text-align: left;
}

/* Hero text stays on the left, clear of the right-anchored image */
.page-hero-section .subtitle,
.page-hero-content-wrap h1 {
  position: relative;
  z-index: 2;
  text-align: left;
}

/* Cause / project card image links — enforce consistent image height */
.collection-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Review (testimonial) card image — constrain to a circle thumbnail */
.review-img {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  object-fit: cover;
}

/* Responsive: tighten hero on small screens */
@media (max-width: 767px) {
  .page-hero-section {
    height: 320px;
  }

  .page-hero-content-wrap {
    padding: 100px 0 50px;
  }
}

/* =====================================================================
   Phase 2 — interactions reimplemented without the Webflow runtime / jQuery.
   Paired with assets/js/site.js.
   ===================================================================== */

/* Navbar: white + shadow once scrolled past the hero (replaces the IX bg) */
.navbar-transparentt.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.navbar-transparentt.scrolled .nav-shadow {
  opacity: 1;
}

/* Cause / project card hover zoom (replaces the baked-in scale3d(1.1)) */
.collection-item-image-link {
  display: block;
  overflow: hidden;
}
.collection-item-image {
  transition: transform 0.5s ease;
}
.collection-item-image-link:hover .collection-item-image {
  transform: scale(1.1);
}

/* "About Us" dropdown: hover on desktop, tap (.w--open) on mobile */
@media (min-width: 992px) {
  .nav-dropdown:hover .nav-dropdown-list {
    display: block;
    height: auto;
    opacity: 1;
  }
}
.nav-dropdown-list.w--open {
  display: block;
  height: auto;
  opacity: 1;
}

/* Mobile menu: hamburger slides .nav-menu in from the left over an overlay.
   !important guards the layout against Webflow's own mobile-nav rules. */
@media (max-width: 991px) {
  .navbar-transparentt .nav-menu {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 82% !important;
    max-width: 320px !important;
    height: auto !important;
    padding: 24px !important;
    background: #fff !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    transform: translateX(-100%) !important;
    transition: transform 0.35s ease;
  }
  .navbar-transparentt.nav-open .nav-menu {
    transform: translateX(0) !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  }
  .navbar-transparentt .w-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }
  .navbar-transparentt.nav-open .w-nav-overlay {
    display: block;
  }
  .navbar-transparentt .nav-dropdown-list {
    position: static;
  }
}

/* Video lightbox modal (built by site.js) */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
}
.video-modal__inner {
  position: relative;
  width: min(940px, 100%);
}
.video-modal__frame {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
}
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}
.video-modal__close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* Testimonials marquee (site.js duplicates the strip; CSS animates the loop) */
.reviews-large-wrapper.marquee {
  display: flex;
  width: max-content;
  animation: jf-marquee 60s linear infinite;
}
.reviews-large-wrapper.marquee .review-wrap {
  display: flex;
  flex: 0 0 auto;
}
.reviews-wrap:hover .reviews-large-wrapper.marquee {
  animation-play-state: paused;
}
@keyframes jf-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
