/*!
 * ============================================================
 * File Path: /assets/css/team-details.css
 * Purpose: Custom Styles for the Team Details Page (team-details.html)
 * Primary Goal: Hybrid banner approach with full image visibility.
 * ============================================================
 */

/* ============================================================
   ROOT VARIABLES
   These variables control the banner's appearance.
   ============================================================ */
:root {
  --banner-overlay-opacity: 0.2 !important;
  --banner-height: 800px !important;
  --universal-banner-padding-horizontal: 15px !important;

  /* Color Palette (for consistency) */
  --color-white: #ffffff;
  --color-yellow: #facc15;
}

/* ============================================================
   TEAM DETAILS PAGE BANNER - HYBRID APPROACH
   Uses an <img> tag for the banner image with CSS fallback.
   ============================================================ */
section.breadcumd__banner.overhid,
.breadcumd__banner {
  /* Fallback background image */
  background-image: url('../img/team/banner.avif') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;

  /* Layout */
  position: relative !important;
  overflow: hidden !important;
  min-height: var(--banner-height) !important;
  width: 100% !important;

  /* Flexbox for content alignment */
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
}

/* Banner Image Container - holds the <img> tag */
.breadcumd__banner .banner-img-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  overflow: hidden !important;
}

/* The actual banner image */
.breadcumd__banner .banner-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Dark overlay for text readability */
.breadcumd__banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, var(--banner-overlay-opacity)) !important;
  z-index: 1 !important;
  pointer-events: none;
}

/* Content wrapper - sits above the overlay */
section.breadcumd__banner.overhid > .container,
section.breadcumd__banner.overhid .breadcumd__wrapper,
.breadcumd__banner > .container,
.breadcumd__banner .breadcumd__wrapper {
  position: relative !important;
  z-index: 2 !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100% !important;
  padding: 20px var(--universal-banner-padding-horizontal) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Style the Title */
section.breadcumd__banner.overhid .breadcumd__wrapper h1.left__content,
.breadcumd__banner .breadcumd__wrapper .left__content {
  color: var(--color-white) !important;
  font-size: 58px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  margin: 0 0 8px 0 !important;
}

/* Style the Breadcrumb Links */
section.breadcumd__banner.overhid .breadcumd__wrapper ul.right__content,
.breadcumd__banner .breadcumd__wrapper .right__content {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}

.breadcumd__banner .breadcumd__wrapper .right__content li {
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--color-yellow) !important;
}

.breadcumd__banner .breadcumd__wrapper .right__content li a {
  color: var(--color-white) !important;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.breadcumd__banner .breadcumd__wrapper .right__content li a:hover {
  color: var(--color-yellow) !important;
}

.breadcumd__banner .breadcumd__wrapper .right__content li:last-child a {
  color: var(--color-yellow) !important;
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */
@media (max-width: 991px) {
  section.breadcumd__banner.overhid,
  .breadcumd__banner {
    min-height: 500px !important;
    align-items: center;
    justify-content: center;
  }

  section.breadcumd__banner.overhid > .container,
  section.breadcumd__banner.overhid .breadcumd__wrapper,
  .breadcumd__banner > .container,
  .breadcumd__banner .breadcumd__wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  section.breadcumd__banner.overhid .breadcumd__wrapper h1.left__content,
  .breadcumd__banner .breadcumd__wrapper .left__content {
    font-size: 42px !important;
  }
}

@media (max-width: 767px) {
  .breadcumd__banner {
    min-height: 400px !important;
  }

  .breadcumd__banner .breadcumd__wrapper {
    gap: 15px;
  }
}

@media (max-width: 575px) {
  .breadcumd__banner {
    min-height: 300px !important;
  }

  .breadcumd__banner .breadcumd__wrapper .left__content {
    font-size: 28px !important;
  }

  .breadcumd__banner .breadcumd__wrapper .right__content li {
    font-size: 14px;
  }
}

/* ============================================================ */
/* RESPONSIVE BANNER HEIGHT - All Device Sizes                  */
/* ============================================================ */
@media (min-width: 5121px) { :root { --banner-height: 1200px !important; } }
@media (max-width: 5120px) { :root { --banner-height: 1100px !important; } }
@media (max-width: 3840px) { :root { --banner-height: 950px !important; } }
@media (max-width: 2560px) { :root { --banner-height: 850px !important; } }
@media (max-width: 1920px) { :root { --banner-height: 750px !important; } }
@media (max-width: 1440px) { :root { --banner-height: 650px !important; } }
@media (max-width: 1280px) { :root { --banner-height: 550px !important; } }
@media (max-width: 1024px) { :root { --banner-height: 450px !important; } }
@media (max-width: 768px) { :root { --banner-height: 350px !important; } }
@media (max-width: 576px) { :root { --banner-height: 280px !important; } }
@media (max-width: 480px) { :root { --banner-height: 240px !important; } }
@media (max-width: 400px) { :root { --banner-height: 200px !important; } }
@media (max-width: 320px) { :root { --banner-height: 180px !important; } }

/* ========================================================================== */
/* SOCIAL ICONS STYLING                                                        */
/* ========================================================================== */

/* ---- 1) BUTTON SHAPE + BASE STATE ---------------------------------------- */
.header__top .social.social__icon li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  color: #facc15 !important;
  background: transparent !important;
  border: 2px solid #facc15 !important;
  border-radius: 50% !important;
  line-height: 1;
  transition: all .2s ease;
  text-decoration: none !important;
}

.header__top .social.social__icon li a i {
  font-size: 16px !important;
  color: currentColor !important;
}

/* ---- 2) HOVER + FOCUS ----------------------------------------------------- */
.header__top .social.social__icon li a:hover,
.header__top .social.social__icon li a:focus-visible {
  transform: translateY(-2px);
  color: #ffffff !important;
  background: #2e0c5e !important;
  border-color: #2e0c5e !important;
}

.header__top .social.social__icon li a:focus-visible {
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35);
}

