

 @media (orientation: landscape) and (min-width: 480px){
    .background{
    background-image: url(/img/index_background_desktop.PNG);
    background-size:  100% auto; /* critical: stable mapping */
 }
}

 @media (orientation: portrait) {
    .background{
    background-image: url(/img/index_background_mobile.PNG);
    background-size:  100% auto; /* critical: stable mapping */
 }
}

.hero-wrapper {
  height: 250vh;
  position: relative;
}

.background{
  position: sticky;
  left: 0;
  top: 0;
  width: auto ;
  height: 100vh;
  min-height: 500px;
  overflow: hidden; /* only here */
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover; /* critical: stable mapping */
}


 .ping-button {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 0;
  background: none;
  opacity: 0.9;
  overflow: visible;
  transform: translate(-50%, -50%); /* center on point */
 }

.ping-button::after {
  content: "";
  overflow: visible;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: gray;
  opacity: 0.9;
  animation: ping 3s linear infinite;

}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(3);
    opacity: 0;
  }
  100% {
    transform: scale(3);
    opacity: 0; /* hold final state for pause */
  }
}

/* default coordinates (pick one “base” aspect ratio and tune once) */
.buttonswift   { left: 25%; top: 50%; }
.buttonblueeyes{ left: 62%; top: 38%; }
.buttonzenith { left: 78%; top: 76%; }
.buttonhuman   { left: 22%; top: 46%; }

/* size per button: use transform scale separately (don’t use `scale:` property) */
.buttonswift   { --s: 1.5; }
.buttonblueeyes{ --s: 2.0; }
.buttonzenith { --s: 3.0; }
.buttonhuman   { --s: 1.0; }


.buttonswift,
.buttonblueeyes,
.buttonzenith,
.buttonhuman{
  transform: translate(-50%, -50%) scale(var(--s));
}

.img_boat,
.img_shade{
  position: absolute;
    width: 600px;
    height: auto;
    top: -140px;
    left: -200px; 
}

.img_shade{
    opacity: 0.8;
}


 /* Popup */
    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        display: none;
    }

    .popup {
        background: var(--color-lightbrown);
        max-width: 80%;
        max-height: 90%;
        width: 400px;
        padding: 20px;
        border-radius: 8px;
        position: relative;
        overflow-y: auto;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        text-align: center;
        display: flex;
        flex-direction: column; /* stack children vertically */
        align-items: center;    /* optional: center horizontally */
    }

   .popup img {
    width: 100%;
    height: auto;
    max-height: 20vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding-top: 1rem;
}


    .popup a,
    .index-button{
        background-color: var(--color-brown);
        color: white;
        padding: 0.7em;
        border-radius: 5em;
        min-width: 200px;
        margin: 0.4em;
    }

    .popup .close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 20px;
        cursor: pointer;
    }

    .popup .explore-more {
        display: inline-block;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
    }

.key-item3-1{
    display: flex;
    flex-shrink: 0;
    margin-top: 0.5em;
}

.key-item3{ 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.key-item3 img{ 
    height: 100%;
    width: auto;
    flex-shrink: 0;
    display: block;
    transform: translateY(-1em);

    }

.hero-conversion {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: min(90%, 700px);

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(5px);

  border-radius: 1em;
  padding: 1.5em;
  text-align: center;

  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* headings */
.hero-conversion h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2em;
  color: #0f5f66;
}

.hero-conversion h2 {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 1em;
}

.hero-subtext,
.scroll-text {
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}


/* scroll indicator */
.scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  margin-bottom: 1.2em;
  opacity: 0.85;
  font-size: 0.9rem;
}

.scroll-indicator.permanent{
  display: flex;
  position: sticky;
  width: 18px;
  height: 30px;
  top: 90vh;
  left: 5vw;
}

.scroll-icon {
  width: 18px;
  height: 30px;
  border: 2px solid white;
  border-radius: 10px;
  position: relative;
}

.scroll-icon::after {
  content: "";
  width: 4px;
  height: 6px;
  background: white;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollMove 1.5s infinite;
}

