:root {
  --header-height: 82px;
  --header-bg: rgba(23, 72, 124, 0.92);          /* MIDAS blue with slight transparency */
  --header-bg-scrolled: rgba(23, 72, 124, 0.98);
  --border-color: rgba(255,255,255,0.18);
  --brand-size: 46px;
  --transition: 220ms ease;
  --text-on-dark: #f4f9ff;
  --accent: #00b4d8;
  --hero-height: 70vh;
  --hero-img-shift: 20%;
}

:root{ --parent-pad-left: 65px; }
@media (max-width: 700px){ :root{ --parent-pad-left: 0px; } }


:root{
  --elephant-x: 0px;     /* movement X */
  --elephant-y: 0px;     /* movement Y */
  --elephant-w: 194px;   /* size */
}


.parent {
  background: rgba(255, 0, 0, 0);
  min-height: 1034px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(192px, auto));
  gap: 36px;
  grid-auto-rows: 100px;
  grid-auto-rows: auto;
}
@media (max-width: 1080px){
  .parent{
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 700px){
  .parent{ grid-template-columns: 1fr; }
  .parent .midas-card,
  .parent .item2{
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }}

.parent .midas-card {
  grid-column: 1/5;
  grid-row: 1/3;
  display: inline-block;
}
.midas-card{
  width: min(92vw, 980px);
  margin: 24px auto;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  background: rgba(42, 255, 131, 0);
  max-height: 338px;
  position: relative;
  left: -1px;
  top: -22px;
  height: 4px;
}

.midas-card__media img{
  margin: 0 auto;
  display: block;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* glass box */
.midas-card__body{
  padding: 22px 18px 56px;
  background: rgb(248, 252, 255);
    background-image: none;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgb(255, 255, 255);
  position: relative;
  left: 0;
  top: -26px;
  border-radius: 26px;
  background-image: linear-gradient( 45deg, rgba(234, 249, 254, 0.3) 0%, rgba(143, 220, 226, 0.3) 100% );
  backdrop-filter: blur(3.2rem);
  box-shadow: 1rem 1rem 3rem rgba(0, 0, 0, 0.16);
}

.midas-card__body h2{
  margin: 0 0 10px;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.15;
  color: #17487c;
}

/* float button */
.midas-card__body .btn-pill{
  position: absolute;
  right: 18px;
  bottom: -22px;
  z-index: 5;
}

.slash-line{
display: block;
  width: 247px;
  height: 10px;
  margin: 10px 0;
  border-radius: 6px;
  opacity: .95;
  background: repeating-linear-gradient( 113deg, #00e8e8 0 2px, transparent 1px 9px ) !important;
}

.midas-card h2{
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 400;
  }
.midas-card p { 
  font-size: clamp(13px, 1.2vw, 19px);
  font-weight: 400;
}

.btn-pill{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: -12px;
  margin-left: -8px;

  padding: 5px 5px 5px 20px;
  border-radius: 999px;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  
}

.btn-pill__text{
  color: #146f80;
  font-weight: 700;
  letter-spacing: .02em;
  font-family: Tahoma, sans-serif;
}

.btn-pill__icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,232,232,0.22);
  border: 1px solid rgba(0,232,232,0.40);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.btn-pill__icon svg{
  width: 22px;
  height: 22px;
  fill: #146f80;
}

.btn-pill:hover .btn-pill__icon{
  background: rgba(20,111,128,0.22);
  border-color: rgba(20,111,128,0.35);
  transform: translateX(2px);
}


body { padding-top: 0; }
.main-content-area { padding-top: 10px; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999; 
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  background: rgba(255,255,255,0.92);
}
.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-color: var(--border-color);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  height: var(--header-height);
  padding: 0 24px;
}

.brand img { height: var(--brand-size); width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }

.hamburger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  background: transparent;
  padding: 9px;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition);
}
.hamburger span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  transition: max-height var(--transition), opacity var(--transition);
}
.main-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-on-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 0;
  transition: color var(--transition), opacity var(--transition);
}
.main-nav a:hover { color: var(--accent); }

.lang-switch form { display: flex; gap: 8px; }
.lang-switch button {
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--text-on-dark);
  padding: 6px 11px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.lang-switch button:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); color: #fff; }

.social-media-menu-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.social-media-menu-wrapper a { text-decoration: none; font-size: 18px; color: var(--text-on-dark); }
.cart-count { margin-left: 4px; font-size: 12px; }

/* Mobile / tablet collapse */
@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto 1fr auto;
    gap: 14px;
  }
  .hamburger { display: flex; }
  .main-nav,
  .lang-switch {
    position: relative;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(23,72,124,0.95);
    border-radius: 0 0 14px 14px;
    padding: 0 6px;
  }
  .site-header.full .main-nav,
  .site-header.full .lang-switch {
    max-height: 260px;
    opacity: 1;
  }
  .main-nav ul { flex-direction: column; padding: 12px 0; }
  .lang-switch { padding: 0 0 12px 0; }
}

/* Phone tweaks */
@media (max-width: 768px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand img { height: 36px; }
  .main-nav ul { gap: 10px; }
  .social-media-menu-wrapper { gap: 10px; }
  /* requirement 3 */
  .site-header.scrolled:not(.full) .social-media-menu-wrapper {
    position: absolute;
    right: clamp(10px, 3vw, 18px);
    top: 50%;

  }
}

/* Hero wave overlay */
.desktop-slider-container,
.mobile-slider-container {
  position: relative;
  overflow: hidden;
}
.hero-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  height: 45%;


  z-index: 2;
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }
.wave-mobile { display: none; }

@media (max-width: 1912px) {
  .wave-desktop { display: none; }
  .wave-mobile { display: block; }
}

/* Wave header GSAP target */
.wave-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(120px, 18vw, 210px);
  z-index: 900;
  pointer-events: none;
  overflow: hidden;
  filter: none;
  opacity: 1;
  
}
.wave-logo {
  position: absolute;
  top: 16px;
  left: 28px;
  height: 68px;
  width: auto;
  z-index: 910;
}
.wave-header__svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: translateY(-4px); /* nudge up to cover any gap */

  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
  animation: none;
}
.wave-header__svg-small {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.36;
  filter: none;

  animation: none;
  will-change: transform;
}


/* === Slider bottom curve (restore) === */
#desktop-slider.slider-container-base,
#mobile-slider.slider-container-base{
  position: relative;
  overflow: hidden;
}
#desktop-slider .slider-curve-overlay,
#mobile-slider .slider-curve-overlay{
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 235px; /* curve.svg viewBox height */
  z-index: 5;
  pointer-events: none;
  display: block;
}
@media (max-width: 768px){
  #desktop-slider .slider-curve-overlay,
  #mobile-slider .slider-curve-overlay{ height: 120px; }
}

/* === Force slider + curve to be full-screen width (edge-to-edge) === */
#desktop-slider,
#mobile-slider{
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#desktop-slider .slider-curve-overlay,
#mobile-slider .slider-curve-overlay{
  width: 100vw !important;
  left: 50% !important;

}

/* Home: remove top gap caused by .main-content-area padding */
.main-content-area > #desktop-slider,
.main-content-area > #mobile-slider{
  margin-top: -20px !important; /* matches base.html .main-content-area padding */
}

/* Set front logo size (header brand) */
.brand img{
  width: 206px !important;
  height: 80px !important;
  max-width: 206px !important;
  max-height: 80px !important;
  object-fit: contain !important;
}

/* Move header logo 40px to the right */
.brand{ padding-left: 40px !important; }

/* Better: move only the logo image without shifting layout */
.brand{ padding-left: 0 !important; }
.brand img{ transform: translateX(40px) !important; }

/* Move the header wave logo (it's #wave-logo, not .brand img) */
#wave-logo.wave-logo{ transform: translateX(40px) !important; }

/* Size the wave header logo */
#wave-logo.wave-logo{
  width: 206px !important;
  height: 80px !important;
  max-width: 206px !important;
  max-height: 80px !important;
  object-fit: contain !important;
}

/* Slider floating action buttons (mail/phone/account) */
#desktop-slider .slider-fab,
#mobile-slider .slider-fab{
  position: absolute;
  right: clamp(14px, 2vw, 28px);
  top: clamp(90px, 10vw, 140px);
  display: flex;
  gap: 10px;
  z-index: 20;
}
#desktop-slider .slider-fab .fab,
#mobile-slider .slider-fab .fab{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(127,200,198,0.95);
  border: 2px solid rgba(255,255,255,0.75);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}
#desktop-slider .slider-fab .fab img,
#mobile-slider .slider-fab .fab img{
  width: 22px;
  height: 22px;
  display: block;
  filter: brightness(0) invert(1);
}
#desktop-slider .slider-fab .fab:hover,
#mobile-slider .slider-fab .fab:hover{

}
@media (max-width: 600px){
  /* Mobile: give the card more vertical room so next items appear below */
  .parent{ min-height: auto; height: auto; }
  .midas-card{ max-height: none; top: 0; margin: 16px auto 28px; }


  #desktop-slider .slider-fab,
  #mobile-slider .slider-fab{ top: 70px; gap: 8px; }
  #desktop-slider .slider-fab .fab,
  #mobile-slider .slider-fab .fab{ width: 40px; height: 40px; }
  #desktop-slider .slider-fab .fab img,
  #mobile-slider .slider-fab .fab img{ width: 20px; height: 20px; }
}

/* Position FABs exactly on the slider image (top-right), above header wave */
#desktop-slider .slider-fab,
#mobile-slider .slider-fab{
  right: 24px !important;
  top: 120px !important;
  z-index: 950 !important; /* above .wave-header (900) */
}
@media (max-width: 600px){
  #desktop-slider .slider-fab,
  #mobile-slider .slider-fab{ right: 16px !important; top: 86px !important; }
}

/* Icons are already colored (SVG includes its own styling) */
#desktop-slider .slider-fab .fab img,
#mobile-slider .slider-fab .fab img{
  filter: none !important;
  width: 26px !important;
  height: 26px !important;
}

/* Use SVG icons as-is (they already include the round background) */
#desktop-slider .slider-fab .fab,
#mobile-slider .slider-fab .fab{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}
#desktop-slider .slider-fab .fab img,
#mobile-slider .slider-fab .fab img{
  width: 44px !important;
  height: 44px !important;
  filter: none !important;
}

/* Per-icon positioning for slider FABs (each icon independently) */
#desktop-slider .slider-fab,
#mobile-slider .slider-fab{
  position: absolute;
  inset: 0;
  z-index: 950;
  pointer-events: none;
}
#desktop-slider .slider-fab .fab,
#mobile-slider .slider-fab .fab{
  position: absolute;
  pointer-events: auto;
}

/* Desktop defaults (edit these 3 lines) */
#desktop-slider .slider-fab .fab-mail{ right: 174px; top: -14px; }
#desktop-slider .slider-fab .fab-phone{ right: 127px; top: -1px; }
#desktop-slider .slider-fab .fab-person{ right: 80px; top: 11px; }

/* Mobile defaults (edit these 3 lines) */
@media (max-width: 600px){
  #mobile-slider .slider-fab .fab-mail{ right: 108px; top: 86px; }
  #mobile-slider .slider-fab .fab-phone{ right: 60px; top: 86px; }
  #mobile-slider .slider-fab .fab-person{ right: 12px; top: 86px; }
}

/* Disable any hover/transition animation for slider FABs */
#desktop-slider .slider-fab .fab,
#mobile-slider .slider-fab .fab{
  transition: none !important;
}
#desktop-slider .slider-fab .fab:hover,
#mobile-slider .slider-fab .fab:hover{
}

