/* ==========================================================================
   The Travel Cafe - Luxury Kerala Tours & Premium Resorts
   Custom Stylesheet & Luxury Design System
   ========================================================================== */

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

:root {
  --color-primary: #064e3b;      /* Deep Kerala Emerald */
  --color-primary-dark: #022c22; /* Dense Forest Green */
  --color-primary-light: #0d9488;/* Tropical Lagoon Teal */
  --color-accent: #d97706;       /* Kerala Brass / Sunset Gold */
  --color-accent-light: #f59e0b; /* Golden Glow */
  --color-terracotta: #c2410c;   /* Kerala Tile Terracotta */
  --color-bg-light: #fcfbfa;     /* Warm Coconut Pearl */
  --color-bg-alt: #f4f6f1;       /* Soft Backwater Mist */
  --color-dark: #0f172a;         /* Deep Slate */
  --color-text-muted: #64748b;   /* Slate Muted */
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-brand: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-alt: 'Outfit', sans-serif;
  
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px -4px rgba(6, 78, 59, 0.08);
  --shadow-hover: 0 20px 40px -4px rgba(6, 78, 59, 0.16);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-dark);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: -0.015em;
}

.font-brand {
  font-family: var(--font-brand);
  letter-spacing: 0.1em;
}

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

h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

.luxury-tagline {
  font-family: var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Glassmorphism & Header */
.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

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

.glass-card-dark {
  background: rgba(4, 44, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Luxury Kerala Accents */
.kerala-gradient {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
}

.kerala-gold-gradient {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.kerala-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(2, 44, 34, 0.45) 0%,
    rgba(2, 44, 34, 0.7) 60%,
    rgba(2, 44, 34, 0.92) 100%
  );
}

.kerala-card-overlay {
  background: linear-gradient(to top, rgba(2, 44, 34, 0.9) 0%, rgba(2, 44, 34, 0.3) 60%, transparent 100%);
}

/* Custom Badges & Tags */
.badge-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-emerald {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Interactive Card Hover Effects */
.trip-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trip-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.trip-card:hover .trip-img {
  transform: scale(1.06);
}

.trip-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Overlay */
.modal-backdrop {
  background-color: rgba(6, 30, 24, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Float WhatsApp & Mobile Sticky Bar */
.floating-whatsapp {
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* Subtle Shimmer for High Priority CTAs */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 3.5s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0f766e;
}

/* Responsive alignment shared by every page. */
/* Responsive luxury single-row header */
#navbar .site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}
.site-brand, .site-header-actions, #mobile-menu-btn {
  flex-shrink: 0;
}
.site-brand .font-brand { white-space: nowrap; }
.site-brand > div:first-child { flex-shrink: 0; }
.site-header-actions { margin-left: auto; }
.site-header-actions a, .site-header-actions button { white-space: nowrap; }
.site-header-row .site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav > a { white-space: nowrap; }
.site-topbar > div { flex-wrap: wrap; gap: .5rem 1rem; }
.site-topbar > div > div { flex-wrap: wrap; }
.site-topbar svg, .site-header-row svg, .package-card svg,
.hero-trust svg, .faq-question svg { flex-shrink: 0; }
.grid > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.package-filters {
  flex-wrap: wrap;
  overflow: visible;
  width: 100%;
  justify-content: flex-start;
}
.package-filters > button { flex-shrink: 0; }
#quick-planner-form label { min-height: 2.5em; }
#quick-planner-form select, #quick-planner-form button { min-height: 48px; }
.detail-package-image { height: 320px; }
.detail-package-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
section[id] { scroll-margin-top: 150px; }
@media (min-width: 1024px) {
  .detail-package-image { height: auto; }
}
@media (max-width: 1023px) {
  .site-header-row .site-nav { display: none; }
  .site-header-actions > a + button { display: none; }
  .site-legal-header .site-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
}
@media (max-width: 767px) {
  .site-header-row .site-header-actions { display: none; }
  #mobile-menu-btn { margin-left: auto; }
  .site-header-row { gap: .5rem; }
  .site-topbar > div { justify-content: center; text-align: center; }
  .site-topbar > div > div { justify-content: center; }
  .package-card > .grid > .flex { padding: 1.5rem; }
  .package-card .grid-cols-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  body:has(.mobile-action-bar) { padding-bottom: 80px; }
  body:has(.mobile-action-bar) .floating-whatsapp { display: none; }
  .site-brand { gap: .5rem; }
  .site-brand .font-brand { font-size: 18px; letter-spacing: .07em; }
  .site-brand .font-brand + span { font-size: 8px; letter-spacing: .1em; }
  .site-brand > div:first-child { width: 38px; height: 38px; }
  .mobile-action-bar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  #quoteModal > div { max-height: 90dvh; overflow-y: auto; }
}
@media (max-width: 399px) {
  .hero-trust { grid-template-columns: minmax(0, 1fr); }
}

/* Clean brand logo rules */
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
#mobile-menu .brand-logo img {
  height: 42px;
}
.footer-logo {
  display: inline-block;
  background: white;
  border-radius: 12px;
  padding: 8px 14px;
  max-width: 100%;
}
.footer-logo .brand-logo img {
  height: 42px;
}
@media (max-width: 639px) {
  .site-brand .brand-logo img {
    height: 38px;
  }
}
