/* =========================================================
   Sections
   front-page.php
   ========================================================= */

.section {
  position: relative;
  isolation: isolate;
  padding: clamp(74px, 9vw, 112px) 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 10, 143, .07), transparent);
  pointer-events: none;
}

.section--soft {
  background:
    radial-gradient(circle at top right, rgba(81, 212, 255, .18), transparent 30rem),
    linear-gradient(180deg, #f5fbff, #fff);
}

.section-head {
  position: relative;
  max-width: 800px;
  margin-bottom: 44px;
}

.section-head::after {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(81, 212, 255, .22);
}

.section h2,
.booking h2,
.final-cta h2 {
  margin: 12px 0 18px;
  color: var(--navy);
  font-size: clamp(35px, 5vw, 62px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.section p,
.booking p,
.final-cta p {
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 6vw, 68px);
  align-items: center;
}

.two-col--top {
  align-items: flex-start;
}

/* Grids */

.feature-grid,
.steps-grid,
.booking-channels,
.tour-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tour-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Reusable cards */

.feature-grid article,
.steps-grid article,
.why-list p {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 253, 255, .92));
  box-shadow: var(--shadow-xs);
  transition:
    transform .26s var(--ease),
    box-shadow .26s var(--ease),
    border-color .26s var(--ease);
}

.feature-grid article::before,
.steps-grid article::before,
.why-list p::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: .84;
}

.feature-grid article::after,
.steps-grid article::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  z-index: -1;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(81, 212, 255, .14), transparent 68%);
  pointer-events: none;
}

.feature-grid article:hover,
.steps-grid article:hover,
.why-list p:hover {
  transform: translateY(-6px);
  border-color: rgba(18, 10, 143, .2);
  box-shadow: 0 24px 58px rgba(7, 17, 45, .12);
}

.feature-grid strong {
  display: block;
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
}

.feature-grid strong::before {
  content: "✦";
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 9px;
  border-radius: 999px;
  background: rgba(81, 212, 255, .16);
  color: var(--blue);
  font-size: 15px;
}

.feature-grid span {
  color: var(--muted);
}

.feature-grid article:nth-child(4n + 1) strong::before {
  content: "🌊";
}

.feature-grid article:nth-child(4n + 2) strong::before {
  content: "☀️";
}

.feature-grid article:nth-child(4n + 3) strong::before {
  content: "🤿";
}

.feature-grid article:nth-child(4n + 4) strong::before {
  content: "🛥️";
}

#mete .feature-grid article:nth-child(1) strong::before {
  content: "🗼";
}

#mete .feature-grid article:nth-child(2) strong::before {
  content: "🌿";
}

#mete .feature-grid article:nth-child(3) strong::before {
  content: "🏖️";
}

#mete .feature-grid article:nth-child(4) strong::before {
  content: "🏰";
}

#barca .feature-grid article:nth-child(1) strong::before {
  content: "👥";
}

#barca .feature-grid article:nth-child(2) strong::before {
  content: "🛋️";
}

#barca .feature-grid article:nth-child(3) strong::before {
  content: "⛱️";
}

#barca .feature-grid article:nth-child(4) strong::before {
  content: "🚿";
}

#barca .feature-grid article:nth-child(5) strong::before {
  content: "🎵";
}

#barca .feature-grid article:nth-child(6) strong::before {
  content: "⚓";
}

/* Tour cards */

.tour-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition:
    transform .28s var(--ease),
    box-shadow .28s var(--ease),
    border-color .28s var(--ease);
}

.tour-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(81, 212, 255, .05));
}

.tour-card:hover {
  transform: translateY(-8px);
  border-color: rgba(18, 10, 143, .18);
  box-shadow: 0 32px 86px rgba(7, 17, 45, .17);
}

.tour-card img {
  width: 100%;
  height: 238px;
  object-fit: cover;
  transition:
    transform .55s var(--ease),
    filter .55s var(--ease);
}

.tour-card:hover img {
  transform: scale(1.06);
  filter: saturate(112%) contrast(103%);
}

.tour-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
  background: #fff;
}

.tour-card__body > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(18, 10, 143, .07);
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tour-card__body > span::before {
  content: "⏱";
  font-size: 14px;
}

.tour-card h3 {
  min-height: 2.04em;
  margin: 10px 0;
  color: var(--navy);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.03em;
}

.tour-card__body > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.tour-card ul {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.tour-card li {
  position: relative;
  margin: 8px 0;
  padding-left: 25px;
}

.tour-card li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--blue);
  font-weight: 950;
}

.tour-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Included / why list */

.why-list {
  display: grid;
  gap: 15px;
}

.why-list p {
  margin: 0;
  padding-left: 58px;
}

