/* ==========================================================
   NOVA TRAVELS - style.css
   Brand colours live in :root below. Change them here and
   the whole site updates.
   ========================================================== */

/* ---------- 1. Colours and base settings ---------- */
:root {
  --navy: #0f2d4c; /* logo navy: headings, text, dark cards */
  --deep: #071626; /* deep navy: dark bands, text on gold */
  --gold: #b88a3a; /* logo gold: buttons, lines, fills */
  --gold2: #e0c07c; /* light gold: highlights on navy */
  --gold-text: #74531a; /* dark gold: small gold text on light backgrounds */
  --bg: #fbfaf7; /* page background (warm white) */
  --card: #d5e1ee; /* card background (light blue) */
  --ink: #0f2d4c; /* body text */
  --mute: #536273; /* secondary text */
  --r: 28px; /* corner roundness */
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font:
    400 18px/1.5 Inter,
    -apple-system,
    "SF Pro Display",
    system-ui,
    sans-serif;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 700;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold2);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px;
}

/* Text for screen readers and search engines only (not visible) */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 2. Top bar ---------- */
.nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 30;
  height: 76px;
  background: rgba(251, 250, 247, 0.97);
  border-bottom: 1px solid rgba(184, 138, 58, 0.45);
  box-shadow: 0 4px 18px rgba(7, 22, 38, 0.06);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

.logo {
  display: block;
  height: 64px;
  width: 61px;
  background: url(logo.png) center/contain no-repeat;
}

.nav nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
}

.nav nav a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.nav nav a:hover {
  color: var(--gold-text);
}

/* Menu button (three lines). Hidden on wide screens. */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 10px;
  padding: 11px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition:
    transform 0.2s,
    opacity 0.2s;
}

/* When the menu is open the three lines turn into a cross */
.nav.open .menu-btn span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav.open .menu-btn span:nth-child(2) {
  opacity: 0;
}

.nav.open .menu-btn span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ---------- 3. Buttons ---------- */
.pill {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--deep); /* deep navy on gold is easy to read */
  text-decoration: none;
  font:
    600 16px Inter,
    sans-serif;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}

.pill:hover {
  background: #c99a47;
  transform: scale(1.03);
}

.pill.s {
  padding: 8px 18px;
  font-size: 14px;
}

/* See-through button on the dark hero */
.pill.g {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ---------- 4. Hero (top of the page) ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(#050f1c, #173b5c 55%, #a87935 118%);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero svg.scene,
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The video fades in once it is really playing (see script.js) */
.hero video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s;
}

.hero video.on {
  opacity: 1;
}

/* Soft dark edge so the headline stays readable over video */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse at center,
    rgba(5, 15, 28, 0.05),
    rgba(5, 15, 28, 0.5)
  );
}

.hero .in {
  position: relative;
  z-index: 3;
  padding: 0 24px;
  margin-top: -4vh;
}

.hero h1 {
  font-size: clamp(48px, 9.5vw, 120px);
  background: linear-gradient(180deg, #fff 30%, var(--gold2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: clamp(18px, 2.2vw, 26px);
  max-width: 640px;
  margin: 20px auto 32px;
  color: #dbe5ef;
  font-weight: 500;
}

.hero .pill + .pill {
  margin-left: 10px;
}

/* Hero animation: clouds, stars, plane */
.cloud {
  animation: drift 60s linear infinite;
}

.cloud.b {
  animation-duration: 90s;
  animation-delay: -30s;
}

@keyframes drift {
  from {
    transform: translateX(-300px);
  }
  to {
    transform: translateX(1700px);
  }
}

.tw {
  animation: tw 3s ease-in-out infinite alternate;
}

@keyframes tw {
  to {
    opacity: 0.2;
  }
}

.jet {
  animation: jet 14s linear infinite;
}

@keyframes jet {
  from {
    transform: translate(-120px, 330px);
  }
  to {
    transform: translate(1500px, 60px);
  }
}

/* ---------- 5. Sections and headings ---------- */
section {
  padding: 120px 0;
}

.head {
  text-align: center;
  margin-bottom: 56px;
}

.head h2 {
  font-size: clamp(38px, 6vw, 72px);
}

.head p {
  color: var(--mute);
  font-size: clamp(18px, 2vw, 23px);
  max-width: 640px;
  margin: 16px auto 0;
}

/* ---------- 6. Destination cards (endless swipe row) ---------- */
/* No scroll snapping: it would fight the looping and auto-scroll */
.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px max(24px, calc((100vw - 1180px) / 2)) 30px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.dest {
  flex: 0 0 min(340px, 80vw);
  height: 480px;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  color: #fff;
  text-decoration: none; /* each card is a link */
  background: var(--navy);
  box-shadow: 0 14px 30px -20px rgba(7, 22, 38, 0.5); /* kept light: there are 21 cards */
}

.dest svg,
.dest img,
.dest video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark fade at the bottom so the card text is readable on photos */
.dest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(5, 15, 28, 0.85));
}

