/* ============================================
   TERRAVANA, DESIGN SYSTEM
   A digital instrument, not a website.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ─── Palette ─── */
  --primary-deep: #0a0a0a;
  --primary: #1a1a1a;
  --accent: #fece00;
  --accent-light: rgba(254, 206, 0, 0.12);
  --accent-glow: rgba(254, 206, 0, 0.35);
  --bg: #ffffff;
  --bg-warm: #ffffff;
  --muted: #7a7670;
  --muted-light: #b8b3ac;
  --border: rgba(0, 0, 0, 0.06);
  --white: #ffffff;
  --charcoal: #1c1c1e;

  /* ─── Typography ─── */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* ─── Radius ─── */
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-full: 100px;

  /* ─── Spacing ─── */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --space-2xl: 10rem;

  /* ─── Transitions ─── */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.25s;
  --t-base: 0.4s;
  --t-slow: 0.7s;
}

/* ─────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

body.no-noise::before {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--primary-deep);
}

.dest-price {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-deep);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
}

p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  font-weight: 400;
}

em,
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-smooth);
}

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

/* ─────────────────────────────────────────────
   SCROLL PROGRESS BAR
   ───────────────────────────────────────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffdf4a);
  width: 0%;
  z-index: 100001;
  transition: width 0.1s linear;
}

/* Floating Elements */
.floating-items {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.floating-item {
  position: absolute;
  color: var(--accent);
  opacity: 0.12;
  filter: blur(0.5px);
  animation: floatAround 20s infinite ease-in-out;
  pointer-events: none;
}

.fi-1 {
  top: 15%;
  left: 5%;
  font-size: 2.2rem;
  animation-duration: 25s;
}

.fi-2 {
  top: 40%;
  right: 8%;
  font-size: 1.8rem;
  animation-duration: 32s;
  animation-delay: -5s;
}

.fi-3 {
  bottom: 20%;
  left: 12%;
  font-size: 3.5rem;
  animation-duration: 40s;
  animation-delay: -10s;
}

.fi-4 {
  top: 65%;
  right: 12%;
  font-size: 2.8rem;
  animation-duration: 35s;
  animation-delay: -15s;
}

.fi-5 {
  bottom: 10%;
  right: 5%;
  font-size: 2rem;
  animation-duration: 28s;
  animation-delay: -2s;
}

.fi-6 {
  top: 55%;
  left: 45%;
  font-size: 1.4rem;
  animation-duration: 45s;
  animation-delay: -8s;
}

.fi-7 {
  top: 5%;
  right: 25%;
  font-size: 1.6rem;
  animation-duration: 38s;
  animation-delay: -4s;
}

.fi-8 {
  bottom: 45%;
  left: 8%;
  font-size: 2.4rem;
  animation-duration: 42s;
  animation-delay: -12s;
}

.fi-9 {
  top: 80%;
  left: 20%;
  font-size: 2rem;
  animation-duration: 30s;
  animation-delay: -18s;
}

.fi-10 {
  bottom: 5%;
  left: 40%;
  font-size: 1.8rem;
  animation-duration: 50s;
  animation-delay: -22s;
}

@keyframes floatAround {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(3vw, -5vh) rotate(8deg) scale(1.05);
  }

  50% {
    transform: translate(-2vw, 10vh) rotate(-5deg) scale(0.95);
  }

  75% {
    transform: translate(5vw, 5vh) rotate(12deg) scale(1.1);
  }

  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

/* ─────────────────────────────────────────────
   PRELOADER
   ───────────────────────────────────────────── */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 99999;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  height: 48px;
  margin-bottom: 2rem;
  animation: preloaderPulse 1.8s ease-in-out infinite;
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: preloaderFill 1.8s ease-in-out forwards;
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes preloaderFill {
  0% {
    left: -100%;
  }

  100% {
    left: 0;
  }
}

/* ─────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

section,
header,
footer {
  width: 100%;
  position: relative;
  overflow: hidden;
  /* Prevent background decorations from stretching width */
}

/* ─────────────────────────────────────────────
   SECTION HEADERS
   ───────────────────────────────────────────── */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.section-headline {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--t-base) var(--ease-smooth);
  text-decoration: none;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherIts;
  transform: translateY(100%);
  transition: transform var(--t-base) var(--ease-spring);
  z-index: -1;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-deep);
}

.btn-primary::before {
  background: #ffdf4a;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--accent-glow);
  color: var(--primary-deep);
}

.btn-outline {
  background: transparent;
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.15);
}

.btn-outline::before {
  background: var(--primary-deep);
}

.btn-outline:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1.5px var(--primary-deep), 0 12px 32px rgba(0, 0, 0, 0.12);
}

.btn-white {
  background: var(--white);
  color: var(--primary-deep);
}

.btn-white::before {
  background: var(--accent);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.2);
  color: var(--primary-deep);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast) var(--ease-spring);
}

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

/* ─────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────── */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: all var(--t-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-spring);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--accent);
  transition: all var(--t-base) var(--ease-smooth);
}

.card:hover .card-icon {
  background: var(--accent);
  color: var(--primary-deep);
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ─────────────────────────────────────────────
   FORM ELEMENTS
   ───────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary-deep);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--primary-deep);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--t-fast) var(--ease-smooth);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%237a7670' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ─────────────────────────────────────────────
   ANIMATIONS (Reveal)
   ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* ─────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────── */

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.bg-dark {
  background: var(--primary-deep);
}

.bg-warm {
  background: var(--bg-warm);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* Image reveal */
.img-reveal {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-reveal img {
  transition: transform 1.2s var(--ease-out);
}

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