/* ============================================================
   _stat-card.css — STAT CARD COMPONENT (V4 Atomic compatible)

   Adapts to Elementor V4's actual DOM output:
   - Value/label can be Containers wrapping <span>, OR direct <span>
   - Icon can be Image widget OR Icon widget (svg)
   - Handles all variations cleanly
   ============================================================ */

.bee-stat-card {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--bee-space-2xs);
  padding: var(--bee-space-md) !important;
  border-radius: var(--bee-radius-lg) !important;
  background: var(--bee-surface-glass);
  border: 1px solid var(--bee-surface-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform var(--bee-duration-base) var(--bee-ease-out),
    border-color var(--bee-duration-base) var(--bee-ease-out),
    background var(--bee-duration-base) var(--bee-ease-out);
}

.bee-stat-card:hover {
  transform: translateY(-3px);
  background: var(--bee-surface-glass-hover);
  border-color: var(--bee-surface-border-strong);
}

/* ============================================
   ICON CONTAINER
   Works with: Icon widget (svg) OR Image widget
   ============================================ */

.bee-stat-card .bee-stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--bee-radius-md);
  margin-bottom: var(--bee-space-xs);
  flex-shrink: 0;
  width: 84px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  overflow: hidden;
}

/* Icon widget output (svg inside elementor wrappers) */
.bee-stat-card__icon .elementor-widget-icon,
.bee-stat-card__icon .elementor-icon-wrapper,
.bee-stat-card__icon .elementor-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.bee-stat-card .bee-stat-card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Image widget output (logo PNG/SVG) */
.bee-stat-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* When icon container has a logo, allow more space */


.bee-stat-card__icon.has-logo img {
  object-fit: contain;
}

/* ============================================
   VALUE — works whether it's a Container with span,
   or a direct heading/span
   ============================================ */

.bee-stat-card__value {
  font-size: var(--bee-text-lg);
  font-weight: 700;
  color: #fff;
  line-height: var(--bee-leading-tight);
  letter-spacing: var(--bee-tracking-tight);
  margin: 0;
  padding: 0 !important;
  display: block !important;

}

/* When value is a Container wrapping a span — make span inherit */
.bee-stat-card__value>span,
.bee-stat-card__value .e-paragraph-base {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  display: block;
  text-align: center;
}

/* Strip <strong> styling — looks the same as parent */
.bee-stat-card__value strong {
  font-weight: inherit;
  color: inherit;
}

/* ============================================
   LABEL — same flexible approach
   ============================================ */

.bee-stat-card .bee-stat-card__label {
  font-size: var(--bee-text-sm);
  font-weight: 500;
  color: var(--bee-text-muted);
  line-height: var(--bee-leading-snug);
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
  display: block;
}

.bee-stat-card__label>span,
.bee-stat-card__label .e-paragraph-base {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  display: block;
}

.bee-stat-card__label strong {
  font-weight: inherit;
  color: inherit;
}

/* ============================================
   TONE VARIANTS — colored icon background + accent
   ============================================ */

.bee-stat-card--gold .bee-stat-card__icon {
  background: rgba(255, 219, 27, 0.12);
  border: 1px solid rgba(255, 219, 27, 0.25);
}

.bee-stat-card--gold .bee-stat-card__icon svg {
  fill: var(--bee-gold-light);
  color: var(--bee-gold-light);
}

.bee-stat-card--teal .bee-stat-card__icon {
  background: rgba(93, 202, 165, 0.12);
  border: 1px solid rgba(93, 202, 165, 0.25);
}

.bee-stat-card--teal .bee-stat-card__icon svg {
  fill: var(--bee-teal);
  color: var(--bee-teal);
}

.bee-stat-card--blue .bee-stat-card__icon {
  background: rgba(127, 212, 255, 0.12);
  border: 1px solid rgba(127, 212, 255, 0.25);
}

.bee-stat-card--blue .bee-stat-card__icon svg {
  fill: var(--bee-blue);
  color: var(--bee-blue);
}

.bee-stat-card--pink .bee-stat-card__icon {
  background: rgba(212, 83, 126, 0.12);
  border: 1px solid rgba(212, 83, 126, 0.25);
}

.bee-stat-card--pink .bee-stat-card__icon svg {
  fill: #D4537E;
  color: #D4537E;
}



