:root {
  /* Drawn from the black, champagne and gold tones of the Island Executive crest. */
  --logo-black: #000000;
  --logo-black-rgb: 0, 0, 0;
  --volcanic-basalt: #282216;
  --deep-lagoon: var(--logo-black);
  --bespoke-gold: #c99b36;
  --warm-sand: #fbf5e7;
  --sea-foam: #f5e8bd;
  --burnished-copper: #a86f15;
  --beach-white: #fffdf8;
  --whatsapp-green: #25d366;
  --whatsapp-green-dark: #12c37a;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--warm-sand);
  font-family: "Montserrat", Verdana, Geneva, Tahoma, sans-serif;
}

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

button {
  font: inherit;
}

body.modal-open {
  overflow: hidden;
}

.is-hidden {
  display: none;
}

/*
 * Continuous animated background using backgrounds/001.webp through 006.webp.
 * The six images form one seamless horizontal strip with no gaps. The strip is
 * duplicated so it can move continuously and loop without a visible jump.
 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.065;
  background-image:
    url('backgrounds/001.webp'),
    url('backgrounds/002.webp'),
    url('backgrounds/003.webp'),
    url('backgrounds/004.webp'),
    url('backgrounds/005.webp'),
    url('backgrounds/006.webp'),
    url('backgrounds/001.webp'),
    url('backgrounds/002.webp'),
    url('backgrounds/003.webp'),
    url('backgrounds/004.webp'),
    url('backgrounds/005.webp'),
    url('backgrounds/006.webp');
  background-position:
    0vw 0,
    16.6667vw 0,
    33.3333vw 0,
    50vw 0,
    66.6667vw 0,
    83.3333vw 0,
    100vw 0,
    116.6667vw 0,
    133.3333vw 0,
    150vw 0,
    166.6667vw 0,
    183.3333vw 0;
  background-size:
    16.6667vw 100%,
    16.6667vw 100%,
    16.6667vw 100%,
    16.6667vw 100%,
    16.6667vw 100%,
    16.6667vw 100%,
    16.6667vw 100%,
    16.6667vw 100%,
    16.6667vw 100%,
    16.6667vw 100%,
    16.6667vw 100%,
    16.6667vw 100%;
  background-repeat: no-repeat;
  animation: island-executive-background-slide 60s linear infinite;
  will-change: background-position;
}

@keyframes island-executive-background-slide {
  0% {
    background-position:
      0vw 0,
      16.6667vw 0,
      33.3333vw 0,
      50vw 0,
      66.6667vw 0,
      83.3333vw 0,
      100vw 0,
      116.6667vw 0,
      133.3333vw 0,
      150vw 0,
      166.6667vw 0,
      183.3333vw 0;
  }

  100% {
    background-position:
      -100vw 0,
      -83.3333vw 0,
      -66.6667vw 0,
      -50vw 0,
      -33.3333vw 0,
      -16.6667vw 0,
      0vw 0,
      16.6667vw 0,
      33.3333vw 0,
      50vw 0,
      66.6667vw 0,
      83.3333vw 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

/* Keep the animated background above the body colour but behind all page content. */
body > * {
  position: relative;
  z-index: 1;
}

