/*
 * Bunsen Homepage v2
 * Colours via Elementor global CSS vars:
 *   --e-global-color-primary:   #000000
 *   --e-global-color-secondary: #FFFFFF
 *   --e-global-color-accent:    #C1272E
 *   --e-global-color-92ddbd1:   #1E1C1C (Grey)
 *   --e-global-color-ba69821:   #FAF8F3 (Cream)
 */

/* ==========================================
   Hero
   ========================================== */

.hero {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}

/* ==========================================
   Desktop tabs nav
   ========================================== */

.bunsen-tabs-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (min-width: 768px) {
  .bunsen-tabs-nav { display: flex; }
}

.bunsen-tabs-logo {
  display: block;
  width: 140px;
  height: auto;
  flex-shrink: 0;
}

.bunsen-tabs-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.bunsen-tabs-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bunsen-tab {
  font-family: var(--e-global-typography-d991d51-font-family, 'Caslon Doric', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--e-global-color-secondary);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.bunsen-tab:hover,
.bunsen-tab.is-active {
  border-bottom-color: var(--e-global-color-secondary);
}

/* ==========================================
   Desktop sections
   (show/hide injected inline via wp_add_inline_style)
   ========================================== */

.bunsen-sections-wrap {
  flex: 1;
}

/* ==========================================
   Mobile carousel
   ========================================== */

.bunsen-mobile-nav {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.bunsen-carousel-title {
  font-family: var(--e-global-typography-d991d51-font-family, 'Caslon Doric', sans-serif);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--e-global-color-secondary);
  text-align: center;
  padding: 28px 24px 12px;
  min-height: 80px;
}

.bunsen-carousel-dots {
  display: flex;
  justify-content: center;
  padding: 0 24px 16px;
}

.bunsen-carousel-dots .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: var(--e-global-color-secondary);
  opacity: 0.35;
  margin: 0 4px;
  border-radius: 50%;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bunsen-carousel-dots .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.4);
}

.bunsen-carousel {
  overflow: hidden;
  width: 100%;
}

.bunsen-carousel .swiper-slide { width: 100%; }

/* ==========================================
   Mobile header (fixed)
   ========================================== */

.bunsen-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--bunsen-header-h, 56px);
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

@media (min-width: 768px) {
  .bunsen-mobile-header { display: none; }
}

.bunsen-mobile-logo {
  display: block;
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.bunsen-mobile-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hamburger */
.bunsen-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
}

.bunsen-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--e-global-color-secondary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.bunsen-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bunsen-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bunsen-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   Off-canvas
   ========================================== */

.bunsen-offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 290;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bunsen-offcanvas-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.bunsen-offcanvas {
  position: fixed;
  top: var(--bunsen-header-h, 56px);
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--e-global-color-primary);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.bunsen-offcanvas.is-open { transform: translateX(0); }

@media (min-width: 768px) {
  .bunsen-offcanvas,
  .bunsen-offcanvas-overlay { display: none; }
}

.bunsen-offcanvas-nav {
  list-style: none;
  margin: 0;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.bunsen-offcanvas-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.bunsen-offcanvas-nav li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.bunsen-offcanvas-nav a {
  display: block;
  font-family: var(--e-global-typography-d991d51-font-family, 'Caslon Doric', sans-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--e-global-color-secondary);
  text-decoration: none;
  padding: 18px 0;
  transition: color 0.2s ease;
}

.bunsen-offcanvas-nav a:hover { color: var(--e-global-color-accent); }

/* ==========================================
   Mobile adjustments
   ========================================== */

@media (max-width: 767px) {
  body.offcanvas-open { overflow: hidden; }
}
