/**
 * Guidee Logo System – PNG Migration (iOS Safari/Chrome Fix)
 * Version: 2.8.0
 * Last modified: 2026-05-11
 * Replaced all SVG with PNG (same names) – hover effect kept
 */

/* === CSS VARIABLES === */
:root {
  --logo-height-desktop: 60px;
  --logo-height-tablet: 40px;
  --logo-height-mobile: 40px;
}

/* ==========================================
   DESKTOP HEADER LOGO (≥1025px)
   ========================================== */
.guidee-header-row1 .guidee-logo {
  background-image: url('../../icons/logo_guidee.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  height: var(--logo-height-desktop);
  width: auto;
  min-width: 180px;
  position: relative;
  display: block;
  margin: 0 0 0 -25px;
  align-self: center;
  flex-shrink: 0;
}

/* Hide the Elementor <img> completely */
.guidee-header-row1 .guidee-logo img {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute;
  pointer-events: none;
}

/* Hover state using ::after – PRESERVED */
.guidee-header-row1 .guidee-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../icons/logo_guidee_hover.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.guidee-header-row1 .guidee-logo:hover::after {
  opacity: 1;
}

/* ==========================================
   TABLET RANGE (768px – 1024px) – LOGO CENTERED
   ========================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .guidee-header-row1 .guidee-logo {
    margin: 0 auto;
    background-position: center;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ==========================================
   MOBILE (BELOW 768px) – FINAL AGGRESSIVE FIX
   ========================================== */
@media (max-width: 767px) {
  /* Hide desktop logo */
  .guidee-header-row1 .guidee-logo {
    display: none !important;
  }

  /* Force mobile logo with maximum specificity */
  .guidee-mobile-logo-center,
  .mobile-header-visible .guidee-mobile-logo-center,
  div.guidee-mobile-logo-center {
    all: unset !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 160px !important;
    max-width: 160px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 auto !important;
    background: url('../../icons/logo_guidee.png') no-repeat center / contain !important;
    background-color: transparent !important;
    position: relative !important;
    z-index: 10 !important;
  }
}

/* ==========================================
   MOBILE HEADER LOGO (base styles)
   ========================================== */
.mobile-header-visible .guidee-mobile-logo-center {
  background-image: url('../../icons/logo_guidee.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: var(--logo-height-mobile);
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  display: block;
}

.mobile-header-visible .guidee-mobile-logo-center img {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* ==========================================
   FOOTER LOGO (white version)
   ========================================== */
.guidee-footer-logo-column img,
.guidee-footer-outer .elementor-widget-theme-site-logo img,
.guidee-footer-mobile-top .elementor-widget-theme-site-logo img {
  content: url('../../icons/logo_guidee_white.png');
  height: var(--logo-height-desktop);
  width: auto;
  margin: -40px 0 -40px -40px;
  object-fit: contain;
}

/* Footer responsive sizing */
@media (max-width: 1024px) {
  .guidee-footer-logo-column img,
  .guidee-footer-outer .elementor-widget-theme-site-logo img,
  .guidee-footer-mobile-top .elementor-widget-theme-site-logo img {
    height: var(--logo-height-tablet);
    margin: -30px 0 -10px -30px;
  }
}

@media (max-width: 767px) {
  .guidee-footer-logo-column img,
  .guidee-footer-outer .elementor-widget-theme-site-logo img,
  .guidee-footer-mobile-top .elementor-widget-theme-site-logo img {
    height: var(--logo-height-mobile);
    margin: -30px 0 0 -30px;
  }
}