@import "tailwindcss";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *):not(.escape-dark, .escape-dark *));
/* Descendants of .escape-dark (light token island inside .dark) — use escape-dark:* utilities */
@custom-variant escape-dark (.escape-dark &);

:root {
  font-family: "AktivGroteskEx", sans-serif;
  --font-primary: "AktivGroteskEx", sans-serif;
  --font-secondary: "AktivGroteskEx", sans-serif;

  --altour-navy: #0A172E;
  --altour-blue: #0f3357;
  --altour-sea: #b3d5dd;
  --altour-neon: #00EDFF; 
  --altour-air: #e0f5f5;
  --altour-cloud: #f7f7f4;
  --altour-stone: #f5f3e3;

  --background: var(--altour-navy);
  --foreground: var(--altour-cloud);
  --card: var(--altour-navy);
  --card-foreground: var(--altour-stone);
  --popover: var(--altour-neon);
  --popover-foreground: var(--altour-navy);
  --primary: var(--altour-blue);
  --primary-foreground: var(--altour-neon);
  --secondary: var(--altour-navy);
  --secondary-foreground: var(--altour-neon);
  --muted: var(--altour-navy);
  --muted-foreground: var(--altour-stone);
  --accent: var(--altour-neon);
  --accent-foreground: var(--altour-navy);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: var(--altour-navy);
  --foreground: var(--altour-cloud);
  --card: var(--altour-navy);
  --card-foreground: var(--altour-stone);
  --popover: var(--altour-neon);
  --popover-foreground: var(--altour-navy);
  --primary: var(--altour-neon);
  --primary-foreground: var(--altour-blue);
  --secondary: var(--altour-navy);
  --secondary-foreground: var(--altour-neon);
  --muted: var(--altour-navy);
  --muted-foreground: var(--altour-stone);
  --accent: var(--altour-neon);
  --accent-foreground: var(--altour-navy);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

/* Reset to light theme variables inside .escape-dark (even when nested under .dark) */
.dark .escape-dark {
  --background: var(--altour-navy);
  --foreground: var(--altour-cloud);
  --card: var(--altour-navy);
  --card-foreground: var(--altour-stone);
  --popover: var(--altour-neon);
  --popover-foreground: var(--altour-navy);
  --primary: var(--altour-blue);
  --primary-foreground: var(--altour-neon);
  --secondary: var(--altour-navy);
  --secondary-foreground: var(--altour-neon);
  --muted: var(--altour-navy);
  --muted-foreground: var(--altour-stone);
  --accent: var(--altour-neon);
  --accent-foreground: var(--altour-navy);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-altour-navy: var(--altour-navy);
  --color-altour-blue: var(--altour-blue);
  --color-altour-sea: var(--altour-sea);
  --color-altour-air: var(--altour-air);
  --color-primary-cloud: var(--primary-cloud);
  --color-primary-stone: var(--primary-stone, #f5f3e3);
  --color-altour-neon: var(--altour-neon, #00edff);
  --spacing-horizontal: var(--horizontal-spacing);
  --spacing-horizontal-mobile: var(--horizontal-spacing-mobile);
  --font-heading-double: var(--font-heading-double);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}

/* Reusable bullet list: small solid circle (e.g. CardOffer, rich text).
   HubSpot rich text often injects <p style="line-height:1.5">; force body leading. */
.prose-bullets-circle :where(p, li) {
  line-height: 1.25 !important;
}

.prose-bullets-circle ul {
  list-style: none;
  padding-left: 0;
}
.prose-bullets-circle ul li {
  position: relative;
  padding-left: 1.25rem;
}
.prose-bullets-circle ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: currentColor;
}
.prose-bullets-circle ul li + li {
  margin-top: 0.375rem;
}

/*
  Tailwind Preflight (bundled with @import "tailwindcss") sets ul, ol { list-style: none }.
  That hides bullets in HubSpot’s built-in Rich Text module (no .prose-bullets-circle).
  Restore normal list markers; padding gives room so markers don’t sit in the column gutter.
*/
.hs_cos_wrapper_type_rich_text ul,
form .hs-richtext ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1.5rem;
}
.hs_cos_wrapper_type_rich_text ol,
form .hs-richtext ol {
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 1.5rem;
}
.hs_cos_wrapper_type_rich_text ul ul,
form .hs-richtext ul ul {
  list-style-type: circle;
}
.hs_cos_wrapper_type_rich_text ul ul ul,
form .hs-richtext ul ul ul {
  list-style-type: square;
}

/* Explore module Swiper: Creative Effect – navy slides, same horizontal line */
.explore-swiper.swiper {
  overflow: hidden;
  padding-left: 8px;
  padding-right: 8px;
}
.explore-swiper .swiper-wrapper {
  align-items: center;
}
.explore-swiper .swiper-slide {
  background-color: var(--altour-navy, #0c1833);
  transform-origin: center center;
  height: auto;
  z-index: 0;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}
.explore-swiper .swiper-slide-active {
  z-index: 1;
}
/* Inactive slides >1 step from active: fully hidden (override Swiper inline opacity) */
.explore-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Inactive slides ±1 from active: full opacity, 80% brightness (smooth transition) */
.explore-swiper .swiper-slide .card-explore {
  transition: filter 0.5s ease;
}
.explore-swiper .swiper-slide-prev .card-explore,
.explore-swiper .swiper-slide-next .card-explore {
  filter: brightness(0.8);
}
/* Swiper container: sm = current, md = max 80%, lg = max 680px */
.explore-swiper-container {
  position: relative;
  padding-bottom: 2.5rem;
  width: 100%;
}
@media (min-width: 768px) {
  .explore-swiper-container {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 1024px) {
  .explore-swiper-container {
    max-width: 680px;
  }
}

.explore-swiper-pagination .swiper-pagination-bullet {
  margin: 0;
  background: var(--accent);
  opacity: 0.4;
}
.explore-swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ReviewCarousel: one slide visible, dot pagination (sky) */
.review-carousel-swiper-container {
  position: relative;
  padding-bottom: 2.5rem;
  width: 100%;
}
.review-carousel-swiper .swiper-slide {
  width: 100%;
  height: auto;
}
.review-carousel-swiper-pagination .swiper-pagination-bullet {
  margin: 0;
  width: 12px;
  height: 12px;
  background: transparent;
  border: 2px solid var(--altour-navy, #0c1833);
  opacity: 1;
}
.review-carousel-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--altour-navy, #0c1833);
}

/* FeatureCarousel: full-screen slides, white dot pagination */
.feature-carousel-pagination .swiper-pagination-bullet {
  margin: 0;
  width: 12px;
  height: 12px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  opacity: 1;
}
.feature-carousel-pagination .swiper-pagination-bullet-active {
  background: #fff;
  border-color: #fff;
}

/* Reserve space for absolute header (90px below md / 120px md+) when header present */
.body-wrapper:has(.header-widget) .body-container-wrapper {
  padding-top: 90px;
}
@media (min-width: 768px) {
  .body-wrapper:has(.header-widget) .body-container-wrapper {
    padding-top: 120px;
  }
}

.header-drawer__backdrop {
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.header-widget--drawer-open .header-drawer__backdrop {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 768px) {
  .header-drawer__backdrop {
    top: 120px;
  }
}

/* Drawer: when closed, move up + right (off-screen) so it doesn't block DND; vertical movement 0s so it doesn't interfere with UI */
.header-drawer {
  position: fixed;
  top: -100vh;
  right: 0;
  height: calc(100vh - 90px);
  width: 100%;
  z-index: 95;
  background-color: var(--altour-navy, #0c1833);
  transform: translateX(100%);
  transition:
    transform 0.3s ease,
    top 0s;
  overflow-y: auto;
  pointer-events: none;
}
.header-drawer--open {
  top: 90px;
  transform: translateX(0);
  pointer-events: auto;
}
@media (min-width: 768px) {
  .header-drawer {
    height: calc(100vh - 120px);
    width: 60%;
  }
  .header-drawer--open {
    top: 120px;
  }
}
@media (min-width: 1024px) {
  .header-drawer {
    width: 30%;
  }
}

/* Hamburger: reset theme button styles so it stays transparent (theme-overrides applies button_bg_color to all button) */
.header-burger,
.header-burger:hover,
.header-burger:focus,
.header-burger:active {
  background-color: transparent;
  border: none;
  color: inherit;
  padding: 0;
  margin: 0;
}

/* Hamburger: 60x40, no padding, stone, bold 3 lines → X when open */
.header-burger__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  width: 60px;
}
.header-burger__line {
  display: block;
  width: 60px;
  height: 1px;
  flex-shrink: 0;
  background-color: var(--primary-stone, #f5f3e3);
  border-radius: 0;
  transform-origin: center;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}
.header-widget--drawer-open .header-burger__box {
  position: relative;
  justify-content: center;
}
.header-widget--drawer-open .header-burger__line:nth-child(1) {
  position: absolute;
  top: 50%;
  left: 0;
  margin: 0;
  transform: translateY(-50%) rotate(45deg);
}
.header-widget--drawer-open .header-burger__line:nth-child(2) {
  opacity: 0;
}
.header-widget--drawer-open .header-burger__line:nth-child(3) {
  position: absolute;
  top: 50%;
  left: 0;
  margin: 0;
  transform: translateY(-50%) rotate(-45deg);
}

.vimeo-embed iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}