/* 
   Nipun Nishamaheeka Professional Portfolio - Editorial Brand System
   Warm off-white, muted burgundy accents, thin borders, generous spacing, and custom dark contrast sections.
*/

:root {
  /* Color System */
  --bg-primary: #F7F5F2;          /* Warm off-white */
  --bg-surface: #FFFFFF;          /* Pure white */
  --bg-surface-secondary: #EEEAE5; /* Muted warm grey */
  --text-primary: #171717;        /* Near black text */
  --text-secondary: #5F5B57;      /* Muted warm text */
  --border-color: #DCD7D1;        /* Warm grey border */
  --accent-color: #8A2533;        /* Muted Burgundy */
  --accent-hover: #6F1D29;
  --accent-soft: #F4E7E9;
  
  --dark-section: #171717;        /* Visual rhythm contrast section */
  --dark-section-text: #F7F5F2;

  --success: #15803D;
  --warning: #B45309;
  --error: #B91C1C;

  /* Spacing and Border Radius */
  --max-width: 1240px;
  --radius-card: 16px;
  --radius-button: 10px;
}

/* Base resets & natural scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Space for sticky header */
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.625; /* Increased line-height for paragraphs and lists */
  -webkit-font-smoothing: antialiased;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  transition: top 0.2s ease;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* Sticky Header styling */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

/* Active Nav Links styling */
.nav-link-custom {
  position: relative;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link-custom:hover {
  color: var(--text-primary);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.2s ease;
}

.nav-link-custom.active {
  color: var(--accent-color);
  font-weight: 600;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Mobile Nav Overlay */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(247, 245, 242, 0.98);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* Card layout transitions & hover states */
.card-hover-editorial {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  border: 1px solid var(--border-color);
}

.card-hover-editorial:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
}

/* Accent element decorations */
.accent-border-hover {
  transition: border-color 0.2s ease;
}
.accent-border-hover:hover {
  border-color: var(--accent-color);
}

/* Hero Portrait Ring & Halo Frame */
.portrait-ring-container {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid var(--accent-color); /* 1px muted burgundy outer border */
  padding: 6px; /* Padding creates the background border gap */
  background-color: var(--bg-primary);
  box-shadow: 0 18px 45px rgba(30, 20, 20, 0.14); /* soft natural shadow */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.portrait-inner-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--bg-primary); /* 6px warm off-white inner border */
  overflow: hidden;
}

/* Background Halo scaled at ~1.12x */
.portrait-halo {
  position: absolute;
  width: 360px; /* ~1.12 times 320px */
  height: 360px;
  border-radius: 50%;
  background-color: var(--accent-color);
  opacity: 0.12; /* 10% to 16% opacity */
  filter: blur(24px);
  z-index: 1;
}

@media (max-width: 1024px) {
  .portrait-ring-container {
    width: 280px;
    height: 280px;
    padding: 5px;
  }
  .portrait-inner-image {
    border-width: 5px;
  }
  .portrait-halo {
    width: 314px;
    height: 314px;
  }
}

@media (max-width: 640px) {
  .portrait-ring-container {
    width: 230px;
    height: 230px;
    padding: 5px;
  }
  .portrait-inner-image {
    border-width: 5px;
  }
  .portrait-halo {
    width: 258px;
    height: 258px;
  }
}

/* Guarantee Desktop Navbar Visibility on desktop screens */
@media (min-width: 768px) {
  .sticky-header nav.hidden.md\:flex,
  .sticky-header nav.hidden.lg\:flex,
  .sticky-header nav.md\:flex,
  .sticky-header nav.lg\:flex {
    display: flex !important;
  }
  .sticky-header div.hidden.md\:flex,
  .sticky-header div.hidden.lg\:flex,
  .sticky-header div.md\:flex,
  .sticky-header div.lg\:flex {
    display: flex !important;
  }
  .sticky-header #mobile-menu-btn {
    display: none !important;
  }
}

  .portrait-ring-container {
    width: 280px;
    height: 280px;
    padding: 5px;
  }
  .portrait-inner-image {
    border-width: 5px;
  }
  .portrait-halo {
    width: 314px;
    height: 314px;
  }
}

