/* Version 1.3.0 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@400&display=swap');

:root {
  --blue: #0B5394;
  --blue-hover: #08376b;
  --beige: #FFF6E8;
  --dark: #282722;
  --muted-beige: #d9d1c2;
  --radius-sm: 12px;
  --radius-lg: 1.5rem;
  --max-width: 1100px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--beige);
  color: var(--dark);
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent scrolling while modal open */
body.modal-open {
  overflow: hidden;
}

a {
   transition: var(--transition);
}
















h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 12px 0 18px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

h2 {
  color: var(--blue);
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
}





section {
  padding: 7rem 2rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}






@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
}




@media (max-width: 480px) {
  .modal-content {
    padding: 18px;
  }

  header h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  section {
    padding: 80px 20px;
  }
}
















/* Utility classes */

.center {
  text-align: center;
  align-self: center;
  align-items: center;
  align-content: center;
  justify-content: center;
  justify-items: center;
}

.reverse {
  flex-direction: row-reverse;
  /* direction: rtl; */
}





































/* --- Navbar base --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent; /* transparent initially */
  transition: var(--transition);
}

/* scrolled state: beige background and subtle shadow */
.navbar.scrolled {
  background: var(--beige);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* inner layout */
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
    transition: var(--transition);

}

.navbar.scrolled .nav-container {
  padding: 12px 22px;
  transition: var(--transition);
}

/* logo: standard/system font. beige initially, blue after scrolled */
.logo {
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--beige);
  text-decoration: none;
  transition: var(--transition);
}

.navbar.scrolled .logo {
  color: var(--blue);
}

/* desktop links */
.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-links a {
  color: var(--beige);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.navbar.scrolled .nav-links a {
  color: var(--dark);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--blue);
}

.navbar.scrolled .nav-links a:hover {
  background: rgba(11, 83, 148, 0.1);

}

/* Book Now button: stays blue with beige text always */
.btn-book {
  background-color: var(--blue) !important;
  color: var(--beige) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(11,83,148,0.12);
}
.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11,83,148,0.16);
}

/* Ensure scrolled state does NOT override btn-book appearance */
.navbar.scrolled .btn-book { 
  background: var(--blue) !important; 
  color: var(--beige) !important; 
}

/* mobile toggle (hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--beige);
  border-radius: 2px;
  transition: var(--transition);
}

/* toggle lines become dark when scrolled */
.navbar.scrolled .menu-toggle span {
  background: var(--dark);
}

/* mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96); /* nearly solid beige overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1200;
  pointer-events: none;
}

/* visible state */
.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* inner area holds the actual links; clicking here should NOT close overlay */
.mobile-menu-inner {
  width: 90%;
  max-width: 420px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-radius: 12px;
}

.mobile-menu-inner a {
  color: var(--dark);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  padding: 10px 0;
}

.mobile-menu-inner .btn-book {
  width: 80%;
  margin-top: 8px;
}

/* Responsive behavior */
@media (max-width: 850px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}
































/* HERO — static, video + overlay */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--beige);
  text-align: center;
}


/* 
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 17, 0.5);
  z-index: 4;
} */

.hero-content {
  position: relative;
  z-index: 5;
  color: var(--beige);
  max-width: var(--max-width);
  padding: 0 20px 40px 20px;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.5;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}


/* ---------- HERO TEXT ANIMATION ---------- */

