/* ===== V17 EXACT FIX: ENGLISH, LIGHT MODE, FOOTER, ATLAS LOGO ===== */

/* Logo balance: keep 3M normal, make Atlas visually equal */
.site-header .brand{min-width:245px !important;}
.site-header .brand-logos{display:flex !important;align-items:center !important;gap:14px !important;}
.site-header .brand-logos span{color:rgba(20,24,32,.45) !important;font-weight:800 !important;}
html[data-theme="dark"] .site-header .brand-logos span{color:rgba(255,255,255,.45) !important;}
.site-header img.logo-3m,
.site-header .logo-3m{
  width:96px !important;
  max-width:96px !important;
  height:54px !important;
  max-height:54px !important;
  object-fit:contain !important;
}
.site-header img.logo-atlas,
.site-header .logo-atlas{
  width:118px !important;
  max-width:118px !important;
  height:58px !important;
  max-height:58px !important;
  object-fit:contain !important;
  transform:scale(1.12) !important;
  transform-origin:center !important;
}
.site-header .brand-text strong{font-size:16px !important;line-height:1.1 !important;}
.site-header .brand-text small{font-size:10px !important;letter-spacing:3px !important;}

/* Services dropdown centered exactly under Services */
.atlas-services-dd{position:relative !important;display:inline-flex !important;align-items:center !important;}
.atlas-services-dd > a{display:inline-flex !important;align-items:center !important;gap:6px !important;}
.atlas-services-dd > a::after{content:"⌄";font-size:13px;color:#e30613;margin-inline-start:4px;line-height:1;}
.atlas-services-panel{
  position:absolute !important;
  top:calc(100% + 14px) !important;
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) translateY(12px) !important;
  width:min(880px,calc(100vw - 36px)) !important;
  text-align:inherit !important;
  z-index:99999 !important;
}
.atlas-services-dd:hover .atlas-services-panel,
.atlas-services-dd:focus-within .atlas-services-panel,
.atlas-services-panel:hover{transform:translateX(-50%) translateY(0) !important;}
html[dir="rtl"] .atlas-services-panel,
html[dir="ltr"] .atlas-services-panel{left:50% !important;right:auto !important;}

/* Real light mode foundation */
html[data-theme="light"],
html[data-theme="light"] body,
body.light,
body.light-mode{
  background:#f4f5f8 !important;
  color:#151923 !important;
}
html[data-theme="light"] .noise-layer,
body.light .noise-layer,
body.light-mode .noise-layer{opacity:.18 !important;mix-blend-mode:multiply !important;}

/* Header and mobile menu light visibility */
html[data-theme="light"] .site-header,
body.light .site-header,
body.light-mode .site-header{
  background:rgba(255,255,255,.96) !important;
  color:#151923 !important;
  border-color:rgba(21,25,35,.12) !important;
  box-shadow:0 14px 42px rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .desktop-nav,
html[data-theme="light"] .header-actions,
html[data-theme="light"] .brand,
html[data-theme="light"] .mobile-menu,
html[data-theme="light"] .mobile-menu-content,
body.light .desktop-nav,
body.light .header-actions,
body.light .brand,
body.light .mobile-menu,
body.light .mobile-menu-content,
body.light-mode .desktop-nav,
body.light-mode .header-actions,
body.light-mode .brand,
body.light-mode .mobile-menu,
body.light-mode .mobile-menu-content{
  background:rgba(255,255,255,.95) !important;
  color:#151923 !important;
  border-color:rgba(21,25,35,.12) !important;
}
html[data-theme="light"] .desktop-nav a,
html[data-theme="light"] .brand-text strong,
html[data-theme="light"] .brand-text small,
html[data-theme="light"] .header-actions a,
html[data-theme="light"] .header-actions button,
html[data-theme="light"] .header-actions span,
html[data-theme="light"] .mobile-menu a,
html[data-theme="light"] .mobile-menu button,
body.light .desktop-nav a,
body.light .brand-text strong,
body.light .brand-text small,
body.light .header-actions a,
body.light .header-actions button,
body.light .header-actions span,
body.light .mobile-menu a,
body.light .mobile-menu button,
body.light-mode .desktop-nav a,
body.light-mode .brand-text strong,
body.light-mode .brand-text small,
body.light-mode .header-actions a,
body.light-mode .header-actions button,
body.light-mode .header-actions span,
body.light-mode .mobile-menu a,
body.light-mode .mobile-menu button{
  color:#151923 !important;
  text-shadow:none !important;
}
html[data-theme="light"] .primary-btn,
html[data-theme="light"] .action-book,
html[data-theme="light"] .mobile-center-btn,
body.light .primary-btn,
body.light .action-book,
body.light .mobile-center-btn,
body.light-mode .primary-btn,
body.light-mode .action-book,
body.light-mode .mobile-center-btn{color:#fff !important;}

/* Theme button visible and working */
.theme-toggle,#themeBtn{
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  width:54px !important;height:54px !important;border-radius:50% !important;
  background:#303237 !important;color:#fff !important;border:1px solid rgba(255,255,255,.18) !important;
  box-shadow:0 14px 30px rgba(0,0,0,.18) !important;cursor:pointer !important;
}
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] #themeBtn,
body.light .theme-toggle,
body.light #themeBtn,
body.light-mode .theme-toggle,
body.light-mode #themeBtn{background:#2f3238 !important;color:#fff !important;border-color:rgba(0,0,0,.1) !important;}
.theme-toggle i,#themeBtn i{color:#fff !important;}