/* ============================================================
   _why.css — WHY/INTRO SECTION

   "Real diving. Real instructors. Right here in the Caribbean."

   Layout: image left + content right + 2x2 stats grid
   Adapted to Elementor V4 Atomic's actual DOM output:
     - Containers wrap text in <span class="e-paragraph-base">
     - Headings sometimes wrapped in extra Containers
     - Image widgets have their own wrapper structure

   Section-specific styling scoped under .why-section.
   Reusable components (chip, stat-card) NOT redefined here.
   ============================================================ */


/* ============================================
   SECTION WRAPPER
   ============================================ */
.why-section {
  position: relative;
  padding: var(--bee-space-section) 0;
  background: var(--bee-dark);
  color: var(--bee-text);
  overflow: hidden;
}

/* Background glow — decorative ambient light layer */
.why-section .bee-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(255, 219, 27, 0.06), transparent 70%),
    radial-gradient(ellipse 500px 400px at 80% 70%, rgba(127, 212, 255, 0.05), transparent 70%);
  z-index: 0;
}

/* Inner wrapper above the glow */
.why-section .bee-container {
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================
   2-COLUMN GRID — image left, content right
   ============================================ */
.why-section .why-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: var(--bee-space-xl);
  align-items: center;
  width: 100%;
  padding: 0 !important;
}


/* ============================================
   LEFT COLUMN — IMAGE
   ============================================ */
.why-section .why-image .elementor-widget-image {

  border-radius: var(--bee-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--bee-shadow-lg);
  width: 100%;
}

.why-section .why-image {
  position: relative;
  padding: 0 !important;
}

/* The image widget itself + the img inside */
.why-section .why-image .elementor-widget-image,
.why-section .why-image .elementor-widget-image>div {
  width: 100%;
  height: 100%;
}

.why-section .why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Live tag — bee-chip variant positioned over the image */
.why-section .why-image .bee-chip--live {
  position: absolute;
  top: var(--bee-space-sm);
  left: var(--bee-space-sm);
  display:none !important;
}


.why-section .why-image .bee-chip--live>span {
  z-index: 2;
  display: inline-flex;
  align-items: center !important;
  gap: var(--bee-space-2xs);
  padding: 0.5em 1.25em;
  border-radius: var(--bee-radius-pill);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--bee-tracking-widest);
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--bee-gold-border);
  box-shadow: 0 0 0 1px rgba(255, 219, 27, 0.08), 0 4px 24px var(--bee-gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}


/* ============================================
   RIGHT COLUMN — CONTENT
   ============================================ */
.why-section .why-content {
  display: flex;
  flex-direction: column;
  gap: var(--bee-space-md);
  width: 100%;
  padding: 0 !important;
}

/* The eyebrow chip — alignment + spacing */
.why-section .why-content .bee-chip {
  align-self: flex-start;
  margin: 0 0 20px 0;
}


/* ============================================
   TITLE
   Handles both: direct heading widget AND wrapped-in-container heading
   ============================================ */
.why-section .why-content__title .elementor-heading-title,
.why-section .why-content>.elementor-element .why-content__title .elementor-heading-title,
.why-section .why-content .elementor-widget-heading.why-content__title .elementor-heading-title {
  font-size: clamp(2rem, 4vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #fff;
  margin: 0 0 20px 0;
  padding: 0;
}


/* Strip extra container wrapping if present */
.why-section .why-content>.e-con:has(.why-content__title) {
  padding: 0;
  margin: 0;
}


/* ============================================
   DESCRIPTION
   ============================================ */
.why-section .why-content__desc {
  font-size: var(--bee-text-lg);
  line-height: var(--bee-leading-relaxed);
  color: var(--bee-text-muted);
  max-width: 540px;
  margin: 0;
  padding: 0;
}


/* ============================================
   STATS GRID — 2x2 of stat cards
   ============================================ */
.why-section .why-stats {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bee-space-sm);
  margin-top: var(--bee-space-md);
  width: 100%;
  padding: 0 !important;
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet: stack the 2-column grid */
@media (max-width: 900px) {
  .why-section .why-grid {
    grid-template-columns: 1fr;
    gap: var(--bee-space-lg);
  }

  .why-section .why-image {
    aspect-ratio: 10 / 10;
    max-height: 420px;
  }

  .why-section .why-content__desc {
    max-width: none;
  }
}

/* Phone: collapse stats to single column */
@media (max-width: 480px) {
  .why-section .why-section {
    padding: var(--bee-space-2xl) 0;
  }

  .why-section .why-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bee-space-2xs);
  }

  .why-section .why-content {
    gap: var(--bee-space-sm);
  }

  .why-section .why-content__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
}