/* Global floating buttons on all pages (follow scroll) */
.global-fab{
  position: fixed;
  right: 24px;
  top: 120px;
  display: flex;
  gap: 10px;
  z-index: 99999;
}
.global-fab .fab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: none !important;
  animation: fabFloat 2.8s ease-in-out infinite;
}
.global-fab .fab img{
  width: 44px;
  height: 44px;
  display: block;
}
@media (max-width: 600px){
  .global-fab{ right: 16px; top: 86px; gap: 8px; }
  .global-fab .fab img{ width: 40px; height: 40px; }
}

/* Global FAB: allow per-icon absolute positioning */
.global-fab{
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  display: block !important;
}
.global-fab .fab{
  position: absolute !important;
  pointer-events: auto !important;
  transition: top 350ms ease, right 350ms ease, transform 350ms ease, opacity 350ms ease;
  will-change: top, right, transform;
}

/* Desktop positions: cart on the left + buttons slightly lower under header */
.global-fab .fab-cart-btn{ right: 279px !important; top: 123px !important; }
.global-fab .fab-mail{ right: 227px !important; top: 132px !important; }
.global-fab .fab-phone{ right: 174px !important; top: 141px !important; }
.global-fab .fab-person{ right: 123px !important; top: 155px !important; }


@media (min-width: 1375px) and (max-width: 1500px) {
.global-fab .fab-cart-btn{ right: 279px !important; top: 110px !important; }
.global-fab .fab-mail{ right: 227px !important; top: 114px !important; }
.global-fab .fab-phone{ right: 174px !important; top: 122px !important; }
.global-fab .fab-person{ right: 123px !important; top: 130px !important; }
}

@media (min-width: 1155px) and (max-width: 1375px) {
.global-fab .fab-cart-btn{ right: 279px !important; top: 90px !important; }
.global-fab .fab-mail{ right: 227px !important; top: 94px !important; }
.global-fab .fab-phone{ right: 174px !important; top: 98px !important; }
.global-fab .fab-person{ right: 123px !important; top: 107px !important; }
}

@media (min-width: 1100px) and (max-width: 1375px) {
.global-fab .fab-cart-btn{ right: 279px !important; top: 88px !important; }
.global-fab .fab-mail{ right: 227px !important; top: 92px !important; }
.global-fab .fab-phone{ right: 174px !important; top: 98px !important; }
.global-fab .fab-person{ right: 123px !important; top: 106px !important; }
}


@media (min-width: 1200px) and (max-width: 1920px) {
/* When Shape v21 is active (scrolled), use alternate FAB positions */
  body.wave-scrolled .global-fab .fab-cart-btn{ right: 279px !important; top: 56px !important; }
  body.wave-scrolled .global-fab .fab-mail{ right: 227px !important;top: 63px !important;}
  body.wave-scrolled .global-fab .fab-phone{ right: 174px !important;top: 66px !important; }
  body.wave-scrolled .global-fab .fab-person{ right: 121px !important;top: 72px !important; }
}

@media (min-width: 600px) and (max-width: 1200px) {
/* When Shape v21 is active (scrolled), use alternate FAB positions */
  body.wave-scrolled .global-fab .fab-cart-btn{ right: 235px !important; top: 14px !important; }
  body.wave-scrolled .global-fab .fab-mail{ right: 183px !important;top: 17px !important;}
  body.wave-scrolled .global-fab .fab-phone{ right: 131px !important;top: 20px !important; }
  body.wave-scrolled .global-fab .fab-person{ right: 80px !important;top: 25px !important; }
}


/* Position of the header small wave (shape v23) */
#wave-small{
  position: absolute;
  top: 2px;      /* نقص = يطلع / زيد = يهبط */
  right: 0;    /* نقص = يمشي لليمين بزاف / زيد = يجي لليسار */
  width: 100%; /* نقص = يصغر / زيد = يكبر */
  height: 100%;
}
/* Fix wave-small cropping: make it cover the header box and align to bottom/right */
#wave-small.wave-header__svg-small{
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 112% !important;
  height: 112% !important;
  object-fit: cover !important;
  object-position: right bottom !important;
}

/* Extra coverage for wave-small to avoid any remaining cut */
#wave-small.wave-header__svg-small{
  width: 125% !important;
  height: 125% !important;
}

/* Hide the right edge seam by oversizing and shifting slightly */
#wave-small.wave-header__svg-small{
  width: 140% !important;
  height: 130% !important;
  right: -40px !important;
}

/* Restore wave-small to natural/default sizing (undo oversize/shift tweaks) */
#wave-small.wave-header__svg-small{
  top: 2px !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: right top !important;
}

body.wave-scrolled .global-fab .fab{ transform: scale(0.96); opacity: 0.98; }


/* === FAB icons subtle animation === */
@keyframes fabFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-6px,0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce){
  .global-fab .fab{
    animation: none !important;
    transition: none !important;
  }
}

.global-fab .fab-mail{ animation-delay: 0s; }
.global-fab .fab-phone{ animation-delay: .25s; }
.global-fab .fab-person{ animation-delay: .5s; }

.global-fab .fab:hover{ transform: translate3d(0,-8px,0) scale(1.06); }


.lang-switch form{ display:flex; align-items:center; gap:8px; }
.lang-switch .lang-btn{
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  color: #17487c;
}
.lang-switch .lang-btn.is-active{ text-decoration: underline; }
.lang-switch .lang-sep{ color: rgba(19,111,128,0.7); font-weight: 700; }
@media (max-width: 600px){
  .lang-switch{ top: 12px; right: 12px; }
}

/* === Top menu (Home/Products/About/Contact) === */
.top-menu{
  position: absolute;
  top: 31px;
  left: 76%;

  z-index: 915;
  display: flex;
  gap: 26px;
  pointer-events: auto;
}
.top-menu__link{
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .5px;
  color: #17487c;
  text-transform: uppercase;
  font-size: 19px;
  white-space: nowrap;
}
.top-menu__link:hover{ text-decoration: underline; }

@media (max-width: 900px){
  .top-menu{ gap: 16px; }
  .top-menu__link{ font-size: 12px; }
}
@media (max-width: 600px){
  .top-menu{ top: 54px; gap: 14px; flex-wrap: wrap; justify-content: center; width: 92vw; }
}

  /* === Header tagline (free position) === */
   .wave-tagline{
    position: absolute;
    top: 48px;
    left: 314px;
    z-index: 922;
    pointer-events: none;
    font-weight: 700;
    letter-spacing: .3px;
    color: #17487c;
    font-size: 16px;
}

@media (min-width: 400px) and (max-width: 1100px){
  .wave-tagline {
    position: absolute;
    top: 96px;
    left: 73px;
    z-index: 922;
    pointer-events: none;
    font-weight: 700;
    letter-spacing: .3px;
    color: #17487c;
    font-size: 12px;
  }
} 
@media (max-width: 600px){
    .wave-logo {
      position: absolute;
      top: -4px;
      left: -21px;
      height: 68px;
      width: 80px;
      z-index: 910;
      max-width: 30vw;
    width: 15rem;
    }
    #wave-logo.wave-logo {
    width: 121px !important;
    height: 70px !important;
    object-fit: contain !important;
    }
    .wave-tagline{
    position: absolute;
      top: 53px;
    left: 25px;
    z-index: 922;
    pointer-events: none;
    font-weight: 700;
    letter-spacing: .3px;
    color: #17487c;
    font-size: 9px;
    }
     .top-menu {
    display: none;
  }
  .global-fab .fab-cart-btn{ right: 149px !important; top: 62px !important; }
  .global-fab .fab-mail{ right: 110px !important;top: 71px !important;  }
  .global-fab .fab-phone{ right: 70px !important;top: 80px !important  }
  .global-fab .fab-person{ right: 30px !important;top: 87px !important; }
  /* When Shape v21 is active (scrolled), use alternate FAB positions */
  body.wave-scrolled .global-fab .fab-cart-btn{ right: 195px !important; top: 17px !important; }
  body.wave-scrolled .global-fab .fab-mail{ right: 155px !important;top: 19px !important; }
  body.wave-scrolled .global-fab .fab-phone{ right: 114px !important;top: 21px !important; }
  body.wave-scrolled .global-fab .fab-person{ right: 74px !important;top: 23px !important; }
  .global-fab .fab img { width: 35px; height: 35px;}
  }

  


@media (min-width: 900px) and (max-width: 1100px){
    .wave-logo {
      position: absolute;
      top: -1px;
      left: -21px;
      height: 68px;
      width: 80px;
      z-index: 910;
    }
    #wave-logo.wave-logo {
    width: 152px !important;
    height: 80px !important;
    max-width: 206px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    }
    .wave-tagline{
    position: absolute;
    top: 68px;
    left: 24px;
    z-index: 922;
    pointer-events: none;
    font-weight: 700;
    letter-spacing: .3px;
    color: #17487c;
    font-size: 10px;
    }
  }

  
  /* === Mobile wave swap (<=600px): use Shape 600px.svg + Shape 600px2.svg === */
  .wave-header__svg-600{ display:none; }
  @media (max-width: 600px){
  /* hide desktop waves */
  #wave-big,
  #wave-small{ display:none !important; }

  /* show 600px waves (no CSS transform here; GSAP controls transform) */
  #wave-big-600,
  #wave-small-600{
    display: block !important;
    position: absolute !important;
    top: -30px !important;
    left: -10vw !important;
    width: 120vw !important;
    height: 140px !important;
    object-fit: cover !important;
    pointer-events: none !important;
  }

  #wave-big-600{ z-index: 901 !important; }
  #wave-small-600{ z-index: 902 !important; }
}


  @media (min-width: 600px) and (max-width: 900px){
    .wave-logo {
      position: absolute;
      top: -8px;
      left: -21px;
      height: 68px;
      width: 80px;
      z-index: 910;
    }
    #wave-logo.wave-logo {
    width: 128px !important;
    height: 80px !important;
    max-width: 206px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    }
    .wave-tagline{
    position: absolute;
    top: 56px;
    left: 21px;
    z-index: 922;
    pointer-events: none;
    font-weight: 700;
    letter-spacing: .3px;
    color: #17487c;
    font-size: 9px;
    }
  }

  /* === Top menu position tweak for ~1710px screens === */
  @media (min-width: 1080px) and (max-width: 1930px){
    .top-menu{
        left: 59%;
        top: 45px;
        width: 400px;
    }
    }
      @media (min-width: 600px) and (max-width: 1930px){
    /* === Language switch (top right in header) === */
    .lang-switch{
      position: absolute;
      top: 50px;
      right: 23px;
      z-index: 920;
      pointer-events: auto;
    }
  }

        @media (min-width: 1100px) and (max-width: 1335px){
    /* === Language switch (top right in header) === */
    .lang-switch{
    position: absolute;
    top: 83px;
    right: 28px;
    z-index: 920;
    pointer-events: auto;
    }
  }
  
    @media (max-width: 1100px){
      .top-menu{
      display: none;  
    }
        .lang-switch{
          display: none; 
         }
  }

@media (min-width: 1270px) and (max-width: 1930px) {
    .top-menu{
        left: 59%;
        top: 45px;
        width: 400px;
    }
  }


/* === Fix lang-switch hidden at <=1080px (legacy .site-header rules) === */
@media (max-width: 1080px){
  .wave-header .lang-switch{
    position: absolute !important;
    top: 22px !important;
    right: 33px !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
}
@media (min-width: 1100px) and (max-width: 1920px){
#wave-small.wave-header__svg-small{
  top: 0px !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: right top !important;
}
}