/* ---- 3) ALIGNABLE IMG - sized to match icons ------------------------------ */
.header__top .social.social__icon li a[aria-label="Alignable"] img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(84%) sepia(78%) saturate(508%)
          hue-rotate(357deg) brightness(103%) contrast(102%);
}

/* ========================================================================== */

.footer-widget .social-icons .alignable-custom-icon {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
}

/* ========================================================================== */
/* SOCIAL ICONS SIZING FIX - Header + Footer (SIZE ONLY, NO COLOR CHANGES)   */
/* ========================================================================== */

/* Header top bar: Increase circle size and center icons */
.header__top .social.social__icon li a {
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Header icons: Font Awesome icon size */
.header__top .social.social__icon li a i {
  font-size: 16px !important;
}

/* Header Alignable img: Match other icon sizes */
.header__top .social.social__icon li a img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
}

/* Footer Alignable img: Match other footer icon sizes */
.footer-widget .social-icons .alignable-custom-icon {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
}


/* ============================================================ */
/* RESPONSIVE BANNER HEIGHT - 26 Breakpoints (320px to 8192px+) */
/* Full image visibility with background-size: contain          */
/* ============================================================ */

/* Base/Default - Extra small screens */
:root {
  --banner-height: 180px;
}

/* 320px+ - Small phones */
@media (min-width: 320px) {
  :root { --banner-height: 200px; }
}

/* 360px+ - Small phones */
@media (min-width: 360px) {
  :root { --banner-height: 220px; }
}

/* 375px+ - iPhone SE/8 */
@media (min-width: 375px) {
  :root { --banner-height: 230px; }
}

/* 400px+ - Medium phones */
@media (min-width: 400px) {
  :root { --banner-height: 240px; }
}

/* 414px+ - iPhone Plus/Max */
@media (min-width: 414px) {
  :root { --banner-height: 260px; }
}

/* 480px+ - Large phones */
@media (min-width: 480px) {
  :root { --banner-height: 280px; }
}

/* 576px+ - Phablets */
@media (min-width: 576px) {
  :root { --banner-height: 350px; }
}

/* 768px+ - Tablets portrait */
@media (min-width: 768px) {
  :root { --banner-height: 450px; }
}

/* 800px+ - Small tablets */
@media (min-width: 800px) {
  :root { --banner-height: 480px; }
}

/* 992px+ - Tablets landscape */
@media (min-width: 992px) {
  :root { --banner-height: 520px; }
}

/* 1024px+ - iPad/small laptops */
@media (min-width: 1024px) {
  :root { --banner-height: 550px; }
}

/* 1200px+ - Laptops */
@media (min-width: 1200px) {
  :root { --banner-height: 600px; }
}

/* 1280px+ - HD laptops */
@media (min-width: 1280px) {
  :root { --banner-height: 650px; }
}

/* 1366px+ - Common laptops */
@media (min-width: 1366px) {
  :root { --banner-height: 700px; }
}

