/* ------------------------------------------------------------
   site.css — utility/layout rules that replace what Webflow's
   framework stylesheet (webflow.css) used to provide.
   Loaded AFTER styles.css so it can patch defaults safely.
   ------------------------------------------------------------ */

/* CRITICAL global resets that Webflow used to apply via webflow.css.
   Without these, images render at native resolution and padded
   elements overflow their parents.                                  */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

/* Anchors used as blocks */
.inline-block {
  max-width: 100%;
  display: inline-block;
}

/* Buttons: matches the visual the Webflow .w-button supplied */
.button,
button.button,
input[type="submit"].button {
  display: inline-block;
  padding: 9px 15px;
  background-color: #3898ec;
  color: #fff;
  border: 0;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}
.button.center { display: inline-block; }

/* Form basics — replaces Webflow's .w-input / .w-select baseline */
.form-field,
input.form-field,
textarea.form-field,
select.form-field,
input[type="text"].form-field,
input[type="email"].form-field,
input[type="tel"].form-field,
input[type="number"].form-field,
input[type="password"].form-field {
  display: block;
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.42857;
  color: #333;
  vertical-align: middle;
  background-color: #fff;
  border: 1px solid #cccccc;
}
textarea.form-field { height: auto; min-height: 96px; }

/* ------------------------------------------------------------
   Responsive navbar — replaces .w-nav layout
   The original design (preserved in styles.css) is:
     * a white logo bar (.header-wrapper, inside .navbar)
     * a separate dark band of nav links (.nav-menu) below it
   We let those two stack naturally and add a mobile hamburger.
   ------------------------------------------------------------ */
.header { width: 100%; }

.navbar {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1000;
}

/* Top row: logo + title (and, on mobile, the hamburger) */
.navbar .header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  padding: 12px 24px;
}

/* Nav links band — full-width dark band on desktop, hidden on mobile.
   The dark background and width:100% live in styles.css; we just give
   it horizontal flex layout. */
.navbar .nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.nav-link {
  display: inline-block;
  padding: 16px 18px;
  text-decoration: none;
}
.nav-link[aria-current="page"] {
  opacity: 0.7;
}

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  padding: 0;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background-color: #222;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile breakpoint — match Webflow's "medium" collapse (<= 991px).
   Hide the nav band; reveal it as a dropdown when the hamburger is tapped. */
@media (max-width: 991px) {
  .navbar .header-wrapper { padding: 12px 16px; }
  .nav-toggle { display: inline-block; }
  .navbar .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .navbar .nav-menu.is-open { display: flex; }
  .nav-link {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* ------------------------------------------------------------
   Slider (replaces Webflow's .w-slider runtime)
   The .slider container holds:
     * a "mask" wrapper (1st direct div child)
         * each slide is a direct div child of the mask
     * left arrow (2nd direct div), right arrow (3rd direct div)
     * .slide-nav (dot navigation)
   ------------------------------------------------------------ */
.slider {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

/* The mask: first direct child of .slider */
.slider > div:nth-child(1) {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 320px;
}

/* Each slide is absolutely stacked, only the active one is visible */
.slider > div:nth-child(1) > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
  pointer-events: none;
}
.slider > div:nth-child(1) > div.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Slide arrows — Webflow's were divs at indices 2 and 3 of .slider.
   We render them as accessible buttons via JS but also style the
   original divs for graceful fallback. */
.slider-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 28px;
  z-index: 2;
}
.slider-arrow.left { left: 0; }
.slider-arrow.right { right: 0; }
.slider-arrow:hover { background: rgba(0,0,0,0.15); }

/* Nav dots */
.slide-nav {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  padding-top: 0 !important;   /* override styles.css 88px */
  z-index: 2;
}
.slide-nav button {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background 0.2s;
}
.slide-nav button.is-active { background: #fff; }
.slide-nav button:focus { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 2px; }

/* Cookie banner: hidden by default, JS reveals it */
.cookie-banner { display: none; }

/* Lock body scroll when mobile nav is open */
body.nav-open { overflow: hidden; }

/* ------------------------------------------------------------
   Video lightbox (replaces .w-lightbox)
   ------------------------------------------------------------ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-overlay.is-open { display: flex; }
body.lightbox-open { overflow: hidden; }

.lightbox-frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
/* aspect-ratio fallback for older browsers */
@supports not (aspect-ratio: 16 / 9) {
  .lightbox-frame {
    height: 0;
    padding-bottom: 56.25%;
  }
  .lightbox-frame iframe {
    position: absolute;
    inset: 0;
  }
}
.lightbox-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.lightbox-close:hover { opacity: 0.75; }

/* Make video-link anchors look clickable even before JS runs */
a[href="#"]:has(> script[type="application/json"]) {
  cursor: pointer;
}