/* === Fix: prevent horizontal drag/overflow on mobile === */
html, body{
  overflow-x: hidden !important;
}
.wave-header{
  overflow: hidden !important;
}


/* === Mobile wave sizing override (avoid right gap / overflow) === */
@media (max-width: 600px){
  .wave-header__svg-600{
    inset: auto !important;
    left: -10vw !important;
    right: auto !important;
    width: 120vw !important;
    height: 114% !important;
  }
      .lang-switch{
    position: absolute;
    top: 25px !important;
    right: 31px !important;
    z-index: 920;
    pointer-events: auto;
    }
}

/* === Mobile waves: keep overlay shallow so hero image stays visible === */
@media (max-width: 600px){
  #wave-big-600,
  #wave-small-600,
  .wave-header__svg-600{
    height: 140px !important;
    top: 0 !important;
    top: -43px !important;
    left: 10vw !important;
    width: 120vw !important;
    height: 140px !important;
    object-fit: cover !important;
    pointer-events: none !important;
    will-change: transform, opacity;
    scale: 1.35;
  }
}

/* === Mobile: when scrolled, shrink wave header so it doesnt cover content === memory/ ssh/ tmp_frames/ tmp_stt/ tmp_transcripts/

/* === Mobile: when scrolled, shrink wave header so it does not cover content === */
@media (max-width: 600px){
  body.wave-scrolled .wave-header{
    height: 110px !important;
  }
}

/* === Mobile: wave should scroll away (avoid covering content) === */
@media (max-width: 600px){
  .wave-header{
    position: absolute !important;
    height: 140px !important;
  }
}


/* === Site-wide font: Commissioner === */
body{
  font-family: 'Commissioner', sans-serif;
}

/* === Top menu: uppercase + regular weight (Commissioner) === */
.top-menu__link{
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 400;
}

body.wave-scrolled .top-menu{
left: 56%;
top: 18px;
gap: 19px;
}
body.wave-scrolled .lang-switch{ 
  top: 23px;
  right: 94px;
 }


/* === Top menu: smooth animation between big(top) and small(scrolled) states === */
.top-menu{
  transform-origin: top right;
  transition: transform 360ms ease, top 360ms ease, right 360ms ease, left 360ms ease, opacity 360ms ease;
  will-change: transform, top, right, left;
}
.top-menu__link{
  transition: font-size 360ms ease, letter-spacing 360ms ease, padding 360ms ease;
}


/* === MOBILE WAVES CLEAN OVERRIDES (<=600px) [20260205232627] === */
#wave-big-600,
#wave-small-600{ display:none !important; }

@media (max-width: 600px){
  /* hide desktop waves */
  #wave-big,
  #wave-small{ display:none !important; }

  /* reset any old .wave-header__svg-600 rules */
  .wave-header__svg-600{
    display: block !important;
    position: absolute !important;
    inset: auto !important;
    top: -43px !important;
    left: 10vw !important;
    width: 120vw !important;
    height: 140px !important;
    object-fit: cover !important;
    pointer-events: none !important;
    will-change: transform, opacity;
    scale: 1.35;
  }

  #wave-big-600{ z-index: 901 !important; }
  #wave-small-600{ z-index: 902 !important; }

  /* wave header should scroll away on mobile */
  .wave-header{ position: absolute !important; height: 140px !important; }
}

/* === Ensure mobile wave imgs visible (override any later rules) === */
@media (max-width: 600px){
  #wave-big-600,
  #wave-small-600{ display:block !important; opacity:1; }
}

/* === Mobile: keep wave header following (fixed) without covering content === */
@media (max-width: 600px){
  .wave-header{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 140px !important;
    z-index: 900 !important;
  }
  /* push page content below the fixed wave */
  .main-content-area{
    padding-top: 140px !important;
  }
}

/* ============================= */
/* MOBILE MENU (overlay/hamburger) */
/* ============================= */

/* === Mobile menu overlay (<=600px) === */
.mobile-menu-btn{ display:none; }
.mobile-nav-overlay{ display:none; }

@media (max-width: 1200px){
  /* hide desktop menu/lang inside header */
  .wave-header .top-menu,
  .wave-header .lang-switch{ display:none !important; }

  .mobile-menu-btn{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    z-index: 960;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(6px);
  }
  .mobile-menu-btn__icon--open{
    width: 28px;
    height: 28px;
    display:block;
  }
  .mobile-menu-btn__icon--close{
    display:none;
    font-size: 18px;
    line-height: 1;
    color: #17487c;
  }

  body.nav-open .mobile-menu-btn__icon--open{ display:none; }
  body.nav-open .mobile-menu-btn__icon--close{ display:block; }

  .mobile-nav-overlay{
    display:block;
    position: fixed;
    inset: 0;
    z-index: 955;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }
  body.nav-open .mobile-nav-overlay{ opacity: 1; pointer-events: auto; }

  .mobile-nav-panel{
    position: absolute;
    inset: 0;
    padding: 110px 26px 26px;
  }

  .mobile-nav{
    display:flex;
    flex-direction: column;
    gap: 18px;
  }

  .mobile-nav-lang{
    margin-top: 28px;
  }
  .mobile-nav-lang .lang-btn{
    background: transparent;
    border: none;
    color: #17487c;
    font-weight: 600;
    font-size: 14px;
    padding: 0;
  }
  .mobile-nav-lang .lang-btn.is-active{ text-decoration: underline; }
}

/* === Fix: header transparent area should not block clicks below === */
.wave-header{ pointer-events: none !important; }
.wave-header__svg{ pointer-events: none !important; }
.wave-header .top-menu,
.wave-header .top-menu *,
.wave-header .lang-switch,
.wave-header .lang-switch *,
.wave-header .mobile-menu-btn,
.wave-header .products-mega-overlay,
.wave-header .products-mega-overlay *{ pointer-events: auto !important; }
.wave-header .mobile-nav-overlay,
.wave-header .mobile-nav-overlay *{ pointer-events: none !important; }
body.nav-open .wave-header .mobile-nav-overlay,
body.nav-open .wave-header .mobile-nav-overlay *{ pointer-events: auto !important; }


/* === Mobile menu open: move contact icons to bottom-center === */
@media (max-width: 600px){
  body.nav-open .global-fab{
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 26px !important;
    transform: translateX(-50%) !important;
    justify-content: center !important;
    gap: 16px !important;
    z-index: 980 !important; /* above overlay */
  }
  body.nav-open .global-fab .fab{
    position: static !important;
  }
  body.nav-open .global-fab .fab-mail,
  body.nav-open .global-fab .fab-phone,
  body.nav-open .global-fab .fab-person{
    right: auto !important;
    top: auto !important;
    left: auto !important;
    bottom: 150px !important;
    width: 40px;
    height: 40px;
  }
  }


/* === Mobile menu open: keep logo + tagline visible on top === */
@media (max-width: 600px){
  body.nav-open #wave-logo{
    position: fixed !important;
    top: 2px !important;
    left: -17px !important;
    z-index: 980 !important;
  }
  body.nav-open .wave-tagline{
    position: fixed !important;
    top: 74px !important;
    left: 29px !important;
    z-index: 980 !important;
  }
}

@media (max-width: 600px){
  body.nav-open .global-fab{ bottom: 70px !important; }
}

@media (min-width: 0px) and (max-width: 1200px){
  .mobile-nav__link {
    font-family: "Commissioner", sans-serif;
    font-size: 21px;
    letter-spacing: 0.5px;
    color: #17487c;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
  } 
}