.dest div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.dest h3 {
  font-size: 32px;
}

.dest p {
  font-size: 15px;
  color: #dbe5ef;
  margin-top: 6px;
  line-height: 1.4;
}

/* Previous / next buttons under the row */
.rail-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.rail-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(184, 138, 58, 0.5);
  background: var(--card);
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.rail-nav button:hover {
  background: var(--gold);
  color: var(--deep);
}

/* ---------- 7. Finance / EMI band ---------- */
.pay {
  background: radial-gradient(
    ellipse at 50% 120%,
    #b88a3a 0,
    var(--navy) 55%,
    var(--deep)
  );
  color: #fff;
  text-align: center;
}

.pay h2 {
  font-size: clamp(44px, 8vw, 104px);
}

.pay p {
  max-width: 600px;
  margin: 22px auto 34px;
  font-size: 22px;
  color: #dbe5ef;
}

/* ---------- 8. "Everything, handled" tiles ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Each tile: picture on top, text underneath */
.tile {
  position: relative;
  overflow: hidden;
  contain: layout paint;
  background: var(--card);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(184, 138, 58, 0.18);
  box-shadow: 0 16px 34px -24px rgba(7, 22, 38, 0.6);
}

.tile h3 {
  font-size: 30px;
  margin: 26px 30px 8px;
}

.tile p {
  color: var(--mute);
  font-size: 16px;
  margin: 0 30px 30px;
}

.tile > h3,
.tile > p {
  position: relative;
}

.tile.w {
  grid-column: span 2;
}

/* Full-width wedding tile */
.tile.full {
  grid-column: 1 / -1;
}

/* Picture area at the top of each tile (photo or illustration) */
.tile .art {
  position: relative;
  height: 200px;
  flex: none;
  overflow: hidden;
}

.tile.w .art {
  height: 240px;
}

.tile.full .art {
  height: 300px;
}

/* On hover the picture zooms in slightly; the box itself stays put */
.tile .art > * {
  transition: transform 0.35s ease;
}

.tile:hover .art > * {
  transform: scale(1.06);
}

.tile .art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tile .art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  backface-visibility: hidden;
}

/* ---------- 9. Three steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: var(--card);
  border-radius: var(--r);
  padding: 34px;
  border: 1px solid rgba(184, 138, 58, 0.16);
  box-shadow: 0 16px 34px -24px rgba(7, 22, 38, 0.5);
}

.step b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep);
  margin-bottom: 20px;
}

.step h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.step p {
  color: var(--mute);
  font-size: 16px;
}

/* ---------- 10. FAQ ---------- */
.faq {
  max-width: 780px;
  margin: auto;
}

.faq details {
  background: var(--card);
  border-radius: 20px;
  padding: 22px 28px;
  margin-bottom: 12px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 19px;
}

.faq p {
  color: var(--mute);
  margin-top: 12px;
  font-size: 17px;
}

/* ---------- 11. Travel films (hidden until videos are added) ---------- */
#films {
  display: none;
}

#films.on {
  display: block;
}

.films {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.films video {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--r);
  background: #000;
}