@media (max-width: 640px) {
  .portrait-ring-container {
    width: 230px;
    height: 230px;
    padding: 5px;
  }
  .portrait-inner-image {
    border-width: 5px;
  }
  .portrait-halo {
    width: 258px;
    height: 258px;
  }
}

/* ==========================================================================
   Services & Tourism Extensions - Editorial Navigation & Components
   ========================================================================== */

/* Dropdown Navigation Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 280px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background-color: var(--bg-primary);
  color: var(--accent-color);
}

.nav-dropdown-item-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.925rem;
  line-height: 1.3;
}

.nav-dropdown-item-desc {
  font-size: 0.775rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Featured Service Card & Editorial Grid */
.service-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.service-card-featured {
  border-color: rgba(138, 37, 51, 0.35);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%);
}

/* Pricing Package Cards */
.package-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: #C2BBB2;
}

.package-card-featured {
  border: 2px solid var(--accent-color);
  box-shadow: 0 16px 36px rgba(138, 37, 51, 0.09);
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF8 100%);
}

.badge-featured {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(138, 37, 51, 0.25);
}

/* Accordion Component (FAQ & Mobile Comparison) */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--accent-color);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-secondary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 1.25rem;
}

/* Interactive Inquiry Form Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(23, 23, 23, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0);
}

/* Sticky Conversion CTAs */
.sticky-desktop-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-desktop-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  z-index: 990;
  display: flex;
  gap: 0.75rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Category-Specific Themes & Visual Identity System
   ========================================================================== */

/* ==========================================================================
   Art-Directed Tourism Visual Identity & Navigation System
   ========================================================================== */

:root {
  --tourism-bg: #F5F2EA;
  --tourism-paper: #FBFAF6;
  --tourism-text: #10221C;
  --tourism-text-sub: #66716C;
  --tourism-green: #087356;
  --tourism-deep-green: #082D24;
  --tourism-forest: #0B3B30;
  --tourism-sand: #D8C9AF;
  --tourism-border: rgba(16, 34, 28, 0.12);
}

body.theme-tourism {
  background-color: var(--tourism-bg);
  color: var(--tourism-text);
}

/* 1. Navigation States & Contrast */
.sticky-header.nav-transparent-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
  transition: background 250ms ease, border-color 250ms ease, color 250ms ease;
}

.sticky-header.nav-transparent-hero .nav-logo-text,
.sticky-header.nav-transparent-hero .nav-link-custom {
  color: #FFFFFF !important;
}

.sticky-header.nav-transparent-hero .nav-link-custom:hover {
  color: #E2F5EE !important;
}

/* Scrolled Ivory Navigation Bar */
.sticky-header.nav-scrolled-ivory {
  position: fixed !index;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 248, 242, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(20, 40, 32, 0.08) !important;
  box-shadow: 0 4px 20px rgba(10, 25, 20, 0.04) !important;
  transition: background 250ms ease, border-color 250ms ease, color 250ms ease;
}

.sticky-header.nav-scrolled-ivory .nav-logo-text {
  color: #102820 !important;
}

.sticky-header.nav-scrolled-ivory .nav-link-custom {
  color: #3D4944 !important;
}

.sticky-header.nav-scrolled-ivory .nav-link-custom:hover {
  color: #087356 !important;
}

.sticky-header.nav-scrolled-ivory .nav-link-custom.active,
.sticky-header.nav-transparent-hero .nav-link-custom.active {
  position: relative;
}

/* Active Services Indicator (Short 20px Green Rule) */
.active-service-indicator {
  position: relative;
}

.active-service-indicator::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2.5px;
  background-color: #087356;
  border-radius: 2px;
}

.sticky-header.nav-transparent-hero .active-service-indicator::after {
  background-color: #39D39C;
}

/* 2. Hero Section Refinement */
.tourism-hero-art {
  position: relative;
  min-height: 720px;
  height: clamp(720px, 88vh, 960px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px; /* navbar height */
}

/* Carousel background image layers */
.th-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
  z-index: 0;
}

.th-carousel-img.active {
  opacity: 1;
}