/* === Mobile menu open animation: slide down (top -> bottom) === */
@media (max-width: 600px){
  .mobile-nav-panel{
    transform: translateY(-24px);
    opacity: 0;
    transition: transform 260ms ease, opacity 260ms ease;
    will-change: transform, opacity;
  }
  body.nav-open .mobile-nav-panel{
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Safety: after closing mobile menu, ensure logo/tagline are NOT fixed === */
@media (max-width: 600px){
  body:not(.nav-open) #wave-logo{ position: absolute !important; }
  body:not(.nav-open) .wave-tagline{ position: absolute !important; }
}

/* Logo clickable: go to Home */
.wave-logo-link{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 910;
  display: inline-block;
  pointer-events: auto;
}

/* Mobile menu: highlight current page */
@media (max-width: 600px){
  .mobile-nav__link.is-active{
    font-weight: 800;
    text-decoration: underline;
  }
}

/* Desktop menu: highlight current page */
.top-menu__link.is-active{
  font-weight: 800;
  text-decoration: underline;
}


/* RESET_WAVE_SMALL_VISIBILITY */
#wave-small,
#wave-small-600{ opacity: 1 !important; }


/* RESET_WAVE_BIG_VISIBILITY */
#wave-big{ opacity: 1 !important; }

/* === Real glass effect for the WHITE curve area (desktop) === */
.wave-white-glass{ display:none; }

.wave-white-glass{
  display:block;
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:100%;
  z-index: 912; /* above waves, below menu(915) */
  pointer-events:none;

  background: rgba(255, 255, 255, 0.658);
  backdrop-filter: blur(5px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(143%);

  mask-image: url('/static/hearder/shape-v19-like-white-maskv3.svg');
  -webkit-mask-image: url('/static/hearder/shape-v19-like-white-maskv3.svg');
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-position: left top;
  -webkit-mask-position: left top;
}

@media (min-width: 601px){
  .wave-white-glass{
    position: fixed !important;
    top: -37px  !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: clamp(120px, 18vw, 245px) !important;
    will-change: transform, opacity;
  }
}

/* === Make the glass curve span the full screen width === */
.wave-white-glass{
  width: 100vw !important;
  left: 0 !important;
  right: auto !important;
}
.wave-white-glass{
  mask-size: 100% 100% !important;
  -webkit-mask-size: 100% 100% !important;
  mask-position: left top !important;
  -webkit-mask-position: left top !important;
}

/* === Edge-to-edge: make the glass curve go full width (override 1920px constraint) === */
@media (min-width: 601px){
  .wave-white-glass{
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    /* do NOT force transform here; GSAP animates translateY via transform */
  }
}

/* === Keep logo/tagline ABOVE the glass curve layer === */
.wave-logo{ z-index: 930 !important; }
.wave-logo-link{ z-index: 930 !important; }
.wave-tagline{ z-index: 931 !important; }


@media (min-width: 1100px) and (max-width: 1420px) {
  .wave-white-glass{
    position: fixed !important;
    top: -36px  !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: clamp(120px, 18vw, 245px) !important;
    scale: 1.15;
    will-change: transform, opacity;
  }
}

@media (min-width: 600px) and (max-width: 1100px) {
  .wave-white-glass{
    position: fixed !important;
    top: -19px  !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: clamp(120px, 18vw, 245px) !important;
    scale: 1.20;
    will-change: transform, opacity;
  }
}
@media (min-width: 1100px) and (max-width: 1260px) {
  .wave-white-glass{
    position: fixed !important;
    top: -23px  !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: clamp(120px, 18vw, 245px) !important;
    scale: 1.2;
    will-change: transform, opacity;
  }
 
}
@media (min-width: 600px) and (max-width: 800px) {
  .wave-white-glass{
    position: fixed !important;
    top: -4px  !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: clamp(120px, 18vw, 245px) !important;
    scale: 1.4;
    will-change: transform, opacity;
  }
  .global-fab .fab-cart-btn{ right: 243px !important; top: 61px !important; }
  .global-fab .fab-mail{ right: 191px !important;top: 61px !important; }
  .global-fab .fab-phone{ right: 138px !important;top: 62px !important; }
  .global-fab .fab-person{ right: 85px !important;top: 71px !important;}
}


/* === Mobile <=600px: hide wave header completely === */
@media (max-width: 600px){
  .wave-white-glass{
    display: none !important;
  }
  .main-content-area{ padding-top: 0 !important; }
}

@media (min-width: 800px) and (max-width: 1100px) {
  .global-fab .fab-cart-btn{ right: 243px !important; top: 60px !important; }
  .global-fab .fab-mail{ right: 191px !important;top: 61px !important; }
  .global-fab .fab-phone{ right: 138px !important;top: 62px !important; }
  .global-fab .fab-person{ right: 85px !important;top: 71px !important;}
}
/* === Desktop: wave-white-glass positioning (no transform; GSAP animates translateY) === */


/* === Fix: mobile menu open -> pin logo LINK (not only img) so it stays visible === */
@media (max-width: 600px){
  body.nav-open .wave-logo-link{
    position: fixed !important;
    top: 2px !important;
    left: 12px !important;
    z-index: 990 !important;
    display: inline-block !important;
  }
  body.nav-open #wave-logo{
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (min-width: 1200px) and (max-width: 1360px){ 
body.wave-scrolled .lang-switch{ top: 50px; right: 25px; }
}


/* === If hamburger/menu is used up to 1100px, apply nav-open layout up to 1100px too === */
@media (min-width: 601px) and (max-width: 1100px){
  body.nav-open .wave-logo-link{
    position: fixed !important;
    top: 2px !important;
    left: 12px !important;
    z-index: 990 !important;
    display: inline-block !important;
  
  }
  body.nav-open #wave-logo{
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* move contact icons to bottom center when menu open */
  body.nav-open .global-fab{
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 70px !important;
    transform: translateX(-50%) !important;
    justify-content: center !important;
    gap: 16px !important;
    z-index: 980 !important;
    font-size: 21px !important ;
    
  }
  body.nav-open .global-fab .fab{ position: static !important; }
}


/* === Desktop: v24 glass blur layer (white curve) === */
.wave-v24-glass{ display:none; }
@media (min-width: 601px){
  /* Hide the flat white wave SVG (keep it as GSAP target, but invisible) */
  #wave-small{ opacity: 0 !important; }

  .wave-v24-glass{
    display:block;
    position: fixed;
    top: -73px;
    left: 0;
    right: 0;
    width: 100vw;
    height: clamp(120px, 18vw, 210px);
    z-index: 903; /* above waves, below logo/menu */
    pointer-events: none;

    /* glass look */
    background: rgba(255, 255, 255, 0.658);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);

    /* v24 mask */
    -webkit-mask-image: url('/static/hearder/shape-v24-glass-mask.svg?v=20260206173925');
    mask-image: url('/static/hearder/shape-v24-glass-mask.svg?v=20260206173925');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 114% 113% !important;
    -webkit-mask-position: right top;
    mask-position: right top;

    will-change: transform, opacity;
  }
}

@media (min-width: 600px) and (max-width: 890px) {
  .wave-v24-glass{
   top: -55px;
}
}


/* === Tweak: make the v24 wave area thicker (desktop) === */
@media (min-width: 601px){
  /* allow more vertical space for the wave */
  .wave-header{
    height: clamp(140px, 20vw, 240px) !important;
  }
  /* glass layer thickness */
  .wave-v24-glass{
    height: clamp(140px, 20vw, 240px) !important;
    -webkit-mask-size: 100% 115% !important;
    mask-size: 100% 115% !important;
  }
}


/* === Tweak: make the v24 wave area thicker (desktop) === */
@media (min-width: 601px){
  /* allow more vertical space for the wave */
  .wave-header{
    height: clamp(140px, 20vw, 240px) !important;
  }
  /* glass layer thickness */
  .wave-v24-glass{
    height: clamp(140px, 20vw, 240px) !important;
    -webkit-mask-size: 100% 115% !important;
    mask-size: 100% 115% !important;
  }
}


/* === Fix: hamburger menu (1100px-1200px) should behave like mobile: show logo + animate panel === */
@media (min-width: 1101px) and (max-width: 1200px){
  /* keep logo visible/pinned when menu opens */
  body.nav-open .wave-logo-link{
    position: fixed !important;
    top: 18px  !important;
    left: -2px !important;
    z-index: 990 !important;
    display: inline-block !important;
    transform: scale(0.8)
  }

  
  body.nav-open #wave-logo{
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.nav-open .wave-tagline{
    position: fixed !important;
    top: 86px !important;
    left: 29px !important;
    z-index: 990 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* slide-down animation for the panel */
  .mobile-nav-panel{
    transform: translateY(-24px);
    opacity: 0;
    transition: transform 260ms ease, opacity 260ms ease;
    will-change: transform, opacity;
    top: 25px !important;
    left: 3px !important;
  }
  body.nav-open .mobile-nav-panel{
    transform: translateY(0);
    opacity: 1;
  }

  /* move contact icons to bottom center when menu open */
  body.nav-open .global-fab{
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 70px !important;
    transform: translateX(-50%) !important;
    justify-content: center !important;
    gap: 16px !important;
    z-index: 980 !important;
  }
  body.nav-open .global-fab .fab{ position: static !important; }
}


/* === Hero curve (method 1): background image + SVG curve overlay === */
.hero-curve{
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 104vh;
  background: url('/media/Images/_4949_w1920_h1080.webp') center/cover no-repeat;
  overflow: hidden;
  pointer-events: auto;
  left: 0;
  right: auto;
  bottom: 116px;
}
.hero-curve__inner{
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1300px);
  z-index: 3;
  text-align: center;
  color: #f2f8fb;
  pointer-events: auto;
}
.hero-curve__title{
  margin: 0;
  font-size: clamp(24px, 3.7vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}
.hero-curve__slashes{
  width: clamp(180px, 28vw, 540px);
  height: 10px;
  margin: 16px auto 18px;
  opacity: 0.72;
  border-radius: 99px;
  background: repeating-linear-gradient(
    100deg,
    rgba(129, 224, 242, 0.95) 0 4px,
    transparent 4px 12px
  );
}
.hero-curve__subtitle{
  margin: 0 0 26px;
  font-size: clamp(18px, 2.1vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.hero-curve__cta{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 188px;
  padding: 5px 7px 5px 22px;
  border-radius: 999px;
  border: 1px solid rgba(222, 247, 255, 0.95);
  background: rgba(198, 227, 237, 0.93);
  color: #174a86;
  text-decoration: none;
  font-weight: 600;
  font-size: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.hero-curve__cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}
.hero-curve__cta-text{
  font-size: 0.9em;
  letter-spacing: 0.02em;
}
.hero-curve__cta-icon{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  line-height: 1;
  border: 2px solid rgba(227, 247, 252, 0.95);
  background: rgba(96, 196, 218, 0.35);
}
.hero-curve__overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 1100px){
  .hero-curve__inner{
    top: 43%;
  }
  .hero-curve__cta{
    min-width: 180px;
    font-size: 30px;
  }
  .hero-curve__cta-icon{
    width: 58px;
    height: 58px;
  }
}
@media (max-width: 600px){
  .hero-curve{
    min-height: 67vh;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    left: 0;
    right: auto;
    bottom: 1px;
  }
  .hero-curve__inner{
    top: 39%;
    width: min(92vw, 560px);
  }
  .hero-curve__title{
    font-size: clamp(24px, 7.4vw, 36px);
    white-space: normal;
  }
  .hero-curve__slashes{
    margin: 10px auto 12px;
    height: 8px;
  }
  .hero-curve__subtitle{
    font-size: clamp(18px, 5.7vw, 28px);
    margin-bottom: 16px;
  }
  .hero-curve__cta{
    min-width: 152px;
    padding: 5px 6px 5px 18px;
    font-size: 22px;
    gap: 12px;
  }
  .hero-curve__cta-icon{
    width: 44px;
    height: 44px;
  }
  
}
/* === Mobile <=600px: glass blur for wave-small-600 === */
@media (max-width: 600px){
  /* hide the flat svg, show glass instead */
  #wave-small-600{ opacity: 0 !important; }

  .wave-600-glass{
    position: absolute;
    top: -43px;
    left: -16vw;
    width: 120vw;
    height: 140px;
    pointer-events: none;
    z-index: 903; /* above waves */

    background: rgba(255, 255, 255, 0.589);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);

    -webkit-mask-image: url('/static/hearder/shape-600px2-glass-mask.svg?v=20260206223539');
    mask-image: url('/static/hearder/shape-600px2-glass-mask.svg?v=20260206223539');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-position: right top;
    mask-position: right top;

    will-change: transform, opacity;
  }
}


/* === Mobile <=600px: glass blur for wave-big-600 === */
@media (max-width: 600px){
  /* hide the flat svg, show glass instead */
  #wave-big-600{ opacity: 0 !important; }

  .wave-big-600-glass{
    position: absolute;
    top: -19px;
    left: -10vw;
    width: 125vw;
    height: 164px;
    pointer-events: none;
    z-index: 902; /* above big wave */
    scale: 1.4;

    background: rgba(255, 255, 255, 0.589);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);

    -webkit-mask-image: url('/static/hearder/shape-600px-glass-mask.svg?v=20260206225344');
    mask-image: url('/static/hearder/shape-600px-glass-mask.svg?v=20260206225344');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-position: right top;
    mask-position: right top;

    will-change: transform, opacity;
  }
}


/* === Home elephant animated badge === */
.home-elephant{
  position: relative;
  width: 100%;
  margin: -240px 0 10px;
  text-align: center;
}


/* === PARENT GRID LAYOUT (6 COLS) === */
.parent{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 764px 300px 145px 442px 294px 55px 327px 244px auto 200px;
  gap: 2.5rem;
  align-items: start;
  margin: 0 auto;
  padding-left: 65px;
  padding-right: 81px;
  padding-top: 135px;
  
}

.parent .midas-card{
  grid-column: 1 / 5; /* 1..4 */
  grid-row: 1 / 2;    /* 1..2 */
}

.parent .item2{
  grid-column: 5 / 7; /* 5..6 */
  grid-row: 1 / 2;
}

@media (max-width: 1080px){
  /* keep item2 next to midas-card on tablets */
  .parent{ grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 454px 290px 56px 289px 238px 37px 238px 238px auto 251px;
  gap: 1.5rem;
 }
  .parent .midas-card{ grid-column: 1 / 5; grid-row: 1 / 2; }
  .parent .item2{ grid-column: 5 / 7; grid-row: 1 / 2; }
  .news-slider {
  overflow: visible !important;
  max-width: 447px;
  width: 100%;
  margin: 24px auto;
  top: 172px;
} 

} 


@media (max-width: 700px){
  /* stack on small phones */
  .parent{ 
  grid-template-rows: 543px 779px 60px 303px 173px 40px 238px 238px 73px auto 251px;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 97px;
  }
  .parent .midas-card,
  .parent .item2{
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    
  }
  .parent .item4{
    justify-self: center;
  }
}


/* === PARENT GRID MIDAS-CARD STRETCH FIX === */
.parent .midas-card{
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  justify-self: stretch;
}

/* === ITEM2 PROMO SLIDER (reuses slider-base from base.html) === */
.item2{ display:block; }
.item2-slider{
  width: 100%;
  max-width: 520px;
  margin: 24px auto 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  position: relative;
}
.item2-slider .slide-base{ position: relative; min-width: 100%; }
.item2-slider .slide-base img{
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display:block;
}

/* override base styles that hide arrows/dots */
.item2-slider .slider-arrow-base{ 
  display: grid !important;
  place-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #146f80;
  z-index: 10;
}
.item2-slider .slider-arrow-base.prev{ left: 12px; }
.item2-slider .slider-arrow-base.next{ right: 12px; }

.item2-slider .slider-dots-base{
  display: flex !important;
  gap: 8px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}
.item2-slider .dot-base{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.65);
}
.item2-slider .dot-base.active{ background: #00e8e8; border-color: rgba(0,232,232,0.55); }

.item2-caption{
  position: absolute;
  left: 16px;
  right: 16px;
  top: 18px;
  padding: 16px 16px 58px;
  border-radius: 22px;
  background: linear-gradient(45deg, rgba(234, 249, 254, 0.72) 0%, rgba(143, 220, 226, 0.62) 100%);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: #0f3f49;
}
.item2-caption h3{ margin:0 0 8px; font-size: 22px; line-height:1.15; color:#146f80; }
.item2-caption p{ margin:0; font-size: 14px; line-height:1.45; }
.item2-caption .btn-pill{ position:absolute; right: 10px; bottom: 10px; }

@media (max-width: 700px){
  .item2-slider{ max-width: 92vw; }
  .item2-caption h3{ font-size: 18px; }
}

/* === NEWS SLIDER (Item2 replacement) === */
.news-slider{
  width: 100%;
  max-width: 520px;
  margin: 24px auto 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  position: relative;
  background: #fff;
  top: 121px;
  left: 0px;
}
.news-slider__viewport{ overflow: hidden; }
.news-slider__track{
  display: flex;
  transition: transform 520ms ease;
  will-change: transform;
  overflow: visible !important
}
.news-slide{
  min-width: 100%;
  position: relative;
  transform: translate(var(--news-slide-x, 0px), var(--news-slide-y, 0px));
}
.news-slide > img{
  display: block;
  width: 100%;
  height: 247px;
  object-fit: cover;
}
.news-slide__caption{
  left: 16px;
  top: 18px;
  padding: 16px 16px 16px;
  border-radius: 22px;
  background: linear-gradient(45deg, rgba(234, 249, 254, 0.72) 0%, rgba(143, 220, 226, 0.62) 100%);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: #0f3f49;
  position: absolute !important;
  top: -7px;
  left: 25px;
  right: auto !important;
  bottom: auto !important;
  width: 320px;
  max-width: calc(100% - 32px);
  z-index: 9999;
}
.news-slide__caption h3{ margin:0 0 8px; font-size: 22px; line-height:1.15; color:#146f80; }
.news-slide__caption p{ margin:0; font-size: 14px; line-height:1.45; }

.news-slider__arrow{
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #146f80;
  z-index: 10;
}
.news-slider__arrow--prev{ left: 12px; }
.news-slider__arrow--next{ right: 12px; }

.news-slider__dots{
  display: flex;
  gap: 10px;
  position: absolute;
  top: -257px;
  right: 8px;
  z-index: 10;
}
.news-slider__dots button{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.65);
  padding: 0;
}
.news-slider__dots button[aria-current="true"]{ background: #00e8e8; border-color: rgba(0,232,232,0.55); }

@media (max-width: 700px){
  .news-slider{ max-width: 92vw; }
  .news-slide__caption h3{ font-size: 18px; }
}

/* News slider dots (JS uses .news-slider__dot + aria-selected) */
.news-slider__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.65);
  padding: 0;
}
.news-slider__dot[aria-selected="true"]{
  background: #00e8e8;
  border-color: rgba(0,232,232,0.55);
}

/* Control slide position (whole slide nudging) */
:root{
  --news-slide-x: 0px;
  --news-slide-y: 0px;
}

/* === NEWS SLIDER caption: free-size glass overlay like .midas-card__body === */
.news-slide{ position: relative; }
.news-slide > img{
  display: block;
  width: 100%;
  height: 247px;
  object-fit: cover;
}
.news-slide__caption{
  position: absolute !important;
  top: 18px;
  left: 18px;
  right: auto !important;
  bottom: auto !important;

  display: inline-block;
  width: fit-content;
  max-width: min(440px, calc(100% - 36px));

  padding: 18px 18px 18px;
  border-radius: 22px;

  background: linear-gradient(45deg, rgba(234, 249, 254, 0.72) 0%, rgba(143, 220, 226, 0.62) 100%);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 1rem 1rem 3rem rgba(0,0,0,0.16);

  z-index: 20;
}

@media (max-width: 700px){
  .news-slide > img{ height: 204px; }
  .news-slide__caption{
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }

}
@media (max-width: 700px){
  .news-slider__floating-caption{
    top: -223px !important;
  }
}

@media (max-width: 700px) {
  .news-slider__dots {
  display: flex;
  gap: 10px;
  position: absolute;
  top: -246px;
  right: -1px;
  z-index: 10;}
}

  


/* === NEWS SLIDER: allow caption to float outside image/card === */
.news-slider,
.news-slider__viewport{ overflow: visible !important; }

/* float caption like the midas-card glass block overlapping the image */
.news-slide__caption{
  top: -60px !important;   /* adjust up/down */
  left: 18px !important;
  transform: none !important;
}

/* === NEWS SLIDER MASK FIX: clip slides, allow caption to float outside === */
.news-slider{ 
  overflow: visible !important;
  max-width: 447px;
  width: 100%;
  margin: 24px auto;
  top: 253px;
}
@media (max-width: 700px) {
.news-slider {
  overflow: visible !important;
  max-width: 447px;
  width: 100%;
  margin: 24px auto;
  top: 225px;
}
}
.news-slider__viewport{ overflow: hidden !important; border-radius: 26px; }

/* hide per-slide caption box; we render it into .news-slider__floating-caption via JS */
.news-slide__caption{ display:none; }

.news-slider__floating-caption{
  position: absolute;
  top: -229px;
  left: 0px;
  z-index: 30;
  display: inline-block;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.75);
  height: 231px;
  background: rgb(248, 252, 255);
  background-image: linear-gradient( 45deg, rgba(234, 249, 254, 0.3) 0%, rgba(143, 220, 226, 0.3) 100% );
  backdrop-filter: blur(3.2rem);
  box-shadow: 1rem 1rem 3rem rgba(0, 0, 0, 0.16);
}

@media (max-width: 600px){
  .news-slider__floating-caption{
    top: -40px;
    left: 0px;
    max-width: calc(100% - 24px);
  }
}

/* === Responsive floating caption (moves with resize) === */
.news-slider__floating-caption{
  width: auto !important;
  max-width: min(520px, calc(100% - 24px)) !important;
}

/* === Floating caption typography: 700px..1200px === */
@media (min-width: 700px) and (max-width: 1200px){
  .news-slider__floating-caption h3{
    font-size: 13px !important;
    line-height: 1.15;
  }
  .news-slider__floating-caption p{
    font-size: 12px !important;
    line-height: 1.2;
  }
}

/* === Responsive elephant: stays in its area but adapts on resize (no fixed) === */
@media (min-width: 700px){
  .home-elephant{ position: relative !important; }
  }


/* === Elephant: ensure visible at <=500px === */
@media (max-width: 700px){
  .home-elephant__img{
  display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2000 !important;
    left: -43px !important;
    right: auto !important;
    top: 241px !important;
    width: min(42vw, 80px) !important;
  }
  }


/* === Center background image (free-move) === */
body{ position: relative; }

body::before{
  background-image: none !important;

  content: "";
  position: absolute;
  left: 10%;
  top: 41%;
  width: 300px;               /* size */
  height: 300px;
  transform: translate(-50%, -50%);

  background: url("/static/image/roundswim2.webp") no-repeat center / contain;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* keep site content above the background */
.site-header,
.main-content-area,
.parent{
  position: relative;
  z-index: 1;
}

/* === roundswim2 background: adjust on <=1080px === */
@media (max-width: 1080px){
  body::before{
    position: absolute;
    left: 4%;
    top: 42%;
    width: 200px;
    height: 200px;
    transform: none; /* override translate(-50%,-50%) */
  }
}
@media (max-width: 700px){
  body::before{
    position: absolute;
    left: 20%;
    top: 41%;
    width: 140px;
    height: 140px;
    transform: none; /* override translate(-50%,-50%) */
  }
}

@media (min-width: 700px) and (max-width: 956px){
.news-slider__floating-caption{
  position: absolute;
  top: -221px;
  left: 0px;
  z-index: 30;
  display: inline-block;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.75);
  height: 225px;
  background: rgb(248, 252, 255);
  background-image: linear-gradient( 45deg, rgba(234, 249, 254, 0.3) 0%, rgba(143, 220, 226, 0.3) 100% );
  backdrop-filter: blur(3.2rem);
  box-shadow: 1rem 1rem 3rem rgba(0, 0, 0, 0.16);
  } 
  .news-slide > img {
  display: block;
  width: 103%;
  height: 170px;
  object-fit: cover;
  }
  }
 

/* === NEWS positioned next to the elephant === */
.home-elephant{ position: relative; }
.home-elephant .news{
  position: absolute;
  right: -160px;
  top: 10px;
  left: auto;
  z-index: 60;
}
@media (max-width: 700px){
  .home-elephant .news{
    left: 16px;
    right: auto;
    top: 0;
  }
}

/* === Fixed container for hero elements (elephant + NEWS) === */
.hero-container{
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* === Keep NEWS next to elephant responsively (no opposite movement on resize) === */
.hero-container .home-elephant{
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
}

/* remove old manual positioning that breaks on resize */
.hero-container .home-elephant__img{
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 28px);
}

.hero-container .home-elephant .news{
  left: auto !important;
  right: 166px !important;
  top: 217px !important;
  transform: none !important;
}

@media (max-width: 700px){
  .hero-container .home-elephant{
    justify-content: space-between;
  }
}

/* === Elephant pinned to the right end (responsive, no left/top px) === */
.hero-container .home-elephant{
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start;
}

.hero-container .home-elephant__img{
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;

  width: clamp(118px, 20vw, 169px) !important;
  height: auto !important;
  transform: scaleX(1) !important;
  margin-top: 20px;
}

@media (max-width: 1380px){
  .hero-container .home-elephant__img{
    width:clamp(91px, 3vw, 155px) !important;
    margin-top: 0 !important;
      top: 189px !important;
  }
  .hero-container .home-elephant .news{
  left: auto !important;
  right: 109px !important;
  top: 217px !important;
  transform: none !important;
}


  
}
@media (max-width: 700px){
  .hero-container .home-elephant__img{
    width: clamp(67px, 3vw, 170px) !important;
    margin-top: 0 !important;
  }
}


/* === Elephant: push further to the right edge === */
.hero-container{ padding-right: 0 !important; }
.hero-container .home-elephant__img{ margin-right: -24px; }

/* === Elephant: push right responsively (no huge negative margins) === */
.hero-container .home-elephant__img{
  margin-right: 0 !important;
  transform: translateX(clamp(0px, 6vw, 90px)) scaleX(-1) !important;
}

/* === Elephant to the extreme right of the viewport (ignore 1200px container) === */
.hero-container{
  max-width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.hero-container .home-elephant{
  justify-content: flex-end !important;
}

.hero-container .home-elephant__img{
  transform: scaleX(-1) !important; /* keep facing */
  margin-right: 0 !important;
}

/* === Force elephant image to the extreme right (inside hero-container) === */
.hero-container .home-elephant{
  position: relative !important;
  width: 100% !important;
}

.hero-container .home-elephant__img{
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: 124px  !important;
  margin: 0 !important;
  transform: scaleX(-1) !important;
}

/* === Make hero-container span full viewport width so right:0 hits screen edge === */
.hero-container{
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* === Elephant at <=700px: left + face right (scaleX(1)) === */
@media (max-width: 700px){
  .hero-container .home-elephant__img{
    left: 0 !important;
    right: auto !important;
    top: 233px  !important;
    transform: scaleX(1) !important;
  }
}

@media (max-width: 700px){
  .hero-container{ padding-top: 7px !important; }
}

/* === Put NEWS in front of the elephant === */
.hero-container .home-elephant{ position: relative !important; }
.hero-container .home-elephant__img{ z-index: 10 !important; }
.hero-container .home-elephant .news{
  position: relative !important;
  z-index: 30 !important;
  font-size: 28px;
}

/* === NEWS left on <=700px (strong override + ensure visible) === */
@media (max-width: 700px){
  .hero-container .home-elephant{ position: relative !important; width: 100% !important; }

  .hero-container .home-elephant .news{
    display: flex !important;
    position: absolute !important;
    left: 71px !important;
    right: auto !important;
    top: 246px !important;
    z-index: 9999 !important;
    transform: none !important;
    font-size: 19px;
  }
}


/* === Ordered elephant top breakpoints === */
@media (max-width: 1380px) and (min-width: 701px){
  .hero-container .home-elephant__img{ top: 190px !important; }
}

@media (max-width: 700px){
  .hero-container .home-elephant__img{ top: 232px !important; }
}

/* === NEWS title regular weight === */
.hero-container .news h2{
  font-weight: 400 !important;
}

/* === Place product highlights in row 4 (full width) === */
.parent .item4{
  grid-column: 1 / -1;
  grid-row: 4 / 4;
}

/* hide empty placeholders for now */
.parent .item5,
.parent .item6,
.parent .item7,
.parent .item8{ display:none; }


/* === Product highlight (row 4) - glass/teal design like reference === */
.parent .item4 .product-highlights{ margin: 0; }

.parent .item4 .product-box{
  margin: 0 auto;
  padding: 15px 42px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 24px;

  border-radius: 34px;
  background: linear-gradient(135deg,
    rgba(215, 235, 238, 0.78) 0%,
    rgba(168, 216, 219, 0.78) 55%,
    rgba(151, 206, 208, 0.78) 100%
  );
  box-shadow: 0 22px 55px rgba(0,0,0,0.16);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.55);
  position: relative;
  overflow: hidden;
}

/* subtle inner highlight */
.parent .item4 .product-box::before{
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 500px at 15% 25%, rgba(255,255,255,0.35), transparent 60%);
  pointer-events: none;
}

.parent .item4 .product-box__content{ position: relative; z-index: 2; }

.parent .item4 .product-box__content h3{
  margin: 0;
  font-size: clamp(13px, 1.4vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #17487c;
  font-weight: 500;
}

.parent .item4 .product-box__content h4{
  margin: 4px 0 16px;
  font-size: clamp(20px, 2.1vw, 32px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #17487c;
  font-weight: 500;
}

/* dashed accent line */
.parent .item4 .product-box__content .slash-line{
  height: 10px;
  width: 240px !important;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(23,72,124,0.55) 0 6px, transparent 6px 14px);
  opacity: 0.55;
  margin: 8px 0 12px;
}

.parent .item4 .product-box__content p{
  max-width: 640px;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(20, 55, 92, 0.88);
}

/* button like reference */
.parent .item4 .product-box__content .btn-pill{
  display: inline-flex;
  align-items: center;
  gap: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: inset 0 0 0 2px rgba(23,72,124,0.10);
  backdrop-filter: blur(10px);
}
.parent .item4 .product-box__content .btn-pill__text{
  color: #17487c;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.parent .item4 .product-box__content .btn-pill__icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(23, 180, 216, 0.18);
  border: 1px solid rgba(23, 180, 216, 0.30);
}
.parent .item4 .product-box__content .btn-pill__icon svg{
  width: 22px;
  height: 22px;
  fill: #17487c;
}

.parent .item4 .product-box__media{ position: relative; z-index: 2; }
.parent .item4 .product-box__media img{
  width: min(420px, 100%);
  height: auto;
  display: block;
  margin-left: auto;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.18));
}

/* dots: keep but subtle */
.parent .item4 .product-dots{ margin-top: 18px; opacity: 0.65; }
.parent .item4 .product-dots{
  display: inline-flex;
  gap: 10px;
}
.parent .item4 .product-dots .dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  background: rgba(23, 72, 124, 0.32);
  cursor: pointer;
  padding: 0;
}
.parent .item4 .product-dots .dot.active{
  background: #5ad0df;
}

