@tailwind base;
@tailwind components;
@tailwind utilities;

/* Definition of the design system. All colors, gradients, fonts, etc should be defined here. 
All colors MUST be HSL.
*/

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;

    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;

    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;

    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;

    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;

    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;

    --radius: 0.5rem;

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
    
    /* Colors */
    --highlight: #f6e7b0;
    --text-light: #fff;
    --text-muted: #e4ecef;
    --ink: #21262d;
    --bg-dark: #0f1a26;
    --bg-glass: rgba(13,24,30,.72);
    --bg-glass2: rgba(13,24,30,.55);
    --stroke: rgba(255,255,255,.08);
    
    /* Layout */
    --radius-lg: 32px;
    --bg-panel-blur: 18px;
    
    /* Animation */
    --float-time: 14s;
    --float-dist: 42px;
    --float-angle: 5deg;
    --float-scale: 1.024;
    --transition: .35s cubic-bezier(.25,.8,.3,1);
    --ease: cubic-bezier(.25,.8,.3,1);

    /* Navigation */
    --nav-bg: rgba(33,38,45,.85);

    /* Consistent vertical spacing for sections */
    --bs-section-padding: clamp(4rem, 10vh, 6rem);
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  /* Reduce section padding and base font size on desktop */
  @media (min-width: 1024px) {
    :root {
      --bs-section-padding: clamp(3rem, 8vh, 4rem);
      font-size: 90%;
    }
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
  }
}

/* ===== RESET & BASE ===== */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #000;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* WordPress/Elementor compatibility */
.site,
.site-header,
#masthead,
.elementor-location-header,
.elementor-section,
.elementor-top-section,
.site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

/* Services Grid - Center cards when not in 3 columns */
.services__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  gap: 2rem !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Day Trips and Expeditions: three columns on desktop */
.daytrips .services__grid,
.expeditions .services__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1100px !important;
}

/* Charter: two columns centered on wide screens */
.charter .services__grid {
  grid-template-columns: repeat(2, minmax(280px, 350px)) !important;
  max-width: 740px !important;
  justify-content: center !important;
  justify-items: center !important;
  margin: 0 auto !important;
}

/* Ensure cards are centered within their grid area */
.services__card,
.daytrips .services__card,
.expeditions .services__card,
.charter .services__card {
  width: 100% !important;
  max-width: 350px !important;
  margin: 0 auto !important;
}

/* For smaller screens, ensure single column is centered */
@media (max-width: 768px) {
    .daytrips .services__grid,
    .expeditions .services__grid,
    .charter .services__grid {
      grid-template-columns: 1fr !important;
      gap: 1.5rem !important;
      justify-content: center !important;
      max-width: 100% !important;
      padding: 0 1.5rem !important;
    }

  .daytrips .services__card,
  .expeditions .services__card,
  .charter .services__card {
    width: 75% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

@media (max-width: 620px) {
  .hero__subtitle {
    padding-inline: 1.5rem;
  }
}

/* ===== SERVICES SECTION ===== */
.services {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: clamp(4rem,10vh,6rem) clamp(2rem,6vw,6rem);
  isolation: isolate;
}

/* ===== ABOUT SECTION ===== */
.about {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: clamp(4rem,10vh,6rem) clamp(2rem,6vw,6rem);
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.25),
      rgba(0,0,0,0.55) 60%,
      rgba(0,0,0,0.65)
    ),
    url("https://github.com/nicomalgeri/baja-below-surface/blob/main/assets/mediaimages/Baitball%20%26%20Marlin.jpg?raw=true") center center / cover no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  color: #fff;
  isolation: isolate;
  overflow: visible;
}

#KnowUs {
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.25),
      rgba(0,0,0,0.55) 60%,
      rgba(0,0,0,0.65)
    ),
    url("../media/Bottlenose%20Dolphin.webp") center center / cover no-repeat;
  background-attachment: scroll;
}

