/* =========================
   HERO 2 – Core Layout (MUST)
========================= */

.gl-hero2{
  position: relative;
  width: 100%;
  min-height: 92vh;   /* ajusta si quieres */
  overflow: hidden;
}

#glHero2.gl-hero2-inner{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 92vh;
}

.gl-hero2-slides{
  position: absolute;
  inset: 0;
}

/* Slides */
.gl-hero2-slide{
  position: absolute;
  inset: 0;

  background-image: var(--gl-hero-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--gl-hero-pos, center 30%);

  opacity: 0;
  pointer-events: none;
  transition: opacity 1.05s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, background-size;
}

.gl-hero2-slide.is-active{
  opacity: 1;
  pointer-events: auto;
  animation: glKenBurnsBg 9.5s ease-out forwards;
}

@keyframes glKenBurnsBg{
  from { background-size: 100%; }
  to   { background-size: 108%; }
}

/* Overlay + content */
.gl-hero2-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1;
}

.gl-hero2-content{
  position: relative;
  z-index: 2;
}

.gl-hero2-heading{
  padding-top: 130px; /* navbar offset */
}

/* Controls */
.gl-hero2-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gl-hero2-prev{ left: 18px; }
.gl-hero2-next{ right: 18px; }

.gl-hero2-dots{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}

.gl-hero2-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.18);
  cursor: pointer;
}

.gl-hero2-dot.is-active{
  background: rgba(255,255,255,.85);
  transform: scale(1.15);
}

@media (max-width: 768px){
  .gl-hero2-heading{ padding-top: 110px; }
  .gl-hero2-nav{ display: none; }
}



/* NAVBAR CALL BUTTON – PROFESSIONAL STYLE */
.nav-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;
  margin-left: 20px;

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;

  color: #ffffff;
  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;

  background: transparent;

  transition: all 0.25s ease;
}

.nav-call-btn i {
  font-size: 16px;
}

/* Hover elegante */
.nav-call-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.gl-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 18px 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}
.gl-card p{ color: rgba(0,0,0,.65); line-height: 1.6; }

/* Navbar logo sizing */
.navbar-brand img{
  height: 44px;          /* prueba 44-54 */
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* On scroll (si el navbar se hace sticky y reduce) */
.nav-sticky .navbar-brand img{
  height: 40px;
}

footer .footer-logo,
.footer .footer-logo{
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  opacity: .95;
}

/* ==============================
   GL SECTIONS (Premium UI)
============================== */

.gl-feature-card{
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  padding: 18px 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  height: 100%;
}

.gl-feature-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 150, 0, .10);
  color: #ff9800;
  margin-bottom: 12px;
  font-size: 20px;
}

.gl-why-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
}

.gl-why-badge{
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .4px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.72);
  margin-top: 2px;
}

.gl-checklist{
  padding-left: 0;
  list-style: none;
}

.gl-checklist li{
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: rgba(0,0,0,.70);
  line-height: 1.6;
}

.gl-checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff9800;
  font-weight: 800;
}