.parent .item4 .product-box.product-slider{
  display: block !important;
  position: relative;
}
.parent .item4 .product-box.product-slider .product-slide{
  display: grid;
  grid-template-columns: 1fr clamp(220px, 28vw, 360px);
  align-items: center;
  gap: 24px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18%);
  pointer-events: none;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1), opacity 560ms ease;
}
.parent .item4 .product-box.product-slider .product-slide.is-active{
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}
.parent .item4 .product-box.product-slider .product-slide.is-leaving{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-18%);
  z-index: 1;
}



@media (prefers-reduced-motion: reduce){
  .parent .item4 .product-box.product-slider .product-slide{
    transition: none;
  }
}



/* Product highlight: make h3 regular weight */
.parent .item4 .product-box__content h3{
  font-weight: 400 !important;
}


/* === Product box: boundary exactly at column 5 (like midas-card) === */
@media (min-width: 1080px){
  /* keep box within left grid span */
  .parent .item4{
    grid-column: 1 / 5; /* same as midas-card span */
    justify-self: stretch;
  }

  .parent .item4 .product-box{
    width: 82% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    grid-template-columns: 1fr 420px; /* keep proportions (text left, image right) */
  }

  .parent .item4 .product-box__media img{
  width: 100% !important;
    max-width: 310px;
    margin-left: 1px;
    height: 365.183px;
  }
}