#Get-to-Know-Us {
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.25),
      rgba(0,0,0,0.55) 60%,
      rgba(0,0,0,0.65)
    ),
    url("../media/About%20Us.webp") center center / cover no-repeat;
  background-attachment: scroll;
}

@media (max-width: 768px) {
  .about {
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.55) 60%,
        rgba(0,0,0,0.65)
      ),
      url("https://github.com/nicomalgeri/baja-below-surface/blob/main/assets/mediaimages/Baitball%20%26%20Marlin.jpg?raw=true") center center/cover no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    padding: clamp(2rem,6vh,3rem) 1.5rem;
  }

  #KnowUs {
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.55) 60%,
        rgba(0,0,0,0.65)
      ),
      url("../media/Bottlenose%20Dolphin.webp") center center/cover no-repeat;
    background-attachment: scroll;
  }

  #Get-to-Know-Us {
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.55) 60%,
        rgba(0,0,0,0.65)
      ),
      url("../media/About%20Us.webp") center center/cover no-repeat;
    background-attachment: scroll;
  }
}

/* About Us page base background */
body.about-page {
  background-color: var(--bg-dark);
  background-image: url("../media/About%20Us.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.about-page .site-footer {
  background: transparent;
}


/* ===== CONTACT SECTION ===== */
.contact {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: var(--bs-section-padding) clamp(2rem, 6vw, 6rem);
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, .25),
      rgba(0, 0, 0, .55) 60%,
      rgba(0, 0, 0, .65)
    ),
    url('https://github.com/nicomalgeri/baja-below-surface/blob/main/assets/mediaimages/Whale%20Watching.jpeg?raw=true')
      center/cover no-repeat;
  isolation: isolate;
}

.contact__wrap {
  display: flex;
  justify-content: center;
}

.contact__panel {
  width: clamp(320px, 50vw, 600px);
  background: rgba(15, 27, 33, .25);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 32px;
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  box-shadow: 0 8px 28px -10px rgba(0, 0, 0, .55);
  animation: floatForm 8s ease-in-out infinite;
  transition: backdrop-filter .4s ease;
  will-change: transform;
}

.contact__panel:hover {
  animation-play-state: paused;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

@keyframes floatForm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

.contact__heading {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--highlight);
  text-align: center;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  color: #e4ecef;
  font: 1rem inherit;
  transition: border-color .3s ease;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--text-light);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--highlight);
  outline: none;
}

.contact__textarea {
  min-height: 150px;
  resize: vertical;
}

.contact__btn {
  align-self: flex-start;
  padding: .75rem 1.75rem;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--highlight);
  border: 2px solid var(--highlight);
  border-radius: 50px;
  cursor: pointer;
  transition: background .35s ease, transform .35s ease;
}

.contact__btn:hover,
.contact__btn:focus {
  background: var(--highlight);
  color: var(--ink);
  transform: translateY(-3px);
}

@media (max-width: 620px) {
  .contact {
    padding: clamp(3rem, 8vh, 4rem) clamp(1.2rem, 5vw, 2rem);
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, .25),
        rgba(0, 0, 0, .55) 60%,
        rgba(0, 0, 0, .65)
      ),
      url('https://github.com/nicomalgeri/baja-below-surface/blob/main/assets/mediaimages/Whale%20Watching.jpeg?raw=true')
      center/cover no-repeat;
  }
}

/* ===== REVIEW SECTION ===== */
.review {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-block: clamp(4rem, 10vh, 6rem);
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.30),
      rgba(0,0,0,.60) 60%,
      rgba(0,0,0,.70)
    ),
    url('../media/Whale Watching.webp')
      center/cover no-repeat;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: visible;
}

@media (max-width: 768px) {
  .review {
    padding-block-start: clamp(2rem, 5vh, 3rem);
  }
}

.review__heading {
  text-align: center;
  font-size: clamp(2.5rem,5vw,3.5rem);
  font-weight: 700;
  color: var(--highlight);
  margin-bottom: clamp(2rem,4vh,3rem);
}

