/* ==========================================================================
   LuxuryCruises360 — Design System
   Palette: Deep Navy / Gold / Ivory / Charcoal
   Type: Cormorant Garamond (display) + Manrope (body/UI)
   ========================================================================== */

:root {
  --navy: #0B1F3A;
  --navy-light: #142E52;
  --navy-deeper: #071527;
  --navy-glass: rgba(11, 31, 58, 0.55);

  --gold: #C9A227;
  --gold-light: #E4C868;
  --gold-lighter: #F3E3AE;
  --gold-dark: #9C7B1A;

  --ivory: #FBF8F2;
  --offwhite: #F5F2EA;
  --charcoal: #1C1C1E;
  --gray: #6B7280;
  --gray-light: #E5E0D5;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-lux: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}

/* ---------- Selection & Scrollbar ---------- */

::selection {
  background: var(--gold);
  color: var(--navy);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ivory);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-radius: 10px;
}

/* ---------- Text Gradient ---------- */

.text-gold-gradient {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Ornamental Divider ---------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ornament::before,
.ornament::after {
  content: '';
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament i {
  color: var(--gold);
  font-size: 0.8rem;
}

/* ---------- Scroll Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* will-change is added/removed by JS only while the transition is actually
   running (see js/main.js). Leaving it on permanently keeps text on a GPU
   compositor layer forever, which softens font rendering at rest. */
.reveal.is-animating,
.reveal-fade.is-animating,
.reveal-scale.is-animating {
  will-change: opacity, transform;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1.2s var(--ease-lux);
}

.reveal-fade.is-visible {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1s var(--ease-lux), transform 1.1s var(--ease-lux);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger helper — JS assigns --d as an index; used as transition-delay */
.reveal, .reveal-fade, .reveal-scale {
  transition-delay: calc(var(--d, 0) * 90ms);
}

/* ---------- Hero Ken Burns ---------- */

@keyframes kenburns {
  0% { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.18) translate3d(-1.2%, -1.4%, 0); }
}

.kenburns {
  animation: kenburns 24s var(--ease-soft) infinite alternate;
}

/* ---------- Floating Decorative Elements ---------- */

@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(6px); }
}

.float-el {
  animation: floaty 7s ease-in-out infinite;
}

.float-el.delay-1 { animation-delay: 1.2s; }
.float-el.delay-2 { animation-delay: 2.4s; }
.float-el.delay-3 { animation-delay: 3.6s; }

/* ---------- Glassmorphism ----------
   backdrop-filter is applied to a ::before pseudo-element that sits BEHIND
   the real content (z-index: -1), rather than on the same box the text
   renders in. This keeps the frosted-glass look on the background while
   text stays in normal (non-filtered) paint, avoiding the soft/blurry text
   that backdrop-filter can cause when it shares a compositing layer with
   foreground content. */

.glass, .glass-light {
  position: relative;
  isolation: isolate;
}

.glass::before, .glass-light::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass::before {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-light::before {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ---------- Sticky Nav ---------- */

#site-nav {
  position: fixed;
  isolation: isolate;
}

#site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}

#site-nav.nav-scrolled::before {
  background-color: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.4);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-lux);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Scroll Progress Bar ---------- */

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

/* ---------- Back to Top ---------- */

#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(11, 31, 58, 0.5);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.4s var(--ease-lux);
  z-index: 90;
  border: 1px solid rgba(201, 162, 39, 0.4);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- Luxury Cards ---------- */

.luxury-card {
  transition: transform 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
}

.luxury-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 70px -30px rgba(11, 31, 58, 0.4), 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.card-img-zoom {
  overflow: hidden;
}

.card-img-zoom img {
  transition: transform 1.3s var(--ease-soft);
}

.luxury-card:hover .card-img-zoom img {
  transform: scale(1.09);
}

/* ---------- Buttons ---------- */