/* === Product box: responsive image scales down with screen === */
.parent .item4 .product-box{
  /* keep text column flexible; image column shrinks/grows with viewport */
  grid-template-columns: 1fr clamp(220px, 28vw, 360px) !important;
}

.parent .item4 .product-box__media{
  width: 100%;
}

.parent .item4 .product-box__media img{
  width: 100% !important;
  max-width: clamp(162px, 26vw, 341px) !important;
  height: auto;
  right: clamp(78px, 2vw, 60px);
  position: relative;
}



/* === Product highlights header: elephant on the left + title (in a container) === */
.parent .item4 .product-highlights__header{
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px 0;
}

.parent .item4 .product-highlights__elephant{
  width: 78px;
  height: auto;
  flex: 0 0 auto;
}

.parent .item4 .product-highlights__title{
  margin: 0;
  font-weight: 400;
  color: #17487c;
  font-size: clamp(22px, 2.2vw, 40px);
  line-height: 1.05;
}





/* === Parent wrap elephant (outside grid) + Product Highlights title in item3 === */
.parent-wrap{ position: relative; }
.parent-wrap .parent{ position: relative; }

.parent-elephant{left: -10px;
  top: 1199px;
  width: clamp(90px, 10vw, 170px);
  height: auto;
  z-index: 5;
  pointer-events: none;
}

.parent .item3{
  grid-column: 1 / -1;
  /* place title on row 3 by default; if your grid rows differ, it will still flow */
  grid-row: 3 / 4;
}

.parent .item3 .product-highlights-grid-title{
  margin: 0;
  font-weight: 400;
  color: #17487c;
  font-size: clamp(24px, 2.4vw, 44px);
  line-height: 1.05;
}
@media (max-width: 700px){
.parent .item3 .product-highlights-grid-title{
  margin: 0;
  font-weight: 400;
  color: #17487c;
  font-size: clamp(24px, 2.4vw, 44px);
  line-height: 1.05;
  position: absolute;
  left: 55px;
}
}

@media (max-width: 700px){
  .parent-elephant{ top: -80px; left: -6px; }
  .parent .item3{ grid-row: auto; }
}

/* === Product Highlights (item3): independent elephant container on the left === */
.parent .item3{
  display: flex;
  align-items: center;
  gap: 14px;
}

.parent .item3 .ph-elephant{
  flex: 0 0 auto;
  width: 90px;
  position: relative; /* so you can move img inside */
}

.parent .item3 .ph-elephant img{
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  left: 0;  /* move X here */
  top: 0;   /* move Y here */
}

@media (max-width: 700px){
  .parent .item3 .ph-elephant{ width: 64px; }
}

/* === Product Highlights elephant: independent container (absolute) next to title === */
.parent .item3{
  position: relative;
}

.parent .item3 .ph-elephant-free{
  position: absolute;
  left: -120px;  /* control X */
  top: -28px;    /* control Y */
  width: 120px;  /* size */
  pointer-events: none;
  z-index: 6;
}

.parent .item3 .ph-elephant-free img{
  display: block;
  width: 100%;
  height: auto;
}

/* push title so it doesn't overlap the elephant */
.parent .item3 .product-highlights-grid-title{
  padding-left: 0; /* keep as-is */
}

@media (max-width: 700px){
  .parent .item3 .ph-elephant-free{
    left: -70px;
    top: -20px;
    width: 90px;
  }
}

/* === Smooth responsive movement for Product Highlights elephant (item3) === */
.parent .item3{ position: relative; }

.parent .item3 .ph-elephant-free{
  position: absolute;
  left: clamp(-120px, -10vw, -40px);
  top: clamp(-36px, -2.4vw, -18px);
  width: clamp(80px, 10vw, 120px);
  pointer-events: none;
  z-index: 6;
  will-change: left, top, width;
  transition: left 260ms ease, top 260ms ease, width 260ms ease;
}

.parent .item3 .ph-elephant-free img{
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 700px){
  .parent .item3 .ph-elephant-free{
    left: clamp(-70px, -14vw, -20px);
    top: clamp(-28px, -4vw, -14px);
    width: clamp(60px, 18vw, 90px);
  }
}

@media (prefers-reduced-motion: reduce){
  .parent .item3 .ph-elephant-free{ transition: none !important; }
}

/* === Desktop range tuning (1080px -> 1920px) for PH elephant === */
@media (min-width: 1080px) and (max-width: 1920px){
  .parent .item3 .ph-elephant-free{
    left: clamp(-120px, -12vw, -70px);
    top: clamp(-34px, -1.6vw, -22px);
    width: clamp(90px, 8.5vw, 140px);
  }
}

/* === FINAL OVERRIDE: PH elephant stays visible at 1080px and 1920px (smooth) === */
@media (min-width: 700px){
  .parent .item3 .ph-elephant-free{
    left: clamp(-80px, -5vw, -40px) !important;
    top: clamp(-34px, -1.6vw, -18px) !important;
    width: clamp(85px, 7vw, 120px) !important;
    transition: left 260ms ease, top 260ms ease, width 260ms ease !important;
  }
}

/* === LOCK: keep PH elephant fixed in the same spot (no movement on resize) === */
.parent .item3 .ph-elephant-free{
  left: -40px !important;   /* ثابت */
  top: -28px !important;    /* ثابت */
  width: 120px !important;  /* ثابت */
  transition: none !important;
}

@media (max-width: 700px){
  /* if you also want it ثابت on mobile, keep same values here too */
  .parent .item3 .ph-elephant-free{
    left: -20px !important;
    top: -22px !important;
    width: 90px !important;
  }
}

/* === Keep PH elephant always visible: screen edge is the boundary === */
.parent .item3 .ph-elephant-free{
  left: 0 !important;                 /* never go خارج الشاشة */
  transform: translateX(clamp(-24px, -2vw, 0px)); /* optional slight overflow, but limited */
  transition: none !important;
}

@media (max-width: 700px){
  .parent .item3 .ph-elephant-free{
    left: 0 !important;
    transform: translateX(clamp(-16px, -4vw, 0px));
  }
}