/* Start hidden so there's no flicker before animation */
.hero-content h1,
.hero-content p {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* Fade + slide up animation */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animate after body.loaded is added */
body.loaded .hero-content h1 {
  animation: fadeSlideUp 0.8s ease-out forwards;
  animation-delay: 0.2s; /* starts first */
}

body.loaded .hero-content p {
  animation: fadeSlideUp 0.8s ease-out forwards;
  animation-delay: 0.4s; /* starts slightly after h1 */
}



/* smaller hero on mobile so text stays readable */

@media (max-width: 768px) {
  .hero-overlay p {
    font-size: 0.95rem;
  }
}










/* ---------- HERO BUTTONS (robust, fallback + no flicker) ---------- */
/* container */
.hero-buttons {
  display: flex !important;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 50;                      /* keep above overlays/chevrons */
  visibility: visible !important;
}


/* defensive reset for attributes that could hide it */
.hero-buttons[hidden], .hero-buttons[aria-hidden="true"] {
  display: flex !important;
  visibility: visible !important;
}

/* individual button base */
.hero-buttons .btn {
  flex: 1; /* each button takes equal available space */
  max-width: 220px; /* optional upper limit */
  text-align: center;
  white-space: nowrap;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  opacity: 0;                       /* initial for animation */
  transform: scale(0.95);
  will-change: opacity, transform;
  transition: background 0.25s, color 0.25s, transform 0.18s;
}

/* brand colors with safe fallbacks */
.hero-buttons .btn.primary {
  background: var(--blue, #0B5394);
  color: var(--beige, #FFF6E8);
  border: none;
}
.hero-buttons .btn.primary:hover {
  background: #093e73;
  transform: translateY(-2px);
}

.hero-buttons .btn.secondary {
  background: transparent;
  border: 2px solid var(--beige, #FFF6E8);
  color: var(--beige, #FFF6E8);
}
.hero-buttons .btn.secondary:hover {
  background: var(--beige, #FFF6E8);
  color: var(--dark, #282722);
  transform: translateY(-2px);
}

/* ---------- FADE + GENTLE SCALE ANIMATION ---------- */
@keyframes fadeGrow {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* trigger - supports body.loaded and a fallback class .animate on the container */
body.loaded .hero-buttons .btn,
.hero-buttons.animate .btn {
  animation-name: fadeGrow !important;
  animation-duration: 0.8s !important;
  animation-timing-function: ease-out !important;
  animation-fill-mode: forwards !important;
}

/* stagger */
body.loaded .hero-buttons .btn:nth-child(1),
.hero-buttons.animate .btn:nth-child(1) {
  animation-delay: 0.8s !important;
}
body.loaded .hero-buttons .btn:nth-child(2),
.hero-buttons.animate .btn:nth-child(2) {
  animation-delay: 1s !important;
}

/* ensure container visible after animation */

@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 240px; /* keeps nice button width, centered */
    text-align: center;
  }
}












/* ---------- SCROLL DOWN (3 stacked arrows) ---------- */
.scroll-down {
  position: absolute;
  bottom: 60px; /* distance from bottom */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  opacity: 0; /* start invisible for fade-in */
  will-change: opacity, transform;
  z-index: 30;
}

/* Each arrow */
.scroll-down span {
  width: 18px;
  height: 18px;
  border-left: 2px solid var(--beige, #FFF6E8);
  border-bottom: 2px solid var(--beige, #FFF6E8);
  transform: rotate(-45deg);
  animation: bounce 1.8s infinite;
  opacity: 0.9;
}

/* Slight stagger */
.scroll-down span:nth-child(2) { animation-delay: 0.1s; }
.scroll-down span:nth-child(3) { animation-delay: 0.2s; }

/* Bounce motion */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(-45deg); }
  40% { transform: translateY(6px) rotate(-45deg); }
  60% { transform: translateY(3px) rotate(-45deg); }
}

/* Fade + lift in */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateX(-50%) translateY(15px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Trigger after buttons */
body.loaded .scroll-down {
  animation: fadeInUp 1.2s ease-out forwards 1.4s;
}






























/* === Cards grid === */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px 30px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* margin: 30px 0; */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.card-image {
  overflow: hidden !important;
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content p {
  margin-bottom: 10px;
}

.price {
  color: var(--dark);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 10px 0 20px;
  letter-spacing: 0.03em;
}

.request-btn {
  background-color: var(--blue);
  color: #fff;
  border: none;
  padding: 14px;
  margin-top: 10px;
  margin-bottom: 0px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  text-align: center;
  width: 100%;
}

.request-btn:hover {
  background-color: var(--blue-hover);
}

















.dark-section {
  background-color: var(--dark);
  margin: 0px auto;
}

.dark-section h2 {
  color: var(--beige);
  text-align: center;
  margin-bottom: 4rem;
}

.dark-section h3 {
  color: var(--beige);
}

.dark-section p {
  color: var(--muted-beige);
}









/* --------- Card layout --------- */
.card-lg {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --------- Left: image column --------- */
.card-lg__image {
  flex: 0 0 40%;
  position: relative;
  min-width: 220px;
  overflow: hidden;
  display: flex;
}

/* both images fill the wrapper and cover */
.card-lg__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------- Right: content column --------- */
.card-lg__content {
  flex: 1 1 60%;
  padding: 4rem 3rem;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.card-lg__content .request-btn {
  margin-top: auto;
  text-decoration: none;
}

.card-lg__content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-lg__content p:last-of-type {
  margin-top: 1.2rem;
  margin-bottom: 1rem;
  color: var(--dark);
  font-weight: 600;
}

/* --------- Responsive: stacked layout on small screens --------- */
@media (max-width: 880px) {
  .card-lg {
    flex-direction: column;
  }
  .card-lg__content {
    padding: 2.5rem 2rem 3rem 2rem;
  }

  .card-lg__image {
    flex: 0 0 auto;
    height: 320px;
  }

  .card-lg__image img {
    position: absolute;
  }
}

@media (max-width: 480px) {
  .card-lg__content {
    padding: 1.5rem 30px 2.5rem 30px;
  }
}



















/* === Modal styles (centered, beige background) === */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
  animation: modalFadeIn 180ms ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content {
  background-color: white;
  color: var(--dark);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.modal h2 {
  margin: 12px 0 12px 0;
  color: var(--blue);
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  background: transparent;
  border: none;
  line-height: 1;
}

/* Small screens tweaks */
@media (max-width: 480px) {
  .modal-content {
    padding: 18px;
  }
}

/* Form inside modal */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.booking-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--muted-beige);
  font-size: 1rem;
  background: #fff;
  color: var(--dark);
  width: 100%;
}

/* Force date input to same width and style */
.booking-form input[type="date"] {
  width: 100% !important;
  /* fill same as other inputs */
  min-width: 0;
  /* override Safari default min width */
  -webkit-appearance: none;
  /* remove iOS default styling */
  appearance: none;
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--muted-beige);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.booking-form input:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 83, 148, 0.07);
}

.booking-form .required {
  color: #c62828;
  margin-left: 6px;
  font-weight: 700;
}

.submit-btn {
  margin-top: 4px;
  background-color: var(--blue);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background-color: var(--blue-hover);
}



















/* === Team Section === */

.team-section {
  text-align: center;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.team-member {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 220px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member .img-container {
  width: 120px;
  height: 120px;
  margin-bottom: 30px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.team-member h3 {
  margin: 0.5rem 0 0.25rem 0;
  font-size: 1.25rem;
}

.team-member p {
  font-size: 1rem;
  opacity: 0.8;
  margin: 0;
}

















/* === Location Section with embedded Google Map === */

.location-map iframe {
  width: 100%;
  height: 100.5%;
  border: 0;
  display: block;
}
















/* === Footer styles === */

/* Footer base */
.footer {
  background: var(--dark);
  color: var(--beige);
  padding: 80px 20px 40px 20px;
  /* font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; */
}

/* Top area */
.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 40px;
}

.footer h3 {
  margin: 0 0 12px 0;
  color: var(--beige);
  font-size: 1.15rem;
  font-weight: 600;
}

.footer p {
  color: var(--muted-beige);
  margin: 6px 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.footer a {
  color: var(--beige);
  text-decoration: none;
}

.footer a:hover {
  color: var(--blue);
}

/* Social buttons */
.footer .social-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
}

.footer .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  overflow: hidden;
}

/* Uniform icon sizing */
.footer .social-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  object-position: center;
}


/* ===== inline SVG social icon parity ===== */
.footer .social-btn {
  /* keep existing background / hover behaviour but ensure a color is provided for SVG */
  color: var(--beige); /* base icon colour */
}

/* size + layout same as .social-icon img */
.footer .social-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain; /* keep aspect similar to <img> behaviour */
}

/* force SVG strokes/fills to use the button color and match existing stroke styles */
.footer .social-btn svg path,
.footer .social-btn svg circle,
.footer .social-btn svg rect,
.footer .social-btn svg line,
.footer .social-btn svg polyline,
.footer .social-btn svg polygon {
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-miterlimit: 10 !important;
  transition: none !important; /* instant color switch to match imgs */
}

/* If the SVG contains filled shapes that should be filled (not outline),
   you can override fill where needed, e.g. .fill-current { fill: currentColor; } */

/* hover color match */
.footer .social-btn:hover { color: var(--blue); }

/* Hover: lift & background glow */
.footer .social-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}





/* Divider */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  max-width: var(--max-width);
  margin: 10px auto;
}

/* Bottom bar */
.footer-bottom {
  max-width: var(--max-width);
  font-size: 0.9rem;
  font-weight: 200;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  gap: 16px;
}
.footer-bottom p {
  margin: 6px 0;
  color: var(--muted-beige);
  font-size: 0.7rem !important;
}

/* Responsive */
@media (max-width: 880px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 20px;
  }
}

@media (max-width: 500px) {
  .footer-top {
    grid-template-columns: repeat(1, 1fr);
  }
}























.rajaampat {
  font-family: 'Dosis', sans-serif !important;
  font-size: 1.3rem;
  color: white !important;
  font-variant: small-caps !important;
  /* letter-spacing: 0.06em; */
  transition: var(--transition);
}

.rajaampat .empty-span {
  display: inline-block !important;
  width: 0.1em !important;
}

.rajaampat:hover {
  color: #f8b864 !important;
  text-decoration: none;
}

.rajaampat .colored {
  color: #f8b864 !important;
  transition: var(--transition);
}

.rajaampat:hover .colored {
  color: white !important;
}




































/* ===== LQIP blur-up: 14px blur then sharp ===== */
.img-container {
  overflow: hidden !important;
  border: #c62828 solid 1px;
}

.lqip {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 100%;
  max-width: 100%;
  /* initial visual: blurred placeholder */
  filter: blur(30px) saturate(1.05);
  transform: scale(1.03);
  transition: filter 420ms cubic-bezier(.2,.8,.2,1), transform 420ms, opacity 360ms ease;
  will-change: filter, transform, opacity;
  background-color: #ececec; /* fallback while placeholder loads */
}

/* loaded state -> remove blur and normalize scale */
.lqip.lqip--loaded {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}

/* reduce motion users: disable blur animation */
@media (prefers-reduced-motion: reduce) {
  .lqip { transition: none !important; }
}




















/* Make video-figure behave like the old hero-bg (full-cover background layer) */
.video-figure {
  position: absolute;    /* remove from normal flow */
  inset: 0;              /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  z-index: 0;            /* sit behind content; hero-content will be above */
  display: block;
  pointer-events: none;  /* avoid intercepting clicks */
  overflow: hidden;      /* clip blur halo and video edges */
  background-color: var(--dark);/* fallback while loading */
  border-radius: inherit;/* keep rounding if hero uses it */
}

.video-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3; /* above video & placeholder, below .hero-content */
  background: rgba(0, 0, 0, 0.5); /* adjust darkness here */
  pointer-events: none; /* make sure it doesn't block clicks */
  /* transition: background 0.4s ease; */
}

/* Placeholder / poster (fills layer, blurred until loaded) */
.video-figure img.placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  pointer-events: none;
  filter: blur(14px) saturate(1.05);
  transform: scale(1.03);
  transition: filter .42s cubic-bezier(.2,.8,.2,1), transform .42s, opacity .36s ease;
  opacity: 1;
  border-radius: inherit;
}

/* Poster loaded (remove blur) */
.video-figure img.placeholder.loaded {
  filter: blur(0);
  transform: scale(1);
}

/* Video sits above poster but below interactive content */
.video-figure video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity .42s ease-in-out;
  pointer-events: none; /* keep hero buttons clickable */
  border-radius: inherit;
}

/* When we want to show the video, add this class to wrapper */
.video-figure.video-ready video { opacity: 1; }

/* hero content (text, buttons) must be above the video */
.hero-content {
  position: relative;
  z-index: 5;
  pointer-events: auto; /* allow interactions */
}

/* Play button overlay (only shows when auto-load prevented) */
.video-figure .video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  background: rgba(11,83,148,0.88);
  color: #fff;
  border: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  pointer-events: auto; /* allow clicking */
}

/* hide play button by default; script will unhide when appropriate */
.video-figure .video-play[hidden] { display: none !important; }

/* Small screens: ensure hero has a sensible min-height so cover looks good */
@media (max-width: 900px) {
  .hero { min-height: 56vh; } /* adjust as your design requires */
}