/* Overlay system: horizontal gradient + bottom vignette */
.tourism-hero-overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* horizontal layer: dark left, fades right */
  background:
    linear-gradient(90deg,
      rgba(4,39,30,0.94) 0%,
      rgba(4,39,30,0.82) 36%,
      rgba(4,39,30,0.46) 65%,
      rgba(4,39,30,0.20) 100%),
    /* bottom vignette */
    linear-gradient(180deg, transparent 65%, rgba(4,39,30,0.30) 100%);
}

.tourism-hero-content-art {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Carousel dot indicators */
.th-carousel-dots {
  position: absolute;
  bottom: 28px;
  right: clamp(24px, 5vw, 64px);
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
}

.th-dot {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.30);
  cursor: pointer;
  transition: background 300ms ease, width 300ms ease;
  border: none;
  padding: 0;
}

.th-dot.active {
  background: rgba(255,255,255,0.92);
  width: 32px;
}

.th-dot:hover {
  background: rgba(255,255,255,0.60);
}

/* Bottom hero → ivory section fade */
.tourism-hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent 0%, rgba(4,39,30,0.18) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Floating Real UI Frame Mockup */
.ui-frame-browser {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ui-frame-header {
  background-color: #1A2823;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ui-circle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
}

/* Trust text strip with bullet separators */
.trust-strip-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-separator {
  color: #39D39C;
  font-size: 0.75rem;
}

/* 3. Numbered Vertical Editorial Storytelling (No Cards!) */
.editorial-story-item {
  border-top: 1px solid var(--tourism-border);
  padding: 3rem 0;
}

.editorial-story-number {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: #087356;
  font-family: 'Manrope', sans-serif;
}

.editorial-story-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #10221C;
  font-family: 'Manrope', sans-serif;
}

.editorial-story-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #66716C;
}

/* 4. Major Feature Panels & 2-Column List */
.feature-panel-art {
  background-color: var(--tourism-paper);
  border: 1px solid var(--tourism-border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-panel-art:hover {
  border-color: #087356;
}

.feature-list-row {
  border-bottom: 1px solid var(--tourism-border);
  padding: 1.25rem 0;
}

/* 5. Art-Directed Featured Pricing Card */
.package-card-tourism-business-art {
  background-color: #083D31 !important;
  color: #FFFFFF !important;
  border: 1px solid #1D7053 !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(8, 45, 36, 0.2) !important;
}

.package-card-tourism-business-art .text-price {
  color: #39D39C !important;
}

/* 6. Single Horizontal Route Timeline */
.timeline-route-container {
  background-color: #082D24;
  color: #FFFFFF;
  padding: 6rem 1.5rem;
}

.timeline-route-line-bar {
  position: absolute;
  top: 1.75rem;
  left: 5%;
  right: 5%;
  height: 2px;
  background-color: rgba(57, 211, 156, 0.3);
  z-index: 1;
}

.timeline-marker-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: #083D31;
  border: 2px solid #39D39C;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  position: relative;
  z-index: 2;
  margin-bottom: 1.25rem;
}

/* 7. Flat Line Zero-Radius Accordions */
.accordion-flat-item {
  border-bottom: 1px solid var(--tourism-border);
  padding: 1.5rem 0;
}

.accordion-flat-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.1875rem;
  font-weight: 700;
  color: #10221C;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}

.accordion-flat-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-top 0.3s ease;
  font-size: 1rem;
  color: #66716C;
  line-height: 1.6;
}

.accordion-flat-item.open .accordion-flat-content {
  max-height: 300px;
  padding-top: 1rem;
}

.accordion-flat-item.open .accordion-flat-trigger {
  color: #087356;
}