/* === Snap PH elephant to the very left screen boundary (compensate .parent padding) === */
.parent .item3 .ph-elephant-free{
  left: calc(-1 * var(--parent-pad-left)) !important; /* aligns to viewport left */
  transform: none !important;
}

/* === MIDAS-style elephant for Product Highlights title (pseudo-element) === */
.parent .item3 .product-highlights-grid-title{
  position: relative;
  z-index: 1;
  padding-left: 0;
}

.hero-container2 {
  position: sticky;
  top: 100px;
  left: 137px;
  width: 0%;
  height: 0px;
}

/* Ensure img inside .home-elephant2 scales with container */
.home-elephant2 .home-elephant__img2{
  width: 100% !important;
  height: auto !important;
  display: block;
}

 .home-elephant2 {
    position: absolute;
    left: -142px;
    top: 1181px;
    transform: translateY(-50%);
    width: clamp(66px, 12vw, 178px);
    height: auto;
  }


@media (max-width: 1080px){
.home-elephant2 {
  position: absolute;
  left: -141px;
  top: 866px;
  transform: translateY(-50%);
  width: clamp(90px, 12vw, 180px);
  height: auto;
}
}

/* === 700px: home-elephant2 positioning (Ayoub request) === */
@media (max-width: 700px){
  .home-elephant2{
    position: absolute;
    left: -141px;
    top: 1458px;
    transform: translateY(-50%);
    width: clamp(66px, 12vw, 178px);
    height: auto;
  }
}

/* === hero-container3: independent sticky background layer === */
.hero-container3{
  position: sticky;
  top: clamp(78px, 10vh, 132px);
  width: 100vw;
  margin-left: calc(50% - 50vw); /* break out from parent width */
  min-height: 1px; /* keep sticky active without affecting layout */
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.hero-container3 .home-elephant3{
  position: absolute;
  right: 0;
  top: 2158px;
  width: 177px;
}

.hero-container3 .home-elephant__img3{
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(-1); /* vertical-axis mirror */
}

@media (max-width: 1080px){
  .hero-container3{
    top: clamp(70px, 9vh, 116px);
  }

  .hero-container3 .home-elephant3{
    top: 1492px;
    width: 110px;
  }
}

@media (max-width: 700px){
  .hero-container3{
    top: 84px;
    margin-left: 0;
    width: 100%;
  }

  .hero-container3 .home-elephant3{
    right: 5%;
    top: 2022px;
    width: clamp(73px, 28vw, 78px);
    transform: translateX(50%);
  }
}

.expertise-container{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 194px;
  margin-top: -106px;
}

@media (max-width: 1080px){ 
.expertise-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 194px;
  margin-top: -51px;
}
}


.Expertise-title{
  margin: 0;
  font-weight: 400;
  color: #17487c;
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1.05;
  text-align: right;
  white-space: nowrap;
}

/* === Scroll-trigger background (Product Highlights) === */
body::before{
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: transparent;
}

body.bg-ph::before{ background-image:none !important; opacity:0 !important; }