.review__viewport {
  overflow-x: hidden;
  overflow-y: visible;
  padding-block: 15px;
  padding-inline-start: clamp(2rem, 6vw, 6rem);
}

.review__carousel {
  display: flex;
  gap: clamp(2rem,4vw,3rem);
  transition: transform 0.6s ease;
  will-change: transform;
  cursor: grab;
}

.review__carousel:active {
  cursor: grabbing;
}

.review-card {
  position: relative;
  z-index: 1;
  flex: 0 0 100%;
  max-width: 720px;
  background: rgba(15,27,33,.25);
  padding: clamp(2rem,3vw,3rem);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 8px 28px -10px rgba(0,0,0,.55);
  color: #e4ecef;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card:hover,
.review-card:focus-within {
  z-index: 2;
}

.review-card p {
  margin: 0;
  font-size: clamp(0.95rem,0.35vw+0.9rem,1.05rem);
  line-height: 1.55;
}

.review-card .author {
  margin-top: auto;
  font-weight: 700;
  color: var(--highlight);
  text-align: right;
  font-size: clamp(0.95rem,0.35vw+0.9rem,1.05rem);
}

.review__nav-container {
  display: flex;
  justify-content: center;
  gap: clamp(2rem,4vw,3rem);
  margin-block-start: clamp(4rem,8vh,6rem);
}

.review__nav {
  background: var(--ink);
  color: var(--highlight);
  border: 2px solid var(--highlight);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review__nav:hover:not(:disabled) {
  background: rgba(33,38,45,0.9);
  color: #fff;
}

.review__nav:active,
.review__nav:focus {
  background: var(--highlight);
  color: var(--ink);
}

.review__nav:disabled {
  opacity: .4;
  cursor: default;
}

@media (max-width: 980px) {
  .review-card { 
    max-width: 90%; 
  }
}

/* ===== DAY TRIPS, EXPEDITIONS & CHARTER SECTION ===== */
.daytrips.section,
.expeditions.section,
.charter.section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: clamp(4rem,10vh,6rem) clamp(2rem,6vw,6rem);
  isolation: isolate;
}
.daytrips.section {
  background: url("https://github.com/nicomalgeri/baja-below-surface/blob/main/assets/mediaimages/Sealion%20Snorkel.jpeg?raw=true") center center/cover no-repeat;
}
.expeditions.section {
    background: url("https://github.com/nicomalgeri/baja-below-surface/blob/main/assets/mediaimages/Expeditions%20Photo.jpeg?raw=true") center center/cover no-repeat;
}
.charter.section {
    background: url("https://github.com/nicomalgeri/baja-below-surface/blob/main/assets/mediaimages/Sharks.jpg?raw=true") center/cover no-repeat;
}

@media (max-width: 768px) {
  .daytrips.section {
    background: url("https://github.com/nicomalgeri/baja-below-surface/blob/main/assets/mediaimages/Day-trips-mobile.jpg?raw=true") center center/cover no-repeat;
  }
  .expeditions.section {
    background: url("https://github.com/nicomalgeri/baja-below-surface/blob/main/assets/mediaimages/Expeditions-Mobile.jpg?raw=true") center center/cover no-repeat;
  }
}

@media (max-width: 768px) {
  .daytrips.section,
  .expeditions.section,
  .charter.section {
    padding: clamp(1rem,4vh,2rem) clamp(1rem,4vw,2rem);
  }
}

/* Consistent page titles */
.page-title {
  text-align: center;
  font-size: clamp(1.5rem,4vw,2.5rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--highlight);
  margin: 0 0 clamp(1rem,2vh,1.5rem);
}

.daytrips .page-title,
.expeditions .page-title,
.charter .page-title,
.about .page-title {
  padding-top: clamp(2rem, 8vh, 3rem);
}

@media (max-width: 768px) {
  .daytrips .page-title,
  .expeditions .page-title,
  .charter .page-title,
  .about .page-title {
    padding-top: clamp(4rem, 12vh, 6rem);
  }
}

.daytrips .services__desc,
.expeditions .services__desc,
.charter .services__desc {
  max-width: 600px;
  margin: 0 auto clamp(3rem,6vh,4rem);
  text-align: center;
  font-size: clamp(1.1rem,2vw,1.4rem);
  color: var(--text-light);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .daytrips .services__desc,
  .expeditions .services__desc,
  .charter .services__desc {
    margin-bottom: clamp(.5rem,2vh,1rem);
  }
}

.daytrips .services__grid,
.expeditions .services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: clamp(1.5rem,4vw,2.5rem);
  justify-content: center;
  justify-items: center;
}