/* Mixed Bento Showcase Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-large {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .bento-large {
    grid-column: span 6;
  }
}

.bento-medium {
  grid-column: span 12;
}

@media (min-width: 640px) {
  .bento-medium {
    grid-column: span 6;
  }
}

@media (min-width: 1024px) {
  .bento-medium {
    grid-column: span 3;
  }
}

.bento-small {
  grid-column: span 12;
}

@media (min-width: 640px) {
  .bento-small {
    grid-column: span 6;
  }
}

.bento-card {
  background-color: #FAF8F4;
  border: 1px solid #E2DBD0;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: #1D7053;
  box-shadow: 0 16px 36px rgba(11, 46, 36, 0.08);
}

/* Tourism Featured Pricing Card (Forest Green) */
.package-card-tourism-featured {
  background-color: #0B2E24 !important;
  color: #F5F2EB !important;
  border: 2px solid #1D7053 !important;
  box-shadow: 0 20px 40px rgba(11, 46, 36, 0.25) !important;
}

.package-card-tourism-featured .text-brand-primary {
  color: #FFFFFF !important;
}

.package-card-tourism-featured .text-brand-secondary {
  color: #B5C9C1 !important;
}

.package-card-tourism-featured .border-brand-border {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.badge-gold {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
}

/* Route-Inspired Process Timeline */
.journey-timeline-wrapper {
  position: relative;
}

.journey-route-line {
  position: absolute;
  top: 2.25rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #1D7053 0, #1D7053 8px, transparent 8px, transparent 16px);
  z-index: 1;
}

@media (max-width: 1024px) {
  .journey-route-line {
    display: none;
  }
}

/* 2. E-COMMERCE THEME: "Modern Commerce" */
body.theme-commerce {
  background-color: #FAFAFA;
  color: #18181B;
}

body.theme-commerce .bg-brand-accent {
  background-color: #2563EB;
}

/* 3. BUSINESS THEME: "Professional Growth" */
body.theme-business {
  background-color: #F8FAFC;
  color: #0F172A;
}

body.theme-business .bg-brand-accent {
  background-color: #0284C7;
}

/* 4. WEB APPS THEME: "Systems & Products" */
body.theme-webapp {
  background-color: #0F172A;
  color: #F8FAFC;
}

body.theme-webapp .sticky-header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom-color: #334155;
}

body.theme-webapp .text-brand-primary {
  color: #F8FAFC;
}

body.theme-webapp .text-brand-secondary {
  color: #94A3B8;
}

body.theme-webapp .bg-brand-surface {
  background-color: #1E293B;
}

body.theme-webapp .border-brand-border {
  border-color: #334155;
}

body.theme-webapp .bg-brand-accent {
  background-color: #38BDF8;
  color: #0F172A;
}

/* 5. UI/UX THEME: "Product Thinking" */
body.theme-uiux {
  background-color: #FDFBF7;
  color: #1C1917;
}

body.theme-uiux .bg-brand-accent {
  background-color: #E11D48;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

/* ─── Two-Step Inquiry Wizard ─────────────────────────────────────── */

.inq-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(8, 24, 20, 0.54);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.inq-overlay.open {
  opacity: 1;
  visibility: visible;
}

.inq-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: min(90vh, 680px);
  background: #FBFAF6;
  border-radius: 16px;
  border: 1px solid rgba(16,35,29,0.09);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06), 0 24px 64px rgba(5,30,20,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(8px) scale(0.99);
  transition: transform 220ms cubic-bezier(0.22,1,0.36,1);
}

.inq-overlay.open .inq-dialog {
  transform: translateY(0) scale(1);
}

/* Header */
.inq-header {
  padding: 26px 28px 20px;
  border-bottom: 1px solid rgba(16,35,29,0.07);
  flex-shrink: 0;
  position: relative;
}

.inq-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #158263;
  margin-bottom: 4px;
}

.inq-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0F2118;
  line-height: 1.15;
  margin: 0 0 2px;
}

.inq-subtitle {
  font-size: 0.8125rem;
  color: #6E7E78;
  margin: 0;
}

.inq-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6E7E78;
  transition: background 140ms ease, color 140ms ease;
  cursor: pointer;
  background: transparent;
}

.inq-close:hover {
  background: rgba(16,35,29,0.06);
  color: #0F2118;
}

/* Package strip */
.inq-pkg-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 28px;
  background: #EEF8F4;
  border-bottom: 1px solid rgba(21,130,99,0.12);
  font-size: 0.8125rem;
  color: #10231D;
  flex-shrink: 0;
}

