/* =========================================
   RESET & GLOBAL (still used by this page)
========================================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
body {
  font-family: var(--ff);
  background-color: var(--gray10);
  color: var(--gray90);
}
h2, h3, h4 { color: var(--gray90); font-family: var(--ffh); }
a { text-decoration: none; color: var(--grimeGreen); transition: color 0.3s ease-in-out; }
a:hover { color: var(--errorRed); }
.container { padding: 0; }
main { margin-top: 0px; }


/* =========================================
   HERO
========================================= */
.hero {
  position: relative;
  text-align: center;
  color: var(--gray90);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .hero-text { text-align: center; z-index: 1; }
.hero h1 {
  text-shadow: 2px 2px 5px black;
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--grimeGreen);
}
.hero p { font: var(--p); text-shadow: 2px 2px 5px black; }


/* =========================================
   INTRO 
========================================= */
.intro {
  background-color: var(--secondaryGrey);
  width: 100%;
  padding: 60px 24px;
  color: var(--gray90);
  text-align: center;
}

.intro-title {
  font-size: clamp(2.2rem, 3vw, 3rem);
  color: var(--grimeGreen);
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile stacked */
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  background-color: var(--primaryGrey);
  border-radius: 8px;
  padding: 24px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.intro-media {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.intro-media img {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  object-fit: cover;
}

/* Desktop: two columns under title */
@media (min-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .intro-content { margin: 0; }
}

/* ===== Availability (Popup-style card) ===== */
.availability {
  width: 100%;
  padding: clamp(24px, 5vw, 60px) 16px;
  background: var(--primaryGrey);
  display: grid;
  place-items: center;
}

.availability-card {
  position: relative;
  width: min(920px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: clamp(18px, 3.2vw, 28px);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  color: var(--gray90);
}

.availability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  top: -1px;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: rgba(66,232,133,.75);
  pointer-events: none;
}

.availability-card h2 {
  margin: 0 0 10px;
  text-align: center;
  font-family: var(--ffh);
  color: var(--grimeGreen);
  letter-spacing: .5px;
}

.availability-card p {
  margin: 0;
  font-size: clamp(1rem, 1.15vw + .6rem, 1.15rem);
  line-height: 1.7;
  color: var(--gray90);
  text-wrap: pretty;
}

.availability-card .muted {
  color: var(--gray80);
}

/* Actions use your existing button look */
.availability-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.availability .btn-primary,
.availability .btn-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.availability .btn-primary {
  background: var(--grimeGreen);
  color: #0b0b0b;
  box-shadow: 0 8px 20px rgba(66,232,133,.25);
}
.availability .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(66,232,133,.35);
}

.availability .btn-secondary {
  background: transparent;
  color: var(--grimeGreen);
  border: 2px solid var(--grimeGreen);
}
.availability .btn-secondary:hover {
  background: var(--grimeGreen);
  color: #0b0b0b;
}

/* Mobile polish */
@media (max-width: 540px) {
  .availability-card {
    border-radius: 12px;
    padding: 16px;
  }
}


/* =========================================
   SERVICES
========================================= */

.tab .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 30px;
  height: 30px;
}

.tab .icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

/* When the tab is active or hovered, brighten the icon */
.tab.active .icon img,
.tab:hover .icon img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(102%) contrast(100%);
}

.services-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  width: 100vw;
}
.services-section:nth-child(odd)  { background-color: var(--primaryGrey); }
.services-section:nth-child(even) { background-color: var(--secondaryGrey); }

.services-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--grimeGreen);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* PACK CARDS MORE TIGHTLY ON DESKTOP (less scroll) */
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-items: center;
}

/* Card */
.service-card {
  position: relative;
  width: 100%;
  max-width: 315px;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  background-color: var(--gray10);
  border: 1px solid var(--primaryGrey);
  box-shadow: 0 4px 10px rgba(0,0,0,.5);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,.7); }

