/* JUBILEE SA CONSTRUCTION — SWISS DARK PALETTE OVERRIDE (Heizer Aesthetic) */
:root,
body.cs_dark {
  --white-color: #ffffff;
  --accent-color: #ed1c24 !important;
  --dark-body: #141518 !important;
  --dark-surface: #1a1c20 !important;
  --dark-surface-2: #08080a !important;
  --dark-ink: #ffffff !important;
  --primary-color: #ffffff;
  --secondary-color: rgba(255, 255, 255, 0.78);
  --gray-color1: rgba(255, 255, 255, 0.62);
  --gray-color2: #ed1c24;
  --gray-color3: rgba(255, 255, 255, 0.12);
  --gray-color5: #1a1c20;
  --gray-color6: rgba(255, 255, 255, 0.72);
}

html, body, body.cs_dark {
  background-color: #141518 !important;
  color: rgba(255, 255, 255, 0.84) !important;
  overflow-x: clip !important;
}

/* Remove template theme switcher & speed up entry */
.cs_switcher,
.cs_preloader {
  display: none !important;
}

/* Subtle analog film grain */
.gs-grain {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header & Brand Lockup (NO backdrop-filter so position:fixed mobile drawer isn't trapped!) */
.cs_site_header_style_1 {
  background: rgba(20, 21, 24, 0.97) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cs_dark .cs_nav .cs_nav_list_wrap {
  background-color: #141518 !important;
  z-index: 1001 !important;
}
.cs_dark .cs_nav .cs_nav_list_wrap.active {
  inset-inline-start: 0 !important;
}
.cs_footer_style_1 .cs_text_widget .cs_btn_style_1 {
  position: static !important;
  transform: none !important;
}
.cs_scrollup {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.cs_scrollup svg {
  position: relative;
  z-index: 2;
  transform: none !important;
}
.cnt-form input,
.cnt-form select,
.cnt-form textarea {
  background: #1a1c20 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.cnt-form input::placeholder,
.cnt-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.56) !important;
}
.cs_site_header_style_1.cs_sticky_active {
  background: #141518 !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55) !important;
}
.jb-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.jb-swiss-mark {
  width: 38px;
  height: 38px;
  background: #ed1c24;
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}
.jb-swiss-mark::before,
.jb-swiss-mark::after {
  content: '';
  position: absolute;
  background: #ffffff;
}
.jb-swiss-mark::before {
  top: 50%;
  left: 26%;
  right: 26%;
  height: 4px;
  transform: translateY(-50%);
}
.jb-swiss-mark::after {
  left: 50%;
  top: 26%;
  bottom: 26%;
  width: 4px;
  transform: translateX(-50%);
}
.jb-brand-text {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Primary Buttons: Crisp White on Swiss Red */
.cs_accent_bg,
.cs_btn_style_1.cs_accent_bg {
  background-color: #ed1c24 !important;
  color: #ffffff !important;
  border-color: #ed1c24 !important;
  box-shadow: 0 10px 26px rgba(237, 28, 36, 0.28);
}
.cs_btn_style_1.cs_accent_bg:hover {
  background-color: #2c2e33 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}
.cs_btn_style_2 {
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}
.cs_btn_style_2:hover {
  background-color: #ed1c24 !important;
  border-color: #ed1c24 !important;
  color: #ffffff !important;
}

/* Architectural Shadows & Contrast */
.cs_cta_style_1,
.cs_card_style_3,
.cs_card_style_4,
.cs_card_style_2,
.cs_iconbox_style_2,
.cs_testimonial_style_2,
.cs_card_style_5,
.cs_counter_wrapper_style_1 {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48), 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}
.cs_card_style_5,
.cs_counter_wrapper_style_1 {
  background-color: #08080a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.cs_card_style_3 .cs_category {
  background-color: #ed1c24 !important;
  color: #ffffff !important;
}
.cs_iconbox_style_2 .cs_iconbox_icon {
  background-color: #ed1c24 !important;
}
.cs_iconbox_style_2 .cs_iconbox_icon img {
  filter: brightness(0) invert(1) !important;
}
.cs_iconbox_style_1 .cs_iconbox_icon img {
  filter: hue-rotate(-52deg) saturate(2.4) brightness(0.95) !important;
}

/* Video tile inside Hero collage */
.cs_hero_thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs_hero_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs_cta_overlay {
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.12) 0%, rgba(8, 8, 10, 0.82) 100%) !important;
}

/* Partner strip badges */
.jb-partner-pill {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1c20;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* Mobile Polish & iOS Safe Inputs */
@media (max-width: 991px) {
  .cs_hero {
    padding-top: 96px !important;
  }
  .cs_hero_title {
    font-size: clamp(28px, 7.2vw, 40px) !important;
  }
  .cs_fs_56 {
    font-size: clamp(26px, 6.8vw, 36px) !important;
  }
  .cs_card_style_5 {
    margin: 16px 0 0 !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
  }
  input, select, textarea, .cs_form_field {
    font-size: 16px !important;
  }
}