.inq-pkg-name {
  font-weight: 600;
}

.inq-pkg-price {
  font-weight: 700;
  color: #117A5B;
}

/* Step indicator */
.inq-step-indicator {
  font-size: 0.6875rem;
  color: #98A29E;
  font-weight: 500;
  padding: 10px 28px 0;
  flex-shrink: 0;
}

/* Step body */
.inq-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 28px 20px;
  -webkit-overflow-scrolling: touch;
}

.inq-step {
  display: none;
}

.inq-step.active {
  display: block;
}

/* Field group */
.inq-field {
  margin-bottom: 14px;
}

.inq-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #354740;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.inq-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid rgba(16,35,29,0.12);
  border-radius: 8px;
  font-size: 0.875rem;
  color: #10231D;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.inq-input:focus {
  outline: none;
  border-color: #158263;
  box-shadow: 0 0 0 3px rgba(21,130,99,0.08);
}

.inq-input::placeholder {
  color: #A8B4AE;
}

.inq-textarea {
  width: 100%;
  height: 90px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(16,35,29,0.12);
  border-radius: 8px;
  font-size: 0.875rem;
  color: #10231D;
  resize: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  font-family: inherit;
}

.inq-textarea:focus {
  outline: none;
  border-color: #158263;
  box-shadow: 0 0 0 3px rgba(21,130,99,0.08);
}

.inq-textarea::placeholder {
  color: #A8B4AE;
}

/* Error */
.inq-error {
  display: none;
  font-size: 0.8125rem;
  color: #B42318;
  background: #FFF4F2;
  border: 1px solid #FFD5CE;
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.inq-error.visible {
  display: block;
}

/* Footer */
.inq-footer {
  padding: 0 28px 22px;
  flex-shrink: 0;
}

.inq-btn-primary {
  width: 100%;
  height: 50px;
  background: #157D60;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease;
  font-family: inherit;
}

.inq-btn-primary:hover:not(:disabled) {
  background: #0F6C52;
}

.inq-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.inq-btn-back {
  background: none;
  border: none;
  font-size: 0.8125rem;
  color: #6E7E78;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-weight: 500;
  transition: color 120ms ease;
}

.inq-btn-back:hover {
  color: #0F2118;
}

.inq-footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.inq-footer-row.has-back {
  justify-content: space-between;
}

.inq-whatsapp-link {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #98A29E;
  margin-top: 10px;
  text-decoration: none;
}

.inq-whatsapp-link span {
  color: #158263;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Success view */
.inq-success {
  padding: 40px 28px 32px;
  text-align: center;
}

.inq-success-icon {
  width: 52px;
  height: 52px;
  background: #E6F8F1;
  color: #158263;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.inq-success h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: #0F2118;
  margin: 0 0 8px;
}

.inq-success p {
  font-size: 0.875rem;
  color: #6E7E78;
  margin: 0 0 28px;
  line-height: 1.5;
}

.inq-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inq-btn-wa {
  width: 100%;
  height: 48px;
  background: #157D60;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 140ms ease;
}

.inq-btn-wa:hover {
  background: #0F6C52;
}

.inq-btn-close-done {
  width: 100%;
  height: 44px;
  background: #EEF2EF;
  color: #354740;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 140ms ease;
}

.inq-btn-close-done:hover {
  background: #DDE8E2;
}

/* Mobile bottom sheet */
@media (max-width: 600px) {
  .inq-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .inq-dialog {
    width: 100%;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }

  .inq-overlay.open .inq-dialog {
    transform: translateY(0) scale(1);
  }

  .inq-header {
    padding: 22px 20px 16px;
  }

  .inq-pkg-strip {
    padding: 0 20px;
  }

  .inq-step-indicator {
    padding: 8px 20px 0;
  }

  .inq-body {
    padding: 14px 20px 16px;
  }

  .inq-footer {
    padding: 0 20px 24px;
  }
}

/* ==========================================================================
   ─── EDITORIAL OFFER BANNER (eo-*)  ─────────────────────────────────────
   Bespoke tourism editorial composition. No boxes, no tiles, no pill badge.
   Prefix: eo- (editorial offer) — no conflicts with legacy hero-offer-* rules.
   ========================================================================== */

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes eoBannerIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Live status dot — very slow breath, barely perceptible */
@keyframes eoLiveDot {
  0%, 65%, 100% { opacity: 1; }
  40%            { opacity: 0.25; }
}

/* Seconds digit — 2-3px upward micro-fade on digit change */
@keyframes eoSecIn {
  from { opacity: 0.35; transform: translateY(3px); }
  to   { opacity: 1;    transform: translateY(0); }
}

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.eo-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  transform: translateY(-34px);
  position: relative;
  z-index: 10;
  animation: eoBannerIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.12s;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.eo-card {
  position: relative;
  overflow: hidden;

  /* Editorial surface */
  background: #F5FAF7;
  border: 1px solid rgba(16, 74, 57, 0.14);
  border-left: 3px solid #157D60;
  border-radius: 14px;
  box-shadow:
    0 18px 45px rgba(12, 52, 41, 0.10),
    0 3px 10px rgba(12, 52, 41, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.60);

  /* Desktop: three-area grid — no explicit separators, whitespace creates grouping */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: 44px;
  align-items: center;
  min-height: 128px;
  padding: 22px 28px 22px 26px;
}

/* ── Topographic contour decoration ──────────────────────────────────────── */
.eo-topo {
  position: absolute;
  right: -2%;
  top: 0;
  width: 58%;
  height: 100%;
  opacity: 0.038;   /* ~3.5% — visible on close inspection, invisible to scanning eye */
  pointer-events: none;
  overflow: visible;
}

/* ── Zone 1: Offer copy ───────────────────────────────────────────────────── */
.eo-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* Eyebrow — inline editorial label, no pill, no background */
.eo-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #A66317;
  font-family: 'Manrope', sans-serif;
  margin-bottom: 8px;
}

.eo-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27A878;
  flex-shrink: 0;
  animation: eoLiveDot 4.5s ease-in-out infinite;
}

