/* ==========================================================================
   ROVÉRA CEYLON ESCAPES - LUXURY TRAVEL DESIGN SYSTEM
   "Step Into the Heart of Ceylon"
   ========================================================================== */

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

:root {
  --primary-navy: #0B3C5D;
  --primary-navy-dark: #07253B;
  --primary-navy-light: #165682;
  --ceylon-green: #1B6B46;
  --ceylon-green-dark: #124B30;
  --ceylon-green-light: #288D5E;
  --ceylon-gold: #E5A93C;
  --ceylon-gold-light: #F6C86D;
  --ceylon-gold-dark: #B97F1F;
  --accent-amber: #D97706;
  --accent-sunset: #EA580C;
  --sand-cream: #FAF7F2;
  --sand-muted: #F3ECE1;
  --surface-card: #FFFFFF;
  --text-primary: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-subtle: #E2E8F0;
  
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-serif-display: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-script: 'Alex Brush', cursive;

  --shadow-sm: 0 2px 8px rgba(11, 60, 93, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 60, 93, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 60, 93, 0.12);
  --shadow-xl: 0 24px 60px rgba(11, 60, 93, 0.16);
  --shadow-glow: 0 0 35px rgba(229, 169, 60, 0.28);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--sand-cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
}

.font-script {
  font-family: var(--font-script);
}

.font-serif-display {
  font-family: var(--font-serif-display);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--sand-cream);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
  border: 2px solid var(--sand-cream);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ceylon-green);
}

/* Glassmorphism Styles */
.glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s ease;
}

.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(11, 60, 93, 0.1);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
}

.glass-card-dark {
  background: rgba(7, 37, 59, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* Brand Gradients */
.gradient-gold-text {
  background: linear-gradient(135deg, #B97F1F 0%, #E5A93C 50%, #F6C86D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-ocean-text {
  background: linear-gradient(135deg, #0B3C5D 0%, #1B6B46 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-ceylon {
  background: linear-gradient(135deg, #0B3C5D 0%, #08293F 50%, #145A32 100%);
}

.bg-gradient-gold {
  background: linear-gradient(135deg, #E5A93C 0%, #D97706 100%);
}

.bg-gradient-green {
  background: linear-gradient(135deg, #1B6B46 0%, #124B30 100%);
}

/* Luxury Buttons */
.btn-gold {
  background: linear-gradient(135deg, #E5A93C 0%, #D97706 100%);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.25);
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
  background: linear-gradient(135deg, #F6C86D 0%, #E5A93C 100%);
  color: #07253B;
}

.btn-navy {
  background: var(--primary-navy);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.35s ease;
  box-shadow: 0 4px 16px rgba(11, 60, 93, 0.25);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-navy:hover {
  background: var(--primary-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 60, 93, 0.35);
  color: #FFFFFF;
}

.btn-outline-gold {
  background: transparent;
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  border: 2px solid var(--ceylon-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.35s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: var(--ceylon-gold);
  color: var(--primary-navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-green {
  background: var(--ceylon-green);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.35s ease;
  box-shadow: 0 4px 16px rgba(27, 107, 70, 0.25);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-green:hover {
  background: var(--ceylon-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 107, 70, 0.35);
  color: #FFFFFF;
}

/* Animations & Keyframes */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes waveMotion {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(0.85); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

@keyframes airplaneFlight {
  0% { transform: translate(-30px, 30px) rotate(-15deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(50px, -50px) rotate(-15deg); opacity: 0; }
}

.animate-float {
  animation: floatSlow 4.5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Image Hover Zoom & Overlays */
.card-zoom {
  overflow: hidden;
  position: relative;
}

.card-zoom img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.overlay-gradient {
  background: linear-gradient(180deg, rgba(7, 37, 59, 0.15) 0%, rgba(7, 37, 59, 0.85) 100%);
}

.overlay-hero {
  background: linear-gradient(180deg, rgba(7, 37, 59, 0.45) 0%, rgba(7, 37, 59, 0.75) 100%);
}

/* Tag & Badges */
.badge-gold {
  background: rgba(229, 169, 60, 0.15);
  color: var(--ceylon-gold-dark);
  border: 1px solid rgba(229, 169, 60, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-green {
  background: rgba(27, 107, 70, 0.12);
  color: var(--ceylon-green);
  border: 1px solid rgba(27, 107, 70, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-navy {
  background: rgba(11, 60, 93, 0.1);
  color: var(--primary-navy);
  border: 1px solid rgba(11, 60, 93, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366;
  color: white;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  z-index: 999;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseGlow 2s infinite;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary-navy);
  color: white;
  transform: translateY(-3px);
}

/* Form Styling */
.form-input-luxury {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  background-color: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-input-luxury:focus {
  border-color: var(--ceylon-green);
  box-shadow: 0 0 0 4px rgba(27, 107, 70, 0.12);
}

.form-label-luxury {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 37, 59, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Itinerary Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
  border-left: 2px solid rgba(27, 107, 70, 0.25);
}

.timeline-item:last-child {
  border-left: 2px transparent solid;
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ceylon-green);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--ceylon-green);
}

/* Gallery Lightbox */
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 37, 59, 0.1) 0%, rgba(7, 37, 59, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: all 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

/* Mobile Responsive Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -10px 0 40px rgba(7, 37, 59, 0.2);
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 37, 59, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Step Progress in Quote Engine */
.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.step-circle.active {
  background: var(--ceylon-green);
  color: white;
  box-shadow: 0 0 15px rgba(27, 107, 70, 0.4);
}

.step-circle.completed {
  background: var(--primary-navy);
  color: white;
}

.step-circle.pending {
  background: #E2E8F0;
  color: #64748B;
}

/* Hero Nature Background Animation */
#heroNatureBg {
  animation: heroKenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.02) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1%, -1%);
  }
  100% {
    transform: scale(1.04) translate(1%, 0);
  }
}

/* Print Styles for Quotations */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  header, footer, .whatsapp-float, .back-to-top, .no-print {
    display: none !important;
  }
  .printable-quote {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
  }
}
