/* ===== V14 FINAL VISUAL POLISH ===== */

/* Bigger Atlas logo to match 3M visual weight */
.logo-atlas{
  width:auto !important;
  height:54px !important;
  max-height:54px !important;
  object-fit:contain !important;
}
.logo-3m{
  height:48px !important;
  max-height:48px !important;
  object-fit:contain !important;
}
.site-header .brand-logos{
  align-items:center !important;
  gap:12px !important;
}
@media(max-width:980px){
  .logo-atlas{height:46px !important;max-height:46px !important;}
  .logo-3m{height:42px !important;max-height:42px !important;}
}

/* Real Saudi/business photo for franchise hero */
.franchise-hero-bg{
  background-image:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.26)),url('/static/images/saudi-business-real.jpg') !important;
  background-size:cover !important;
  background-position:center 38% !important;
  filter:none !important;
}
html[data-theme="light"] .franchise-hero-bg,
body.light .franchise-hero-bg,
body.light-mode .franchise-hero-bg{
  background-image:linear-gradient(90deg,rgba(255,255,255,.78),rgba(255,255,255,.20)),url('/static/images/saudi-business-real.jpg') !important;
  background-size:cover !important;
  background-position:center 38% !important;
}

/* Strong readable light mode for hero, metrics, mobile menu, and pre-footer sections */
html[data-theme="light"] body,
body.light,
body.light-mode{
  color:#111318 !important;
  background:#f6f7f9 !important;
}
html[data-theme="light"] .hero,
html[data-theme="light"] .hero-slide,
html[data-theme="light"] .page-hero,
body.light .hero,
body.light .hero-slide,
body.light .page-hero,
body.light-mode .hero,
body.light-mode .hero-slide,
body.light-mode .page-hero{
  color:#111318 !important;
}
html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero h2,
html[data-theme="light"] .hero p,
html[data-theme="light"] .hero span,
html[data-theme="light"] .page-hero h1,
html[data-theme="light"] .page-hero p,
html[data-theme="light"] .slide-content h1,
html[data-theme="light"] .slide-content p,
html[data-theme="light"] .slide-content span,
body.light .hero h1,
body.light .hero h2,
body.light .hero p,
body.light .hero span,
body.light .page-hero h1,
body.light .page-hero p,
body.light .slide-content h1,
body.light .slide-content p,
body.light .slide-content span,
body.light-mode .hero h1,
body.light-mode .hero h2,
body.light-mode .hero p,
body.light-mode .hero span,
body.light-mode .page-hero h1,
body.light-mode .page-hero p,
body.light-mode .slide-content h1,
body.light-mode .slide-content p,
body.light-mode .slide-content span{
  color:#111318 !important;
  text-shadow:none !important;
}
html[data-theme="light"] .eyebrow,
body.light .eyebrow,
body.light-mode .eyebrow{
  color:#d71920 !important;
}
html[data-theme="light"] .hero-metrics,
body.light .hero-metrics,
body.light-mode .hero-metrics{
  background:rgba(255,255,255,.92) !important;
  border:1px solid rgba(0,0,0,.12) !important;
  box-shadow:0 18px 48px rgba(0,0,0,.12) !important;
}
html[data-theme="light"] .hero-metrics div,
body.light .hero-metrics div,
body.light-mode .hero-metrics div{
  background:rgba(255,255,255,.96) !important;
  border-color:rgba(0,0,0,.10) !important;
}
html[data-theme="light"] .hero-metrics strong,
html[data-theme="light"] .hero-metrics span,
body.light .hero-metrics strong,
body.light .hero-metrics span,
body.light-mode .hero-metrics strong,
body.light-mode .hero-metrics span{
  color:#111318 !important;
  text-shadow:none !important;
}
html[data-theme="light"] .hero-metrics strong,
body.light .hero-metrics strong,
body.light-mode .hero-metrics strong{
  color:#d71920 !important;
}

/* Sections just above footer / CTA strips in light mode */
html[data-theme="light"] .cta-section,
html[data-theme="light"] .final-cta,
html[data-theme="light"] .footer-cta,
html[data-theme="light"] .pre-footer,
html[data-theme="light"] .contact-strip,
html[data-theme="light"] .closing-cta,
html[data-theme="light"] .application-preview,
html[data-theme="light"] .franchise-application-preview,
body.light .cta-section,
body.light .final-cta,
body.light .footer-cta,
body.light .pre-footer,
body.light .contact-strip,
body.light .closing-cta,
body.light .application-preview,
body.light .franchise-application-preview,
body.light-mode .cta-section,
body.light-mode .final-cta,
body.light-mode .footer-cta,
body.light-mode .pre-footer,
body.light-mode .contact-strip,
body.light-mode .closing-cta,
body.light-mode .application-preview,
body.light-mode .franchise-application-preview{
  background:#ffffff !important;
  color:#111318 !important;
  border-color:rgba(0,0,0,.12) !important;
}
html[data-theme="light"] .cta-section *,
html[data-theme="light"] .final-cta *,
html[data-theme="light"] .footer-cta *,
html[data-theme="light"] .pre-footer *,
html[data-theme="light"] .contact-strip *,
html[data-theme="light"] .closing-cta *,
html[data-theme="light"] .application-preview *,
html[data-theme="light"] .franchise-application-preview *,
body.light .cta-section *,
body.light .final-cta *,
body.light .footer-cta *,
body.light .pre-footer *,
body.light .contact-strip *,
body.light .closing-cta *,
body.light .application-preview *,
body.light .franchise-application-preview *,
body.light-mode .cta-section *,
body.light-mode .final-cta *,
body.light-mode .footer-cta *,
body.light-mode .pre-footer *,
body.light-mode .contact-strip *,
body.light-mode .closing-cta *,
body.light-mode .application-preview *,
body.light-mode .franchise-application-preview *{
  color:#111318 !important;
  text-shadow:none !important;
}
html[data-theme="light"] .cta-section .primary-btn,
html[data-theme="light"] .final-cta .primary-btn,
html[data-theme="light"] .footer-cta .primary-btn,
body.light .cta-section .primary-btn,
body.light .final-cta .primary-btn,
body.light .footer-cta .primary-btn,
body.light-mode .cta-section .primary-btn,
body.light-mode .final-cta .primary-btn,
body.light-mode .footer-cta .primary-btn{
  color:#fff !important;
}

