/* =========================================================
   SAWB — HEADER + HERO
   FINAL HEADER SCROLL FIX
========================================================= */

:root {
  --sawb-blue: #1c50be;
  --sawb-blue-dark: #16449f;
  --sawb-navy: #08111c;
  --sawb-ink: #111827;
  --sawb-ivory: #f7f6f2;
  --sawb-white: #ffffff;

  --header-height: 80px;
}


/* =========================================================
   HOME RESET
========================================================= */

.has-overlay-hero .site-main,
.has-overlay-hero .site-main-home {
  margin: 0 !important;
  padding-top: 0 !important;
}


/* =========================================================
   HOMEPAGE HEADER WRAPPER
========================================================= */

.has-overlay-hero .site-header-wrap {
  position: fixed !important;

  top: 0 !important;
  right: 0 !important;
  left: 0 !important;

  width: 100% !important;

  z-index: 1000;

  background: transparent !important;
}


/* =========================================================
   BASE HEADER
========================================================= */

.site-header {
  height: var(--header-height);

  padding: 0 !important;

  background:
    rgba(247, 246, 242, .98);

  color: var(--sawb-ink);

  border-bottom:
    1px solid rgba(13, 27, 42, .08);

  box-shadow: none;

  transition:
    background-color .25s ease,
    border-color .25s ease,
    color .25s ease,
    box-shadow .25s ease,
    backdrop-filter .25s ease;
}


/* =========================================================
   HOMEPAGE — TOP OF HERO
========================================================= */

.has-overlay-hero
.site-header:not(.is-scrolled) {
  background:
    linear-gradient(
      to bottom,
      rgba(3, 9, 15, .32) 0%,
      rgba(3, 9, 15, .10) 70%,
      rgba(3, 9, 15, 0) 100%
    ) !important;

  color: #ffffff !important;

  border-bottom-color:
    rgba(255, 255, 255, .14) !important;

  box-shadow: none !important;

  backdrop-filter: none !important;
}


/* =========================================================
   SCROLLED HEADER
   IMPORTANT:
   Must become solid on homepage too.
========================================================= */

.site-header.is-scrolled,
.has-overlay-hero .site-header.is-scrolled {
  background:
    rgba(247, 246, 242, .98) !important;

  color:
    var(--sawb-ink) !important;

  border-bottom:
    1px solid rgba(13, 27, 42, .08) !important;

  box-shadow:
    0 8px 28px rgba(13, 27, 42, .06) !important;

  backdrop-filter:
    blur(16px)
    saturate(120%) !important;
}


/* =========================================================
   HEADER INNER
========================================================= */

.site-header-inner {
  width:
    min(
      1500px,
      100%
    );

  height: 100%;

  margin-inline: auto;

  padding:
    0
    clamp(
      24px,
      4vw,
      64px
    );

  align-items: center;
}


/* =========================================================
   LOGO
========================================================= */

.site-brand {
  display: inline-flex;

  align-items: center;

  width: max-content;
}


.site-brand-image {
  display: block;

  width: auto;

  max-width: 112px;
  max-height: 36px;

  object-fit: contain;
}


/* =========================================================
   WHITE LOGO ONLY OVER HERO
========================================================= */

.has-overlay-hero
.site-header:not(.is-scrolled)
.site-brand-dark {
  display: none !important;
}


.has-overlay-hero
.site-header:not(.is-scrolled)
.site-brand-light {
  display: block !important;
}


/* =========================================================
   BLUE LOGO AFTER SCROLL
========================================================= */

.site-header.is-scrolled
.site-brand-dark,
.has-overlay-hero
.site-header.is-scrolled
.site-brand-dark,
body:not(.has-overlay-hero)
.site-brand-dark {
  display: block !important;
}