@keyframes scrollMove {
  0% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 6px); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* CTA refinement */
.hero-cta-primary {
  display: inline-block;
  padding: 0.5em 1em;
  margin-bottom: 0.5em;
  border-radius: 999px;
  background: #b7a68c;
  color: white;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.info-section {
  position: relative;
  z-index: 2;
}
.coverflow-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  height: 420px;
  text-align: center;
}

.coverflow-track {
  position: relative;
  height: 100%;
}

.coverflow-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0.4;
  transition: all 0.6s ease;
  z-index: 1;
}

.coverflow-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.coverflow-item h2 {
  text-align: center;
  margin: 0px;
  margin-top: 10px;
  color: #0f5f66;
}

.coverflow-carousel p{
  margin: 0px;
}

/* center */
.coverflow-item.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
}

/* left */
.coverflow-item.left {
  transform: translate(-150%, -50%) scale(0.75);
  opacity: 0.6;
  z-index: 2;
}

/* right */
.coverflow-item.right {
  transform: translate(50%, -50%) scale(0.75);
  opacity: 0.6;
  z-index: 2;
}

.cf-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-brown);
  color: white;
  border: none;
  padding: 10px 15px;
  scale: 0.8;
  cursor: pointer;
}

.cf-btn.prev { left: 10px; }
.cf-btn.next { right: 10px; }

    /*NEW */
/* =========================
   CAB index conversion insert 
========================= */

.cab-heroCard{
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(248, 244, 241, 0.92);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  z-index: 25; /* above ping buttons */
}

.cab-h1{
  font-size: var(--title-font-size-mobile);
  color: var(--color-blue);
  line-height: 1.1;
  margin: 0 0 .4rem 0;
}

.cab-sub{
  margin: 0 0 .75rem 0;
  line-height: 1.45;
  opacity: 0.95;
  font-size: var(--normal-font-size-mobile);
  color: var(--color-blue);
}

.cab-micro{
  margin: .6rem 0 0 0;
  font-size: .95rem;
  opacity: .85;
  color: var(--color-blue);
}

.cab-metaRow{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .7rem;
}

.cab-pill{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: var(--color-lightbrown);
  border: 1px solid rgba(2, 91, 112, 0.18);
  color: var(--color-blue);
  font-size: .95rem;
}

