/* =========================================================
   MyGozzo — Travel landing page
   Plain CSS. No frameworks.
   ========================================================= */

/* ---------- Tokens ----------
   Palette taken straight from the MyGozzo logo:
   navy #022F8A  ·  orange #E68526
   ----------------------------------- */
:root {
  --ink:        #0b1a3a;
  --ink-soft:   #56628a;
  --line:       #dfe5f2;
  --bg:         #ffffff;
  --bg-tint:    #f4f7fd;

  --brand:      #022f8a;
  --brand-dark: #011f61;
  --brand-mid:  #0a44b5;
  --brand-deep: #01133a;
  --brand-soft: #e8eefb;

  --accent:      #e68526;
  --accent-dark: #c96c12;
  --accent-soft: #fdf1e3;

  --radius:     16px;
  --radius-lg:  24px;
  --shadow-sm:  0 2px 10px rgba(2, 47, 138, .07);
  --shadow-md:  0 14px 34px rgba(2, 47, 138, .13);
  --container:  1140px;
  --ease:       cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(2, 47, 138, .30);
}
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; position: relative; }
.logo__img {
  height: 46px;
  width: auto;
  transition: height .3s var(--ease), opacity .3s var(--ease);
}
/* the same lockup twice: white over the hero photo, full colour once stuck */
.logo__img--dark {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.logo--footer .logo__img { height: 52px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header.is-stuck {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.header.is-stuck .logo__img { height: 40px; }
.header.is-stuck .logo__img--light { opacity: 0; }
.header.is-stuck .logo__img--dark { opacity: 1; }
.header.is-stuck .nav__link { color: var(--ink-soft); }
.header.is-stuck .nav__link.is-active { color: var(--brand); }
.header.is-stuck .nav__toggle span { background: var(--ink); }

.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; font-weight: 600; }

.nav__toggle { display: none; width: 26px; height: 20px; position: relative; }
.nav__toggle span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 9px; }
.nav__toggle span:nth-child(3) { top: 18px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(1, 19, 58, .88) 0%, rgba(2, 47, 138, .48) 55%, rgba(1, 19, 58, .78) 100%),
    linear-gradient(160deg, #0a44b5, #01133a);
  background-size: cover;
  background-position: center;
}
.hero__bg.has-photo {
  background:
    linear-gradient(120deg, rgba(1, 19, 58, .92) 0%, rgba(2, 47, 138, .55) 55%, rgba(1, 19, 58, .82) 100%),
    var(--hero-photo) center / cover no-repeat;
  animation: heroZoom 22s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* soft orange glow, echoing the plane trail in the logo */
.hero::after {
  content: "";
  position: absolute;
  right: -8%; top: 8%;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 133, 38, .30), rgba(230, 133, 38, 0) 68%);
  pointer-events: none;
}

.hero__inner { padding: 140px 24px 110px; }
.hero__content { max-width: 640px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--accent-dark); }

.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero__text {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: rgba(255, 255, 255, .84);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.stats { display: flex; flex-wrap: wrap; gap: 44px; }
.stat__value {
  display: block;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stat__num { color: #fff; }
.stat__label {
  font-size: .82rem;
  color: rgba(255, 255, 255, .68);
  letter-spacing: .04em;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
}
.hero__scroll span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: #fff;
  animation: scrollDot 1.7s infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--bg-tint); }

.section__head { max-width: 620px; margin: 0 auto 46px; text-align: center; }
.section__title {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.18;
  margin-bottom: 14px;
}
/* the two logo colours, side by side */
.section__title::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.section__text { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.filter {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(2, 47, 138, .26);
}

/* ---------- Destination cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 26px;
}
.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #c8d5f0; }
.card.is-hidden { display: none; }

.card__img {
  height: 200px;
  background: linear-gradient(140deg, #d7e2f7, #b3c6ec);
  background-size: cover;
  background-position: center;
  transition: transform .6s var(--ease);
}
.card:hover .card__img { transform: scale(1.06); }

.card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(4px);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
}
.card__body { padding: 20px 22px 24px; }
.card__body h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
.card__meta {
  font-size: .78rem;
  color: var(--brand);
  font-weight: 600;
  margin: 4px 0 10px;
}
.card__desc { font-size: .9rem; color: var(--ink-soft); }

/* two properties read better as a pair of wider cards */
.cards--stays {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 880px;
  margin-inline: auto;
}
.cards--stays .card__img { height: 236px; }
.cards--stays .card__body { padding: 22px 24px 26px; }

.card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 20px;
}
.card__facts li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--brand);
}
.card__cta span { transition: transform .25s var(--ease); }
.card:hover .card__cta { color: var(--accent-dark); }
.card:hover .card__cta span { transform: translateX(5px); }

