:root {
  --navy: #06324a;
  --blue: #0a6f98;
  --blue-dark: #084c70;
  --aqua: #4cc9c0;
  --mint: #dff8f2;
  --coral: #f58f6c;
  --sun: #ffd166;
  --ink: #13313d;
  --muted: #60717a;
  --sand: #fbf7ef;
  --white: #ffffff;
  --line: rgba(6, 50, 74, 0.12);
  --shadow: 0 24px 70px rgba(6, 50, 74, 0.16);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  padding-block: 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(6, 50, 74, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  background: var(--sun);
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  padding-block: 8px;
}

.nav-cta {
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 50, 74, 0.08), rgba(6, 50, 74, 0.58)),
    url("assets/cayo-tours.jpg") center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 50, 74, 0.72), rgba(6, 50, 74, 0.1) 68%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.1rem, 12vw, 7.3rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 6vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.hero-actions,
.final-cta-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary,
.button-card {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 16px 34px rgba(6, 50, 74, 0.22);
}

.button-primary:hover,
.button-card:hover {
  background: var(--blue-dark);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.section {
  padding: clamp(70px, 10vw, 120px) 0;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  padding-block: 34px;
  color: var(--white);
  background: var(--navy);
}

.intro-band h2 {
  color: var(--white);
  font-size: clamp(1.65rem, 4vw, 3rem);
}

.intro-band p:last-child {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.split {
  display: grid;
  align-items: center;
  grid-template-columns: 0.8fr 1fr;
  gap: 32px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.compact {
  max-width: 560px;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tour-card,
.review-card,
.included-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 50px rgba(6, 50, 74, 0.08);
}

.tour-card {
  overflow: hidden;
}

.featured-card {
  transform: translateY(-12px);
}

.tour-card img {
  height: 250px;
  object-fit: cover;
  object-position: center;
}

.tour-card:nth-child(1) img {
  object-position: center;
}

.tour-card:nth-child(2) img {
  object-position: center 58%;
}

.tour-card:nth-child(3) img {
  object-position: center;
}

.tour-body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.tour-body p {
  margin: 0;
  color: var(--muted);
}

.tour-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tour-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.tour-details div {
  min-width: 0;
  padding: 10px;
  background: #f1fbf8;
  border-radius: var(--radius);
}

.tour-details dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tour-details dd {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 850;
}

.button-card {
  width: 100%;
}

.minimum-note {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 850;
}

.included-section {
  background: linear-gradient(180deg, #e9fbf6, #f8fbf7);
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.included-card {
  min-height: 148px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 18px 10px;
  text-align: center;
}

.included-card h3 {
  font-size: 0.98rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--navy);
  background: var(--sun);
  border-radius: 50%;
  font-weight: 900;
}

.captain-layout {
  display: grid;
  align-items: center;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(28px, 6vw, 76px);
}

.captain-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.captain-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-badges span {
  padding: 10px 14px;
  color: var(--navy);
  background: var(--mint);
  border: 1px solid rgba(10, 111, 152, 0.14);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 850;
}

.reviews-section {
  background: var(--white);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  padding: 22px;
}

.review-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.review-card .stars {
  color: #f0a500;
  letter-spacing: 0.04em;
}

.review-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 12vw, 132px) 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 50, 74, 0.78), rgba(6, 50, 74, 0.34)),
    url("assets/cayo-tours.jpg") center 58%/cover;
}

.final-cta h2 {
  width: min(780px, 100%);
  color: var(--white);
}

.final-cta .eyebrow {
  width: 100%;
  color: var(--sun);
}

.reassurance {
  width: 100%;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.82);
  background: #041f31;
}

.footer-inner {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  margin: 0 auto;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  margin: 14px 0 0;
}

.footer-links,
address {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.footer-links a,
address a {
  width: max-content;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
    color: currentColor;
  }

  .site-nav {
    position: fixed;
    inset: 72px 18px auto;
    display: grid;
    gap: 6px;
    padding: 18px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .split,
  .captain-layout {
    grid-template-columns: 1fr;
  }

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

  .featured-card {
    transform: none;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand span:last-child {
    max-width: 148px;
    line-height: 1.05;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    width: min(100% - 32px, 760px);
    padding-bottom: 58px;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .tour-grid,
  .review-grid,
  .included-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .tour-card img {
    height: 220px;
  }

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

  .included-card {
    min-height: 112px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    padding-inline: 16px;
  }

  .final-cta-inner .button {
    width: 100%;
  }
}