/* Title + small subtitle at the top */
.service-header { text-align: center; margin: 6px 0 8px; }
.service-card h3 {
  margin-top: 10px;            /* keep your original value */
  color: var(--grimeGreen);
  font-size: 1.25rem;
  text-transform: uppercase;
}
.service-subtitle {
  margin: 2px 0 0;
  font-size: .9rem;
  line-height: 1.2;
  color: var(--gray70, #a7a7a7);
  font-style: italic;
}

/* Image */
.service-card .image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.service-card .image-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* animated before/after fades on card images */
.service-card .image-wrapper .before-image { z-index: 2; opacity: 1; }
.service-card .image-wrapper .after-image  { z-index: 1; opacity: 0; }
@keyframes fadeInOut { 0%,45%{opacity:1;} 50%,95%{opacity:0;} 100%{opacity:1;} }
@keyframes fadeOutIn { 0%,45%{opacity:0;} 50%,95%{opacity:1;} 100%{opacity:0;} }
.service-card .image-wrapper .before-image { animation: fadeInOut 8s infinite ease-in-out; }
.service-card .image-wrapper .after-image  { animation: fadeOutIn 8s infinite ease-in-out; }

/* Description (improved legibility) */
.service-desc {
  text-align: left;
  padding: 8px 8px 0;
}
.service-card p { color: #fff; font-size: 1rem; margin: 10px 0; } /* keep your base text */
.service-desc p { margin: 8px 0 6px; } /* slightly tighter for readability */

/* Bullet list with checkmarks */
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  color: var(--gray90);
  font-size: .9rem;
  line-height: 1.5;
}
.service-card ul li { margin: 5px 0; }
.service-desc ul { margin: 8px 0 0; }
.service-desc li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}
.service-desc li + li { margin-top: 6px; }
.service-desc li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 12px;
  border: 2px solid var(--grimeGreen);
  /* hide the top + left so only the bottom/right show = proper check */
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  opacity: .95;
}