.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: var(--navy-deeper);
  font-weight: 700;
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
  box-shadow: 0 14px 30px -12px rgba(201, 162, 39, 0.55);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -12px rgba(201, 162, 39, 0.7);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  transition: all 0.4s var(--ease-soft);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.ripple-span {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: ripple-anim 0.7s ease-out;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------- Page Preloader ---------- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--navy-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-lux), visibility 0.7s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

#preloader .mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  position: relative;
}

#preloader .ring {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-top-color: var(--gold-light);
  animation: spin 1.1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Accordion (FAQ) ---------- */

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-lux);
}

.accordion-item.open .accordion-panel {
  max-height: 400px;
}

.accordion-item .accordion-icon {
  transition: transform 0.4s var(--ease-lux);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

/* ---------- Mobile Nav Drawer ---------- */

#mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-lux);
}

#mobile-drawer.open {
  transform: translateX(0);
}

#mobile-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Star Rating ---------- */

.stars-gold {
  color: var(--gold);
  letter-spacing: 2px;
}

/* ---------- Form Inputs ---------- */

.lux-input {
  background: linear-gradient(180deg, #ffffff, #fbfaf7);
  border: 1.5px solid var(--gray-light);
  transition: border-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft), background 0.35s var(--ease-soft);
  font-family: var(--font-sans);
  color: var(--navy);
}

.lux-input:focus {
  outline: none;
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.14), 0 8px 20px -10px rgba(11, 31, 58, 0.15);
}

.lux-input-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.lux-input-dark::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.lux-input-dark:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

/* ---------- Premium Form Fields (floating label + icon) ---------- */

.form-field {
  position: relative;
}

.form-field .field-icon {
  position: absolute;
  left: 20px;
  top: 26px;
  font-size: 0.95rem;
  color: var(--gray-light);
  pointer-events: none;
  transition: color 0.35s var(--ease-soft);
  z-index: 2;
}

.form-field textarea ~ .field-icon {
  top: 24px;
}

.form-field input.lux-input,
.form-field textarea.lux-input {
  padding-left: 50px;
  padding-top: 22px;
  padding-bottom: 10px;
  font-size: 0.98rem;
}

.form-field textarea.lux-input {
  padding-top: 24px;
}

.form-field label.field-label {
  position: absolute;
  left: 50px;
  top: 26px;
  transform: translateY(-50%);
  font-size: 0.98rem;
  color: var(--gray);
  pointer-events: none;
  transition: top 0.3s var(--ease-soft), left 0.3s var(--ease-soft), transform 0.3s var(--ease-soft), font-size 0.3s var(--ease-soft), color 0.3s var(--ease-soft), letter-spacing 0.3s var(--ease-soft);
  z-index: 2;
}

.form-field textarea ~ label.field-label {
  top: 24px;
}

.form-field input:focus ~ .field-icon,
.form-field input:not(:placeholder-shown) ~ .field-icon,
.form-field textarea:focus ~ .field-icon,
.form-field textarea:not(:placeholder-shown) ~ .field-icon {
  color: var(--gold);
}

.form-field input:focus ~ label.field-label,
.form-field input:not(:placeholder-shown) ~ label.field-label,
.form-field textarea:focus ~ label.field-label,
.form-field textarea:not(:placeholder-shown) ~ label.field-label {
  top: 0;
  left: 18px;
  transform: translateY(-50%) scale(0.82);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fff;
  padding: 1px 8px;
  border-radius: 6px;
}

.form-field .field-required {
  color: var(--gold-dark);
}

/* Static (non-floating) labels used for select / date fields, styled to
   match the premium field system visually */
.form-field-static label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 10px;
}

.field-input-wrap {
  position: relative;
}

.field-input-wrap .field-icon-static {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--gray-light);
  pointer-events: none;
  transition: color 0.35s var(--ease-soft);
  z-index: 2;
}

.field-input-wrap select.lux-input,
.field-input-wrap input.lux-input {
  padding-left: 50px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.field-input-wrap input[data-datepicker].lux-input {
  padding-right: 46px;
  cursor: pointer;
}

.field-input-wrap .field-chevron {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-light);
  font-size: 0.85rem;
  pointer-events: none;
  transition: color 0.35s var(--ease-soft);
  z-index: 2;
}