/* 1440px+ - Large laptops */
@media (min-width: 1440px) {
  :root { --banner-height: 750px; }
}

/* 1600px+ - Desktop monitors */
@media (min-width: 1600px) {
  :root { --banner-height: 800px; }
}

/* 1920px+ - Full HD (1080p) */
@media (min-width: 1920px) {
  :root { --banner-height: 850px; }
}

/* 2048px+ - 2K cinema */
@media (min-width: 2048px) {
  :root { --banner-height: 900px; }
}

/* 2560px+ - QHD (1440p) */
@media (min-width: 2560px) {
  :root { --banner-height: 950px; }
}

/* 3440px+ - Ultrawide */
@media (min-width: 3440px) {
  :root { --banner-height: 1000px; }
}

/* 3840px+ - 4K UHD */
@media (min-width: 3840px) {
  :root { --banner-height: 1100px; }
}

/* 4096px+ - 4K cinema */
@media (min-width: 4096px) {
  :root { --banner-height: 1150px; }
}

/* 5120px+ - 5K */
@media (min-width: 5120px) {
  :root { --banner-height: 1200px; }
}

/* 7680px+ - 8K */
@media (min-width: 7680px) {
  :root { --banner-height: 1300px; }
}

/* 8192px+ - 8K cinema extreme */
@media (min-width: 8192px) {
  :root { --banner-height: 1400px; }
}

/* ================================================================= */
/* MOBILE VISIBILITY SAFEGUARD                                       */
/* Ensures content isn't hidden by "overflow" or "height" issues     */
/* ================================================================= */

@media (max-width: 991px) {
    /* 1. Force Banner to fit content */
    section.banner__section-override {
        height: auto !important;
        min-height: 600px !important;
        overflow: visible !important; /* Prevents cutting off text */
    }

    /* 2. Force Glass Container Visibility */
    .shop__details, 
    .banner__content-override,
    .service__items,
    .blog__items {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important; /* Ensures it renders in flow */
    }
}


/* ============================================================ */
/* RESPONSIVE BANNER HEIGHT - 26 Breakpoints (320px to 8192px+) */
/* Full image visibility with background-size: contain          */
/* ============================================================ */

/* Base/Default - Extra small screens */
:root {
  --banner-height: 180px;
}

/* 320px+ - Small phones */
@media (min-width: 320px) {
  :root { --banner-height: 200px; }
}

/* 360px+ - Small phones */
@media (min-width: 360px) {
  :root { --banner-height: 220px; }
}

/* 375px+ - iPhone SE/8 */
@media (min-width: 375px) {
  :root { --banner-height: 230px; }
}

/* 400px+ - Medium phones */
@media (min-width: 400px) {
  :root { --banner-height: 240px; }
}

/* 414px+ - iPhone Plus/Max */
@media (min-width: 414px) {
  :root { --banner-height: 260px; }
}

/* 480px+ - Large phones */
@media (min-width: 480px) {
  :root { --banner-height: 280px; }
}

/* 576px+ - Phablets */
@media (min-width: 576px) {
  :root { --banner-height: 350px; }
}

/* 768px+ - Tablets portrait */
@media (min-width: 768px) {
  :root { --banner-height: 450px; }
}

/* 800px+ - Small tablets */
@media (min-width: 800px) {
  :root { --banner-height: 480px; }
}

/* 992px+ - Tablets landscape */
@media (min-width: 992px) {
  :root { --banner-height: 520px; }
}

/* 1024px+ - iPad/small laptops */
@media (min-width: 1024px) {
  :root { --banner-height: 550px; }
}

/* 1200px+ - Laptops */
@media (min-width: 1200px) {
  :root { --banner-height: 600px; }
}

/* 1280px+ - HD laptops */
@media (min-width: 1280px) {
  :root { --banner-height: 650px; }
}

/* 1366px+ - Common laptops */
@media (min-width: 1366px) {
  :root { --banner-height: 700px; }
}

/* 1440px+ - Large laptops */
@media (min-width: 1440px) {
  :root { --banner-height: 750px; }
}

/* 1600px+ - Desktop monitors */
@media (min-width: 1600px) {
  :root { --banner-height: 800px; }
}

/* 1920px+ - Full HD (1080p) */
@media (min-width: 1920px) {
  :root { --banner-height: 850px; }
}

/* 2048px+ - 2K cinema */
@media (min-width: 2048px) {
  :root { --banner-height: 900px; }
}

/* 2560px+ - QHD (1440p) */
@media (min-width: 2560px) {
  :root { --banner-height: 950px; }
}