.gl-tabs .nav-link{
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  color: rgba(0,0,0,.72);
  border-radius: 999px;
  padding: 10px 14px;
  margin: 6px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.gl-tabs .nav-link.active{
  background: #ff9800;
  border-color: #ff9800;
  color: #fff;
}

.gl-panel{
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}

.gl-accordion .accordion-item{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

.gl-accordion .accordion-button{
  font-weight: 700;
  color: rgba(0,0,0,.78);
}

.gl-accordion .accordion-button:not(.collapsed){
  background: rgba(255, 150, 0, .10);
  color: rgba(0,0,0,.82);
}

.gl-list-cols{
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 22px;
}

@media (max-width: 768px){
  .gl-list-cols{ columns: 1; }
}



/* ================================
   GLOBAL SECTION NORMALIZATION
   ================================ */

/* Reduce vertical spacing globally */
.section {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* Remove stacked spacing issues */
.section + .section {
  margin-top: 0 !important;
}

/* Normalize big template margins */
.mt-100,
.mt-60 {
  margin-top: 60px !important;
}

/* Remove extra padding inside hero-following sections */
#home + .section {
  padding-top: 40px !important;
}

/* About cards alignment */
.gl-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Fix services cards equal height */
.features.explore-feature {
  height: 100%;
}

/* Footer spacing cleanup */
.footer-py-60 {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

/* Prevent anchor jump misalignment */
.section-anchor {
  scroll-margin-top: 80px;
}

/* Contact form + map */
.gl-map-iframe{
  width:100%;
  height: 100%;
  min-height: 430px;
  border:0;
}
.gl-contact-card .form-control,
.gl-contact-card textarea{
  border-radius: 10px;
}

/* Keep demo look, fix spacing/alignment without changing assets */
.nav-call-btn { white-space: nowrap; }

/* Anchor offset for sticky nav */
.section-anchor { scroll-margin-top: 90px; }

/* Normalize excessive gaps from template utility classes */
.section { padding-top: 60px !important; padding-bottom: 60px !important; }
.mt-100, .mt-60 { margin-top: 60px !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* Mission/Vision cards consistent height */
.gl-card{
  background:#fff;
  border-radius:12px;
  padding:24px;
  height:100%;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
}

/* Compact list style blocks */
.gl-list{
  list-style:none;
  padding-left:0;
  margin-bottom:0;
}
.gl-list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:6px 0;
  color:#6c757d;
}
.gl-list i{
  margin-top:2px;
  color:var(--bs-primary);
  flex:0 0 auto;
}

/* Tighten section title spacing */
.section-title.mb-4.pb-2 { padding-bottom: 0 !important; }

/* Make cards equal height where needed */
.h-100 { height: 100% !important; }

/* Contact form + map */
.gl-map-iframe{
  width:100%;
  height:100%;
  min-height: 430px;
  border:0;
  display:block;
}
.gl-contact-card .form-control,
.gl-contact-card textarea,
.gl-contact-card select{
  border-radius: 10px;
}

/* Make sure Bootstrap icons-in-input align well */
.form-icon .fea{
  position:absolute;
  top:50%;
  left:18px;
  transform:translateY(-50%);
  z-index:2;
  opacity:.9;
}

/* We Repair - Tabs/Accordion polish */
.gl-tabs .nav-link{
  border-radius: 999px;
  padding: .5rem 1rem;
  font-weight: 600;
}
.gl-tabs .nav-link.active{
  background: var(--bs-primary);
  color: #fff;
}
.gl-accordion .accordion-button{
  font-weight: 700;
}
.gl-accordion .accordion-button:not(.collapsed){
  background: rgba(13,110,253,.08);
  color: inherit;
}

/* ==============================
   GL WhatsApp Floating Widget (LEFT)
   ============================== */

.gl-wa{
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: inherit;
}

.gl-wa-btn{
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.20);
  cursor: pointer;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gl-wa-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}

.gl-wa-tooltip{
  position: absolute;
  left: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: #111;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.gl-wa-tooltip::before{
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #fff;
}

.gl-wa-btn:hover .gl-wa-tooltip{
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

.gl-wa-panel{
  position: absolute;
  left: 0;
  bottom: 70px;
  width: 330px;
  max-width: calc(100vw - 36px);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
  border: 1px solid rgba(0,0,0,.08);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.gl-wa-panel.is-open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gl-wa-header{
  background: #1FAF5B;
  color: #fff;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gl-wa-header-left{
  display: flex;
  gap: 10px;
  align-items: center;
}

.gl-wa-badge svg{
  width: 22px;
  height: 22px;
  color: #fff;
}

.gl-wa-title{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
}

.gl-wa-subtitle{
  font-size: 12px;
  opacity: .9;
}

.gl-wa-close{
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.gl-wa-body{
  padding: 14px;
  background: #f6f7f8;
  min-height: 150px;
}

.gl-wa-msg{
  background: transparent;
}

.gl-wa-msg-name{
  font-size: 12px;
  font-weight: 800;
  color: rgba(0,0,0,.65);
  margin-bottom: 6px;
}

.gl-wa-msg-bubble{
  display: inline-block;
  max-width: 92%;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  color: rgba(0,0,0,.82);
}

.gl-wa-msg-time{
  font-size: 11px;
  color: rgba(0,0,0,.45);
  margin-top: 6px;
}

.gl-wa-footer{
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
}

.gl-wa-start{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: #25D366;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}

.gl-wa-start:hover{
  transform: translateY(-1px);
  filter: brightness(0.98);
  color: #fff;
}

.gl-wa-note{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0,0,0,.55);
  text-align: center;
}

/* Replace SVG with Unicons icon (pixel-perfect) */
.gl-wa-ui-icon{
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gl-wa-btn .gl-wa-ui-icon{
  font-size: 30px; /* a hair bigger for the floating button */
}

.gl-wa-badge .gl-wa-ui-icon{
  font-size: 22px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp i {
  font-size: 18px;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.45);
}
/* ==============================
   WHO WE SERVE – Fix image stretch + consistent cards
   ============================== */

/* Make each "features" card behave like a real media-card */
#industries .features.feature-clean{
  border-radius: 16px;
}

/* Force a consistent media area for every card */
#industries .features.feature-clean > img.img-fluid{
  width: 100%;
  height: 260px;              /* default for small cards */
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Big card: taller image so it looks premium */
#industries .col-md-6.p-2:first-child .features.feature-clean > img.img-fluid{
  height: 540px;
}

/* Ensure overlays + text stay above image */
#industries .features.feature-clean{
  position: relative;
  overflow: hidden;
}

/* Optional: make the gradient overlay stronger and consistent */
#industries .features.feature-clean .bg-overlay.bg-linear-gradient-2{
  opacity: .92;
}

/* Keep spacing aligned on desktop */
@media (min-width: 992px){
  #industries .col-md-6 .row > [class*="col-"]{
    display: flex;
  }
  #industries .col-md-6 .row > [class*="col-"] > .features{
    width: 100%;
  }
}

