/* =========================================================
   Travely — stylesheet
   Fluid type: 1rem tracks the viewport against a 1440 design
   width, so every rem-based size scales as one system.
   ========================================================= */

html { font-size: calc(16 * (100vw / 1440)); }
@media (max-width: 479px)  { html { font-size: calc(16 * (100vw / 375)); } }
@media (min-width: 1440px) { html { font-size: 16px; } }
@media (min-width: 1920px) { html { font-size: calc(16 * (100vw / 1920)); } }
@media (min-width: 1024px) and (max-height: 800px) { html { font-size: calc(14 * (100vw / 1440)); } }

:root {
  --green-900: #0d2e37;   /* brand dark teal */
  --green-800: #143d49;
  --green-700: #1d5261;
  --sand-50:   #f6f3ee;   /* page ground */
  --sand-100:  #ece6dc;
  --sand-200:  #ded5c7;
  --white:     #ffffff;
  --ink:       var(--green-900);
  --ink-60:    rgba(13, 46, 55, 0.6);
  --ink-40:    rgba(13, 46, 55, 0.4);
  --ink-12:    rgba(13, 46, 55, 0.12);
  --white-70:  rgba(255, 255, 255, 0.7);
  --white-40:  rgba(255, 255, 255, 0.4);
  --white-15:  rgba(255, 255, 255, 0.15);

  --radius-sm: 0.75rem;
  --radius:    1.25rem;
  --radius-lg: 2rem;

  --gutter:    5rem;
  --maxw:      82.5rem;   /* 1320px */
  --section-y: 8.75rem;

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

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

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.padding-global { padding-block: var(--section-y); }

/* ---------- type scale ---------- */

.h2 {
  font-size: 3.5rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-60);
  max-width: 34rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 1.25rem;
}

.link-underline {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ink-40);
  padding-bottom: 0.15rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link-underline:hover { border-color: var(--ink); }

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

.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--green-900);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9375rem 1.5rem;
  border: 0;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), opacity 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.btn--dark  { --btn-bg: var(--green-900); --btn-fg: var(--white); }
.btn--light { --btn-bg: var(--white);     --btn-fg: var(--green-900); }
.btn--block { width: 100%; justify-content: center; }

/* four-point spark, drawn in CSS so it inherits colour */
.btn__spark {
  width: 0.5rem; height: 0.5rem;
  flex: none;
  background: currentColor;
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  transition: transform 0.45s var(--ease);
}
.btn:hover .btn__spark { transform: rotate(90deg) scale(1.15); }

/* ---------- header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
.header.is-stuck {
  padding: 0.875rem 0;
  background: rgba(13, 46, 55, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header__in {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--white);
}
.logo-mark { width: 1.25rem; height: 1.25rem; display: block; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.header__logo-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header__nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; align-items: center; gap: 1.75rem; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link__plus { color: var(--white-40); }

.burger {
  display: none;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 0.3125rem;
  background: var(--white-15);
  backdrop-filter: blur(8px);
  border: 0; border-radius: 100px;
  cursor: pointer;
}
.burger__line {
  display: block;
  width: 1.125rem; height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.burger.is-open .burger__line:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  margin: 1rem var(--gutter) 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(13, 46, 55, 0.92);
  backdrop-filter: blur(16px);
}
.mobile-menu__list { display: grid; gap: 1.125rem; margin-bottom: 1.5rem; }
.mobile-menu .nav-link { font-size: 1.125rem; }

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

.intro {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 0 5rem;
  overflow: hidden;
  background: var(--green-900);
}
.intro__media { position: absolute; inset: 0; }
.intro__bg {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.intro__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(13,46,55,0.45) 0%, rgba(13,46,55,0) 28%),
    linear-gradient(to top,   rgba(13,46,55,0.60) 0%, rgba(13,46,55,0) 45%);
}

.intro__in { position: relative; text-align: center; color: var(--white); }

.intro__headline {
  font-size: 15rem;
  line-height: 0.86;
  font-weight: 500;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
}
.intro__sub {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--white-70);
  margin-bottom: 2.25rem;
}
.intro__cta { margin-inline: auto; }

.intro__scroll {
  position: absolute;
  left: 50%; bottom: 1.75rem;
  transform: translateX(-50%);
  width: 1.5rem; height: 2.5rem;
  border: 1px solid var(--white-40);
  border-radius: 100px;
  display: flex; justify-content: center;
  padding-top: 0.5rem;
}
.intro__scroll-dot {
  width: 3px; height: 6px;
  border-radius: 3px;
  background: var(--white);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(-4px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- section heads ---------- */