.field-input-wrap select.lux-input:focus ~ .field-icon-static,
.field-input-wrap input.lux-input:focus ~ .field-icon-static,
.field-input-wrap input.lux-input:focus ~ .field-chevron {
  color: var(--gold);
}

/* ---------- Custom Luxury Date Picker ---------- */

.lux-datepicker-popup {
  position: fixed;
  z-index: 200;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 30px 60px -20px rgba(11, 31, 58, 0.4);
  padding: 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
  font-family: var(--font-sans);
}

.lux-datepicker-popup.open {
  opacity: 1;
  transform: translateY(0);
}

.lux-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lux-cal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}

.lux-cal-nav {
  display: flex;
  gap: 6px;
}

.lux-cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: var(--offwhite);
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.lux-cal-nav-btn:hover {
  background: var(--gold);
  color: #fff;
}

.lux-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 8px;
}

.lux-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.lux-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lux-cal-day:hover:not(.lux-cal-disabled):not(.lux-cal-muted) {
  background: rgba(201, 162, 39, 0.15);
}

.lux-cal-muted {
  color: var(--gray-light);
  cursor: default;
}

.lux-cal-disabled {
  color: var(--gray-light);
  cursor: not-allowed;
}

.lux-cal-today {
  box-shadow: inset 0 0 0 1.5px var(--gold);
  font-weight: 700;
}

.lux-cal-selected {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: var(--navy-deeper);
  font-weight: 700;
}

.lux-cal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--offwhite);
}

.lux-cal-link {
  background: none;
  border: none;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.lux-cal-link:hover {
  text-decoration: underline;
}

.field-input-wrap select.lux-input:focus ~ .field-icon-static,
.field-input-wrap input.lux-input:focus ~ .field-icon-static {
  color: var(--gold);
}

/* ---------- Premium Form Card ---------- */

.form-card,
.premium-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(201, 162, 39, 0.3);
  transition: border-color 0.4s var(--ease-soft);
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light) 50%, var(--gold-dark));
  z-index: 1;
}

/* Fine inset frame line, like engraved stationery */
.form-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 162, 39, 0.14);
  border-radius: inherit;
  pointer-events: none;
}

.info-card,
.premium-card {
  border: 1.5px solid rgba(201, 162, 39, 0.24);
  transition: border-color 0.4s var(--ease-soft), transform 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
}

.info-card:hover,
.premium-card:hover {
  border-color: rgba(201, 162, 39, 0.5);
}

.info-card-icon {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.04));
  border: 1px solid rgba(201, 162, 39, 0.28);
  transition: transform 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}

.info-card:hover .info-card-icon {
  transform: scale(1.08);
  border-color: rgba(201, 162, 39, 0.55);
}

/* ---------- Success Checkmark ---------- */

@keyframes pulseRing {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

.success-ring-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto;
}

.success-ring-wrap::before,
.success-ring-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: pulseRing 2.2s var(--ease-soft) infinite;
}

.success-ring-wrap::after {
  animation-delay: 0.6s;
}

.success-ring-wrap .success-icon {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--navy-deeper);
  box-shadow: 0 20px 40px -12px rgba(201, 162, 39, 0.55);
}

/* ---------- Section Background Texture ---------- */

.bg-navy-gradient {
  background: radial-gradient(120% 120% at 20% 0%, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deeper) 100%);
}

.bg-ivory-gradient {
  background: radial-gradient(120% 120% at 80% 0%, #ffffff 0%, var(--ivory) 55%, var(--offwhite) 100%);
}

/* ---------- Utility ---------- */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@media (prefers-reduced-motion: reduce) {
  .kenburns, .float-el, #preloader .ring { animation: none !important; }
  .reveal, .reveal-fade, .reveal-scale { transition: none !important; opacity: 1 !important; transform: none !important; }
}