/* Navbar styles */
.navbar {
  background-color: var(--logo-black);
  display: flex;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.brand-name {
  display: block;
  width: 100%;
  position: relative;
}

.brand-icon {
  display: block;
  width: 100px;
  height: auto;
  margin: 0 auto;
}

.brand-visual {
  position: relative;
  width: 100%;
  container-type: inline-size;
}

.brand-home {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
}

.brand-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.brand-logo {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.brand-logo.is-active {
  opacity: 1;
}

.brand-wordmark {
  position: absolute;
  top: 5%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--sea-foam);
  font-family: "Montserrat", Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 600;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  text-transform: uppercase;
  transform: translateX(-50%);
  z-index: 2;
}

.brand-wordmark-primary {
  font-size: clamp(1.5rem, 6.7cqw, 5rem);
  letter-spacing: 0.16em;
}

.brand-wordmark-secondary {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.15em;
  font-size: clamp(0.65rem, 2.4cqw, 1.6rem);
  letter-spacing: 0.42em;
}

.brand-wordmark-secondary::before,
.brand-wordmark-secondary::after {
  content: "";
  width: 2.4em;
  height: 0.08em;
  background-color: currentColor;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}

.brand-tagline {
  position: absolute;
  right: 1rem;
  bottom: 3%;
  left: 1rem;
  color: var(--sea-foam);
  font-family: "Montserrat", Verdana, Geneva, Tahoma, sans-serif;
  font-size: clamp(0.65rem, 3.1cqw, 2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  z-index: 2;
}

.header-services {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  gap: 0.35rem;
  width: min(22vw, 19rem);
  transform: translateY(-50%);
}

.service-quick-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(245, 232, 189, 0.7);
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.58);
  color: var(--beach-white);
  cursor: pointer;
  font-size: clamp(0.68rem, 1.15vw, 0.92rem);
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.service-quick-link-tours {
  text-decoration: none;
}

.service-quick-link:hover,
.service-quick-link:focus-visible {
  border-color: var(--sea-foam);
  background: rgba(40, 34, 22, 0.88);
  outline: none;
  transform: translateY(-2px);
}

/* Applied by JavaScript to every visible Island Executive mention. */
.brand-name-highlight {
  color: var(--bespoke-gold);
  font-weight: 700;
}

.footer.header-footer {
  margin-top: 0;
}

.header-service-areas {
  background-color: transparent;
  padding: 2rem 1.5rem;
  text-align: center;
}

.header-service-areas .service-areas {
  max-width: 1000px;
  margin: 0 auto;
}

.service-areas-carousel {
  max-width: 1000px;
  margin: 0 auto;
}

.service-areas-heading {
  margin-bottom: 0.35rem;
  color: var(--burnished-copper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-areas-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.service-areas-carousel-button {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--burnished-copper);
  border-radius: 50%;
  background: var(--logo-black);
  color: var(--sea-foam);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.service-areas-carousel-button:hover,
.service-areas-carousel-button:focus-visible {
  background: var(--burnished-copper);
  outline: 2px solid var(--logo-black);
  outline-offset: 2px;
}

.service-areas-carousel-status {
  min-width: 9rem;
  color: var(--volcanic-basalt);
  font-size: 0.9rem;
  font-weight: 650;
}

.btn-whatsapp-pulse {
  background: var(--whatsapp-green-dark);
  color: white;
  border: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1500;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56.7px;
  height: 56.7px;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(var(--logo-black-rgb), 0.3);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.btn-whatsapp-pulse svg {
  width: 29.3px;
  height: 29.3px;
}

.btn-whatsapp-pulse::before,
.btn-whatsapp-pulse::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(18, 195, 122, 0.6);
  z-index: -1;
  animation: sea-wave 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-whatsapp-pulse::after {
  animation-delay: 1s;
}

.btn-whatsapp-pulse.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.btn-whatsapp-pulse.is-suppressed {
  display: none;
}

@keyframes sea-wave {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.service-areas {
  margin: 2rem 0 0;
}

.service-areas h2 {
  color: var(--deep-lagoon);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-area-separator {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.service-areas-map {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(var(--logo-black-rgb), 0.14);
}

/* Emphasise location and brand links */
.hero-intro a,
#soro-blog a,
.modal-description a {
  color: var(--deep-lagoon);
  font-weight: bold;
}

.hero-intro a:hover,
#soro-blog a:hover,
.modal-description a:hover {
  color: var(--bespoke-gold);
}

.hero-intro strong,
.modal-description strong {
  color: var(--deep-lagoon);
}

/* Google Maps location links */
a[href*="google.com/maps"] {
  color: var(--burnished-copper);
}

#success-modal h2 {
  color: var(--deep-lagoon);
}

#success-text {
  margin-top: 10px;
  color: var(--volcanic-basalt);
}

.success-hint {
  font-size: 0.8rem;
  color: var(--volcanic-basalt);
}

/* Map Preview Tooltip */
#map-preview {
  position: fixed;
  z-index: 3000;
  width: 300px;
  height: 250px;
  background: var(--beach-white);
  border: 2px solid var(--deep-lagoon);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(var(--logo-black-rgb), 0.2);
  display: none;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.2s ease;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#map-preview.visible {
  display: block;
  opacity: 1;
}

#map-preview.is-pinned {
  pointer-events: auto;
}

.map-preview-close {
  appearance: none;
  border: 1px solid var(--deep-lagoon);
  padding: 0;
  background: var(--beach-white);
  position: absolute;
  top: 5px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3001;
  color: var(--deep-lagoon);
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(var(--logo-black-rgb), 0.2);
}

#map-preview.is-pinned .map-preview-close {
  display: flex;
}

.map-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Page title */
.page-title {
  text-align: center;
  color: var(--deep-lagoon);
  margin: 2rem 0;
  position: relative;
  font-size: 2em;
}

.page-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--bespoke-gold);
  margin: 10px auto;
}

/* Trip cards container */
.trips-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.rating-stars {
  display: block;
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent !important;
  background-image: none !important;
  color: var(--bespoke-gold);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}

.tours-section {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: flow-root;
  padding: 0 0 3.5rem;
  background: transparent !important;
  background-image: none !important;
}