.charter .services__grid {
  display: grid;
  gap: clamp(1.5rem,4vw,2.5rem);
  justify-content: center;
  justify-items: center;
}

@keyframes floatXY {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(10px,-10px); }
  50% { transform: translate(0,-20px); }
  75% { transform: translate(-10px,-10px); }
}

.daytrips .services__card,
.expeditions .services__card,
.charter .services__card {
  --ft: 10s;
  width: 100%;
  max-width: 360px;
  border-radius: 32px;
  background: rgba(15,27,33,0.2);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  overflow: visible;
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
  animation: floatXY var(--ft) ease-in-out infinite;
  animation-delay: calc(var(--i,0) * -1.2s);
}

.daytrips .services__img,
.expeditions .services__img,
.charter .services__img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  transition: transform .2s ease;
  will-change: transform;
}

.daytrips .services__overlay,
.expeditions .services__overlay,
.charter .services__overlay {
  padding: clamp(1rem,2vw,2rem) clamp(1.5rem,2.4vw,2.6rem);
  background: rgba(33,38,45,0.7);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  text-align: left;
  transition: background .2s ease, box-shadow .2s ease;
}

.daytrips .services__title,
.expeditions .services__title,
.charter .services__title {
  margin: 0 0 .75rem;
  font-size: clamp(1.6rem,2.8vw,2rem);
  font-weight: 700;
  text-align: left;
  color: var(--highlight);

  /* Limit titles to two lines for consistent card heights */
  line-height: 1.2;
  min-height: calc(1.2em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.daytrips .services__text,
.expeditions .services__text,
.charter .services__text {
  margin: 0 0 1.5rem;
  font-size: clamp(.95rem,1.2vw,1.1rem);
  line-height: 1.5;
  color: #fff;
  max-height: 3.3em;
  text-align: left;
}

.daytrips .services__btn,
.expeditions .services__btn,
.charter .services__btn,
.exp-cta .services__btn {
  align-self: flex-start;
  background: var(--highlight);
  color: var(--ink);
  padding: .75rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid var(--highlight);
  transition: background .3s ease, transform .3s ease;
  text-decoration: none;
}

@media (hover: hover) {
  .daytrips .services__btn:hover,
  .expeditions .services__btn:hover,
  .charter .services__btn:hover,
  .exp-cta .services__btn:hover {
    background: var(--bg-dark);
    color: var(--highlight);
    transform: translateY(-2px);
  }
}

.daytrips .services__btn:active,
.expeditions .services__btn:active,
.charter .services__btn:active,
.exp-cta .services__btn:active {
  background: var(--bg-dark);
  color: var(--highlight);
  transform: translateY(0);
}

.daytrips .services__card:hover,
.daytrips .services__card.is-hover,
.expeditions .services__card:hover,
.expeditions .services__card.is-hover,
.charter .services__card:hover,
.charter .services__card.is-hover {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.daytrips .services__card:hover .services__overlay,
.daytrips .services__card.is-hover .services__overlay,
.expeditions .services__card:hover .services__overlay,
.expeditions .services__card.is-hover .services__overlay,
.charter .services__card:hover .services__overlay,
.charter .services__card.is-hover .services__overlay {
  background: rgba(33,38,45,0.85);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.2);
  filter: brightness(1.05) contrast(1.05);
}

@media (max-width: 620px) {
  .daytrips .services__grid,
  .expeditions .services__grid,
  .charter .services__grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: clamp(1.8rem,8vw,2.4rem);
  }
}

/* ===== FLOATING BUTTON ===== */

.whatsapp-button {
  position: fixed;
  right: clamp(3rem, 6vw, 4rem);
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 1000;
  bottom: clamp(3rem, 6vh, 4rem);
  background: #f6e7b0;
  color: #21262d;
  --delay: 0s;
  will-change: opacity;
  animation: fadeIn 0.4s ease-in-out var(--delay) forwards;
}

.whatsapp-button:hover {
  opacity: 1;
}

.whatsapp-button svg,
.whatsapp-button img {
  width: 2rem;
  height: 2rem;
}

@keyframes fadeIn {
  to { opacity: 0.8; }
}

/* ===== HEADER & NAVIGATION ===== */
.site-header,
.bs-nav,
#masthead,
.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(33,38,45,0.75);
  transition: background .35s ease, box-shadow .35s ease, padding .25s ease;
}