/* Mobile: reduce heights so nothing looks oversized */
@media (max-width: 768px){
  #industries .features.feature-clean > img.img-fluid{
    height: 210px;
  }
  #industries .col-md-6.p-2:first-child .features.feature-clean > img.img-fluid{
    height: 320px;
  }
}

/* ==========================
   SPECIALTIES GRID FIX
   ========================== */

#specialties .work-container {
  height: 460px;              /* altura uniforme */
}

#specialties .work-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* mantiene proporción sin deformar */
  object-position: center;
  display: block;
}

/* =========================================================
   HERO2 – MOBILE FINAL FIX (NO GAP, IMAGE VISIBLE)
   Put this at the VERY END of custom.css
========================================================= */
@media (max-width: 768px){

  /* Kill old desktop min-heights on mobile */
  .gl-hero2,
  #glHero2.gl-hero2-inner{
    min-height: 0 !important;
  }

  /* Real viewport height */
  section#home.gl-hero2{
    height: calc(var(--gl-mvh, 1vh) * 100) !important;
    overflow: hidden !important;
    position: relative !important;
    background: #000 !important; /* prevents any gray flash */
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Inner must be full height */
  section#home.gl-hero2 > #glHero2.gl-hero2-inner{
    height: 100% !important;
    position: relative !important;
  }

  /* Slides layer must fill the hero */
  section#home.gl-hero2 .gl-hero2-slides{
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
  }

  /* Each slide must fill and keep the image */
  section#home.gl-hero2 .gl-hero2-slide{
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;

    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-image: var(--gl-hero-bg) !important;
    background-position: var(--gl-hero-pos, center 30%) !important;
  }

  /* Overlay full height */
  section#home.gl-hero2 .gl-hero2-overlay{
    position: absolute !important;
    inset: 0 !important;
  }

  /* Content: avoid pushing layout with huge padding */
  section#home.gl-hero2 .gl-hero2-heading{
    padding-top: 96px !important; /* reduce from 130 */
  }

  /* Hide arrows on mobile */
  section#home.gl-hero2 .gl-hero2-nav{
    display: none !important;
  }
}

/* ==========================================
   TOPNAV MOBILE DROPDOWN (LANDRICK STYLE FIX)
   Fix: #navigation overlapping the logo on mobile
   Put this at the VERY END of custom.css
========================================== */

@media (max-width: 991.98px){

  /* 1) Make the header the positioning context */
  #topnav{
    position: relative !important;
    overflow: visible !important;
    z-index: 3000 !important;
  }

  #topnav .container{
    position: relative !important;
  }

  /* 2) Keep logo + hamburger always on top */
  #topnav .logo,
  #topnav .menu-extras{
    position: relative !important;
    z-index: 3002 !important;
  }

  /* 3) Force the menu panel to drop BELOW the header */
  #topnav #navigation{
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 12px !important;
    right: 12px !important;

    width: auto !important;

    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 46px rgba(0,0,0,.18) !important;
    border: 1px solid rgba(0,0,0,.08) !important;

    padding: 10px 12px !important;

    z-index: 3001 !important;

    /* Prevent huge menu from covering everything */
    max-height: calc(100vh - 120px) !important;
    overflow: auto !important;

    /* In many templates it is hidden by default */
    display: none;
  }

  /* 4) Show states (template can toggle any of these) */
  #topnav #navigation.open,
  #topnav #navigation.active,
  #topnav #navigation.show{
    display: block !important;
  }

  /* 5) Menu list layout (stacked items) */
  #topnav #navigation .navigation-menu{
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #topnav #navigation .navigation-menu > li{
    float: none !important;
    display: block !important;
    width: 100% !important;
  }

  #topnav #navigation .navigation-menu > li > a{
    display: block !important;
    padding: 12px 10px !important;
    border-radius: 12px !important;
  }
}


/* =========================================================
   HERO2 – Foreground "Embedded" Photo (BG + FG with fade)
   Paste at the VERY END of custom.css
========================================================= */

