/*!
 * ============================================================
 * File Path: /assets/css/team.css
 * Purpose: Custom Styles for the Team Page (team.html)
 * Primary Goal: Reduce the height of the main banner section.
 * ============================================================
 */

/* ============================================================
   ROOT VARIABLES
   These variables control the banner's height.
   You can adjust the pixel values here as needed.
   ============================================================ */
:root {
  /* Banner Height Controls */
  --team-banner-height-desktop: 850px; /* Reduced desktop height (was 360px) */
  --team-banner-height-mobile: 200px;  /* Reduced mobile height (was 240px) */

  /* Banner Style Controls */
  --team-banner-overlay-opacity: 0.25; /* Dark overlay for text readability (0.0 to 1.0) */
  --team-banner-content-left: 12%;     /* Horizontal position of the title text */

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

/* ============================================================
   TEAM PAGE BANNER OVERRIDE
   This section forcefully targets the banner on team.html
   using its specific classes (.breadcumd__banner and
   .banner__section-override) to ensure these styles are applied.
   ============================================================ */
section.breadcumd__banner.overhid {
  /* Background Image Setup */
  background-image:
    linear-gradient(rgba(0,0,0, var(--team-banner-overlay-opacity)), rgba(0,0,0,0.05)),
    url('../img/team/banner.avif') !important; /* Make sure this image path is correct */
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #1a0b2e !important;

  /* --- HEIGHT CONTROL via CSS Variable --- */
  /* Uses responsive --banner-height variable defined in breakpoints below */
  height: var(--banner-height, 600px) !important;
  min-height: var(--banner-height, 600px) !important;
  max-height: none !important;

  /* Structure and Layout */
  padding-top: 0 !important; /* Removes padding that could add extra height */
  padding-bottom: 0 !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  display: flex !important; /* Use flexbox for robust vertical alignment */
  align-items: center; /* Vertically center the content container */
  justify-content: flex-start; /* Horizontally align content to the left */
}

/* Ensure the inner container does not expand the banner's height */
section.breadcumd__banner.overhid > .container,
section.breadcumd__banner.overhid .breadcumd__wrapper {
  height: auto !important; /* Allow content to size itself naturally within the banner */
  min-height: 0 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  padding-left: var(--team-banner-content-left); /* Apply horizontal positioning */
  text-align: left;
}

/* Style the "Team" Title */
section.breadcumd__banner.overhid .breadcumd__wrapper h1.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 "Home > Team" Breadcrumb Links */
section.breadcumd__banner.overhid .breadcumd__wrapper ul.right__content {
  color: var(--color-yellow) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !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 CONTENT STYLES
   Adjusts content layout for smaller screens (like phones).
   ============================================================ */
@media (max-width: 991px) {
  section.breadcumd__banner.overhid {
    align-items: center;
    justify-content: center;
  }

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

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

  section.breadcumd__banner.overhid .breadcumd__wrapper ul.right__content {
    font-size: 16px !important;
    justify-content: center;
  }
}
/* ================================================================= */
/* 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;
    }
}