.site-header.scrolled,
.bs-nav.scrolled,
body.scrolled .site-header,
body.scrolled #masthead,
body.scrolled .elementor-location-header {
  background: rgba(246,231,176,0.5);
  box-shadow: 0 12px 38px -8px rgba(0,0,0,.45);
}

.site-header a,
.bs-nav a,
.bs-nav .sub-toggle {
  color: #fff;
  text-decoration: none;
  transition: color .25s ease;
}

.site-header a:hover,
.bs-nav a:hover,
.bs-nav .sub-toggle:hover {
  color: var(--highlight);
}

.site-header .container,
.bs-nav__inner {
  padding: 0.75rem 1rem;
}

/* Burger Menu */
.bs-burger {
  position: fixed;
  top: 14px;
  left: 16px;
  width: 34px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100000;
  text-decoration: none;
  cursor: pointer;
}

.bs-burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--highlight);
  transition: transform .35s var(--ease), opacity .25s ease;
}

.bs-menu {
  position: fixed;
  inset: 0;
  transform: translateX(-100%);
  transition: transform .45s var(--ease);
  background: rgba(33,38,45,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
}

.bs-menu:target {
  transform: translateX(0);
}

.bs-menu__close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--highlight);
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.bs-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.bs-menu__list li + li {
  margin-top: 1.1rem;
}

.bs-menu__list a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .5px;
  font-size: clamp(2rem,5vw,3rem);
  transition: opacity .25s ease;
}

.bs-menu__list a:hover {
  opacity: .85;
}

@media (max-width: 900px) {
  .site-header,
  .bs-nav {
    backdrop-filter: blur(12px);
  }
}

/* ===== ACCESSIBILITY & REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .parallax-row,
    .review-card,
    .contact__panel,
    .whatsapp-button,
    .daytrips .services__card,
    .expeditions .services__card,
    .charter .services__card {
      animation: none !important;
    }

    .whatsapp-button {
      opacity: 0.8;
    }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators */
.review__nav:focus,
.contact__btn:focus,
.daytrips .services__btn:focus,
.expeditions .services__btn:focus,
.charter .services__btn:focus,
.exp-cta .services__btn:focus {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}
/* ===== SERVICES GRID ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Center the last card when alone (7th card in a 3-column grid) */
.services__grid:has(.services__card:nth-child(7):last-child) .services__card:nth-child(7) {
  grid-column: 2;
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
  .services__card:nth-child(7):last-child {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services__card {
    max-width: none !important;
  }

  .services__grid:has(.services__card:nth-child(7):last-child) .services__card:nth-child(7),
  .services__card:nth-child(7):last-child {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
  }

}

@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .services__card:nth-child(7):last-child {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
  }
}
.wpcf7 form.sent .wpcf7-response-output {
  color: #f5e6af;
  background: transparent;
  border: none;
  padding: 10px 0 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* vertical centring */
  padding: var(--bs-section-padding) clamp(2rem, 6vw, 6rem);
}