/* Make each slide a positioning context */
.gl-hero2-slide{
  position: absolute;
}

/* We will use BG as the real slide background (layer 1) */
.gl-hero2-slide{
  background-image: var(--gl-hero-bg) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: var(--gl-hero-pos, center 30%) !important;
}

/* Foreground wrapper (layer 2) */
.gl-hero2-media{
  position: absolute;
  z-index: 2; /* above overlay */
  right: var(--gl-fg-right, 6%);
  top: var(--gl-fg-top, -10px);      /* move UP/DOWN here */
  width: var(--gl-fg-w, 520px);
  height: var(--gl-fg-h, 640px);
  pointer-events: none;
}

/* Foreground image */
.gl-hero2-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--gl-fg-pos, center 20%);
  display: block;

  /* "Embedded" feel */
  transform: translateY(var(--gl-fg-y, 0px)) scale(var(--gl-fg-scale, 1));
  filter:
    drop-shadow(0 22px 40px rgba(0,0,0,.35))
    contrast(1.02)
    saturate(1.03);

  /* Soft edges (best) */
  -webkit-mask-image: radial-gradient(
    closest-side,
    rgba(0,0,0,1) 78%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    closest-side,
    rgba(0,0,0,1) 78%,
    rgba(0,0,0,0) 100%
  );

  /* Prevent hard edge artifacts */
  border-radius: 22px;
}

/* Extra cinematic fade on the FG (stronger on bottom) */
.gl-hero2-media::after{
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(0,0,0,0) 80%, rgba(0,0,0,.22) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 58%, rgba(0,0,0,.22) 100%);
  mix-blend-mode: multiply;
  opacity: .15;
}

/* Keep your overlay, but let FG sit above it */
.gl-hero2-overlay{
  z-index: 1 !important;
}

/* Ensure content stays above overlay and not behind FG */
.gl-hero2-content{
  position: relative;
  z-index: 3 !important;
}

/* Desktop layout: keep text readable and avoid overlapping FG */
@media (min-width: 992px){
  .gl-hero2-content .row{
    min-height: 92vh;
    align-items: center;
  }
  .gl-hero2-heading{
    max-width: 680px;
  }
}

/* Mobile: reduce FG size + center it lower, or hide if you want */
@media (max-width: 991.98px){
  .gl-hero2-media{
    right: 50%;
    transform: translateX(50%);
    top: 90px;
    width: min(86vw, 520px);
    height: min(62vh, 560px);
  }
  .gl-hero2-media img{
    border-radius: 18px;
  }
}

/* Small mobile: prioritize text, push FG down */
@media (max-width: 480px){
  .gl-hero2-media{
    top: 140px;
    height: min(56vh, 520px);
  }
}

/* =========================================================
   HERO2 – Big logo UNDER foreground photo (SAFE)
   Paste at the VERY END of custom.css (replace previous logo block)
========================================================= */

/* Deterministic hero stacking */
.gl-hero2{ position: relative !important; }
.gl-hero2-slides{ z-index: 0 !important; }
.gl-hero2-overlay{ z-index: 1 !important; }

/* Big logo: above overlay, behind text, UNDER the foreground photo */
.gl-hero2-logo,
#heroLogo,
.hero-logo{
  position: absolute !important;
  left: 8% !important;
  top: 18% !important;
  width: min(54vw, 860px) !important;  /* slightly smaller */
  height: auto !important;

  z-index: 2 !important;               /* under FG photo */
  opacity: .15 !important;             /* readable text */
  pointer-events: none !important;

  filter: saturate(1.05) contrast(1.05) drop-shadow(0 18px 46px rgba(0,0,0,.28));
  transform-origin: center center;
  animation: glHeroLogoFloat 10s ease-in-out infinite !important;
}

/* Foreground photo must be above logo */
.gl-hero2-media{ z-index: 3 !important; }

/* HTML text + buttons always on top */
.gl-hero2-content{ position: relative !important; z-index: 5 !important; }
.gl-hero2-heading,
.gl-hero2-heading *{ position: relative !important; z-index: 6 !important; }

@keyframes glHeroLogoFloat{
  0%   { transform: translateY(0px) scale(1); }
  50%  { transform: translateY(-8px) scale(1.015); }
  100% { transform: translateY(0px) scale(1); }
}

/* Mobile tuning: keep it subtle so text stays readable */
@media (max-width: 768px){
  .gl-hero2-logo,
  #heroLogo,
  .hero-logo{
    left: 50% !important;
    top: 120px !important;
    transform: translateX(-50%) !important;
    width: min(88vw, 640px) !important;
    opacity: .15 !important;  /* IMPORTANT: lower on mobile */
  }
}