/* Akumal Turtle Co. — Fresh Tropical direction (1b) */

:root {
  --cream:      #f4efe2;
  --ink:        #0a3d47;
  --teal:       #046a75;
  --teal-deep:  #0d4d59;
  --yellow:     #ffd24a;
  --sand:       #ffe9b0;
  --sand-ink:   #8a5a10;
  --mint:       #e6f0ef;
  --white:      #fff;

  --display: 'Bricolage Grotesque', sans-serif;
  --body:    'Barlow', sans-serif;
  --mono:    'Space Mono', monospace;

  /* diagonal hatch used by every image placeholder */
  --hatch-light: repeating-linear-gradient(45deg, rgba(4,106,117,.1) 0 12px, rgba(4,106,117,0) 12px 24px);
  --hatch-dark:  repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, rgba(255,255,255,0) 12px 24px);
}

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 24px; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { opacity: .75; }

.wrap { max-width: 1400px; margin: 0 auto; }

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--teal); color: #fff; padding: 12px 20px;
  border-radius: 0 0 12px 0; font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

:where(a, button, summary, input, select):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.btn--teal   { background: var(--teal);   color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--sm     { font-size: 13px; padding: 11px 22px; }
.btn--lg     { font-size: 15px; font-weight: 700; padding: 16px 40px; }

/* ---------- pills ---------- */

.pill {
  display: inline-block;
  margin: 0 0 14px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
}
.pill--yellow { background: var(--yellow); color: var(--ink); }
.pill--sand   { background: var(--sand);   color: var(--sand-ink); }

/* Photos fill their tile; the tile's own height rule decides the crop, and the
   hatched background stays visible underneath until the image decodes. */
.tour__media img,
.gallery__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ---------- placeholder labels ---------- */

.ph-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(10, 61, 71, .4);
}
.ph-label--sm { font-size: 10px; letter-spacing: .16em; }

/* ---------- nav ---------- */

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
}

.nav__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.01em;
  text-decoration: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 999px;
  padding: 7px 8px 7px 22px;
  box-shadow: 0 2px 10px rgba(10, 61, 71, .08);
}
.nav__menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
}
.nav__cta { font-size: 14px; padding: 11px 22px; }

.lang { display: inline-flex; align-items: center; }
.lang__select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230a3d47' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  padding: 8px 30px 8px 14px;
  cursor: pointer;
}
.lang__select:hover { opacity: .75; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; border-radius: 999px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(10, 61, 71, .08);
  cursor: pointer;
  padding: 0;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ''; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after  { top: 6px; }

[aria-expanded="true"] .nav__bars { background: transparent; }
[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .nav__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero { padding: 8px 20px 20px; }

.hero__panel {
  position: relative;
  height: 640px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  /* stays visible while the video loads, and if it fails to play */
  background: var(--teal);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit; /* iOS Safari doesn't always clip to the parent radius */
  pointer-events: none;
}

/* Two layers, because the footage swings from a dark turtle to bright sunlit
   water: the vertical gradient carries the design's original bottom scrim, the
   horizontal one protects the left column where all the copy sits. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,106,117,0) 28%, rgba(4,58,64,.82) 100%),
    linear-gradient(90deg, rgba(4,58,64,.5) 0%, rgba(4,58,64,.18) 42%, rgba(4,58,64,0) 68%);
}

.hero__content {
  position: relative;
  padding: 52px 56px;
  color: #fff;
}
.hero__content .pill {
  font-size: 12px;
  letter-spacing: .1em;
  padding: 8px 16px;
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 88px;
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
  /* German compounds ("Meeresschildkröten") are one unbreakable word wider than
     a phone panel; with <html lang> set the browser can hyphenate correctly. */
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero__lede {
  font-size: 18px;
  max-width: 480px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .9);
}

/* ---------- sections ---------- */

.section { padding: 56px 40px 20px; }
#tours   { padding-top: 44px; }
#contact { padding-top: 40px; }

.section__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -.02em;
  margin: 0 0 26px;
}
#tours .section__title { margin-bottom: 6px; }
#faq   .section__title { margin-bottom: 22px; }

.section__sub {
  font-size: 16px;
  color: rgba(10, 61, 71, .6);
  margin: 0 0 32px;
}

/* ---------- tours ---------- */

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

.tour {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
}

.tour__media {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hatch-light), var(--mint);
}

.tour__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 30px;
}

/* As a flex item the badge would stretch across the card. */
.tour__body .pill { align-self: flex-start; }

.tour .pill { font-size: 11px; letter-spacing: .08em; padding: 6px 12px; }

.tour__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 8px;
}

.tour__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(10, 61, 71, .68);
  margin: 0 0 22px;
}

.tour__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour__cost { margin: 0; }

.tour__price {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
}

.tour__unit {
  display: block;
  font-size: 12.5px;
  color: rgba(10, 61, 71, .6);
  margin-top: 2px;
}

.tour--featured { background: var(--ink); color: var(--cream); }
.tour--featured .tour__media { background: var(--hatch-dark), var(--teal-deep); }
.tour--featured .ph-label { color: rgba(255, 255, 255, .4); }
.tour--featured .tour__desc { color: rgba(244, 239, 226, .72); }
.tour--featured .tour__unit { color: rgba(244, 239, 226, .62); }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery__tile {
  height: 180px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hatch-light), var(--mint);
}

/* ---------- faq ---------- */