/* 3440px+ - Ultrawide */
@media (min-width: 3440px) {
  :root { --banner-height: 1000px; }
}

/* 3840px+ - 4K UHD */
@media (min-width: 3840px) {
  :root { --banner-height: 1100px; }
}

/* 4096px+ - 4K cinema */
@media (min-width: 4096px) {
  :root { --banner-height: 1150px; }
}

/* 5120px+ - 5K */
@media (min-width: 5120px) {
  :root { --banner-height: 1200px; }
}

/* 7680px+ - 8K */
@media (min-width: 7680px) {
  :root { --banner-height: 1300px; }
}

/* 8192px+ - 8K cinema extreme */
@media (min-width: 8192px) {
  :root { --banner-height: 1400px; }
}

/* ============================================================ */
/* SERVICE GLASS CONTAINER (SYNCED)                            */
/* Source: assets/css/secondary-towing-relocation.css          */
/* ============================================================ */

/* ================================================================= */
/* MOBILE VISIBILITY SAFEGUARD                                       */
/* Ensures content is not hidden by overflow or height issues        */
/* ================================================================= */

@media (max-width: 991px) {
    section.banner__section-override {
        height: auto !important;
        min-height: 600px !important;
        overflow: visible !important;
    }

    .shop__details, 
    .banner__content-override,
    .service__items,
    .blog__items {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* ====================================================================================== */
/*          UNIVERSAL MASTER FIX - VISUALS + LAYOUT + RESPONSIVENESS                     */
/* ====================================================================================== */

.service-glass-container {
  background-color: rgba(0, 0, 0, 0.3) !important;
  padding: 35px 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  max-width: 800px !important;
  position: relative !important;
  z-index: 10 !important;
}

.service-heading {
  color: #ffffff !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.service-description {
  color: #f0f0f0 !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  margin-bottom: 25px !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.service-buttons {
  display: flex !important;
  gap: 15px !important;
  flex-wrap: wrap !important;
  margin-top: 20px !important;
}

.service-btn, .cmn--btn {
  white-space: nowrap !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
}

.service-btn-primary {
  background-color: #facc15 !important;
  color: #222222 !important;
  border: 2px solid #facc15 !important;
}

.service-btn-secondary {
  background-color: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

@media (min-width: 992px) {
  .service-glass-container {
    left: -300px !important;
    margin-left: 0 !important;
    text-align: left !important;
  }
  
  .service-heading {
    text-align: left !important;
  }

  .service-description {
    text-align: left !important;
  }
  
  .service-buttons {
    justify-content: flex-start !important;
  }

  .left-content {
    margin-left: -50px !important;
  }
}

@media (max-width: 991px) {
    
    .service-glass-container {
        left: 0 !important;
        margin: 20px auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 30px 20px !important;
        transform: none !important;
        background-color: rgba(0, 0, 0, 0.6) !important;
        text-align: center !important;
    }

    .service-heading { 
        font-size: 32px !important; 
        text-align: center !important;
    }
    
    .service-description { 
        font-size: 16px !important; 
        text-align: center !important;
    }
    
    .service-buttons { 
        justify-content: center !important; 
    }
    
    .left-content { 
        margin-left: 0 !important; 
    }

    .header-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 90px !important;
        padding: 0 15px !important;
        position: relative !important;
    }

    .header-wrapper .main__logo {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        bottom: auto !important;
        z-index: 20 !important;
        width: auto !important;
    }
    
    .header-wrapper .main__logo .logo img {
        height: 50px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .header-wrapper .menu__components {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 25 !important;
        display: flex !important;
        gap: 15px !important;
    }

    .header-wrapper .logo__menuadjust nav, .straddle-logo {
        display: none !important;
    }

    section.banner__section,
    section.banner__section-override {
        display: block !important;
        height: auto !important;
        min-height: 800px !important;
        padding-bottom: 60px !important;
        overflow: visible !important;
        margin-bottom: 0 !important;
    }

    .banner__image, 
    .banner__section .swiper-slide .banner__image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        height: 100% !important;
        width: 100% !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .banner__content,
    .banner__content-override {
        position: relative !important;
        margin-top: 80px !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10 !important;
    }
    
    section.banner__section + section,
    section.banner__section-override + section,
    .feature__section {
        margin-top: 0 !important;
        padding-top: 50px !important;
        background: #fff !important;
        position: relative !important;
        z-index: 5 !important;
    }
}