.why-list p::after {
  content: "✓";
  position: absolute;
  top: 24px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(81, 212, 255, .18);
  color: var(--blue);
  font-weight: 950;
}

.why-list p strong::before {
  margin-right: 6px;
}

#incluso .why-list p:nth-child(1) strong::before {
  content: "👨‍✈️";
}

#incluso .why-list p:nth-child(2) strong::before {
  content: "⛽";
}

#incluso .why-list p:nth-child(3) strong::before {
  content: "🏊";
}

#incluso .why-list p:nth-child(4) strong::before {
  content: "🤿";
}

#incluso .why-list p:nth-child(5) strong::before {
  content: "🏄";
}

#incluso .why-list p:nth-child(6) strong::before {
  content: "🍷";
}

/* Steps */

.steps-grid article {
  min-height: 100%;
}

.steps-grid span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(18, 10, 143, .23);
}

.steps-grid span::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(81, 212, 255, .28);
  border-radius: inherit;
}

.steps-grid h3 {
  margin: 18px 0 10px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.025em;
}

/* Gallery */

.gallery-grid {
  grid-template-columns: 1.1fr .9fr 1fr;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 28px;
  background: var(--surface-blue);
  box-shadow: 0 14px 38px rgba(7, 17, 45, .1);
  transition:
    transform .32s var(--ease),
    filter .32s var(--ease),
    box-shadow .32s var(--ease);
}

.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(5) {
  height: 382px;
}

.gallery-grid img:hover {
  transform: translateY(-6px) scale(1.015);
  filter: saturate(114%) contrast(104%);
  box-shadow: 0 24px 64px rgba(7, 17, 45, .16);
}

/* Reviews - Trustindex handles internal design */

.reviews .section-head {
  margin-bottom: 30px;
}

.reviews-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 160px;
  overflow-wrap: anywhere;
}

.reviews-embed iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
}

.reviews-embed--notice {
  min-height: auto;
  padding: 22px;
  border: 1px solid rgba(18, 10, 143, .12);
  border-radius: var(--radius);
  background: rgba(18, 10, 143, .04);
}

.reviews-embed--notice p {
  margin: 0;
  font-size: 16px;
}

.review-actions {
  margin-top: 30px;
}

/* FAQ */

.faq-list details {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 17, 45, .05);
  transition:
    border-color .22s var(--ease),
    box-shadow .22s var(--ease),
    transform .22s var(--ease);
}

.faq-list details:hover {
  transform: translateY(-2px);
}

.faq-list details[open] {
  border-color: rgba(18, 10, 143, .2);
  box-shadow: 0 18px 45px rgba(7, 17, 45, .09);
}

.faq-list summary {
  position: relative;
  display: block;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  color: var(--navy);
  font-weight: 950;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(18, 10, 143, .08);
  color: var(--blue);
  font-size: 21px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 21px;
  font-size: 16px;
}

/* Final CTA */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 9vw, 104px) 0;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(81, 212, 255, .32), transparent 28rem),
    linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: auto 0 -90px;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .22), transparent 60%);
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  max-width: 680px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, .9);
  font-size: 20px;
}

.final-cta .hero__actions {
  justify-content: center;
}

/* Responsive */

@media (max-width: 1180px) {
  .tour-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid img,
  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(5) {
    height: 320px;
  }
}

@media (max-width: 900px) {
  .two-col,
  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    margin-bottom: 34px;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 66px 0;
  }

  .tour-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .tour-card img,
  .gallery-grid img,
  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(5) {
    height: 260px;
  }

  .feature-grid article,
  .steps-grid article,
  .why-list p {
    padding: 22px;
  }

  .why-list p {
    padding-left: 54px;
  }

  .why-list p::after {
    top: 21px;
    left: 18px;
  }

  .reviews-embed {
    min-height: 120px;
  }

  .faq-list summary {
    padding: 18px 52px 18px 18px;
  }

  .faq-list p {
    padding-inline: 18px;
  }
}

@media (max-width: 420px) {
  .section h2,
  .booking h2,
  .final-cta h2 {
    font-size: 34px;
  }

  .tour-card__body {
    padding: 22px;
  }
}

/* Input modality */

@media (hover: none) {
  .feature-grid article:hover,
  .steps-grid article:hover,
  .why-list p:hover,
  .tour-card:hover,
  .gallery-grid img:hover,
  .faq-list details:hover {
    transform: none;
  }

  .tour-card:hover img,
  .gallery-grid img:hover {
    transform: none;
    filter: none;
  }
}

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  .feature-grid article,
  .steps-grid article,
  .why-list p,
  .tour-card,
  .tour-card img,
  .gallery-grid img,
  .faq-list details {
    transition: none !important;
  }
}