/* ============================================
   FER VIAGENS — Light Apple-style Landing Page
   ============================================ */

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

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;          /* primary text (near-black, Apple) */
  --ink-2: #515154;        /* secondary text */
  --ink-3: #86868b;        /* muted text */
  --line: #d2d2d7;         /* hairline borders */
  --accent: #f6ad55;       /* brand amber — buttons */
  --accent-2: #ef8e2c;     /* deeper amber — hover */
  --accent-ink: #b45309;   /* amber for text/links on white (contrast-safe) */
  --blue: #0071e3;         /* apple blue */
  /* frosted glass section fills (let the plane show through, keep text crisp) */
  --glass-white: rgba(255, 255, 255, 0.66);
  --glass-gray: rgba(244, 245, 247, 0.70);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-ink); text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BACKGROUND AIRPLANE (real photo)
   Fixed full-viewport stage at z-index:0. Sections sit above (z-index:1)
   but are frosted-translucent so the real jet reads THROUGH them.
   The photo's sky/clouds are feathered away with a radial mask so only
   the aircraft + a soft wisp of sky blend into the light page.
   ============================================ */

.plane-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.plane-photo {
  position: absolute;
  top: 0;
  left: 0;
  /* a clean cut-out of a real airliner (transparent background) */
  width: clamp(300px, 62vw, 640px);
  height: auto;
  /* JS writes translate3d + scale each frame; seed parks it off-screen */
  transform: translate3d(70vw, 55vh, 0) scale(1);
  opacity: 0;                 /* JS fades it in */
  will-change: transform, opacity;
  backface-visibility: hidden;
  filter: drop-shadow(0 18px 30px rgba(20, 40, 80, 0.12));
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-logo:hover { color: var(--ink); }

.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--accent);
  color: var(--ink) !important;
  font-weight: 600 !important;
  padding: 7px 18px;
  border-radius: 980px;
  font-size: 0.82rem !important;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--accent-2);
  color: #fff !important;
  transform: scale(1.04);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:first-child { transform: rotate(45deg) translate(3px, 4px); }
.nav-toggle.active span:last-child { transform: rotate(-45deg) translate(3px, -4px); }

/* Mobile menu */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  justify-content: center;
  gap: 0;
  z-index: 99;
}

.nav-links.open a {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 0;
  text-align: center;
}

.nav-links.open .nav-cta {
  margin-top: 24px;
  font-size: 1.1rem !important;
  padding: 14px 40px;
  display: inline-block;
}

/* ============================================
   HERO  (transparent so the plane shows behind it)
   ============================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 66vh;
  min-height: 66dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 24px 28px;
  /* the airplane behind the hero sits behind frosted glass too — same as every section,
     but a touch lighter so the jet still reads clearly through the glass */
  background: rgba(255, 255, 255, 0.40);
  -webkit-backdrop-filter: saturate(155%) blur(9px);
  backdrop-filter: saturate(155%) blur(9px);
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: var(--ink);
}

.gradient-text {
  background: linear-gradient(120deg, #f97316, #f59e0b 55%, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--ink-2);
  font-weight: 400;
  margin-bottom: 28px;
}

.btn-hero {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 980px;
  box-shadow: 0 8px 24px rgba(246, 173, 85, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
  background: var(--accent-2);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(239, 142, 44, 0.4);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--ink-3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); transform-origin: top; }
}

/* ============================================
   SHARED SECTION SHELL — frosted glass so the
   plane reads through while text stays crisp.
   ============================================ */

.s-services,
.s-destinations,
.s-contact {
  background: var(--glass-gray);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.s-statement,
.s-about {
  background: var(--glass-white);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

/* ============================================
   SERVICES
   ============================================ */

.s-services {
  position: relative;
  z-index: 1;
  padding: 42px 0;
}

.s-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.feature {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 24px 24px;
}

.feature-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

.feature p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============================================
   BIG STATEMENT
   ============================================ */

.s-statement {
  position: relative;
  z-index: 1;
  padding: 52px 0;
}

.big-text {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--ink);
}

/* ============================================
   DESTINATIONS
   ============================================ */

.s-destinations {
  position: relative;
  z-index: 1;
  padding: 36px 0 44px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dest {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: #e8eaed;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

/* destination photo fills the card */
.dest-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.001);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* gradient scrim so the name stays legible over any photo */
.dest::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0) 70%);
}

.dest:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.dest:hover .dest-img {
  transform: scale(1.08);
}

.dest-name {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.dest-note {
  text-align: center;
  color: var(--ink-2);
  margin-top: 22px;
  font-size: 0.9rem;
}

.dest-note a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   ABOUT
   ============================================ */

.s-about {
  position: relative;
  z-index: 1;
  padding: 42px 0;
}

.about-flex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.about-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
}

.about-lead strong { color: var(--ink); font-weight: 700; }

.about-body {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.7;
}

.stat-row {
  display: flex;
  gap: 40px;
  margin-bottom: 22px;
}

.stat { text-align: center; }

.stat-n {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-s {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-ink);
}

.stat small {
  font-size: 0.75rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 980px;
}

.trust-check {
  color: #1a9d52;
  font-weight: 700;
}

/* ============================================
   CONTACT
   ============================================ */

.s-contact {
  position: relative;
  z-index: 1;
  padding: 42px 0 52px;
}

.s-contact .big-text { margin-bottom: 8px; }

.contact-sub {
  text-align: center;
  color: var(--ink-3);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--ink-3);
}

.form input:focus,
.form textarea:focus {
  border-color: var(--accent-ink);
}

.form textarea {
  resize: none;
  margin-top: 8px;
}

.form-r {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-r input { margin-bottom: 4px; }

.btn-submit {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 16px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(246, 173, 85, 0.32);
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: var(--accent-2);
  color: #fff;
  transform: scale(1.02);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cl {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-2);
  font-size: 0.92rem;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.cl:hover {
  border-color: var(--accent);
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

.cl-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-ink);
}

.cl-icon svg { width: 100%; height: 100%; }

/* ============================================
   FOOTER
   ============================================ */

.foot {
  position: relative;
  z-index: 1;
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  text-align: center;
}

.foot-brand {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.foot-legal {
  font-size: 0.72rem;
  color: var(--ink-3);
}

.foot-links {
  display: flex;
  gap: 16px;
}

.foot-links a {
  font-size: 0.72rem;
  color: var(--ink-3);
  transition: color 0.2s;
}

.foot-links a:hover { color: var(--ink); }

/* ============================================
   FAB — Floating Action Buttons
   ============================================ */

.fab-group {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.fab:hover { transform: scale(1.12); color: #fff; }
.fab svg { width: 22px; height: 22px; }
.fab-wa { background: #25d366; }
.fab-mail { background: var(--blue); }

/* ============================================
   REVEAL
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   TABLET (640px+)
   ============================================ */

@media (min-width: 640px) {
  .s-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .dest-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .form-r {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .about-flex {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .dest-grid {
    gap: 20px;
  }

  .dest-name {
    font-size: 1.3rem;
  }

  .contact-grid {
    grid-template-columns: 1.4fr 0.6fr;
    gap: 48px;
  }

  /* a touch more breathing room on large screens, still compact */
  .s-services, .s-about { padding: 56px 0; }
  .s-statement { padding: 64px 0; }
  .s-destinations { padding: 46px 0 56px; }
  .s-contact { padding: 56px 0 64px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  /* The background airplane is driven 1:1 by scroll position (no autoplay,
     no time-based tween), so it stays visible under reduce-motion. */
}