.site-header.is-scrolled
.site-brand-light,
.has-overlay-hero
.site-header.is-scrolled
.site-brand-light,
body:not(.has-overlay-hero)
.site-brand-light {
  display: none !important;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.desktop-navigation {
  gap:
    clamp(
      18px,
      1.8vw,
      29px
    );
}


.nav-link {
  color: inherit;

  font-size: 13px;

  font-weight: 500;

  opacity: .9;

  transition:
    opacity .18s ease,
    color .18s ease;
}


.nav-link:hover {
  opacity: 1;
}


.has-overlay-hero
.site-header:not(.is-scrolled)
.nav-link {
  color:
    rgba(255, 255, 255, .94);
}


/* =========================================================
   LANGUAGE
========================================================= */

.language-switch {
  display: inline-flex !important;

  align-items: center;
  justify-content: center;

  min-width: 28px;

  padding: 0;

  color: inherit;

  font-size: 11px;

  font-weight: 600;

  line-height: 1;

  text-decoration: none;

  opacity: .92;
}


.language-switch:hover {
  opacity: 1;
}


/* =========================================================
   HEADER PLAN BUTTON
========================================================= */

.has-overlay-hero
.site-header:not(.is-scrolled)
.header-plan-button {
  display: none !important;
}


.site-header.is-scrolled
.header-plan-button,
body:not(.has-overlay-hero)
.header-plan-button {
  display: inline-flex;
}


.header-plan-button {
  min-height: 40px;

  align-items: center;
  justify-content: center;

  padding:
    0
    16px;

  background: var(--sawb-blue);

  border:
    1px solid var(--sawb-blue);

  color: #ffffff;

  font-size: 11px;

  font-weight: 600;

  text-decoration: none;
}


/* =========================================================
   HERO
========================================================= */

.fleet-catalogue-header[data-fleet-hero],
.sawb-huts .huts-hero,
.sawb-hotels .hotels-hero,
.experience-index-page .experience-index-hero,
.sawb-home-v2
.hv2-hero {
  position: relative !important;

  width: 100% !important;

  height:
    clamp(
      610px,
      78svh,
      780px
    ) !important;

  min-height: 610px !important;
  max-height: 780px !important;

  margin: 0 !important;

  padding: 0 !important;

  overflow: hidden !important;

  isolation: isolate;

  background: #08111c !important;

  color: #ffffff;
}


/* =========================================================
   HERO MEDIA
========================================================= */

.sawb-home-v2
.hv2-hero
.hv2-hero-media {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  min-height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;

  z-index: 0 !important;
}


/* =========================================================
   STOP MOBILE/TABLET PARALLAX GAP
========================================================= */

@media (max-width: 1180px) {

  .sawb-home-v2
  .hv2-hero
  .hv2-hero-media {
    transform: none !important;
    translate: none !important;
    will-change: auto !important;
  }

}


/* =========================================================
   HERO IMAGE / VIDEO
========================================================= */

.sawb-home-v2
.hv2-hero
.hv2-hero-media img,

.sawb-home-v2
.hv2-hero
.hv2-hero-media video {
  position: absolute !important;

  inset: 0 !important;

  display: block !important;

  width: 100% !important;
  height: 100% !important;

  min-width: 100% !important;
  min-height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover !important;

  object-position:
    center center !important;

  transform:
    scale(1.003) !important;

  filter:
    saturate(.98)
    contrast(1.01)
    brightness(.98);
}


/* =========================================================
   OVERLAY
========================================================= */

.sawb-home-v2
.hv2-hero
.hv2-hero-overlay {
  position: absolute !important;

  inset: 0 !important;

  width: 100%;
  height: 100%;

  z-index: 1;

  pointer-events: none;

  background:

    linear-gradient(
      to bottom,
      rgba(3, 9, 15, .20) 0%,
      rgba(3, 9, 15, .03) 27%,
      rgba(3, 9, 15, .07) 48%,
      rgba(3, 9, 15, .27) 69%,
      rgba(3, 9, 15, .60) 100%
    ),

    linear-gradient(
      90deg,
      rgba(3, 9, 15, .32) 0%,
      rgba(3, 9, 15, .08) 55%,
      rgba(3, 9, 15, 0) 100%
    ) !important;
}


[dir="rtl"]
.sawb-home-v2
.hv2-hero
.hv2-hero-overlay {
  background:

    linear-gradient(
      to bottom,
      rgba(3, 9, 15, .20) 0%,
      rgba(3, 9, 15, .03) 27%,
      rgba(3, 9, 15, .07) 48%,
      rgba(3, 9, 15, .27) 69%,
      rgba(3, 9, 15, .60) 100%
    ),

    linear-gradient(
      270deg,
      rgba(3, 9, 15, .32) 0%,
      rgba(3, 9, 15, .08) 55%,
      rgba(3, 9, 15, 0) 100%
    ) !important;
}


/* =========================================================
   HERO SHELL
========================================================= */

.sawb-home-v2
.hv2-hero
.hv2-shell {
  position: relative;

  width:
    min(
      1380px,
      calc(100% - 80px)
    ) !important;

  height: 100% !important;

  margin-inline: auto;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.sawb-home-v2
.hv2-hero
.hv2-hero-inner {
  position: relative !important;

  z-index: 2;

  height: 100% !important;

  display: flex !important;

  flex-direction: column;

  justify-content: flex-end !important;

  align-items: flex-start;

  padding:
    calc(
      var(--header-height)
      + 30px
    )
    0
    55px !important;
}


/* =========================================================
   HERO COPY
========================================================= */

.sawb-home-v2
.hv2-hero-copy {
  width: 100%;

  max-width: 610px;

  margin: 0 !important;
}


[dir="rtl"]
.sawb-home-v2
.hv2-hero-copy {
  max-width: 600px;
}


/* =========================================================
   EYEBROW
========================================================= */

.sawb-home-v2
.hv2-eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin:
    0
    0
    11px !important;

  color:
    rgba(255, 255, 255, .86);

  font-size: 10px !important;

  font-weight: 600;

  line-height: 1.3;

  letter-spacing: .09em;

  text-transform: uppercase;
}


.sawb-home-v2
.hv2-eyebrow::before {
  content: "";

  display: block;

  width: 21px;
  height: 1px;

  background:
    rgba(255, 255, 255, .58);
}


[dir="rtl"]
.sawb-home-v2
.hv2-eyebrow {
  letter-spacing: 0;

  text-transform: none;
}


/* =========================================================
   TITLE
========================================================= */

.sawb-home-v2
.hv2-hero h1 {
  max-width: 630px;

  margin: 0 !important;

  padding: 0 !important;

  color: #ffffff !important;

  font-family:
    var(--sawb-display-font);

  font-size:
    clamp(
      42px,
      3.8vw,
      59px
    ) !important;

  line-height: 1.03 !important;

  font-weight: 500 !important;

  letter-spacing: -.04em !important;

  text-wrap: balance;
}


[dir="rtl"]
.sawb-home-v2
.hv2-hero h1 {
  max-width: 590px;

  font-family:
    var(--sawb-arabic-font, "Noto Sans Arabic", sans-serif) !important;

  font-size:
    clamp(
      39px,
      3.35vw,
      52px
    ) !important;

  line-height: 1.22 !important;

  font-weight: 500 !important;

  letter-spacing: -.02em !important;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.sawb-home-v2
.hv2-hero-description {
  max-width: 515px !important;

  margin:
    14px
    0
    0 !important;

  color:
    rgba(255, 255, 255, .88) !important;

  font-size: 14px !important;

  line-height: 1.7 !important;

  font-weight: 400;
}


/* =========================================================
   ACTIONS
========================================================= */

.sawb-home-v2
.hv2-hero-actions {
  display: flex !important;

  flex-wrap: wrap;

  align-items: center;

  gap:
    15px
    22px;

  margin-top: 20px !important;
}


/* =========================================================
   PLAN BUTTON
========================================================= */

.sawb-home-v2
.hv2-hero
.hv2-button-primary {
  min-height: 45px !important;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding:
    0
    20px !important;

  background:
    rgba(255, 255, 255, .96) !important;

  border:
    1px solid rgba(255, 255, 255, .96) !important;

  border-radius: 0 !important;

  color: #111827 !important;

  box-shadow: none !important;

  font-size: 11px !important;

  font-weight: 600 !important;

  text-decoration: none;
}


/* =========================================================
   WHATSAPP
========================================================= */

.sawb-home-v2
.hv2-whatsapp-link {
  display: inline-flex !important;

  align-items: center;

  gap: 7px;

  margin: 0 !important;

  padding:
    5px
    0;

  color:
    rgba(255, 255, 255, .95) !important;

  border-bottom:
    1px solid rgba(255, 255, 255, .42);

  text-decoration: none;

  font-size: 11px !important;

  font-weight: 500;
}


.sawb-home-v2
.hv2-whatsapp-icon {
  display: block !important;

  width: 16px !important;
  height: 16px !important;

  flex:
    0
    0
    16px;
}


/* =========================================================
   REMOVE OLD HERO BOTTOM
========================================================= */

.sawb-home-v2
.hv2-hero-bottom {
  display: none !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1180px) {

  :root {
    --header-height: 76px;
  }


  .fleet-catalogue-header[data-fleet-hero],
  .sawb-huts .huts-hero,
  .sawb-hotels .hotels-hero,
  .experience-index-page .experience-index-hero,
  .sawb-home-v2
  .hv2-hero {
    height:
      clamp(
        580px,
        75svh,
        710px
      ) !important;

    min-height: 580px !important;
    max-height: 710px !important;
  }


  .sawb-home-v2
  .hv2-hero
  .hv2-shell {
    width:
      calc(100% - 54px) !important;
  }


  .sawb-home-v2
  .hv2-hero h1,
  [dir="rtl"]
  .sawb-home-v2
  .hv2-hero h1 {
    font-size:
      clamp(
        37px,
        5vw,
        47px
      ) !important;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  :root {
    --header-height: 70px;
  }


  /* -------------------------------------------------------
     HEADER AT TOP OF HERO
  -------------------------------------------------------- */

  .has-overlay-hero
  .site-header:not(.is-scrolled) {
    height:
      var(--header-height) !important;

    background:
      transparent !important;

    border-bottom:
      1px solid
      rgba(255, 255, 255, .14) !important;

    color:
      #ffffff !important;

    box-shadow:
      none !important;

    backdrop-filter:
      none !important;
  }


  /* -------------------------------------------------------
     HEADER AFTER SCROLL
     THIS FIXES THE LOGO OVER TEXT PROBLEM
  -------------------------------------------------------- */

  .has-overlay-hero
  .site-header.is-scrolled {
    height:
      var(--header-height) !important;

    background:
      rgba(247, 246, 242, .985) !important;

    color:
      var(--sawb-ink) !important;

    border-bottom:
      1px solid
      rgba(13, 27, 42, .09) !important;

    box-shadow:
      0 7px 22px
      rgba(13, 27, 42, .06) !important;

    backdrop-filter:
      blur(16px)
      saturate(120%) !important;
  }


  .site-header-inner {
    width: 100% !important;

    height: 100%;

    padding:
      0
      18px !important;
  }


  .site-brand-image {
    max-width: 80px !important;
    max-height: 27px !important;
  }


  /* -------------------------------------------------------
     LOGO SWITCH ON MOBILE
  -------------------------------------------------------- */

  .has-overlay-hero
  .site-header:not(.is-scrolled)
  .site-brand-dark {
    display:
      none !important;
  }


  .has-overlay-hero
  .site-header:not(.is-scrolled)
  .site-brand-light {
    display:
      block !important;
  }


  .has-overlay-hero
  .site-header.is-scrolled
  .site-brand-dark {
    display:
      block !important;
  }


  .has-overlay-hero
  .site-header.is-scrolled
  .site-brand-light {
    display:
      none !important;
  }


  /* -------------------------------------------------------
     EN
  -------------------------------------------------------- */

  .language-switch {
    display:
      inline-flex !important;

    visibility:
      visible !important;

    opacity:
      .96 !important;

    min-width:
      25px;

    font-size:
      10.5px !important;

    font-weight:
      600;
  }


  .has-overlay-hero
  .site-header:not(.is-scrolled)
  .language-switch {
    color:
      #ffffff !important;
  }


  .has-overlay-hero
  .site-header.is-scrolled
  .language-switch {
    color:
      var(--sawb-ink) !important;
  }


  .header-plan-button {
    display:
      none !important;
  }


  .site-header-actions {
    display:
      flex !important;

    align-items:
      center;

    gap:
      13px !important;
  }


  /* -------------------------------------------------------
     HAMBURGER
  -------------------------------------------------------- */

  .mobile-menu-button {
    display:
      block !important;

    width:
      38px !important;

    height:
      38px !important;
  }


  .mobile-menu-button span {
    width:
      23px !important;

    height:
      1px !important;

    background:
      currentColor !important;
  }


  .has-overlay-hero
  .site-header:not(.is-scrolled)
  .mobile-menu-button {
    color:
      #ffffff !important;
  }


  .has-overlay-hero
  .site-header.is-scrolled
  .mobile-menu-button {
    color:
      var(--sawb-ink) !important;
  }


  /* -------------------------------------------------------
     HERO
  -------------------------------------------------------- */

  .fleet-catalogue-header[data-fleet-hero],
  .sawb-huts .huts-hero,
  .sawb-hotels .hotels-hero,
  .experience-index-page .experience-index-hero,
  .sawb-home-v2
  .hv2-hero {
    height:
      clamp(
        545px,
        73svh,
        615px
      ) !important;

    min-height:
      545px !important;

    max-height:
      615px !important;

    margin:
      0 !important;

    padding:
      0 !important;
  }


  /* -------------------------------------------------------
     MEDIA
  -------------------------------------------------------- */

  .sawb-home-v2
  .hv2-hero
  .hv2-hero-media {
    position:
      absolute !important;

    inset:
      0 !important;

    width:
      100% !important;

    height:
      100% !important;

    min-height:
      100% !important;

    transform:
      none !important;

    translate:
      none !important;

    will-change:
      auto !important;
  }


  .sawb-home-v2
  .hv2-hero
  .hv2-hero-media img,

  .sawb-home-v2
  .hv2-hero
  .hv2-hero-media video {
    position:
      absolute !important;

    inset:
      0 !important;

    width:
      100% !important;

    height:
      100% !important;

    min-height:
      100% !important;

    object-fit:
      cover !important;

    object-position:
      center 45% !important;

    transform:
      none !important;

    filter:
      saturate(.98)
      contrast(1.01)
      brightness(.97) !important;
  }


  /* -------------------------------------------------------
     OVERLAY
  -------------------------------------------------------- */

  .sawb-home-v2
  .hv2-hero
  .hv2-hero-overlay {
    background:

      linear-gradient(
        to bottom,
        rgba(3, 9, 15, .18) 0%,
        rgba(3, 9, 15, .02) 24%,
        rgba(3, 9, 15, .05) 42%,
        rgba(3, 9, 15, .24) 65%,
        rgba(3, 9, 15, .57) 100%
      ) !important;
  }


  /* -------------------------------------------------------
     SHELL
  -------------------------------------------------------- */

  .sawb-home-v2
  .hv2-hero
  .hv2-shell {
    width:
      calc(100% - 32px) !important;

    height:
      100% !important;
  }


  /* -------------------------------------------------------
     CONTENT
  -------------------------------------------------------- */

  .sawb-home-v2
  .hv2-hero
  .hv2-hero-inner {
    height:
      100% !important;

    display:
      flex !important;

    flex-direction:
      column;

    justify-content:
      flex-end !important;

    align-items:
      center !important;

    padding:
      calc(
        var(--header-height)
        + 15px
      )
      0
      25px !important;

    text-align:
      center !important;
  }


  .sawb-home-v2
  .hv2-hero-copy,
  [dir="rtl"]
  .sawb-home-v2
  .hv2-hero-copy {
    width:
      100%;

    max-width:
      355px !important;

    margin:
      0
      auto !important;

    text-align:
      center !important;
  }


  /* -------------------------------------------------------
     EYEBROW
  -------------------------------------------------------- */

  .sawb-home-v2
  .hv2-eyebrow {
    justify-content:
      center !important;

    margin:
      0
      auto
      8px !important;

    font-size:
      8.5px !important;
  }


  .sawb-home-v2
  .hv2-eyebrow::before {
    width:
      16px;
  }


  /* -------------------------------------------------------
     TITLE
  -------------------------------------------------------- */

  .sawb-home-v2
  .hv2-hero h1,

  [dir="rtl"]
  .sawb-home-v2
  .hv2-hero h1 {
    width:
      100%;

    max-width:
      325px !important;

    margin:
      0
      auto !important;

    text-align:
      center !important;

    font-size:
      clamp(
        30px,
        8vw,
        35px
      ) !important;

    line-height:
      1.23 !important;

    font-weight:
      500 !important;

    letter-spacing:
      -.018em !important;
  }


  /* -------------------------------------------------------
     DESCRIPTION
  -------------------------------------------------------- */

  .sawb-home-v2
  .hv2-hero-description {
    max-width:
      305px !important;

    margin:
      10px
      auto
      0 !important;

    text-align:
      center !important;

    color:
      rgba(255, 255, 255, .91) !important;

    font-size:
      12px !important;

    line-height:
      1.6 !important;
  }


  /* -------------------------------------------------------
     ACTIONS
  -------------------------------------------------------- */

  .sawb-home-v2
  .hv2-hero-actions {
    width:
      100%;

    display:
      flex !important;

    flex-direction:
      row !important;

    flex-wrap:
      wrap;

    justify-content:
      center !important;

    align-items:
      center !important;

    gap:
      11px
      16px !important;

    margin-top:
      15px !important;
  }


  .sawb-home-v2
  .hv2-hero
  .hv2-button-primary {
    min-width:
      110px;

    min-height:
      40px !important;

    padding:
      0
      16px !important;

    font-size:
      9.8px !important;
  }


  .sawb-home-v2
  .hv2-whatsapp-link {
    display:
      inline-flex !important;

    align-items:
      center;

    gap:
      6px;

    margin:
      0 !important;

    padding:
      4px
      0;

    color:
      #ffffff !important;

    font-size:
      9.8px !important;
  }


  .sawb-home-v2
  .hv2-whatsapp-icon {
    display:
      block !important;

    width:
      15px !important;

    height:
      15px !important;

    flex:
      0
      0
      15px !important;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

  .site-header-inner {
    padding:
      0
      15px !important;
  }


  .fleet-catalogue-header[data-fleet-hero],
  .sawb-huts .huts-hero,
  .sawb-hotels .hotels-hero,
  .experience-index-page .experience-index-hero,
  .sawb-home-v2
  .hv2-hero {
    height:
      clamp(
        525px,
        71svh,
        580px
      ) !important;

    min-height:
      525px !important;

    max-height:
      580px !important;
  }


  .sawb-home-v2
  .hv2-hero
  .hv2-shell {
    width:
      calc(100% - 26px) !important;
  }


  .sawb-home-v2
  .hv2-hero h1,

  [dir="rtl"]
  .sawb-home-v2
  .hv2-hero h1 {
    max-width:
      305px !important;

    font-size:
      clamp(
        29px,
        8.4vw,
        34px
      ) !important;
  }


  .sawb-home-v2
  .hv2-hero-description {
    max-width:
      288px !important;

    font-size:
      11.6px !important;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .site-header,

  .sawb-home-v2
  .hv2-hero-media,

  .sawb-home-v2
  .hv2-hero-media img,

  .sawb-home-v2
  .hv2-hero-media video {
    animation:
      none !important;

    transition:
      none !important;

    transform:
      none !important;
  }

}