/* Meta row (Time + Price) */
.service-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 8px 10px;
  margin-top: 6px;
  border-top: 1px solid var(--primaryGrey);
}
.meta-time,
.meta-price {
  font-size: .95rem;
  line-height: 1.35;
  color: var(--gray90);
  text-align: left;
}
.meta-time strong { font-weight: 700; }
.meta-price strong {
  color: var(--grimeGreen);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Prices (keep existing variants) */
.price-label { font-weight: bold; color: #fff; }
.original-price { color: var(--grimeGreen); position: relative; }
.original-price::before {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  background-color: var(--errorRed);
  transform: rotate(-45deg);
  transform-origin: center;
}
.discounted-price { color: var(--errorRed); font-size: 1.2rem; font-weight: bold; }
.service-card p.service-price,
.service-card span.service-price { color: var(--grimeGreen); }

/* Remove any leftover booking buttons in cards (safety net) */
.service-card .btn-card { display: none !important; }

/* Add-on media: before/after fade (no slider) */
.addon-media{
  position: relative;
  width: 100%;
  height: 300px;          /* thumbnail height; match your design */
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.addon-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layer + animate like your service cards */
.addon-media .before-image{
  z-index: 2;
  opacity: 1;
  animation: fadeInOut 8s infinite ease-in-out;
}
.addon-media .after-image{
  z-index: 1;
  opacity: 0;
  animation: fadeOutIn 8s infinite ease-in-out;
}

/* Optional small polish for add-on text */
.addon h4{ margin: 6px 0 4px; color: var(--grimeGreen); font-size: 18px; text-align: center;}
.addon p{ margin: 6px 0; }
.addon .service-price{ color: var(--grimeGreen); font-weight: 700; }

.boatBefore {
  object-position: 55% 30% !important;
}
/* =========================================
   CALL TO ACTION
========================================= */
.call-to-action {
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: var(--secondaryGrey);
}
.call-to-action p { font-size: 1.25rem; }
.call-to-action a {
  color: var(--grimeGreen);
  background-color: transparent;
  border: 3px solid var(--grimeGreen);
  border-radius: 5px;
  padding: 12px 48px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  margin: 20px 0;
  transition: all .3s ease;
  text-align: center;
  display: inline-block;
}
.call-to-action a:hover {
  background-color: var(--grimeGreen);
  color: #fff;
  box-shadow: 0 4px 8px var(--boxShadow);
  transform: scale(1.05);
}


/* =========================================
   TABS / ADD-ONS / WRAPPER (still used)
========================================= */
.btn-primary {
  display: inline-block;
  border: 2px solid var(--grimeGreen);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--grimeGreen);
  transition: all .25s ease;
}
.btn-primary:hover { background: var(--grimeGreen); color: #fff; transform: translateY(-1px); }
.btn-card {
  display: inline-block;
  margin: 10px auto 0;
  border: 2px solid var(--grimeGreen);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--grimeGreen);
  transition: all .25s ease;
}
.btn-card:hover { background: var(--grimeGreen); color: #fff; transform: translateY(-1px); }

.services { background: var(--primaryGrey); width: 100%; }
.services .services-section { padding: 32px 16px; }
.services .services-section h2 { margin-bottom: 12px; }
.services .service-cards { max-width: 1100px; }

/* Bigger, bolder tabs with icons */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 16px 12px;
  background: var(--primaryGrey);
  border-top: 1px solid var(--secondaryGrey);
  border-bottom: 1px solid var(--secondaryGrey);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--grimeGreen);
  color: var(--grimeGreen);
  padding: 12px 18px;
  border-radius: 28px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.tab .icon {
  display: inline-flex;
  line-height: 0;
}

.tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}

.tab.active {
  background: var(--grimeGreen);
  color: #fff;
}

@media (min-width: 980px) {
  .tab { padding: 14px 22px; font-size: 1.05rem; }
  .tabs { gap: 14px; }
}

.tab:focus-visible,
.accordion-trigger:focus-visible {
  outline: 2px solid var(--grimeGreen);
  outline-offset: 2px;
}
.tabpanel { display: none; }
.tabpanel.active { display: block; }

.bundle-highlight {
  background: linear-gradient(90deg, rgba(66,232,133,.10), transparent);
  border-left: 4px solid var(--grimeGreen);
  padding: 12px 16px;
  margin: 0 auto 12px;
  max-width: 1024px;
  border-radius: 6px;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1750px;
}
.addon {
  background: var(--gray10);
  border: 1px solid var(--primaryGrey);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.addon h4 { margin: 0 0 6px; color: var(--grimeGreen); }
.addon .service-price { margin: 0 0 6px; color: var(--grimeGreen); font-size: 24px;}


/* =========================================
   GALLERY + BEFORE/AFTER SLIDERS
========================================= */
.gallery {
  background: var(--secondaryGrey);
  padding: 40px 16px;
  text-align: center;
  width: 100%;
}
.gallery h2 {
  color: var(--grimeGreen);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,.35);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  filter: contrast(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ba- slider */
.ba-slider {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
  background: #000;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-after { z-index: 1; }
.ba-before {
  z-index: 2;
  width: 50%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}
.ba-handle {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  appearance: none;
  background: transparent;
  outline: none;
  cursor: ew-resize;
  z-index: 4;
  margin: 0; padding: 0;
}
/* WEBKIT: Chrome / Safari / Edge */
.ba-handle::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 50%;
  background-color: rgba(0,0,0,.35);          /* subtle plate for contrast */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;                  /* arrow icon size */
  cursor: ew-resize;
  box-shadow:
    0 1px 2px rgba(0,0,0,.45),
    0 0 0 3px rgba(66,232,133,.12);            /* soft green halo */
  /* double chevrons (left/right) in brand green #42e885 */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M10 7 L6 12 L10 17' stroke='%2342e885' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/>\
<path d='M14 7 L18 12 L14 17' stroke='%2342e885' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>"); 
}

/* FIREFOX */
.ba-handle::-moz-range-thumb {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 50%;
  background-color: rgba(0,0,0,.35);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  cursor: ew-resize;
  box-shadow:
    0 1px 2px rgba(0,0,0,.45),
    0 0 0 3px rgba(66,232,133,.12);
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M10 7 L6 12 L10 17' stroke='%2342e885' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/>\
<path d='M14 7 L18 12 L14 17' stroke='%2342e885' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
}

/* optional: slightly brighter while dragging/focused */
.ba-handle:active::-webkit-slider-thumb,
.ba-handle:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 0 0 4px rgba(66,232,133,.18);
}
.ba-handle:active::-moz-range-thumb,
.ba-handle:focus-visible::-moz-range-thumb {
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 0 0 4px rgba(66,232,133,.18);
}


/* =========================================
   FAQ (Accordion)
========================================= */
.faq {
  background: var(--primaryGrey);
  padding: 40px 16px;
  width: 100%;
}
.faq h2 {
  text-align: center;
  color: var(--grimeGreen);
  margin-bottom: 16px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,.35);
  font-size: 24px;
}
.accordion { max-width: 900px; margin: 0 auto; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: var(--secondaryGrey);
  color: var(--gray90);
  border: none;
  outline: none;
  padding: 16px;
  margin: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  position: relative;
  transition: background .2s ease;
}
.accordion-trigger::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--grimeGreen);
}
.accordion-trigger.open { background: var(--secondaryGrey); }
.accordion-trigger.open::after { content: "–"; }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  background: var(--secondaryGrey);
  margin-top: -6px;
  border-radius: 0 0 6px 6px;
  padding: 0 16px;
}
.accordion-panel p { margin: 12px 0 16px; }


/* =========================================
   MEDIA QUERIES
========================================= */
@media (min-width: 769px) {
  .hero h1 { font-size: 8rem; }
  .hero p { font-size: 2rem; }
  .intro p { font-size: 1.25rem; }
  .comparison-column p { font-size: 1rem; }
  .service-cards { flex-direction: row; flex-wrap: nowrap; }
}
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .tabs { flex-wrap: wrap; gap: 8px; }
  .tab { padding: 8px 14px; }
  .ba-slider { height: 300px; }
  .gallery-grid { grid-template-columns: 1fr; }
}
