/* =========================================================
   Malie Ecotours — Link Page
   Design tokens
   ========================================================= */
:root {
  --color-teal-deep: #1f4b57;
  --color-teal: #4c93a6;
  --color-teal-light: #9cc9d4;
  --color-sand: #faf6ef;
  --color-sand-warm: #efe4d3;
  --color-rose: #cdab9d;
  --color-ink: #1e2a2e;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;

  --content-max: 640px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-soft: 0 8px 24px rgba(31, 75, 87, 0.12);
  --shadow-btn: 0 10px 28px rgba(31, 75, 87, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-sand);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
}

.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;
  top: -48px;
  left: 12px;
  background: var(--color-teal-deep);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--color-teal-deep);
  outline-offset: 3px;
}

/* =========================================================
   Reveal-on-scroll (progressive enhancement)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 45, 52, 0.55) 0%,
    rgba(20, 45, 52, 0.15) 32%,
    rgba(20, 45, 52, 0.35) 62%,
    rgba(15, 35, 40, 0.86) 100%
  );
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px 0;
}

.hero-logo-wrap {
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 22px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15, 35, 40, 0.25);
}

.hero-logo {
  width: min(42vw, 150px);
  height: auto;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 0 24px max(40px, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--color-white);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.7rem, 6.5vw, 2.5rem);
  line-height: 1.18;
  margin: 0 0 12px;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  font-size: clamp(0.98rem, 3.6vw, 1.1rem);
  font-weight: 400;
  margin: 0 auto;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-scroll-cue {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none; }
}

/* =========================================================
   CTA section
   ========================================================= */
.cta-section {
  position: relative;
  z-index: 1;
  background: var(--color-sand);
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  padding: 36px 0 8px;
}

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

.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 20px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.btn-icon svg {
  width: 22px;
  height: 22px;
}

.btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.btn-title {
  font-size: 1.02rem;
  line-height: 1.2;
}

.btn-caption {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.3;
}

.btn-arrow {
  margin-left: auto;
  flex: none;
  opacity: 0.6;
  transition: transform 0.18s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Primary — Ver passeios e reservar */
.btn-primary {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-deep) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.btn-primary .btn-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(31, 75, 87, 0.32);
}

/* Secondary — WhatsApp */
.btn-secondary {
  background: var(--color-white);
  color: var(--color-ink);
  border: 1.5px solid var(--color-sand-warm);
  box-shadow: var(--shadow-soft);
}

.btn-secondary .btn-icon {
  background: rgba(37, 211, 102, 0.12);
  color: var(--color-whatsapp);
}

.btn-secondary:hover {
  border-color: var(--color-whatsapp);
}

/* Tertiary — Instagram */
.btn-tertiary {
  background: var(--color-white);
  color: var(--color-ink);
  border: 1.5px solid var(--color-sand-warm);
  box-shadow: var(--shadow-soft);
}

.btn-tertiary .btn-icon {
  background: rgba(76, 147, 166, 0.12);
  color: var(--color-teal-deep);
}

.btn-tertiary:hover {
  border-color: var(--color-teal);
}

/* =========================================================
   Section headings
   ========================================================= */
.section {
  padding: 56px 0;
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  margin: 0 0 12px;
  color: var(--color-teal-deep);
}

.section-text {
  color: #465558;
  font-size: 0.98rem;
  max-width: 52ch;
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery-section {
  padding-top: 8px;
}

.gallery-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 20px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  position: relative;
  flex: 0 0 auto;
  width: 68vw;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow-soft);
  background: var(--color-sand-warm);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, rgba(15, 35, 40, 0) 0%, rgba(15, 35, 40, 0.72) 100%);
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 600;
}

/* =========================================================
   Institutional / trust section
   ========================================================= */
.trust-section {
  background: var(--color-sand-warm);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-teal-deep);
}

.trust-item svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--color-teal);
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  position: relative;
  background: linear-gradient(160deg, var(--color-teal-deep) 0%, #143138 100%);
  color: var(--color-white);
  text-align: center;
  padding: 56px 0 60px;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.final-cta .section-title {
  color: var(--color-white);
}

.final-cta-text {
  color: rgba(255, 255, 255, 0.82);
  max-width: 40ch;
  margin: 0 auto 28px;
}

.final-cta .btn-primary {
  max-width: 360px;
  margin: 0 auto;
  justify-content: center;
  text-align: center;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #10262b;
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 0 28px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 4px;
}

.footer-location {
  font-size: 0.86rem;
  opacity: 0.75;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 22px 0;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 19px;
  height: 19px;
}

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.6;
}

/* =========================================================
   Desktop / larger screens
   ========================================================= */
@media (min-width: 640px) {
  .hero-title {
    font-size: clamp(2rem, 4.2vw, 2.6rem);
  }

  .gallery-card {
    width: 42vw;
    max-width: 240px;
  }
}

@media (min-width: 860px) {
  body {
    background: var(--color-sand-warm);
  }

  .page {
    max-width: 480px;
    margin: 0 auto;
    background: var(--color-sand);
    box-shadow: 0 0 60px rgba(31, 75, 87, 0.15);
    min-height: 100vh;
  }

  .hero {
    min-height: 92vh;
  }
}
