/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
*/

/* ── Header: fixed overlay that fades from dark-tint → white on scroll ── */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.35) !important;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.wrt-scrolled {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Logo: fixed height, hide redundant text title */
.site-header .custom-logo {
  height: 55px !important;
  width: auto !important;
}
.site-header .site-title,
.site-header .site-description {
  display: none !important;
}

/* White nav links over the dark-tinted hero */
.site-header:not(.wrt-scrolled) .menu a,
.site-header:not(.wrt-scrolled) .site-navigation-toggle {
  color: #ffffff !important;
}
/* Restore brand nav colours once opaque */
.site-header.wrt-scrolled .menu a {
  color: var(--e-global-color-primary, #1B6CA8) !important;
}

/* ── Full-screen hero — header is fixed, no margin adjustment needed ── */
.wrt-hero-fullscreen {
  margin-top: 0;
}

/* ── Homepage: Featured Excursions — lock columns to equal thirds ── */
.elementor-element-hp-exc-inner .elementor-col-33 {
  flex: 0 0 33.333% !important;
  width: 33.333% !important;
  max-width: 33.333% !important;
}
.elementor-element-hp-exc-inner .elementor-col-34 {
  flex: 0 0 33.334% !important;
  width: 33.334% !important;
  max-width: 33.334% !important;
}

/* ── Homepage: Featured Excursions card images — uniform 220px height ── */
.elementor-element-hp-exc-inner .elementor-image-box-img,
.elementor-element-hp-exc-inner .elementor-image-box-img a {
  display: block !important;
  width: 100% !important;
}
.elementor-element-hp-exc-inner .elementor-image-box-img {
  height: 220px !important;
  overflow: hidden !important;
}
.elementor-element-hp-exc-inner .elementor-image-box-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ── Mobile nav dropdown: restore dark text (out-specifics the white hero rule) ── */
.site-header .site-navigation-dropdown .menu a {
  color: #333333 !important;
}
.site-header .site-navigation-dropdown .menu a:hover {
  color: var(--e-global-color-primary, #1B6CA8) !important;
}

/* ── Mobile: unblock column stacking that !important rules prevented ── */
@media (max-width: 767px) {
  /* Homepage excursion cards: stack full-width */
  .elementor-element-hp-exc-inner .elementor-col-33,
  .elementor-element-hp-exc-inner .elementor-col-34 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  /* CTA banners: centre both buttons when columns stack */
  [data-id="hp-cta-inner"] .elementor-widget-button,
  [data-id="ex-cta-inner"] .elementor-widget-button,
  [data-id="au-cta-inner"] .elementor-widget-button,
  [data-id="tr-cta-inner"] .elementor-widget-button {
    text-align: center !important;
  }
  /* Excursions page: reduce image height on small screens */
  [data-id="ex-food"] .elementor-widget-image,
  [data-id="ex-catamaran-cerfs"] .elementor-widget-image,
  [data-id="ex-dolphins"] .elementor-widget-image,
  [data-id="ex-south"] .elementor-widget-image,
  [data-id="ex-le-morne"] .elementor-widget-image,
  [data-id="ex-north"] .elementor-widget-image {
    height: 240px !important;
  }
}

/* ── Excursions page: uniform 400px image height across all sections ── */
[data-id="ex-food"] .elementor-widget-image,
[data-id="ex-catamaran-cerfs"] .elementor-widget-image,
[data-id="ex-dolphins"] .elementor-widget-image,
[data-id="ex-south"] .elementor-widget-image,
[data-id="ex-le-morne"] .elementor-widget-image,
[data-id="ex-north"] .elementor-widget-image {
  height: 400px !important;
  overflow: hidden !important;
}
[data-id="ex-food"] .elementor-widget-image img,
[data-id="ex-catamaran-cerfs"] .elementor-widget-image img,
[data-id="ex-dolphins"] .elementor-widget-image img,
[data-id="ex-south"] .elementor-widget-image img,
[data-id="ex-le-morne"] .elementor-widget-image img,
[data-id="ex-north"] .elementor-widget-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ── Testimonials: force equal-height cards then pin attribution to bottom ── */

/* 1. Force the flex row to stretch all columns to equal height */
.elementor-element-hp-test-inner > .elementor-container {
  align-items: stretch !important;
}

/* 2. Make each column a flex column so it fills the stretched height */
[data-id="hp-test-c1"],
[data-id="hp-test-c2"],
[data-id="hp-test-c3"] {
  display: flex !important;
  flex-direction: column !important;
}

/* 3. Widget-wrap fills the full column height */
[data-id="hp-test-c1"] .elementor-widget-wrap,
[data-id="hp-test-c2"] .elementor-widget-wrap,
[data-id="hp-test-c3"] .elementor-widget-wrap {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 4. Quote widget grows — pushes attribution to bottom */
[data-id="hp-test-quote1"],
[data-id="hp-test-quote2"],
[data-id="hp-test-quote3"] {
  flex: 1 !important;
}

/* ── Testimonials: mobile — stack cards full-width with gap ── */
@media (max-width: 767px) {
  .elementor-element-hp-test-inner .elementor-col-33,
  .elementor-element-hp-test-inner .elementor-col-34 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  [data-id="hp-test-c1"],
  [data-id="hp-test-c2"] {
    margin-bottom: 20px !important;
  }
}

/* ── Footer banner ── */
.wrt-footer {
  font-family: 'Poppins', sans-serif;
}

.wrt-footer-top {
  background: linear-gradient(135deg, #1B6CA8 0%, #155a8a 100%);
  padding: 60px 40px;
}

.wrt-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.wrt-footer-col {
  flex: 1;
  min-width: 180px;
}

/* Brand column */
.wrt-footer-site-name {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.wrt-footer-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 0;
}

/* Headings */
.wrt-footer-heading {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Link lists */
.wrt-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wrt-footer-links li {
  margin-bottom: 10px;
}

.wrt-footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.wrt-footer-links a:hover {
  color: #ffffff;
}

/* Copyright bar */
.wrt-footer-bottom {
  background: #0f4a74;
  padding: 16px 40px;
  text-align: center;
}

.wrt-footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  margin: 0;
}

/* Mobile footer */
@media (max-width: 767px) {
  .wrt-footer-top {
    padding: 40px 20px;
  }
  .wrt-footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .wrt-footer-col {
    min-width: unset;
  }
  .wrt-footer-bottom {
    padding: 14px 20px;
  }
}

/* ── Floating WhatsApp Button ── */
.wrt-whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.wrt-whatsapp-float:hover {
  transform: scale(1.1);
}
.wrt-whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}