.eo-live-status {
  color: #5D6C66;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Savings — rank 1 visual element in the entire banner */
.eo-savings {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  color: #102B22;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 5px;
}

.eo-savings em {
  color: #157D60;
  font-style: normal;
  font-weight: 800;
}

/* Supporting text */
.eo-support {
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  color: #6D7974;
  line-height: 1.5;
  margin: 0;
}

/* ── Zone 2: Countdown rail ───────────────────────────────────────────────── */
.eo-timer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.eo-timer-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #809089;
  font-family: 'Manrope', sans-serif;
}

/* Continuous rail — no boxes, no tiles, no borders */
.eo-rail {
  display: flex;
  align-items: flex-start;  /* numbers & labels hang from the same top edge */
}

.eo-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 10px;
}

.eo-unit:first-child { padding-left: 0; }

/* Numbers — large, tabular, dark */
.eo-num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #102B22;
  font-family: 'Manrope', sans-serif;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Seconds fade — class toggled by JS enhancement on each digit change */
.eo-num.eo-sec-tick {
  animation: eoSecIn 190ms ease-out both;
}

/* Unit labels */
.eo-lbl {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #77857F;
  font-family: 'Manrope', sans-serif;
}

/* Separator dots between units — emerald at low opacity */
.eo-sep {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: rgba(21, 125, 96, 0.28);
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  align-self: flex-start;
  padding-top: 1px;   /* optical nudge to sit at numeral cap-height */
}

/* Campaign remaining-time progress line */
.eo-progress-track {
  height: 2px;
  background: rgba(21, 125, 96, 0.10);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.eo-progress-fill {
  height: 100%;
  width: 100%;          /* JS sets this to the remaining-time percentage */
  background: #157D60;
  border-radius: 2px;
  transition: width 1.1s linear;
}

/* ── Zone 3: CTA ──────────────────────────────────────────────────────────── */
.eo-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 185px;
}

/*
 * CTA button — arrow via CSS ::after so it survives JS doing:
 *   heroCTA.textContent = 'View Standard Packages'   (applyExpiredState)
 * textContent replaces DOM text nodes but pseudo-elements are CSS-only,
 * so ::after persists through the JS update.
 */