.cab-icon{
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cab-ctaRow{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.cab-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
}

.cab-btnPrimary{
  background: var(--color-brown);
  color: var(--color-white);
}

.cab-btnGhost{
  background: transparent;
  border-color: rgba(186, 169, 141, 0.55);
  color: var(--color-blue);
}

/* Scrollable content area */
.cab-index{
  padding: 2rem 1rem 2.5rem 1rem;
  background: var(--color-lightbrown);
}

.cab-wrap{
  max-width: 1100px;
  margin: 0 auto;
}

.cab-section{
  margin-bottom: 1rem;
  text-align: left;
}

.cab-topSpace{
  margin-top: 2rem;
}

.cab-h2{
  font-size: 1.6rem;
  color: var(--color-blue);
  margin: 0 0 .4rem 0;
}

.cab-h3{
  font-size: 1.2rem;
  color: var(--color-blue);
  margin: 0 0 .2rem 0;
}

.cab-text{
  margin: 0;
  line-height: 1.6;
  color: var(--color-blue);
  opacity: 0.9;
}

.cab-textSmall{
  margin: 0;
  line-height: 1.6;
  color: var(--color-blue);
  opacity: 0.88;
  font-size: 1rem;
}

.cab-priceLine{
  margin: .35rem 0 0 0;
  color: var(--color-blue);
}

.cab-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.cab-card{
  background: var(--color-white);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(186, 169, 141, 0.35);
}

.cab-cardActions{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .9rem;
}

.cab-chips{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.cab-chip{
  padding: .45rem .7rem;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid rgba(186, 169, 141, 0.35);
  color: var(--color-blue);
}

.cab-trustGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

.cab-trustItem{
  background: var(--color-white);
  border: 1px solid rgba(186, 169, 141, 0.35);
  border-radius: 12px;
  padding: .9rem 1rem;
  color: var(--color-blue);
}

.cab-faq{
  background: var(--color-white);
  border-radius: 12px;
  padding: .9rem 1rem;
  border: 1px solid rgba(186, 169, 141, 0.35);
  margin-top: .75rem;
}

.cab-faq summary{
  cursor: pointer;
  color: var(--color-blue);
  font-weight: 600;
}

@media (min-width: 768px){
  .hero-conversion{
    top: 20%;
  }
  .cab-heroCard{
    left: 2rem;
    right: auto;
    max-width: 540px;
    bottom: 2rem;
    padding: 1.25rem;
  }
  .cab-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cab-trustGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form{
    width: 50vw;
    max-width: 600px;
  }
}

@media (min-width: 1366px){
  .cab-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cab-trustGrid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

     /*END NEW */


 

/* PORTRAIT */
@media (max-aspect-ratio: 3/4){

  .buttonswift   { left: 35%; top: 55%; --s: 0.7; }
  .buttonblueeyes{ left: 70%; top: 32%; --s: 0.65; }
  .buttonzenith { left: 65%; top: 75%; --s: 0.8; }
  .buttonhuman   { left: 40%; top: 35%; --s: 0.8; }
}

/* TABLET / NEAR-SQUARE */
@media (min-aspect-ratio: 3/4) and (max-aspect-ratio: 4/3){
  .buttonswift   { left: 25%; top: 62%; --s: 1.2; }
  .buttonblueeyes{ left: 78%; top: 35%; --s: 1.0; }
  .buttonzenith { left: 84%; top: 80%; --s: 1.5; }
  .buttonhuman   { left: 40%; top: 35%; --s: 1.0; }
}


/* TABLET / NEAR-SQUARE */
@media (min-aspect-ratio: 3/4) and (max-aspect-ratio: 1/1){
  .buttonswift   { left: 25%; top: 75%; --s: 0.8; }
  .buttonblueeyes{ left: 60%; top: 50%; --s: 0.8; }
  .buttonzenith { left: 75%; top: 90%; --s: 0.8; }
  .buttonhuman   { left: 35%; top: 50%; --s: 0.8; }
}

/* TABLET / NEAR-SQUARE */
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 4/3){
  .buttonswift   { left: 25%; top: 60%; --s: 1.0; }
  .buttonblueeyes{ left: 60%; top: 40%; --s: 1.0; }
  .buttonzenith { left: 70%; top: 80%; --s: 1.0; }
  .buttonhuman   { left: 30%; top: 35%; --s: 1.0; }
}

/* STANDARD LANDSCAPE */
@media (min-aspect-ratio: 4/3) and (max-aspect-ratio: 16/9){
  .buttonswift   { left: 25%; top: 63%; --s: 1.0; }
  .buttonblueeyes{ left: 55%; top: 40%; --s: 1.0; }
  .buttonzenith { left: 80%; top: 80%; --s: 1.0; }
  .buttonhuman   { left: 25%; top: 40%; --s: 1.0; }
}


/* WIDE DESKTOP */
@media (min-aspect-ratio: 16/9){
  .buttonswift   { left: 25%; top: 80%; --s: 1; }
  .buttonblueeyes{ left: 55%; top: 50%; --s: 1; }
  .buttonzenith { left: 83%; top: 75%; --s: 1; }
  .buttonhuman   { left: 25%; top: 50%; --s: 1; }
}


/* ULTRA WIDE DESKTOP + PHONE LANDSCAPE */
@media (min-aspect-ratio: 21/9){
  .buttonswift   { left: 45%; top: 75%; --s: 0.7; }
  .buttonblueeyes{ left: 60%; top: 75%; --s: 0.9; }
  .buttonzenith { left: 90%; top: 75%; --s: 0.6; }
  .buttonhuman   { left: 25%; top: 75%; --s: 0.7; }
}