.about__title {
  margin: 0; /* remove extra margin */
  padding: clamp(1.5rem, 5vh, 2.5rem) 0;
}

@media (max-width: 768px) {
  .about {
    padding: clamp(1rem,4vh,2rem) clamp(1rem,4vw,2rem);
  }

  .about__title {
    padding: clamp(1rem,3vh,1.5rem) 0;
  }
}
/* About page layout */
.about__wrap {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
  margin: 0 auto;
}

.about__row {
  display: flex;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4rem);
}

.about__row.reverse {
  flex-direction: row-reverse;
}

.about__media,
.about__panel {
  flex: 1;
}

.about__panel {
  background: rgba(15, 26, 38, .6);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  box-shadow: 0 8px 28px -10px rgba(0, 0, 0, .55);
  transition: backdrop-filter .4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__panel:hover {
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.about__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--highlight);
}

.about__text {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .about__row,
  .about__row.reverse {
    /* On mobile, show images before text panels */
    flex-direction: column;
  }
  .about__media {
    flex: none;
  }
  .about__media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }
}

/* ===== CONTACT SECTION ===== */
.mini-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.2rem;
}
.mini-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.mini-icon {
  --size: 26px;
  --pad: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--size) + var(--pad) * 2);
  height: calc(var(--size) + var(--pad) * 2);
  color: #f5e6af;
  background: transparent;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.05s ease;
  flex-shrink: 0;
}
.mini-icon:hover {
  background: #f5e6af;
  color: #21262d;
}
.mini-icon:active {
  transform: translateY(1px);
}
.mini-icon:focus-visible {
  outline: 2px solid #f5e6af;
  outline-offset: 2px;
}
.mini-icon svg {
  width: var(--size);
  height: var(--size);
  display: block;
}
.contact__icon-text {
  color: #f5e6af;
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  text-decoration: none;
}
@media (max-width: 640px) {
  .mini-icons {
    align-items: center;
  }
  .contact__icon-text {
    font-size: 0.95rem;
    max-width: 250px;
  }
}

/* ===== SERVICES CARDS: MOBILE LAYOUT ===== */
@media (max-width: 768px) {
  .daytrips.section,
  .expeditions.section,
  .charter.section {
    min-height: 100vh;
  }
  .daytrips .services__grid,
  .expeditions .services__grid,
  .charter .services__grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    max-width: 400px !important;
    justify-content: center !important;
  }

  .daytrips .services__card,
  .expeditions .services__card,
  .charter .services__card {
    max-width: 360px !important;
    margin: 0 auto !important;
  }

  .daytrips .services__img,
  .expeditions .services__img,
  .charter .services__img {
    width: 100% !important;
    height: auto !important;
    border-radius: 32px 32px 0 0 !important;
  }
}