.section-head { margin-bottom: 4rem; max-width: 46rem; }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
}
.section-head__lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-60);
  max-width: 26rem;
}

/* ---------- categories ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cat-card { display: grid; gap: 1.125rem; }
.cat-card__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-100);
}
.cat-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__foot {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 1rem;
}
.cat-card__title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; }
.cat-card__meta  { font-size: 0.9375rem; color: var(--ink-40); }

/* ---------- about ---------- */

.about__in {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 5rem;
  align-items: center;
}
.about__text .h2 { margin-bottom: 1.75rem; }

.stat-row {
  display: flex;
  gap: 3.5rem;
  margin-block: 3rem 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ink-12);
}
.stat { display: grid; gap: 0.5rem; }
.stat__num {
  font-size: 3rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 0.9375rem; color: var(--ink-60); line-height: 1.4; }
.about__note { font-size: 0.9375rem; color: var(--ink-40); max-width: 24rem; }

.about__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sand-100);
}
.about__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- featured retreats ---------- */

.retreat-list { display: grid; gap: 1.25rem; }

.retreat {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.retreat:hover {
  transform: translateY(-3px);
  box-shadow: 0 1.5rem 3rem rgba(13, 46, 55, 0.08);
}
.retreat:nth-child(even) .retreat__visual { order: -1; }

.retreat__visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--sand-100);
}
.retreat__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.retreat:hover .retreat__visual img { transform: scale(1.04); }

.retreat__text { padding: 1.5rem 1.5rem 1.5rem 1.25rem; }

.retreat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.retreat__title {
  font-size: 2rem;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 20rem;
}
.retreat__price { text-align: right; flex: none; }
.retreat__price-label { display: block; font-size: 0.8125rem; color: var(--ink-40); }
.retreat__price-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.retreat__meta { display: grid; gap: 0.75rem; margin-bottom: 1.75rem; }
.retreat__meta li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--ink-60);
}
.retreat__ico {
  width: 1rem; height: 1rem;
  flex: none;
  color: var(--ink-40);
}
.retreat__ico svg { width: 100%; height: 100%; display: block; }

.retreat__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-12);
}
.retreat__trust { font-size: 0.8125rem; color: var(--ink-40); line-height: 1.35; }

/* ---------- combine banner ---------- */

.combine {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-900);
}
.combine__media { position: absolute; inset: 0; }
.combine__media img { width: 100%; height: 100%; object-fit: cover; }
.combine__scrim { position: absolute; inset: 0; background: rgba(13, 46, 55, 0.45); }
.combine__in { position: relative; text-align: center; color: var(--white); }
.combine__title {
  font-size: 4rem;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.combine .btn { margin-inline: auto; }

/* ---------- destinations ---------- */

.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.dest-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sand-100);
}
.dest-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.dest-card:hover img { transform: scale(1.05); }
.dest-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem;
  color: var(--white);
  background: linear-gradient(to top, rgba(13,46,55,0.75), rgba(13,46,55,0));
}
.dest-card__title { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; }
.dest-card__meta  { font-size: 0.875rem; color: var(--white-70); }

/* ---------- how it works ---------- */

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.how-step {
  padding: 2rem 1.75rem 2.25rem;
  border-radius: var(--radius);
  background: var(--white);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.how-step__num {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-40);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.5rem;
}
.how-step__title { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.015em; }
.how-step__text  { font-size: 0.9375rem; color: var(--ink-60); line-height: 1.55; }

/* ---------- coaches ---------- */

.coach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.coach { display: grid; gap: 0.375rem; }
.coach__avatar {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-100);
  margin-bottom: 0.875rem;
}
.coach__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.coach:hover .coach__avatar img { transform: scale(1.05); }
.coach__name { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em; }
.coach__role { font-size: 0.875rem; color: var(--ink-40); }

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

