/* ============ Top info strip ============ */
.top-info-strip{
    background:#585f61;
    border-bottom:1px solid rgba(255,255,255,.08);
    padding:12px 0;
}
.top-info-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.strip-item{
    display:flex;
    align-items:center;
    gap:12px;
    color:#fff;
    transition:.3s;
}
.strip-icon{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--gpi-green);
    color:var(--text-gpi);
    transition:.3s;
}
.strip-item small{
    display:block;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:1.5px;
    color:rgba(255,255,255,.55);
}
.strip-item span:last-child{
    font-size:14px;
    font-weight:600;
}
.strip-item:hover{
    color:var(--gpi-green);
}
.strip-item:hover .strip-icon{
    background:var(--gpi-green);
    color:#fff;
}
@media(max-width:767px){
    .top-info-inner{
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    .top-info-strip {
        padding: 6px 0 !important;
    }
    .strip-item {
        gap: 6px !important;
        font-size: 9px !important;
    }
    .strip-item span:last-child {
        font-size: 9px !important;
    }
    .strip-item small {
        display: none !important; /* Hide label 'Call Us'/'Email' to save width */
    }
    .strip-icon {
        width: 24px !important;
        height: 24px !important;
    }
    .strip-icon svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* ============ WhatsApp float button ============ */
.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:999;
  width:58px;height:58px;
  border-radius:50%;
  background:#25D366;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
  transition:transform .2s ease;
}
.whatsapp-float:hover{transform:scale(1.08);}
.whatsapp-float svg{width:30px;height:30px;fill:#fff;}
@media (max-width:640px){
  .whatsapp-float{right:16px;bottom:16px;width:50px;height:50px;}
  .whatsapp-float svg{width:26px;height:26px;}
}

/* ============ Hero Banners & Typography ============ */
.gpiHero{
    position:relative;
}
.gpiHero-slide{
    position:relative;
    min-height:610px;
    display:flex;
    align-items:center;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    overflow:hidden;
}
.gpiHero-slide .overlay{
    position:absolute;
    inset:0;
    background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.20) 65%, rgba(0,0,0,.05) 100%);
}
.heroContent{
    position:relative;
    z-index:5;
    width:650px;
    color:#fff;
}
.hero-tag{
    display:inline-block;
    padding:10px 18px;
    border-radius:40px;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(8px);
    color:#fff;
    font-size:13px;
    letter-spacing:1px;
    font-weight:600;
    margin-bottom:28px;
}
.heroContent h1{
    font-size:60px !important;
    line-height:1.08;
    font-weight:300;
    margin-bottom:24px;
}
.heroContent h1 strong{
    color:#fff;
    font-weight:800;
}
.heroContent p{
    font-size:20px !important;
    line-height:34px;
    color:rgba(255,255,255,.85);
    margin-bottom:40px;
    max-width:560px;
}
.carousel-control-prev,
.carousel-control-next{
    width:70px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon{
    width:52px;
    height:52px;
    border-radius:50%;
    background-color:rgba(255,255,255,.18);
    background-size:18px;
}
@media(max-width:991px){
  .gpiHero-slide{
      min-height:480px;
  }
  .heroContent{
      width:100%;
  }
  .heroContent h1{
      font-size:42px !important;
  }
}

@media(max-width:767px){
  .gpiHero-slide{
      min-height:360px;
  }
  
  /* Slide 1 - Image with baked-in text */
  .carousel-item:first-child .gpiHero-slide {
      background-size: contain !important;
      background-position: center !important;
      background-color: #414141 !important; /* matches the banner edge color */
  }

  .heroContent{
      padding: 0 15px;
  }
  .heroContent h1{
      font-size:28px !important;
      line-height:1.2;
      margin-bottom:12px;
  }
  .heroContent p{
      font-size:15px !important;
      line-height:22px;
      margin-bottom:20px;
  }
  .hero-tag{
      margin-bottom:16px;
      padding:6px 12px;
      font-size:11px;
  }
  .carousel-control-prev,
  .carousel-control-next{
      width:40px;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon{
      width:32px;
      height:32px;
      background-size:12px;
  }
}

/* ===== Header & Mobile Menu Fixes ===== */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--gpi-bg, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 10px;
}
.main-nav {
  display: none !important;
}
.mobile-menu-toggle {
  display: inline-flex !important;
  background: transparent;
  color: var(--gpi-text, #333);
  border: 1px solid rgba(0,0,0,0.1);
  padding: .5rem;
  cursor: pointer;
  z-index: 55;
  border-radius: 8px;
}

/* Adjust header logo size on mobile */
.nav-logo img {
  height: 48px !important;
  width: auto;
}

/* Fix "Talk to an Engineer" button size on mobile */
.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header .header-right .header-quote-cta {
  display: none !important;
}

@media (min-width: 480px) {
  .site-header .header-right .header-quote-cta {
    display: inline-flex !important;
    font-size: 10px !important;
    padding: 8px 16px !important;
  }
}

@media (min-width: 1024px) {
  .nav-logo img {
    height: 70px !important;
  }
  .main-nav {
    display: flex !important;
    align-items: center;
    gap: 2.5rem;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  .site-header .header-right .header-quote-cta {
    display: inline-flex !important;
    font-size: 0.76rem !important;
    padding: 0.75rem 1.45rem !important;
  }
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: none;
  flex-direction: column;
  padding: 2rem 1.5rem;
}
.mobile-menu.open {
  display: flex !important;
}
.mobile-menu .close-btn {
  align-self: flex-end;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--gpi-text, #333);
  padding: .5rem;
  cursor: pointer;
  margin-bottom: 2rem;
}
.mobile-menu a {
  font-size: 1.75rem;
  font-weight: 700;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--gpi-text, #333);
  text-decoration: none;
}

/* ===== Olympian Strip Spacing Fixes ===== */
.olympian-strip {
  padding: 40px 0 !important;
  clear: both;
}

/* ===== Section & Layout Spacing Recoveries ===== */
.snap-container {
  position: relative;
}
.snap-panel {
  width: 100%;
  position: relative;
}
.section-pad {
  padding: 4rem 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
section {
  clear: both;
}

/* ===== Mobile Heading Overrides ===== */
@media (max-width: 767px) {
  .section-title, 
  h2.section-title, 
  .footprint-section h2, 
  #products h2, 
  #about h2, 
  #industries h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-top: 0.5rem !important;
  }
}

/* ===== Global Mobile Prevent Horizontal Scroll ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== Logo Text Styles ===== */
.logo-text {
  font-family: var(--heading-font), sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #585f61;
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: inline-block;
  vertical-align: middle;
  transition: opacity 0.3s;
  text-transform: uppercase;
}
.logo-text strong {
  font-weight: 800;
  color: #1a1a1a;
  margin-right: 3px;
}
.logo-text:hover {
  opacity: 0.85;
}
.footer-logo .logo-text {
  color: rgba(255, 255, 255, 0.6);
}
.footer-logo .logo-text strong {
  color: #ffffff;
}

@media (max-width: 767px) {
  .logo-text {
    font-size: 22px;
  }
}
.olympian-brand img {
  height: 40px !important;
  width: auto;
}

.olympian-brand-footer > img {
  height: 16px !important;
  width: auto;
  padding-left: 60px;
}

/* ============ Product Card Background Customization ============ */
.product-card {
  background: rgb(64, 64, 64) !important;
  border: 1px solid rgb(64, 64, 64) !important;
}
.product-card .thumb {
  background: rgb(64, 64, 64) !important;
}
.product-card .info h4 {
  color: #ffffff !important;
}
.product-card .info div {
  color: #e4e4e7 !important;
}
.product-card .info .model-badge {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: var(--gpi-green) !important;
}
.product-card .info .spec-sheet-btn {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid var(--gpi-green) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}
.product-card .info .spec-sheet-btn:hover {
  background-color: var(--gpi-green) !important;
  color: #000000 !important;
}
.product-card:hover {
  border-color: var(--gpi-green) !important;
}
.product-card .info {
  min-height: 150px !important;
  height: auto !important;
}

/* ============ Menu/Tab Link Color Customization ============ */
.main-nav a {
  color: rgb(64, 64, 64);
}
.mobile-menu a {
  color: rgb(64, 64, 64);
}

/* ==========================================================================
   Apple Devices (iPhone & MacBook) & Mobile Cross-Device Optimizations
   ========================================================================== */

/* 1. iOS Safari & WebKit Touch Enhancements */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* 2. Prevent iOS Safari Auto-Zoom on Form Input Focus */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="password"],
  select,
  textarea,
  .form-field input,
  .form-field textarea {
    font-size: 16px !important;
  }
}

/* 3. iOS Momentum Scrolling */
.mobile-menu,
.snap-container,
.products-all-grid,
.table-responsive,
.carousel,
.owl-carousel {
  -webkit-overflow-scrolling: touch;
}

/* 4. iPhone Notch & Dynamic Island Safe Areas */
.site-header {
  padding-top: max(8px, env(safe-area-inset-top));
}

.mobile-menu {
  padding-top: max(2.5rem, calc(env(safe-area-inset-top) + 1.5rem)) !important;
  padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem)) !important;
  padding-left: max(1.5rem, env(safe-area-inset-left)) !important;
  padding-right: max(1.5rem, env(safe-area-inset-right)) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.whatsapp-float {
  right: max(20px, calc(env(safe-area-inset-right) + 16px)) !important;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px)) !important;
}

/* 5. MacBook Retina & Safari Backdrop Blur Fixes */
.hero-tag,
.mobile-menu,
.site-header,
.filter-tabs {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* 6. Tap Target Optimization for Mobile */
button,
a.btn-primary,
a.btn-outline,
.mobile-menu a,
.mobile-menu-toggle {
  touch-action: manipulation;
}

/* 7. Extra Small Mobile Displays (< 576px) */
@media (max-width: 575px) {
  .heroContent h1 {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }
  .heroContent p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }
  .product-card .info h4 {
    font-size: 1rem !important;
  }
  .spec-sheet-btn {
    font-size: 9px !important;
    padding: 2px 6px !important;
  }
}
