/* Cachalote Tours. Mobile first: base rules are for phones,
   the min-width blocks at the end of each part add tablet and desktop. */

:root {
  --navy: #12294a;
  --navy-deep: #0c1d36;
  --ink: #1b2a3a;
  --muted: #4d5d70;
  --cream: #faf4e6;
  --cream-2: #f2e8d2;
  --paper: #fffdf7;
  --sky: #629ccc;          /* logo blue */
  --sky-deep: #2c6798;     /* same blue, dark enough for text on cream */
  --sky-tint: #e4eef7;
  --sun: #fdb626;          /* logo yellow */
  --wa: #25d366;           /* WhatsApp green: WhatsApp buttons only */
  --line: rgba(18, 41, 74, .16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 20px;
  --max: 1160px;
  --header-h: 64px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 7.4vw, 3.4rem); }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: 72px; }
.section-head { margin-bottom: 40px; max-width: 46rem; }
.eyebrow { font: 600 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: 14px; }
.eyebrow-light { color: #fff; }
.lede { margin-top: 16px; font-size: 1.15rem; color: var(--muted); }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn .ico { width: 22px; height: 22px; flex: none; }
.btn-lg { min-height: 58px; padding: 14px 30px; font-size: 1.08rem; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; gap: 7px; }
.btn-sm .ico { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }

/* The channel (WhatsApp or Instagram) is set on <html data-channel>. */
.ico-ig { display: none; }
[data-channel="ig"] .ico-wa { display: none; }
[data-channel="ig"] .ico-ig { display: block; }
.btn-wa { background: var(--wa); color: #06281a; box-shadow: 0 6px 18px rgba(37, 211, 102, .32); }
.btn-wa:hover { background: #20c45d; }
[data-channel="ig"] .btn-wa { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(18, 41, 74, .25); }
[data-channel="ig"] .btn-wa:hover { background: var(--navy-deep); }
[data-channel="ig"] .btn-wa.on-dark { background: var(--cream); color: var(--navy); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }

.text-link { color: var(--sky-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.text-link:hover { color: var(--navy); }

/* ------------------------------ header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 244, 230, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}
.bar { height: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: 14px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy); margin-right: auto; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.brand-name { font: 500 1.12rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-name em, .footer-brand em { font-style: italic; font-weight: 400; }
.nav { display: none; gap: 30px; margin-right: 22px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--navy); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--sun); }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button {
  font: 600 .78rem/1 var(--sans); letter-spacing: .04em; color: var(--navy); background: none; border: 0;
  min-width: 36px; height: 34px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Over the hero photo (class added by script.js) the bar is see-through. */
.site-header.over-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.over-hero .brand, .over-hero .nav a, .over-hero .lang button { color: #fff; }
.over-hero .lang { border-color: rgba(255, 255, 255, .55); }
.over-hero .lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.over-hero .brand-name { text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }

@media (max-width: 419px) {
  .site-header .btn-sm { width: 40px; padding: 0; }
  .site-header .btn-sm [data-wa-text] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .btn-sm .ico { width: 20px; height: 20px; }
}
@media (max-width: 359px) { .brand-name { display: none; } }
@media (min-width: 760px) { .nav { display: flex; } .bar { padding-inline: var(--pad); gap: 14px; } }

/* ------------------------------ hero ------------------------------ */
.hero {
  position: relative; isolation: isolate; margin-top: calc(-1 * var(--header-h));
  min-height: 600px; height: 100vh; height: 100svh; max-height: 980px;
  display: flex; background: var(--navy-deep); color: #fff; overflow: hidden;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 78%; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(8, 18, 38, .62) 0%, rgba(8, 18, 38, .30) 34%, rgba(8, 18, 38, 0) 56%),
    linear-gradient(to top, rgba(8, 18, 38, .86) 0%, rgba(8, 18, 38, .55) 22%, rgba(8, 18, 38, 0) 42%);
}
.hero-body {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  text-align: center; padding-top: calc(var(--header-h) + 34px);
  /* On phones the bottom padding keeps the trust line clear of the floating button. */
  padding-bottom: 92px;
}
.hero-top { max-width: 44rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 11.4vw, 5rem); line-height: 1.02; text-shadow: 0 2px 26px rgba(4, 10, 24, .55); }
.hero-sub { margin: 18px auto 0; max-width: 19.5rem; font: italic 400 1.2rem/1.42 var(--serif); color: #fff; text-wrap: balance; text-shadow: 0 1px 3px rgba(4, 10, 24, .75), 0 2px 18px rgba(4, 10, 24, .85); }
.hero .eyebrow { margin-bottom: 16px; text-shadow: 0 1px 10px rgba(4, 10, 24, .6); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.trust { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center; color: #fff; font-size: .93rem; font-weight: 500; text-decoration: none; text-shadow: 0 1px 10px rgba(4, 10, 24, .8); }
.trust:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.stars { display: inline-flex; gap: 2px; color: var(--sun); }
.stars svg { width: 16px; height: 16px; }

@media (min-width: 760px) {
  .hero-body { padding-top: calc(var(--header-h) + 5vh); padding-bottom: 44px; }
  .hero-sub { font-size: 1.4rem; max-width: 26rem; }
  .hero-cta { flex-direction: row; gap: 26px; }
}

/* ------------------------------ tours ------------------------------ */
.tour + .tour { margin-top: 64px; }
.tour-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.tour-photo img, .about-photo img, .grid img { width: 100%; height: 100%; object-fit: cover; }
.tour-text { padding-top: 24px; }
.tour-kicker { display: flex; align-items: baseline; gap: 12px; font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: 12px; }
.tour-no { font: italic 400 1.5rem/1 var(--serif); letter-spacing: 0; color: var(--sun); -webkit-text-stroke: .4px #b97f00; }
.tour h3 { font-size: clamp(1.7rem, 6.2vw, 2.35rem); }
.tour-sum { margin-top: 16px; color: var(--ink); }
.tour-high { margin-top: 18px; display: grid; gap: 9px; }
.tour-high li { position: relative; padding-left: 22px; color: var(--muted); line-height: 1.5; }
.tour-high li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
/* Phones: one fact per row, label left and value right. Wider: three columns. */
.tour-meta { margin: 24px 0 26px; border-top: 1px solid var(--line); }
.tour-meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.tour-meta dt { font: 600 .68rem/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.tour-meta dd { font: 500 .98rem/1.3 var(--sans); color: var(--navy); text-align: right; }
.tour .btn { width: 100%; }

@media (min-width: 560px) {
  .tour .btn { width: auto; }
  .tour-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 44px; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .tour-meta > div { display: block; padding: 0; border: 0; }
  .tour-meta dd { margin-top: 4px; text-align: left; }
}
@media (min-width: 900px) {
  .section { padding-block: 112px; }
  .section-head { margin-bottom: 64px; }
  .tour { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 72px; align-items: center; }
  .tour:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
  .tour:nth-of-type(even) .tour-photo { order: 2; }
  .tour + .tour { margin-top: 104px; }
  .tour-text { padding-top: 0; }
}

/* ------------------------------ also ask ------------------------------ */
.also { background: var(--sky); }
.also .eyebrow { color: var(--navy); }
.also-list { border-top: 1px solid rgba(18, 41, 74, .35); }
.also-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(18, 41, 74, .35); }
.also-list h3 { font-size: 1.5rem; grid-column: 1; }
.also-list p { grid-column: 1; margin-top: 4px; color: var(--navy); font-size: 1rem; line-height: 1.45; }
.also-link { grid-column: 2; grid-row: 1 / span 2; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; padding: 10px 16px; border: 1.5px solid var(--navy); border-radius: 999px; font-size: .92rem; }
.also-link:hover { background: var(--navy); color: #fff; }

@media (min-width: 900px) {
  .also-list li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; column-gap: 40px; padding: 26px 0; }
  .also-list h3 { font-size: 1.9rem; }
  .also-list p { grid-column: 2; margin-top: 0; font-size: 1.08rem; }
  .also-link { grid-column: 3; grid-row: 1; }
}

/* ------------------------------ about ------------------------------ */
.about-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.about-text { padding-top: 30px; }
.about-text h2 { margin-bottom: 22px; }
.about-text > p + p { margin-top: 14px; }
.about-text .sign { font: italic 400 1.9rem/1 var(--serif); color: var(--sky-deep); margin: 22px 0 26px; }
.logo-note { margin-top: 34px !important; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.logo-note img { width: 56px; height: 56px; border-radius: 50%; flex: none; }

@media (min-width: 900px) {
  .about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
  .about-text { padding-top: 0; }
  .about-text > p:not(.eyebrow) { font-size: 1.12rem; }
  .about-text .logo-note { font-size: .92rem; }
}

/* ------------------------------ reviews ------------------------------ */
.reviews { background: var(--sky-tint); }
.guests { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(18, 41, 74, .18); }
.guests img { width: 100%; }
.reviews-intro { padding-top: 30px; }
.pull p { font: italic 400 clamp(2rem, 8.2vw, 3.2rem)/1.12 var(--serif); color: var(--navy); letter-spacing: -.015em; text-wrap: balance; }
.pull footer { margin-top: 16px; font-weight: 600; color: var(--muted); font-size: .95rem; }
.review-list { margin-top: 44px; columns: 1; column-gap: 22px; }
.review { break-inside: avoid; margin-bottom: 18px; background: var(--paper); border-radius: var(--radius); padding: 24px 22px; border-top: 3px solid var(--sun); }
.review .q { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.review .who { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.review .who strong { color: var(--navy); font-weight: 600; }
.review .via { display: block; margin-top: 2px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-deep); font-weight: 600; }
.reviews-more { margin-top: 26px; display: grid; gap: 10px; font-size: .95rem; color: var(--muted); }

@media (min-width: 640px) { .review-list { columns: 2; } }
@media (min-width: 900px) {
  .reviews-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
  .reviews-intro { padding-top: 0; }
  .review-list { columns: 3; margin-top: 72px; }
  .reviews-more { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 30px; }
}

/* ------------------------------ gallery ------------------------------ */
.grid {
  --cols: 2; --gap: 8px;
  --cell: calc((min(100vw, var(--max) + 2 * var(--pad)) - 2 * var(--pad) - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: calc(var(--cell) * .75);
  grid-auto-flow: dense; gap: var(--gap);
}
.grid li { border-radius: 10px; overflow: hidden; background: var(--cream-2); }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
@media (min-width: 900px) { .grid { --cols: 4; --gap: 14px; } .grid li { border-radius: var(--radius); } }

/* ------------------------------ final call ------------------------------ */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding-block: 84px; }
.cta-mark { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 26px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.cta-band h2 { color: #fff; font-size: clamp(2.3rem, 8.6vw, 4rem); }
.cta-band p { margin: 18px auto 30px; max-width: 32rem; color: #d6e2f0; font-size: 1.1rem; }
@media (min-width: 900px) { .cta-band { padding-block: 120px; } }

/* ------------------------------ footer ------------------------------ */
.site-footer { background: var(--navy-deep); color: #c5d3e4; padding: 40px 0 96px; font-size: .93rem; }
.footer-legal { text-wrap: balance; }
.footer-row { display: grid; gap: 16px; }
.footer-brand { font: 500 1.3rem/1 var(--serif); color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: #fff; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--sun); }
@media (min-width: 900px) {
  .footer-row { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
  .footer-links { justify-content: center; }
  .site-footer { padding: 44px 0; }
}

/* ------------------------------ floating button ------------------------------ */
.fab {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(4, 10, 24, .35) !important; transition: transform .15s ease;
}
.fab .ico { width: 30px; height: 30px; }
.fab:hover { transform: scale(1.06); }

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