.back-arrow{
  position: fixed; top: 14px; left: 16px; z-index: 100000;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--highlight);
  display: grid; place-items: center;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.45);
}
.back-arrow::before{
  content: ""; display: block; width: 10px; height: 10px;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
  margin-left: 2px; /* nudge arrow tip inward */
}
@media (min-width: 769px){
  .back-arrow{ top: 18px; left: 20px; }
}
.exp-hero{
  padding: clamp(2rem,6vh,3rem) 1rem 1rem;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.exp-subtitle{ color: #fff; font-size: clamp(0.85rem,2vw,1.1rem); margin: 0 auto 1.25rem; max-width: 820px; }

.exp-hero .page-title{
  padding-top: clamp(2rem,8vh,3rem);
}

.exp-body{ max-width: 980px; margin: 0 auto; padding: 0 clamp(.5rem,2vw,1rem); display: grid; gap: clamp(1rem,2.8vw,1.75rem); justify-items: stretch; }

.exp-block{ width:100%; background: rgba(15,27,33,.25); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: clamp(1rem,3vw,1.5rem); backdrop-filter: blur(10px) saturate(1.25); -webkit-backdrop-filter: blur(10px) saturate(1.25); color: #fff; }
.exp-block h2{ margin: 0 0 .6rem; color: var(--highlight); font-size: clamp(1.6rem,2.8vw,2rem); font-weight:700; }
.exp-list{ margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.exp-list li{ line-height: 1.55; }
.exp-note{ font-weight: 600; }
.exp-price{ font-weight: 700; }

.exp-img{ width:100%; border-radius:var(--radius-lg); overflow:hidden; }
.exp-img img{ width:100%; height:auto; object-fit:cover; object-position:center; display:block; }

.exp-img{ width:100%; aspect-ratio:16/9; border-radius:32px; overflow:hidden; }
.exp-img img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }

.exp-cta{ display:flex; justify-content:flex-start; width:100%; }
.exp-cta:last-child{ padding-bottom: var(--bs-section-padding); }
@media (max-width:768px){
  .exp-cta:last-child{ padding-bottom:3rem; }
}
@media (max-width:768px){
  .expeditions .services__btn{ margin-bottom:1rem; }
}
@media (max-width: 768px){
  .exp-body{ grid-template-columns: 1fr; }
}
/* Day Trips, Expeditions & Charter â€” force 1 card per row on mobile/tablet */
@media (max-width: 980px){
  /* hit the grid no matter what parent classes are present */
  .daytrips .services__grid,
  .expeditions .services__grid,
  .charter .services__grid,
  body.page-day-trips .services__grid,
  body.page-expeditions .services__grid,
  body.page-charter .services__grid {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 1.25rem !important;
  }

  .daytrips .services__card,
  .expeditions .services__card,
  .charter .services__card,
  body.page-day-trips .services__card,
  body.page-expeditions .services__card,
  body.page-charter .services__card {
    width: 100% !important;
    max-width: 560px !important;
    margin: 0 auto !important;
  }
}

/* Expedition hero responsive tweaks */
@media (min-width: 1024px) {
  .exp-hero {
    padding: clamp(3rem,8vh,4rem) 1rem 2rem;
  }
  .exp-subtitle {
    font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  }
}


@media (max-width: 768px) {
  .exp-hero {
    padding: clamp(2rem,6vh,3rem) 1rem 1rem;
    background-size: cover;
    background-position: center;
  }
  .exp-subtitle {
    color: #fff;
    margin: 0 auto 0.75rem;
  }
  .exp-hero .page-title {
    padding-top: clamp(4rem,12vh,6rem);
  }
  .exp-hero .page-title,
  .exp-hero .exp-subtitle {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 601px) {
  .exp-hero .exp-subtitle {
    font-size: clamp(0.6rem, 1.4vw, 0.85rem);
  }
}

/* Ensure background images cover on small screens */
@media (max-width: 768px) {
  [style*="background-image"] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}

/* Global heading styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--highlight);
  font-weight: 700;
}

h1 { font-size: clamp(3rem, 6vw, 4rem); }
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h3 { font-size: clamp(2rem, 4vw, 3rem); }

/* Site Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--highlight);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
}
.site-footer a {
  color: var(--highlight);
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}
.site-footer .footer__content {
  margin-bottom: 1rem;
}
.site-footer .separator {
  margin: 0 0.5rem;
}

.site-footer .footer__content:first-of-type {
  font-weight: 700;
}

@media (max-width: 480px) {
  .site-footer .footer__content:first-of-type {
    font-size: clamp(0.5rem, 0.25rem + 1.5vw, 0.75rem);
    white-space: nowrap;
  }
}

/* ===== POLICY PAGES ===== */
.privacy.section,
.cookies-policy {
  padding: clamp(4rem, 10vh, 6rem) clamp(1.5rem, 6vw, 3rem);
}