/* Light mode mobile menu visibility */
html[data-theme="light"] .mobile-menu,
html[data-theme="light"] .mobile-panel,
html[data-theme="light"] .mobile-nav,
body.light .mobile-menu,
body.light .mobile-panel,
body.light .mobile-nav,
body.light-mode .mobile-menu,
body.light-mode .mobile-panel,
body.light-mode .mobile-nav{
  background:#fff !important;
  color:#111318 !important;
  border-color:rgba(0,0,0,.12) !important;
}
html[data-theme="light"] .mobile-menu a,
html[data-theme="light"] .mobile-menu button,
html[data-theme="light"] .mobile-panel a,
html[data-theme="light"] .mobile-panel button,
html[data-theme="light"] .mobile-nav a,
html[data-theme="light"] .mobile-nav button,
body.light .mobile-menu a,
body.light .mobile-menu button,
body.light .mobile-panel a,
body.light .mobile-panel button,
body.light .mobile-nav a,
body.light .mobile-nav button,
body.light-mode .mobile-menu a,
body.light-mode .mobile-menu button,
body.light-mode .mobile-panel a,
body.light-mode .mobile-panel button,
body.light-mode .mobile-nav a,
body.light-mode .mobile-nav button{
  color:#111318 !important;
  background:rgba(0,0,0,.035) !important;
  border-color:rgba(0,0,0,.10) !important;
}

/* Services dropdown should open centered below the button in Arabic and English */
@media (min-width:981px){
  .services-dropdown,
  .atlas-services-panel,
  .mega-menu{
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) translateY(10px) !important;
    transform-origin:top center !important;
  }
  .nav-services:hover .services-dropdown,
  .nav-services:focus-within .services-dropdown,
  .services-dropdown:hover,
  .desktop-services:hover .atlas-services-panel,
  .desktop-services:focus-within .atlas-services-panel,
  .atlas-services-panel:hover,
  .has-menu:hover .mega-menu,
  .has-menu:focus-within .mega-menu,
  .mega-menu:hover{
    transform:translateX(-50%) translateY(0) !important;
  }
}

/* More professional loader: two red rings orbiting on black or light */
.site-loader{
  background:radial-gradient(circle at 50% 45%,rgba(215,25,32,.26),transparent 34%),#020203 !important;
  opacity:1 !important;
  visibility:visible !important;
  transition:opacity .55s ease, visibility .55s ease !important;
}
html[data-theme="light"] .site-loader,
body.light .site-loader,
body.light-mode .site-loader{
  background:radial-gradient(circle at 50% 45%,rgba(215,25,32,.18),transparent 34%),#f7f8fb !important;
}
.site-loader.hide{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
.loader-ring{
  width:116px !important;
  height:116px !important;
  border-radius:50% !important;
  border:0 !important;
  background:conic-gradient(from 0deg, transparent 0 26%, #d71920 37%, transparent 48% 64%, #ff2b35 77%, transparent 89%) !important;
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)) !important;
  mask:radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)) !important;
  animation:atlasLoaderSpin 1s linear infinite !important;
  box-shadow:0 0 42px rgba(215,25,32,.42) !important;
  position:relative !important;
}
.loader-ring::after{
  content:"";
  position:absolute;
  inset:18px;
  border-radius:50%;
  background:conic-gradient(from 180deg, transparent 0 30%, rgba(255,43,53,.98) 44%, transparent 55% 70%, rgba(215,25,32,.9) 84%, transparent 94%) !important;
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)) !important;
  mask:radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)) !important;
  animation:atlasLoaderSpinReverse 1.45s linear infinite !important;
}
.loader-logo{
  margin-top:22px !important;
  padding:18px 24px !important;
  border-radius:24px !important;
  background:rgba(0,0,0,.54) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:0 26px 70px rgba(0,0,0,.46) !important;
  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important;
}
html[data-theme="light"] .loader-logo,
body.light .loader-logo,
body.light-mode .loader-logo{
  background:rgba(255,255,255,.88) !important;
  border-color:rgba(0,0,0,.10) !important;
  box-shadow:0 24px 60px rgba(0,0,0,.14) !important;
}
.loader-logo span{
  color:#d71920 !important;
  font-size:46px !important;
  line-height:1 !important;
  font-weight:1000 !important;
  letter-spacing:-2px !important;
  text-shadow:0 0 26px rgba(215,25,32,.48) !important;
}
.loader-logo p{
  color:#ffffff !important;
  margin-top:8px !important;
  letter-spacing:3px !important;
  font-weight:900 !important;
  font-size:11px !important;
}
html[data-theme="light"] .loader-logo p,
body.light .loader-logo p,
body.light-mode .loader-logo p{
  color:#111318 !important;
}
@keyframes atlasLoaderSpin{to{transform:rotate(360deg)}}
@keyframes atlasLoaderSpinReverse{to{transform:rotate(-360deg)}}