.tours-link {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* Trip card styles */
.trip-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(var(--logo-black-rgb), 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.trip-card:hover {
  transform: translateY(-5px);
}

.trip-image-container {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.trip-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.trip-card:hover .trip-image {
  transform: scale(1.05);
}

.trip-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.trip-title {
  color: var(--deep-lagoon);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.trip-itinerary {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.trip-itinerary-list {
  list-style: none;
  padding-left: 0;
  color: var(--volcanic-basalt);
}

.trip-itinerary-list li,
.modal-description li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.trip-itinerary-list li::before,
.modal-description li::before {
  content: "✓";
  display: inline-block;
  width: 1.4rem;
  margin-left: -1.4rem;
  color: var(--deep-lagoon);
  font-size: 0.9em;
  font-weight: 700;
  line-height: inherit;
  vertical-align: baseline;
}

.more-info-btn {
  background-color: var(--deep-lagoon);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: auto;
}

.more-info-btn:hover {
  background-color: var(--burnished-copper);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(var(--logo-black-rgb), 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: white;
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(var(--logo-black-rgb), 0.3);
}

.modal-tour-image {
  display: block;
  width: calc(100% + 3rem);
  height: 280px;
  margin: -1.5rem -1.5rem 1.5rem;
  border-radius: 12px 12px 0 0;
  object-fit: cover;
}

.trip-modal-content .close-btn {
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--beach-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(var(--logo-black-rgb), 0.3);
}

/* Conversion Modal Styling */
.modal-content.success-popup {
  max-width: 500px;
  text-align: center;
}

.icon-circle {
  width: 70px;
  height: 70px;
  background-color: var(--deep-lagoon);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
}

.loader {
  border: 3px solid var(--beach-white);
  border-top: 3px solid var(--burnished-copper);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  animation: spin 1s linear infinite;
  margin: 1.5rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.close-btn {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--volcanic-basalt);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--deep-lagoon);
}

.modal-title {
  color: var(--deep-lagoon);
  margin-bottom: 1rem;
  padding-right: 2rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--burnished-copper);
}

.modal-description {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--volcanic-basalt);
}

.modal-description h3 {
  margin-bottom: 0.5rem;
}

.modal-description p,
.modal-description ul {
  margin-bottom: 1rem;
}

.modal-description ul {
  list-style: none;
  padding-left: 0;
}

.modal-description p + h3,
.modal-description ul + h3 {
  margin-top: 1.75rem;
}

/* Full screen image view */
.fullscreen-view {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--logo-black-rgb), 0.9);
  justify-content: center;
  align-items: center;
}

.fullscreen-view.is-open {
  display: flex;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.fullscreen-close {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Footer Styles */
.footer {
  background-color: var(--deep-lagoon);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-title {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.modal-booking {
  background-color: var(--deep-lagoon);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.modal-booking h3 {
  color: white;
  margin-bottom: 0.75rem;
  text-align: center;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background-color: #000000;
  width: 100%;
  max-width: 400px;
  justify-content: center;
  border: none;
  white-space: normal;
  cursor: pointer;
  font-family: inherit;
}

.contact-item:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.whatsapp-icon {
  color: var(--whatsapp-green);
}

.contact-text {
  font-size: 1.1rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  min-width: 0;
}


@media screen and (max-width: 768px) {
  .navbar {
    position: relative;
    z-index: 1001;
  }

  .brand-name {
    padding: 0;
    background-color: var(--logo-black);
  }

  .brand-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
  }

  .brand-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .header-services {
    position: relative;
    z-index: 2;
    top: auto;
    width: auto;
    margin: 0;
    transform: none;
  }

  .brand-tagline {
    font-size: clamp(0.65rem, 3.1cqw, 0.9rem);
    letter-spacing: 0.1em;
  }

  .header-services {
    position: static;
    width: auto;
    margin: 0;
    padding: 0.75rem 0.5rem 0.5rem;
    transform: none;
    background: linear-gradient(135deg, rgba(245, 232, 189, 0.32), rgba(230, 211, 163, 0.24)), var(--logo-black);
  }

  .header-services-right {
    margin-top: 0;
  }

  .service-quick-link {
    min-height: 3.5rem;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
  }
}

/* Desktop layout */
@media screen and (min-width: 769px) {
  .brand-name {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(17rem, 1fr);
    grid-template-rows: auto;
    background-color: var(--logo-black);
  }

  .brand-visual {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: 44.82vw;
    height: 100%;
  }

  .brand-home {
    right: 0;
  }

  .brand-tagline {
    right: 1rem;
    bottom: 3%;
    left: 1rem;
  }

  .header-services {
    position: relative;
    top: auto;
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    width: 100%;
    padding: clamp(0.25rem, 0.5vw, 0.5rem);
    transform: none;
    background: linear-gradient(135deg, rgba(245, 232, 189, 0.32), rgba(230, 211, 163, 0.24)), var(--logo-black);
    align-items: center;
  }

  .header-services-right {
    right: auto;
    left: auto;
  }

  .trips-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .modal-content {
    padding: 2rem;
    max-width: 850px;
    width: 100%;
  }

  .modal-tour-image {
    width: calc(100% + 4rem);
    margin: -2rem -2rem 2rem;
  }

  .btn-whatsapp-pulse {
    width: 66.7px;
    height: 66.7px;
  }

  .btn-whatsapp-pulse svg {
    width: 34.5px;
    height: 34.5px;
  }
}