.cta__in {
  text-align: center;
  padding: 5rem var(--gutter);
  border-radius: var(--radius-lg);
  background: var(--green-900);
  color: var(--white);
  max-width: var(--maxw);
}
.cta__title {
  font-size: 3.5rem;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.cta__text { color: var(--white-70); margin-bottom: 2.5rem; }
.cta__form {
  display: flex;
  gap: 0.625rem;
  max-width: 30rem;
  margin-inline: auto;
}
.cta__input {
  flex: 1;
  padding: 0.9375rem 1.25rem;
  border: 1px solid var(--white-15);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  font-size: 0.9375rem;
}
.cta__input::placeholder { color: var(--white-40); }
.cta__input:focus { outline: none; border-color: var(--white-40); }
.cta .btn--dark { --btn-bg: var(--white); --btn-fg: var(--green-900); }
.cta__status { min-height: 1.25rem; margin-top: 1rem; font-size: 0.875rem; color: var(--white-70); }

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

.footer {
  padding-block: 4.5rem 2rem;
  background: var(--green-900);
  color: var(--white);
}
.footer__in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  padding-bottom: 3.5rem;
}
.footer__tagline { margin-top: 1rem; color: var(--white-40); font-size: 0.9375rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(8rem, auto)); gap: 3.5rem; }
.footer__col { display: grid; gap: 0.75rem; align-content: start; }
.footer__h {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 0.25rem;
}
.footer__col a {
  font-size: 0.9375rem;
  color: var(--white-70);
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--white-15);
  font-size: 0.8125rem;
  color: var(--white-40);
}

/* ---------- demonstration notice ---------- */

.demo-note {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--white-15);
  display: grid;
  gap: 0.875rem;
  max-width: var(--maxw);
}
.demo-note p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--white-40);
  max-width: 46rem;
}
.demo-note b { color: var(--white-70); font-weight: 600; }
.demo-note a {
  color: var(--white-70);
  border-bottom: 1px solid var(--white-15);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.demo-note a:hover { color: var(--white); border-color: var(--white-40); }

.demo-note__flag {
  justify-self: start;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--white-15);
  border-radius: 100px;
  font-size: 0.6875rem !important;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-70) !important;
}

.demo-note__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--white-15);
  max-width: none !important;
}

/* ---------- scroll reveal ---------- */

[data-anim] { opacity: 0; }

/* Fallback state. !important so it wins against the inline styles GSAP
   leaves on an element when its tween never gets to run. */
.no-anim [data-anim] { opacity: 1 !important; transform: none !important; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  :root { --gutter: 3rem; --section-y: 6.5rem; }
  .intro__headline { font-size: 11rem; }
  .h2, .cta__title { font-size: 3rem; }
  .combine__title { font-size: 3rem; }
  .about__in { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual { aspect-ratio: 16 / 10; }
  .how-grid, .coach-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --gutter: 1.25rem; --section-y: 4.5rem; }

  .header__nav { display: none; }
  .burger { display: flex; }
  .mobile-menu { margin-inline: var(--gutter); }

  .intro { min-height: 92svh; padding-bottom: 3.5rem; }
  .intro__headline { font-size: 5.5rem; margin-bottom: 1rem; }
  .intro__sub { font-size: 1rem; }
  .intro__sub br { display: none; }
  .intro__cta { width: 100%; justify-content: center; }
  .intro__scroll { display: none; }

  .h2, .cta__title, .combine__title { font-size: 2.25rem; }
  .h2 br { display: none; }
  .section-head { margin-bottom: 2.5rem; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

  .cat-grid, .dest-grid, .how-grid, .coach-grid { grid-template-columns: 1fr; }
  .cat-card__media { aspect-ratio: 3 / 2; }

  .stat-row { gap: 2rem; }
  .stat__num { font-size: 2.25rem; }

  .retreat { grid-template-columns: 1fr; gap: 1.25rem; padding: 1rem; }
  .retreat:nth-child(even) .retreat__visual { order: 0; }
  .retreat__text { padding: 0.5rem 0.75rem 1rem; }
  .retreat__head { flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
  .retreat__title { font-size: 1.5rem; max-width: none; }
  .retreat__price { text-align: left; }
  .retreat__foot { flex-direction: column; align-items: stretch; gap: 1rem; }
  .retreat__foot .btn { justify-content: center; }

  .combine { min-height: 26rem; }
  .cta__in { padding: 3rem 1.5rem; }
  .cta__form { flex-direction: column; }
  .cta__form .btn { justify-content: center; }

  .footer__in { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-anim] { opacity: 1 !important; transform: none !important; }
}
