/* ============================================================================
   CEYLON VOYAGE — Luxury Sri Lanka Tours
   Deep Tropical Ocean Teal (#042F2E), Warm Ceylon Ivory (#FAF7F2),
   Luxury Sunset Gold (#D97706) + Sculpted 3D Cards, 3D Buttons & Custom Dropdowns
   100% Static public_html Ready Stylesheet (css/style.css)
   ============================================================================ */

:root {
  --cv-teal: #042F2E;
  --cv-teal-mid: #0B4A47;
  --cv-teal-soft: #115E59;
  --cv-ivory: #FAF7F2;
  --cv-sand: #F3EDE2;
  --cv-gold: #D97706;
  --cv-gold-light: #F59E0B;
  --cv-gold-deep: #9A4E02;
  --cv-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  background-color: var(--cv-ivory);
  color: var(--cv-teal);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--cv-ivory);
  color: var(--cv-teal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-editorial {
  font-family: 'Playfair Display', Georgia, serif;
  text-wrap: balance;
}

.font-mono-num {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* Custom Branded Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cv-sand);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cv-teal), var(--cv-gold));
  border-radius: 999px;
}

/* ============================================================================
   SCULPTED 3D GLASSMORPHISM CARDS (WITH TOP HIGHLIGHT, 3D LIP & HOVER LIFT)
   ============================================================================ */
.cv-card-3d {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 247, 242, 0.86) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(4, 47, 46, 0.12);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-bottom: 4px solid rgba(4, 47, 46, 0.22);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 18px 36px -14px rgba(4, 47, 46, 0.18),
    0 6px 14px -6px rgba(4, 47, 46, 0.1);
  transition: transform 0.22s var(--cv-ease), box-shadow 0.22s var(--cv-ease), border-color 0.22s var(--cv-ease);
}

.cv-card-3d:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.45);
  border-bottom-color: rgba(217, 119, 6, 0.65);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 1),
    0 28px 50px -16px rgba(4, 47, 46, 0.28),
    0 0 26px -8px rgba(217, 119, 6, 0.28);
}

.cv-glass-dark-3d {
  background: linear-gradient(155deg, rgba(7, 56, 54, 0.9) 0%, rgba(3, 35, 34, 0.96) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(250, 247, 242, 0.16);
  border-top-color: rgba(255, 255, 255, 0.28);
  border-bottom: 4px solid rgba(2, 22, 21, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 48px -14px rgba(2, 22, 21, 0.65);
  transition: transform 0.22s var(--cv-ease), box-shadow 0.22s var(--cv-ease), border-color 0.22s var(--cv-ease);
}

.cv-glass-dark-hover:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 30px 56px -14px rgba(2, 22, 21, 0.78),
    0 0 28px -8px rgba(217, 119, 6, 0.32);
}

/* ============================================================================
   SCULPTED 3D BUTTONS (SUNSET GOLD, DEEP TEAL, FROSTED GLASS, WHATSAPP)
   ============================================================================ */
.cv-btn-gold {
  background: linear-gradient(180deg, #FBBF24 0%, #D97706 58%, #B45309 100%);
  color: #FFFFFF;
  font-weight: 700;
  border: 1px solid rgba(254, 243, 199, 0.5);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    0 5px 0 #7C3704,
    0 14px 26px -8px rgba(217, 119, 6, 0.55);
  transition: transform 0.16s var(--cv-ease), box-shadow 0.16s var(--cv-ease), filter 0.16s var(--cv-ease);
  cursor: pointer;
}

.cv-btn-gold:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.58),
    0 8px 0 #7C3704,
    0 22px 34px -8px rgba(217, 119, 6, 0.68);
}

.cv-btn-gold:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 0 #7C3704,
    0 6px 14px -6px rgba(217, 119, 6, 0.45);
}

.cv-btn-teal {
  background: linear-gradient(180deg, #0F5C58 0%, #042F2E 100%);
  color: #FAF7F2;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    0 5px 0 #021B1A,
    0 14px 26px -10px rgba(4, 47, 46, 0.55);
  transition: transform 0.16s var(--cv-ease), box-shadow 0.16s var(--cv-ease), border-color 0.16s var(--cv-ease);
  cursor: pointer;
}

.cv-btn-teal:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    0 8px 0 #021B1A,
    0 20px 32px -8px rgba(4, 47, 46, 0.65);
}

.cv-btn-teal:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #021B1A;
}

.cv-btn-ivory {
  background: linear-gradient(180deg, #FFFFFF 0%, #F3EDE2 100%);
  color: #042F2E;
  font-weight: 700;
  border: 1px solid rgba(4, 47, 46, 0.18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 1),
    0 4px 0 rgba(4, 47, 46, 0.2),
    0 10px 20px -10px rgba(4, 47, 46, 0.22);
  transition: transform 0.16s var(--cv-ease), box-shadow 0.16s var(--cv-ease), border-color 0.16s var(--cv-ease);
  cursor: pointer;
}

.cv-btn-ivory:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 6, 0.65);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 1),
    0 7px 0 rgba(217, 119, 6, 0.38),
    0 16px 26px -8px rgba(217, 119, 6, 0.24);
}

.cv-btn-ivory:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(4, 47, 46, 0.2);
}

.cv-btn-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  color: #FAF7F2;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 0 rgba(2, 22, 21, 0.65),
    0 10px 22px -8px rgba(0, 0, 0, 0.4);
  transition: transform 0.16s var(--cv-ease), border-color 0.16s var(--cv-ease), box-shadow 0.16s var(--cv-ease);
  cursor: pointer;
}

.cv-btn-glass:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 6px 0 rgba(2, 22, 21, 0.7),
    0 14px 26px -6px rgba(217, 119, 6, 0.32);
}