.faq { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  background: var(--white);
  border-radius: 16px;
  padding: 0 24px;
}
.faq__item summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__sign {
  color: var(--teal);
  transition: transform .18s ease;
}
.faq__item[open] .faq__sign { transform: rotate(45deg); }

.faq__item p {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(10, 61, 71, .7);
  margin: 0 0 22px;
  max-width: 720px;
}

/* ---------- cta ---------- */

.cta-wrap { padding: 24px 20px 20px; }

.cta {
  background: var(--teal);
  border-radius: 28px;
  color: #fff;
  text-align: center;
  padding: 72px 40px;
}
.cta__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.cta__lede {
  font-size: 17px;
  max-width: 440px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, .85);
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact__card {
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
}
.contact__intro {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(10, 61, 71, .75);
  margin: 0 0 22px;
}

.contact__form { display: flex; flex-direction: column; gap: 14px; }

.contact__form input,
.contact__form select {
  border: 1px solid rgba(10, 61, 71, .15);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: inherit;
  background: #fff;
}
.contact__form input::placeholder { color: rgba(10, 61, 71, .45); }
.contact__form input:focus,
.contact__form select:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }
.contact__form input[aria-invalid="true"],
.contact__form select[aria-invalid="true"] { border-color: #c0522f; }

.contact__form .contact__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230a3d47' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 6px;
  padding-right: 42px;
  cursor: pointer;
}
/* The first option is a prompt, not an answer, so it reads like a placeholder. */
.contact__form .contact__select:invalid { color: rgba(10, 61, 71, .45); }

.contact__submit {
  margin-top: 6px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.contact__submit:hover { opacity: .9; }

.contact__status {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(10, 61, 71, .7);
  min-height: 1px;
}

.contact__info {
  font-size: 15px;
  line-height: 2.2;
  color: rgba(10, 61, 71, .8);
}
.contact__label { font-weight: 700; margin: 18px 0 6px; }
.contact__label:first-child { margin-top: 0; }
.contact__info a { text-decoration: none; }

/* ---------- footer ---------- */

.footer {
  padding: 56px 40px 44px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 12px;
}
.footer__addr {
  font-size: 14px;
  color: rgba(10, 61, 71, .6);
  max-width: 260px;
  margin: 0;
}
.footer__col {
  font-size: 14px;
  line-height: 2;
  color: rgba(10, 61, 71, .75);
}
.footer__col a { text-decoration: none; }
.footer__head { font-weight: 700; margin: 0 0 8px; }

.footer__legal {
  padding: 0 40px 32px;
  font-size: 12px;
  color: rgba(10, 61, 71, .5);
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero__panel { height: 560px; }
  .hero__title { font-size: 72px; }
  .section__title { font-size: 38px; }
  .cta__title { font-size: 44px; }

  /* Below the design's desktop width the cards get narrow while the media
     boxes keep their fixed height, so the tiles turn portrait and cover-crop
     the sides off each photo. Letting them keep the aspect the photos were
     cropped to means the full intended frame survives at every width. */
  .tour__media { height: auto; aspect-ratio: 2 / 1; }
  .gallery__tile { height: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 880px) {
  .nav { padding: 18px 24px; }
  .nav__toggle { display: block; }

  .nav__menu {
    position: absolute;
    top: calc(100% - 4px);
    right: 24px;
    left: 24px;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(10, 61, 71, .16);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 12px 14px; font-size: 16px; }
  .nav__cta { text-align: center; margin-top: 6px; font-size: 15px; }
  .lang { display: block; }
  .lang__select { width: 100%; font-size: 16px; padding: 12px 30px 12px 14px; }

  .hero { padding: 8px 16px 16px; }
  .hero__panel { height: 480px; border-radius: 22px; }
  .hero__content { padding: 32px 28px; }
  .hero__title { font-size: 56px; }
  .hero__lede { font-size: 16px; }

  .section, .footer { padding-left: 24px; padding-right: 24px; }
  .footer__legal { padding-left: 24px; padding-right: 24px; }
  .cta-wrap { padding-left: 16px; padding-right: 16px; }

  .tours { grid-template-columns: 1fr; gap: 18px; }
  .tour__media { height: 240px; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .cta { padding: 56px 28px; }
  .cta__title { font-size: 36px; }
  .footer { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* iOS Safari zooms the whole page in when a focused field is under 16px and
     never zooms back out — on the booking form that is the worst place for it. */
  .contact__form input,
  .contact__form select { font-size: 16px; }

  /* Comfortable touch targets (the design's desktop sizes sit under 44px). */
  .btn--sm { padding: 14px 26px; }
  .nav__brand { display: inline-block; padding: 6px 0; }

  /* Inline padding extends an inline link's hit area without opening up the
     line rhythm; 6px matches the line-height so rows never overlap. */
  .footer__col a,
  .contact__info a { padding-block: 6px; }
}

@media (max-width: 620px) {
  .hero__panel { height: 420px; }
  .hero__title { font-size: 44px; }
  .section__title { font-size: 32px; }

  /* Two 16:9 tiles side by side on a phone are only ~90px tall; 4:3 trades a
     modest side crop for tiles you can actually see. */
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__tile { aspect-ratio: 4 / 3; }
  .contact__card { padding: 26px; }
  .cta__title { font-size: 30px; }
  .cta__lede { font-size: 16px; }
  .btn--lg { padding: 16px 32px; }
  .footer { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .nav__toggle, .skip-link, .cta { display: none; }
}