/* ---------- 12. Contact and enquiry form ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.box {
  background: var(--card);
  border-radius: var(--r);
  padding: 40px;
  min-width: 0;
  overflow-wrap: anywhere; /* long email addresses wrap on small phones */
}

.box h3 {
  font-size: 34px;
  margin-bottom: 18px;
}

.box li {
  list-style: none;
  padding: 13px 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.box small {
  display: block;
  color: var(--gold-text);
  font-weight: 600;
  font-size: 14px;
}

.box a {
  text-decoration: none;
}

.box a:hover {
  color: var(--gold-text);
}

/* Small "Open in Google Maps" line under the address */
.map-hint {
  display: block;
  margin-top: 4px;
  color: var(--gold-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

form {
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

/* "Thank you" or "could not send" message under the form */
.form-msg {
  padding: 18px 22px;
  border: 1px solid var(--gold);
  border-left-width: 5px;
  border-radius: var(--r);
  background: var(--bg);
  color: var(--navy);
  font-size: 17px;
}

.form-msg:empty {
  display: none;
}

.form-msg a {
  color: var(--gold-text);
  font-weight: 600;
}

/* Error: navy edge so it stands apart from the thank-you message */
.form-msg.err {
  border-color: var(--navy);
}

/* ---------- 13. Footer ---------- */
footer {
  padding: 36px 0 44px;
  color: var(--mute);
  font-size: 14px;
  text-align: center;
}

/* Round WhatsApp button, bottom right of the screen.
   Green so visitors recognise it at a glance. */
.wa {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -8px rgba(7, 22, 38, 0.5);
  transition: transform 0.2s;
}

.wa:hover {
  transform: scale(1.06);
}

.wa svg {
  width: 30px;
  height: 30px;
  animation: wa-wiggle 4s ease-in-out infinite;
}

/* Two soft green rings pulse out from the button, one after the other */
.wa::before,
.wa::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25d366;
  pointer-events: none;
  animation: wa-ring 2s ease-out infinite;
}

.wa::after {
  animation-delay: 1s;
}

@keyframes wa-ring {
  from {
    transform: scale(1);
    opacity: 0.55;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Every 4 seconds the icon gives a quick little shake, then rests */
@keyframes wa-wiggle {
  0%,
  80%,
  100% {
    transform: rotate(0);
  }
  84% {
    transform: rotate(-14deg);
  }
  88% {
    transform: rotate(12deg);
  }
  92% {
    transform: rotate(-8deg);
  }
  96% {
    transform: rotate(4deg);
  }
}

/* ---------- 14. Fade-in on scroll ---------- */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- 15. Tablets and phones ---------- */
@media (max-width: 900px) {
  /* The links fold away behind the menu button */
  .nav nav {
    display: none;
  }

  .nav .wrap {
    justify-content: flex-start;
  }

  .nav .pill.s {
    margin-left: auto;
  }

  .menu-btn {
    display: flex;
  }

  /* Open menu: a panel that drops down under the top bar */
  .nav.open nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 8px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid rgba(184, 138, 58, 0.45);
    box-shadow: 0 14px 24px -14px rgba(7, 22, 38, 0.3);
    font-size: 17px;
  }

  .nav.open nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  }

  .nav.open nav a:last-child {
    border-bottom: 0;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .steps,
  .contact,
  .films {
    grid-template-columns: 1fr;
  }

  section {
    padding: 84px 0;
  }
}

@media (max-width: 520px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile.w {
    grid-column: auto;
  }

  .tile .art,
  .tile.w .art,
  .tile.full .art {
    height: 180px;
  }

  .hero .pill + .pill {
    margin: 12px 0 0;
  }

  .box {
    padding: 30px 22px;
  }

  .box ul {
    padding-left: 0;
  }
}

/* ---------- 16. Visitors who prefer less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cloud,
  .jet,
  .tw,
  .wa svg,
  .wa::before,
  .wa::after {
    animation: none;
  }

  .wa::before,
  .wa::after {
    display: none;
  }

  .rv {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