.cv-btn-whatsapp {
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-weight: 700;
  border: 1px solid rgba(167, 243, 208, 0.45);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 5px 0 #065F46,
    0 14px 26px -8px rgba(16, 185, 129, 0.5);
  transition: transform 0.16s var(--cv-ease), box-shadow 0.16s var(--cv-ease), filter 0.16s var(--cv-ease);
  cursor: pointer;
}

.cv-btn-whatsapp:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    0 8px 0 #065F46,
    0 20px 32px -6px rgba(16, 185, 129, 0.62);
}

/* ============================================================================
   CUSTOM 3D LUXURY BUTTON-STYLE DROPDOWNS (ZERO NATIVE WHITE/BLACK SELECTS)
   ============================================================================ */
.cv-dd-wrapper {
  position: relative;
  z-index: 1;
}

.cv-dd-wrapper.open {
  z-index: 120;
}

.cv-dd-trigger-dark {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 74, 71, 0.86) 0%, rgba(4, 47, 46, 0.96) 100%);
  color: #FAF7F2;
  border: 1px solid rgba(250, 247, 242, 0.22);
  border-bottom: 3px solid rgba(2, 22, 21, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px -12px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: border-color 0.18s var(--cv-ease), transform 0.18s var(--cv-ease);
}

.cv-dd-trigger-dark:hover,
.cv-dd-wrapper.open .cv-dd-trigger-dark {
  border-color: rgba(245, 158, 11, 0.8);
}

.cv-dd-trigger-light {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4EFE6 100%);
  color: #042F2E;
  border: 1px solid rgba(4, 47, 46, 0.2);
  border-bottom: 3px solid rgba(4, 47, 46, 0.25);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), 0 10px 22px -12px rgba(4, 47, 46, 0.2);
  cursor: pointer;
  transition: border-color 0.18s var(--cv-ease), transform 0.18s var(--cv-ease);
}

.cv-dd-trigger-light:hover,
.cv-dd-wrapper.open .cv-dd-trigger-light {
  border-color: rgba(217, 119, 6, 0.85);
}

.cv-dd-chevron {
  transition: transform 0.2s var(--cv-ease);
}

.cv-dd-wrapper.open .cv-dd-chevron {
  transform: rotate(180deg);
}

.cv-dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 130;
  padding: 0.55rem;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(6, 54, 52, 0.98) 0%, rgba(3, 30, 29, 0.99) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-bottom: 4px solid rgba(2, 18, 17, 0.95);
  box-shadow: 0 28px 56px -14px rgba(2, 22, 21, 0.82), 0 0 24px -8px rgba(217, 119, 6, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s var(--cv-ease), transform 0.2s var(--cv-ease);
}

.cv-dd-wrapper.open .cv-dd-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cv-dd-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(0, 0, 0, 0.35);
  color: #FAF7F2;
  font-size: 0.83rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s var(--cv-ease), background 0.16s var(--cv-ease), border-color 0.16s var(--cv-ease);
}

.cv-dd-option:hover {
  transform: translateY(-2px) translateX(2px);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.14) 100%);
  border-color: rgba(245, 158, 11, 0.65);
}

.cv-dd-option.cv-dd-active {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.34) 0%, rgba(217, 119, 6, 0.2) 100%);
  border-color: rgba(251, 191, 36, 0.85);
  color: #FEF3C7;
}

/* ============================================================================
   FLUID ORGANIC CURVED SHAPES & LIQUID WAVES ("LACHAK")
   ============================================================================ */
.cv-shape-arch {
  border-radius: 36px 96px 36px 36px;
}

.cv-shape-leaf {
  border-radius: 84px 28px 84px 28px;
}

.cv-shape-pebble {
  border-radius: 32px 32px 92px 32px;
}

.cv-shape-wave {
  border-radius: 88px 88px 30px 30px;
}

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

.cv-img-zoom img {
  transition: transform 0.7s var(--cv-ease);
}

.cv-img-zoom:hover img {
  transform: scale(1.07);
}

/* Hero Crossfade Slides */
.cv-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--cv-ease), transform 6s ease-out;
}

.cv-hero-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Liquid Wave Dividers */
.cv-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 10;
  line-height: 0;
  pointer-events: none;
}

/* Mobile Downward 3D Frosted Drawer */
.cv-mobile-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.35s var(--cv-ease), opacity 0.26s var(--cv-ease), transform 0.26s var(--cv-ease);
}

.cv-mobile-drawer.open {
  max-height: 680px;
  opacity: 1;
  transform: translateY(0);
}

/* Modals */
.cv-modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--cv-ease);
}

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

.cv-modal-panel {
  transform: translateY(18px) scale(0.97);
  transition: transform 0.28s var(--cv-ease);
}

.cv-modal-backdrop.active .cv-modal-panel {
  transform: translateY(0) scale(1);
}

/* Inputs */
.cv-input {
  background: #FFFFFF;
  border: 1.5px solid rgba(4, 47, 46, 0.18);
  color: #042F2E;
  border-radius: 14px;
  box-shadow: inset 0 2px 4px rgba(4, 47, 46, 0.05);
  transition: border-color 0.18s var(--cv-ease), box-shadow 0.18s var(--cv-ease);
}

.cv-input:focus {
  outline: none;
  border-color: var(--cv-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.cv-input-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #FAF7F2;
  border-radius: 14px;
  transition: border-color 0.18s var(--cv-ease), box-shadow 0.18s var(--cv-ease);
}

.cv-input-dark::placeholder {
  color: rgba(250, 247, 242, 0.48);
}

.cv-input-dark:focus {
  outline: none;
  border-color: var(--cv-gold-light);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Scroll Reveal */
.cv-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--cv-ease), transform 0.6s var(--cv-ease);
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cv-gold-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