.eo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  background: #157D60;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
  box-shadow: 0 2px 10px rgba(21, 125, 96, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.eo-btn::after {
  content: '\00a0\2192'; /* non-breaking space + → */
  display: inline-block;
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.18s ease;
}

.eo-btn:hover {
  background: #0F6C52;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(21, 125, 96, 0.30);
}

.eo-btn:hover::after {
  transform: translateX(3px);
}

.eo-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(21, 125, 96, 0.20);
}

.eo-microcopy {
  font-size: 10.5px;
  font-family: 'Manrope', sans-serif;
  color: #84908B;
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
}

/* ── Prefers reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .eo-wrapper          { animation: none; }
  .eo-live-dot         { animation: none; }
  .eo-num.eo-sec-tick  { animation: none; }
  .eo-progress-fill    { transition: none; }
  .eo-btn,
  .eo-btn::after       { transition: none; }
}

/* ── JS hide utility (scoped — must not override Tailwind responsive classes) */
.hidden:not(.md\:flex):not(.lg\:flex):not(.md\:block):not(.lg\:block):not(.md\:inline-flex):not(.lg\:inline-flex) {
  display: none !important;
}

/* ── Package Saving Badge ─────────────────────────────────────────────────── */
.pkg-saving-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #147357;
  background: #E6F3EE;
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}

/* ── Scope Notes ──────────────────────────────────────────────────────────── */
.scope-notes-block {
  background: #F7F4EF;
  border: 1px solid rgba(16,34,28,0.08);
  border-radius: 12px;
  padding: 24px;
}

.scope-notes-header { margin-bottom: 18px; }

.scope-notes-title {
  font-size: 1rem;
  font-weight: 700;
  color: #10221C;
  font-family: 'Manrope', sans-serif;
  margin-bottom: 4px;
}

.scope-notes-intro {
  font-size: 0.8125rem;
  color: #66716C;
  line-height: 1.55;
}

.scope-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}

.scope-note-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid rgba(16,34,28,0.08);
}

.scope-note-label {
  font-size: 12px;
  font-weight: 700;
  color: #10221C;
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scope-note-text {
  font-size: 12px;
  color: #66716C;
  line-height: 1.55;
}

/* ── Responsive: Tablet (768–1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .eo-card {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "copy  copy"
      "timer cta";
    gap: 18px 28px;
    min-height: auto;
    padding: 22px 24px;
  }

  .eo-copy    { grid-area: copy; }
  .eo-timer   { grid-area: timer; }
  .eo-actions { grid-area: cta; align-self: center; min-width: 0; align-items: stretch; }

  .eo-topo { width: 72%; }

  .eo-btn { justify-content: center; }
  .eo-microcopy { text-align: center; }
}

/* ── Responsive: Mobile (<768px) ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .eo-wrapper {
    padding: 0 12px;
    transform: translateY(-20px);
  }

  .eo-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 17px 16px 18px;
    border-radius: 12px;
    min-height: auto;
  }

  .eo-topo { width: 100%; opacity: 0.025; }

  .eo-savings { font-size: 24px; }

  .eo-unit  { padding: 0 8px; }
  .eo-unit:first-child { padding-left: 0; }

  .eo-num   { font-size: 22px; }
  .eo-sep   { font-size: 18px; }

  .eo-actions { align-items: stretch; }
  .eo-btn { justify-content: center; }
  .eo-microcopy { text-align: center; }

  .scope-notes-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ── Responsive: Small mobile (<375px) ───────────────────────────────────── */
@media (max-width: 374px) {
  .eo-unit    { padding: 0 5px; }
  .eo-num     { font-size: 19px; }
  .eo-sep     { font-size: 15px; }
  .eo-savings { font-size: 21px; }
}

/* ── Responsive: Very small (<320px) ─────────────────────────────────────── */
@media (max-width: 319px) {
  .eo-unit { padding: 0 4px; }
  .eo-num  { font-size: 16px; letter-spacing: 0; }
  .eo-sep  { font-size: 12px; }
}