/* keep the base sand background behind */
html{ background-color: #f1ebe3; }

/* === FIX: make bg overlay visible (proper stacking + transition) === */
body{ position: relative; }
header, main, footer{ position: relative; z-index: 1; }

/* Footer top curve */
.midas-footer::before{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -120px;
  height: 400px;
  background: url('/static/image/footer.svg') top center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.midas-footer > *{
  position: relative;
  z-index: 1;
}
@media (max-width: 700px){
  .midas-footer::before{
    background-image: url('/static/image/footer700px.svg');
  }
}

body::before{
  opacity: 0;
  transition: opacity 420ms ease;
  z-index: 0; /* behind content, above html bg */
}

body.bg-ph::before{ opacity: 0.68; }

/* === Product Highlights background inside .parent (like midas block) === */
.parent{
  position: relative;
}
.parent .ph-bg{
  position: absolute;
  inset: 0;
  background-image: url('/media/Images/_5049_w1200_h675.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 420ms ease;
}
.parent.ph-bg-on .ph-bg{ opacity: 0.78; }
.parent.ph-bg-upload .ph-bg{
  background-image: url('/media/Images/_8551_w1920_h1080.jpg') !important;
  opacity: 0.78 !important;
}

.parent > :not(.ph-bg){
  position: relative;
  z-index: 1;
}

@media (min-width: 1785px) and (max-width: 1925px){
.roundswim-bg-container{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 1241px;
  --roundswim-left: -4px;
  --roundswim-size: 260px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}}

@media (min-width: 1785px) and (max-width: 1925px){
.roundswim-bg-container2{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 3566px;
  --roundswim-left: 1378px;
  --roundswim-size: 260px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}}

@media (min-width: 1500px) and (max-width: 1785px){
.roundswim-bg-container{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 1705px;
  --roundswim-left: 142px;
  --roundswim-size: 207px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}
}
@media (min-width: 1500px) and (max-width: 1785px){
.roundswim-bg-container2{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 3538px;
  --roundswim-left: 1281px;
  --roundswim-size: 260px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}
}

@media (min-width: 1200px) and (max-width: 1500px){
.roundswim-bg-container{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 1607px;
  --roundswim-left: 142px;
  --roundswim-size: 207px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}
}
@media (min-width: 1200px) and (max-width: 1500px){
.roundswim-bg-container2{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 1607px;
  --roundswim-left: 142px;
  --roundswim-size: 207px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}
}

@media (min-width: 700px) and (max-width: 1500px){
.roundswim-bg-container{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 1459px;
  --roundswim-left: 132px;
  --roundswim-size: 148px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}
}
@media (min-width: 700px) and (max-width: 1500px){
.roundswim-bg-container2{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 3568px;
  --roundswim-left: 666px;
  --roundswim-size: 212px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}
}
@media (min-width: 700px) and (max-width: 1080px){
.roundswim-bg-container2{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 2761px;
  --roundswim-left: 479px;
  --roundswim-size: 147px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}
}


@media (max-width: 700px){
.roundswim-bg-container{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 1119px;
  --roundswim-left: 83px;
  --roundswim-size: 148px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}}

@media (max-width: 700px){
.roundswim-bg-container2{
  /* Fixed values so position/size never change with screen width */
  --roundswim-top: 3203px;
  --roundswim-left: 289px;
  --roundswim-size: 148px;
  --roundswim-opacity: 0.9;

  position: absolute;
  left: var(--roundswim-left);
  top: var(--roundswim-top);
  width: var(--roundswim-size);
  height: var(--roundswim-size);
  pointer-events: none;
  z-index: 0;
}
}


.roundswim-bg-flex{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roundswim-bg-flex__img{
  width: 100%;
  height: 100%;
  background: url('/media/Images/roundswim2.webp') center/contain no-repeat;
  opacity: var(--roundswim-opacity);
}

.roundswim-bg-flex2{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roundswim-bg-flex__img2{
  width: 100%;
  height: 100%;
  background: url('/media/Images/roundswim2.webp') center/contain no-repeat;
  opacity: var(--roundswim-opacity);
}

/* === Text to white when PH background is visible (title only) === */
.parent.ph-bg-on .item3 .product-highlights-grid-title{
  color: #fff !important;
}

/* === OVERRIDE: PH background should cover the full screen === */
.parent .ph-bg{
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
}

/* === Expertise & Mission title (place at col 6 row 5) === */
.parent .item5{
  grid-column: 1 / -1;
  grid-row: 6 / 6;
  align-self: start;
  justify-self: end;
  position: relative;
  padding-right: 0;
}

.parent .item5 .expertise-title{
  margin: 0;
  font-weight: 400;
  color: #17487c;
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1.05;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 1080px){
.parent .item5 .expertise-title{
  margin: 0;
  font-weight: 400;
  color: #17487c;
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1.05;
  text-align: right;
  white-space: nowrap;
  position: absolute;
  left: -201px;
}
}
@media (max-width: 700px) {
  .parent .item5 .expertise-title {
    margin: 0;
    font-weight: 400;
    color: #17487c;
    font-size: clamp(30px, 3.2vw, 56px);
    line-height: 1.05;
    text-align: right;
    white-space: nowrap;
    position: absolute;
    left: -270px;
  }
}


/* decorative elephant on the right of the title */
.parent .item5::after{
  content: '';
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(110px, 10vw, 190px);
  aspect-ratio: 1;
  background-image: url('/media/Images/elephant-anim2.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.95;
  pointer-events: none;
}

@media (max-width: 1080px){
  /* stack it full width on smaller screens */
  .parent .item5{
    grid-row: 6/ 6 !important;
    grid-column: 6/ 7;
    justify-self: start;
    padding: 0 12px;
  }
  .parent .item5 .expertise-title{ text-align: left; }
  .parent .item5::after{ display:none; }
}

/* Move Expertise & Mission to row 6 */
.parent .item5{ grid-row: 6 / 7 !important; }

/* === FIX: ensure item5 is not hidden + allow row 6 to exist === */
.parent .item5{ display: block !important; }

/* create implicit rows when we target row 6 */
.parent{
  grid-auto-rows: minmax(120px, auto) !important;
}

/* Remove decorative elephant from Expertise title */
.parent .item5::after{ content: none !important; display: none !important; }

.parent .grid-elephant{
  grid-column: 4 / 7;
  grid-row: 7 / 7;
  justify-self: start;
  display: block;
}
@media (max-width: 700px){
.parent .grid-elephant{
  grid-column: 1 / 7;
  grid-row: 8 / 8;
  justify-self: start;
  display: block;
}
}


.grid-elephant{
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: url('/media/Images/_8512_w768.webp') center/cover no-repeat;
  justify-self: start;
  align-self: start;
}

.parent .mission-block{
  grid-column: 1 / 4;
  grid-row: 7 / 7;
  border-radius: 18px;
  display: grid;
  align-content: start;
}
@media (max-width: 700px){
.parent .mission-block{
  grid-column: 1 / 7;
  grid-row: 7 / 7;
  border-radius: 18px;
  display: grid;
  align-content: start;
}}

.parent .mission-block h3{
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #17487c;
}

.parent .mission-block p{
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #17487c;
}

/* === Fluid slider layout in grid (no media-query dependency) === */
.parent .item4{
  min-width: 0;
  display: grid;
  place-items: center;
}

.parent .item4 .product-highlights{
  width: 100%;
}

.parent .item4 .product-box.product-slider{
  inline-size: min(100%, 64rem) !important;
  width: 93% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  min-block-size: clamp(220px, 28vw, 360px);
  padding: clamp(14px, 2.6vw, 40px) !important;
}

.parent .item4 .product-box.product-slider .product-slide{
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  place-items: center;
  align-content: center;
  gap: clamp(10px, 1.6vw, 22px);
}

.parent .item4 .product-box__content{
  display: grid;
  align-content: center;
  justify-items: start;
  text-align: left;
  max-inline-size: min(56ch, 100%);
  margin-inline: 0;
}

.parent .item4 .product-box__content .slash-line{
  margin-inline: 0 !important;
}

.parent .item4 .product-box__content p{
  max-inline-size: 52ch;
  margin: 0 0 clamp(14px, 2vw, 28px);
}
.parent .item4 .product-box__content .long-desc[hidden]{ display: none !important; }
.parent .item4 .product-box__content .long-desc{ margin-top: 0; }

.parent .item4 .product-box__content .btn-pill{
  justify-self: start;
}

.parent .item4 .product-box__media{
  width: 100%;
  display: grid;
  place-items: center;
  min-block-size: clamp(180px, 24vw, 320px);
}

.parent .item4 .product-box__media img{
  width: clamp(180px, 26vw, 320px) !important;
  height: clamp(146px, 21vw, 260px) !important;
  max-width: 320px !important;
  max-height: 260px !important;
  object-fit: contain;
  margin: 0 auto !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  position: relative;
}

.parent .item4 .product-dots{
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.72);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.parent .item4 .product-highlights{
  display: grid;
  place-items: center;
}
.parent .item4 .product-dots{
  margin-top: 12px;
}
.product-slider__arrow{
  position: relative;
  inset: 0;
  transform: none;
  width: clamp(28px, 6vw, 32px);
  height: clamp(28px, 6vw, 32px);
  font-size: clamp(14px, 3vw, 18px);
  border: 1px solid rgba(23, 72, 124, 0.25);
  background: linear-gradient(180deg, #e8f8fb 0%, #d0f1f7 100%);
  color: #17487c;
  padding: 0;
  border-radius: 50%;
}
.product-slider__arrow--prev{ order: -1; }
.product-slider__arrow--next{ order: 1; }

@media (max-width: 700px){
  .product-slider__arrow{
    width: clamp(26px, 7vw, 30px);
    height: clamp(26px, 7vw, 30px);
    font-size: clamp(13px, 3.5vw, 16px);
  }
}

.product-slider__arrow{
}

@media (max-width: 700px){
  .parent .item4 .product-box{
    padding: clamp(12px, 4vw, 18px) !important;
    grid-template-columns: 1fr !important;
    gap: clamp(10px, 3vw, 18px);
    width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .parent .item4 .product-box__content{
    align-items: flex-start;
    justify-items: start;
  }
  .parent .item4 .product-box__media img{
    width: clamp(150px, 54vw, 240px) !important;
    height: auto !important;
  }
}

/* === Pool photo upload block === */
.parent .pool-photo-upload{
  grid-column: 1 / 5;
  grid-row: 9 / 9;
  grid-row-end: span 1; /* keep one row visible on line 9 */
  align-self: start;
  width: min(100%, 980px);
  padding: clamp(22px, 2.2vw, 34px);
  border-radius: 22px;
  border: 1px solid rgba(214, 245, 249, 0.95);
  background: linear-gradient(130deg, rgba(203, 231, 238, 0.9) 0%, rgba(160, 215, 223, 0.92) 100%);
  color: #17487c;
}

.pool-photo-upload h3{
  margin: 0;
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 400 !important;
}

.pool-photo-upload > .slash-line{
  width: 190px;
  margin: 10px 0 22px;
}

.pool-photo-upload p{
  margin: 0 0 8px;
  line-height: 1.45;
  font-size: 18px;
}

.pool-photo-upload strong{
  font-weight: 700;
}

.pool-photo-upload__form{
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.pool-photo-upload__fields{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 14px;
}

.pool-photo-upload__field{
  display: grid;
  gap: 7px;
}

.pool-photo-upload__field label,
.pool-photo-upload__upload-label{
  font-size: 18px;
  line-height: 1.25;
}

.pool-photo-upload__field input{
  height: 44px;
  width: 100%;
  border-radius: 999px;
  border: 2px solid #1a4f90;
  background: rgba(248, 252, 255, 0.9);
  color: #17487c;
  padding: 0 16px;
  outline: none;
}

.pool-photo-upload__field input:focus{
  border-color: #1ab7d6;
}

.pool-photo-upload__dropzone{
  position: relative;
  min-height: 132px;
  border: 2px dashed #1a4f90;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  color: #17487c;
  text-align: center;
  cursor: pointer;
  padding: 14px;
}

.pool-photo-upload__dropzone input{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pool-photo-upload__dropzone-main{
  font-weight: 700;
}

.pool-photo-upload__small-note{
  margin-top: -4px;
  font-size: 14px;
}

.pool-photo-upload__privacy{
  margin: 2px 0 4px;
  border: 1px solid rgba(23, 72, 124, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  overflow-anchor: none;
}

.pool-photo-upload__privacy summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  font-weight: 700;
  color: #17487c;
}

.pool-photo-upload__privacy summary::-webkit-details-marker{
  display: none;
}

.pool-photo-upload__privacy summary::after{
  content: "+";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(23, 72, 124, 0.45);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.pool-photo-upload__privacy[open] summary::after{
  content: "-";
}

.pool-photo-upload__privacy-open{
  display: none;
}

.pool-photo-upload__privacy[open] .pool-photo-upload__privacy-open{
  display: inline;
}

.pool-photo-upload__privacy[open] .pool-photo-upload__privacy-closed{
  display: none;
}

.pool-photo-upload__privacy-content{
  padding: 0 14px 12px;
}

.pool-photo-upload__consent{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}

.pool-photo-upload__consent input{
  margin-top: 3px;
}

.pool-photo-upload__required-note{
  font-size: 14px;
}

.pool-photo-upload__submit{
  justify-self: end;
}

.pool-photo-upload__submit:disabled{
  opacity: 0.72;
  cursor: not-allowed;
}

.pool-photo-upload__submit.is-loading .btn-pill__icon{
  animation: pool-photo-pulse 0.9s ease-in-out infinite alternate;
}

.pool-photo-upload__loading{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #17487c;
}

.pool-photo-upload__spinner{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(23, 72, 124, 0.25);
  border-top-color: #17487c;
  animation: pool-photo-spin 0.8s linear infinite;
}

@keyframes pool-photo-spin{
  to { transform: rotate(360deg); }
}

@keyframes pool-photo-pulse{
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.pool-photo-upload__success{
  margin-top: 18px;
  padding: clamp(20px, 2vw, 28px);
  border-radius: 16px;
  border: 1px solid rgba(23, 72, 124, 0.28);
  background: rgba(255, 255, 255, 0.38);
}

.pool-photo-upload__success h4{
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.15;
  color: #17487c;
}

.pool-photo-upload__success .slash-line{
  width: 180px;
  margin: 10px 0 16px;
}

.pool-photo-upload__success p{
  margin: 0 0 10px;
}

.pool-photo-upload__error{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(160, 30, 30, 0.35);
  background: rgba(255, 230, 230, 0.65);
  color: #7a1d1d;
  font-weight: 600;
}

@media (max-width: 1080px){
  .parent .pool-photo-upload{
    grid-column: 1 / 7;
    width: 94%;
  }
}

@media (max-width: 700px){
  .parent .pool-photo-upload{
    grid-column: 1 / 7;
    grid-row: 10 / 10;
    padding: 16px;
  }

  .pool-photo-upload h3{
    font-size: 28px;
  }

  .pool-photo-upload p{
    font-size: 16px;
  }

  .pool-photo-upload__fields{
    grid-template-columns: 1fr;
  }
}
.fab-person-btn{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative !important;
}

.fab-person-btn .fab-person-status-dot{
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 7px rgba(0,0,0,.18);
}

.fab-person-btn.is-online .fab-person-status-dot{
  background: #18c65d;
}

.fab-person-btn.is-offline .fab-person-status-dot{
  background: #ef3d3d;
}

.global-fab{
  position: relative;
}

.account-popover{
  position: fixed;
  top: 150px;
  right: 24px;
  width: min(300px, 84vw);
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  z-index: 120000;
  padding: 14px;
  pointer-events: auto !important;
}

.account-popover[hidden]{
  display: none !important;
}

.account-popover__head{
  border-bottom: 1px solid #ecf1f7;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.account-popover__name{
  display: block;
  font-size: 1.05rem;
  color: #103f74;
  font-weight: 700;
  line-height: 1.2;
}

.account-popover__email{
  display: block;
  margin-top: 4px;
  color: #4c6686;
  font-size: .92rem;
  word-break: break-word;
}

.account-popover__status{
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 700;
}

.account-popover__status-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.account-popover__status.is-online{
  color: #1f7a37;
}

.account-popover__status.is-online .account-popover__status-dot{
  background: #1fc15b;
}

.account-popover__status.is-offline{
  color: #9d2e2e;
}

.account-popover__status.is-offline .account-popover__status-dot{
  background: #e64a4a;
}

.account-popover__links{
  display: grid;
  gap: 4px;
}

.account-popover__links a{
  color: #123f74;
  text-decoration: none;
  padding: 8px 4px;
  border-radius: 8px;
  font-weight: 600;
}

.account-popover__links a:hover{
  background: #f2f7fd;
}

.fab-cart-btn{
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative !important;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}

.fab-cart-icon{
  width: 44px;
  height: 44px;
  display: block;
  position: static;
  transform: none;
  filter: none;
}

.fab-cart-count{
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #17487c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  padding: 0 4px;
}
.fab-cart-count.is-hidden{
  display: none;
}

.fab-cart-btn.is-hidden{
  display: none !important;
}

.cart-popover{
  position: fixed;
  top: 150px;
  right: 24px;
  width: min(340px, 90vw);
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  z-index: 120000;
  padding: 12px;
  pointer-events: auto !important;
}

.cart-popover[hidden]{
  display: none !important;
}

.cart-popover__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #ecf1f7;
  padding-bottom: 8px;
}

.cart-popover__head strong{
  color: #103f74;
  font-size: 1rem;
}

.cart-popover__view-all{
  color: #2f6bb4;
  font-size: .86rem;
  text-decoration: none;
  font-weight: 600;
}

.cart-popover__items{
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.cart-popover__item{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #edf2f8;
  border-radius: 10px;
  padding: 7px;
}

.cart-popover__item-link{
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 9px;
  align-items: center;
  text-decoration: none;
}

.cart-popover__item-img{
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f6fb;
}

.cart-popover__item-meta{
  min-width: 0;
  display: grid;
}

.cart-popover__item-name{
  color: #123f74;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-popover__item-qty{
  color: #577191;
  font-size: .82rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-popover__item-actions{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-mini-btn{
  width: 24px;
  height: 24px;
  border: 1px solid #c8d5e6;
  border-radius: 6px;
  background: #fff;
  color: #123f74;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.cart-mini-btn:hover{
  background: #f3f7fd;
}

.cart-mini-remove{
  color: #b22f2f;
  border-color: #e8c4c4;
}

.cart-popover__empty{
  color: #577191;
  font-size: .9rem;
  text-align: center;
  padding: 10px 0;
}

.cart-popover__checkout{
  margin-top: 10px;
  display: block;
  border: 0;
  border-radius: 10px;
  background: #17487c;
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 10px 12px;
  font-weight: 700;
}

.cart-popover__checkout.is-disabled{
  opacity: .5;
  pointer-events: none;
}


/* === Performance patch (smooth scroll) === */
/* Reduces expensive paints from blur/glass layers and overused will-change. */
html, body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header,
.midas-card__body,
.btn-pill,
[class*="overlay"],
[class*="popover"],
[class*="drawer"],
[class*="menu-panel"],
[class*="mobile-nav"],
[class*="mega-menu"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.brand img {
  filter: none !important;
}

[class*="overlay"],
[class*="popover"],
[class*="drawer"],
[class*="menu-panel"],
[class*="mobile-nav"],
[class*="mega-menu"] {
  will-change: auto !important;
}

@media (max-width: 1024px) {
  * {
    scroll-behavior: auto !important;
  }

  .site-header,
  .site-header.scrolled,
  .midas-card,
  .midas-card__body,
  .btn-pill,
  .product-card,
  .article-pip-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  }
}
.hero-curve__cta-icon-img{width:34px;height:34px;display:block;object-fit:contain;}
.hero-curve__cta-icon-img{transform:translateY(4px);}
#news-anchor{scroll-margin-top:140px;}
@media (max-width: 600px){#news-anchor{scroll-margin-top:110px;}}
html[lang^="fr"] .hero-curve__title{
  white-space: normal;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