.cards__empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.feature {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
/* a brand-coloured rule that draws itself in on hover */
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #c8d5f0; }
.feature:hover::before { transform: scaleX(1); }

.feature__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 20px;
  transition: transform .35s var(--ease);
}
.feature:hover .feature__icon { transform: scale(1.08) rotate(-4deg); }
.feature__icon svg { width: 24px; height: 24px; fill: currentColor; }
.feature:nth-child(even) .feature__icon { background: var(--accent-soft); color: var(--accent-dark); }
.feature h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 9px;
}
.feature p { font-size: .9rem; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Journeys ---------- */
.journeys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: start;
}
.journey {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.journey:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.journey--featured {
  background: linear-gradient(165deg, var(--brand-mid), var(--brand-deep));
  border-color: transparent;
  color: #fff;
}
.journey__badge {
  position: absolute;
  top: -13px; left: 28px;
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--accent);
  color: #3b1d02;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.journey__days {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.journey--featured .journey__days { color: var(--accent); }
.journey__top h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.journey__where { font-size: .88rem; color: var(--ink-soft); margin-top: 2px; }
.journey--featured .journey__where { color: rgba(255, 255, 255, .7); }

.journey__list { margin: 20px 0 24px; display: grid; gap: 11px; }
.journey__list li {
  position: relative;
  padding-left: 26px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.journey--featured .journey__list li { color: rgba(255, 255, 255, .82); }
.journey__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.journey--featured .journey__list li::before {
  border-color: var(--accent);
}
.journey__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--brand);
}
.journey--featured .journey__link { color: var(--accent); }
.journey__link::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.journey__link:hover::after { transform: translateX(5px); }

/* ---------- Slider ---------- */
.slider { max-width: 760px; margin-inline: auto; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  transition: transform .55s var(--ease);
}
.slide {
  flex: 0 0 100%;
  padding: 8px 10px;
  text-align: center;
}
.slide p {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.slide footer { display: grid; gap: 2px; }
.slide footer strong { font-size: .95rem; }
.slide footer span { font-size: .82rem; color: var(--ink-soft); }

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}
.slider__btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: all .25s var(--ease);
}
.slider__btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.slider__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.slider__dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c3cfe8;
  transition: all .3s var(--ease);
}
.dot.is-active { width: 26px; border-radius: 999px; background: var(--brand); }

/* ---------- CTA ---------- */
.cta {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}
.cta__inner { max-width: 620px; margin-inline: auto; text-align: center; }
.cta h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}
.cta p { color: rgba(255, 255, 255, .78); margin-bottom: 28px; }

.cta__form {
  display: flex;
  gap: 10px;
  max-width: 470px;
  margin-inline: auto;
}
.cta__form input {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.cta__form input::placeholder { color: rgba(255, 255, 255, .55); }
.cta__form input:focus { border-color: var(--accent); background: rgba(255, 255, 255, .18); }
.cta__form input.is-error { border-color: #ff9c8f; }

.cta__msg {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: .88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cta__msg.is-visible { opacity: 1; transform: none; }
.cta__msg.is-ok { color: #ffc98a; }
.cta__msg.is-bad { color: #ffb3a7; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-deep); color: rgba(255, 255, 255, .72); padding: 66px 0 26px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand p { font-size: .9rem; margin-top: 14px; max-width: 300px; }
.footer__col h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: .9rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: .83rem;
  color: rgba(255, 255, 255, .5);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s var(--ease);
}
.to-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-dark); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    background: #fff;
    padding: 96px 24px 34px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    transition: transform .4s var(--ease);
    z-index: -1;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav__link,
  .header.is-stuck .nav__link { color: var(--ink); font-size: 1.05rem; }
  .nav__link.is-active,
  .header.is-stuck .nav__link.is-active { color: var(--brand); }
  .nav__toggle { display: block; }

  .logo__img { height: 38px; }
  .header.is-stuck .logo__img { height: 34px; }
  .logo--footer .logo__img { height: 46px; }

  .hero { min-height: 92vh; }
  .hero__inner { padding: 120px 24px 90px; }
  .stats { gap: 28px; }
  .stat__value { font-size: 1.6rem; }

  .section { padding: 72px 0; }
  .btn { padding: 13px 24px; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .cards--stays .card__img { height: 200px; }
  .cta__form { flex-direction: column; }
  .cta__form .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}

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