/* Global light text and cards */
html[data-theme="light"] main,
html[data-theme="light"] section,
html[data-theme="light"] .section,
html[data-theme="light"] .page-section,
html[data-theme="light"] .content-section,
html[data-theme="light"] .service-category-block,
html[data-theme="light"] .atlas-tech-section,
html[data-theme="light"] .atlas-journey,
html[data-theme="light"] .journey,
html[data-theme="light"] .warranty-verify,
html[data-theme="light"] .scan-section,
html[data-theme="light"] .verification,
html[data-theme="light"] .footer-cta,
html[data-theme="light"] .pre-footer,
html[data-theme="light"] .trust-section,
body.light main,body.light section,body.light .section,body.light .page-section,body.light .content-section,body.light .service-category-block,body.light .atlas-tech-section,body.light .atlas-journey,body.light .journey,body.light .warranty-verify,body.light .scan-section,body.light .verification,body.light .footer-cta,body.light .pre-footer,body.light .trust-section,
body.light-mode main,body.light-mode section,body.light-mode .section,body.light-mode .page-section,body.light-mode .content-section,body.light-mode .service-category-block,body.light-mode .atlas-tech-section,body.light-mode .atlas-journey,body.light-mode .journey,body.light-mode .warranty-verify,body.light-mode .scan-section,body.light-mode .verification,body.light-mode .footer-cta,body.light-mode .pre-footer,body.light-mode .trust-section{
  color:#151923 !important;
}
html[data-theme="light"] .content-card,
html[data-theme="light"] .content-shell,
html[data-theme="light"] .service-detail-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .glass-card,
html[data-theme="light"] .warranty-card,
html[data-theme="light"] .verify-card,
html[data-theme="light"] .journey-card,
html[data-theme="light"] .center-card,
html[data-theme="light"] .atlas-center-card,
html[data-theme="light"] .review-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .form-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .info-card,
html[data-theme="light"] .atlas-tech-card,
body.light .content-card,body.light .content-shell,body.light .service-detail-card,body.light .feature-card,body.light .glass-card,body.light .warranty-card,body.light .verify-card,body.light .journey-card,body.light .center-card,body.light .atlas-center-card,body.light .review-card,body.light .contact-card,body.light .form-card,body.light .service-card,body.light .metric-card,body.light .stat-card,body.light .info-card,body.light .atlas-tech-card,
body.light-mode .content-card,body.light-mode .content-shell,body.light-mode .service-detail-card,body.light-mode .feature-card,body.light-mode .glass-card,body.light-mode .warranty-card,body.light-mode .verify-card,body.light-mode .journey-card,body.light-mode .center-card,body.light-mode .atlas-center-card,body.light-mode .review-card,body.light-mode .contact-card,body.light-mode .form-card,body.light-mode .metric-card,body.light-mode .stat-card,body.light-mode .info-card,body.light-mode .atlas-tech-card{
  background:rgba(255,255,255,.94) !important;
  color:#151923 !important;
  border-color:rgba(21,25,35,.12) !important;
  box-shadow:0 22px 50px rgba(15,23,42,.08) !important;
}
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] p,
html[data-theme="light"] span,
html[data-theme="light"] li,
html[data-theme="light"] small,
html[data-theme="light"] label,
html[data-theme="light"] b,
html[data-theme="light"] strong,
html[data-theme="light"] a:not(.primary-btn):not(.float-btn),
body.light h1,body.light h2,body.light h3,body.light h4,body.light h5,body.light h6,body.light p,body.light span,body.light li,body.light small,body.light label,body.light b,body.light strong,body.light a:not(.primary-btn):not(.float-btn),
body.light-mode h1,body.light-mode h2,body.light-mode h3,body.light-mode h4,body.light-mode h5,body.light-mode h6,body.light-mode p,body.light-mode span,body.light-mode li,body.light-mode small,body.light-mode label,body.light-mode b,body.light-mode strong,body.light-mode a:not(.primary-btn):not(.float-btn){
  color:#151923 !important;
  text-shadow:none !important;
}
html[data-theme="light"] .muted,
html[data-theme="light"] .subtitle,
html[data-theme="light"] .section-subtitle,
html[data-theme="light"] .card-text,
body.light .muted,body.light .subtitle,body.light .section-subtitle,body.light .card-text,
body.light-mode .muted,body.light-mode .subtitle,body.light-mode .section-subtitle,body.light-mode .card-text{color:#5d6572 !important;}
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .accent,
html[data-theme="light"] .red-text,
body.light .eyebrow,body.light .accent,body.light .red-text,
body.light-mode .eyebrow,body.light-mode .accent,body.light-mode .red-text{color:#d71920 !important;}

/* Image hero text must stay white in light mode */
html[data-theme="light"] .hero.page-hero,
html[data-theme="light"] .services-page-hero,
html[data-theme="light"] .service-detail-hero,
html[data-theme="light"] .hero-slider,
html[data-theme="light"] .hero-slide,
html[data-theme="light"] .home-hero,
body.light .hero.page-hero,body.light .services-page-hero,body.light .service-detail-hero,body.light .hero-slider,body.light .hero-slide,body.light .home-hero,
body.light-mode .hero.page-hero,body.light-mode .services-page-hero,body.light-mode .service-detail-hero,body.light-mode .hero-slider,body.light-mode .hero-slide,body.light-mode .home-hero{
  color:#fff !important;
}
html[data-theme="light"] .hero.page-hero h1,
html[data-theme="light"] .hero.page-hero h2,
html[data-theme="light"] .hero.page-hero p,
html[data-theme="light"] .hero.page-hero span:not(.eyebrow),
html[data-theme="light"] .services-page-hero h1,
html[data-theme="light"] .services-page-hero p,
html[data-theme="light"] .service-detail-hero h1,
html[data-theme="light"] .service-detail-hero p,
html[data-theme="light"] .hero-slider h1,
html[data-theme="light"] .hero-slider p,
html[data-theme="light"] .hero-slide h1,
html[data-theme="light"] .hero-slide p,
body.light .hero.page-hero h1,body.light .hero.page-hero h2,body.light .hero.page-hero p,body.light .hero.page-hero span:not(.eyebrow),body.light .services-page-hero h1,body.light .services-page-hero p,body.light .service-detail-hero h1,body.light .service-detail-hero p,body.light .hero-slider h1,body.light .hero-slider p,body.light .hero-slide h1,body.light .hero-slide p,
body.light-mode .hero.page-hero h1,body.light-mode .hero.page-hero h2,body.light-mode .hero.page-hero p,body.light-mode .hero.page-hero span:not(.eyebrow),body.light-mode .services-page-hero h1,body.light-mode .services-page-hero p,body.light-mode .service-detail-hero h1,body.light-mode .service-detail-hero p,body.light-mode .hero-slider h1,body.light-mode .hero-slider p,body.light-mode .hero-slide h1,body.light-mode .hero-slide p{
  color:#fff !important;
  text-shadow:0 8px 30px rgba(0,0,0,.75) !important;
}
html[data-theme="light"] .hero.page-hero .eyebrow,
html[data-theme="light"] .services-page-hero .eyebrow,
html[data-theme="light"] .service-detail-hero .eyebrow,
body.light .hero.page-hero .eyebrow,body.light .services-page-hero .eyebrow,body.light .service-detail-hero .eyebrow,
body.light-mode .hero.page-hero .eyebrow,body.light-mode .services-page-hero .eyebrow,body.light-mode .service-detail-hero .eyebrow{
  color:#ff3b3b !important;
  text-shadow:0 8px 30px rgba(0,0,0,.75) !important;
}

/* Warranty / scan section cards */
html[data-theme="light"] .warranty-verify input,
html[data-theme="light"] .verify-card input,
body.light .warranty-verify input,body.light .verify-card input,
body.light-mode .warranty-verify input,body.light-mode .verify-card input{background:#fff !important;color:#151923 !important;border-color:rgba(21,25,35,.16) !important;}
html[data-theme="light"] .verify-preview,
body.light .verify-preview,
body.light-mode .verify-preview{background:#151923 !important;color:#fff !important;}
html[data-theme="light"] .verify-preview h3,
html[data-theme="light"] .verify-preview p,
html[data-theme="light"] .verify-preview span,
body.light .verify-preview h3,body.light .verify-preview p,body.light .verify-preview span,
body.light-mode .verify-preview h3,body.light-mode .verify-preview p,body.light-mode .verify-preview span{color:#fff !important;}

/* Unified footer visual */
.atlas-footer,
.site-footer,
footer{
  background:#050506 !important;
  color:#fff !important;
  border-top:1px solid rgba(255,255,255,.1) !important;
}
.atlas-footer h1,.atlas-footer h2,.atlas-footer h3,.atlas-footer p,.atlas-footer span,.atlas-footer a,
.site-footer h1,.site-footer h2,.site-footer h3,.site-footer p,.site-footer span,.site-footer a,
footer h1,footer h2,footer h3,footer p,footer span,footer a{color:#fff !important;}
html[data-theme="light"] .atlas-footer,
html[data-theme="light"] .site-footer,
html[data-theme="light"] footer,
body.light .atlas-footer,body.light .site-footer,body.light footer,
body.light-mode .atlas-footer,body.light-mode .site-footer,body.light-mode footer{
  background:#0b0c10 !important;
  color:#fff !important;
}
html[data-theme="light"] .atlas-footer *,
html[data-theme="light"] .site-footer *,
html[data-theme="light"] footer *,
body.light .atlas-footer *,body.light .site-footer *,body.light footer *,
body.light-mode .atlas-footer *,body.light-mode .site-footer *,body.light-mode footer *{color:#fff !important;}

/* Loader two red rings */
.site-loader{background:#050506 !important;}
html[data-theme="light"] .site-loader,body.light .site-loader,body.light-mode .site-loader{background:#f7f8fb !important;}
.site-loader .loader-ring,
.site-loader .loader-ring::before,
.site-loader .loader-ring::after{border-color:rgba(227,6,19,.16) !important;border-top-color:#e30613 !important;}
.site-loader .loader-ring{position:relative !important;width:84px !important;height:84px !important;border-width:3px !important;animation:atlasV17Spin 1.1s linear infinite !important;}
.site-loader .loader-ring::before{content:"";position:absolute;inset:12px;border-radius:50%;border:3px solid rgba(227,6,19,.14);border-bottom-color:#ff3838;animation:atlasV17SpinReverse .9s linear infinite;}
.site-loader .loader-ring::after{content:"";position:absolute;inset:26px;border-radius:50%;background:#e30613;box-shadow:0 0 32px rgba(227,6,19,.6);}
@keyframes atlasV17Spin{to{transform:rotate(360deg)}}
@keyframes atlasV17SpinReverse{to{transform:rotate(-360deg)}}
.site-loader .loader-logo span{color:#e30613 !important;}
html[data-theme="light"] .site-loader .loader-logo p,body.light .site-loader .loader-logo p,body.light-mode .site-loader .loader-logo p{color:#151923 !important;}

/* Mobile light menu visibility */
@media(max-width:991px){
  html[data-theme="light"] .menu-btn span,
  body.light .menu-btn span,
  body.light-mode .menu-btn span{background:#151923 !important;}
  html[data-theme="light"] .mobile-menu-content,
  body.light .mobile-menu-content,
  body.light-mode .mobile-menu-content{background:#fff !important;color:#151923 !important;}
  html[data-theme="light"] .mobile-menu-content a,
  html[data-theme="light"] .mobile-menu-content button,
  body.light .mobile-menu-content a,body.light .mobile-menu-content button,
  body.light-mode .mobile-menu-content a,body.light-mode .mobile-menu-content button{color:#151923 !important;background:#fff !important;border-color:rgba(21,25,35,.12) !important;}
  .site-header .brand{min-width:205px !important;}
  .site-header img.logo-3m,.site-header .logo-3m{width:82px !important;height:46px !important;}
  .site-header img.logo-atlas,.site-header .logo-atlas{width:102px !important;height:50px !important;}
  .atlas-services-panel{position:static !important;width:100% !important;transform:none !important;max-height:65vh !important;overflow-y:auto !important;}
}
