/* Atlas Holding - Site-wide glass shell for secondary pages
   Applied via body.ath-site (not the canvas landing page chrome).
*/

body.ath-site:not(.elementor-page-16705):not(.ath-holding):not(.ath-404) {
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.94) 0%, rgba(10, 15, 22, 0.9) 45%, rgba(7, 9, 13, 0.96) 100%),
    var(--ath-pattern),
    #07090d !important;
  background-attachment: scroll, scroll, scroll !important;
  color: var(--ath-ink, #f4f1ea) !important;
  font-family: "VazirAth", Tahoma, sans-serif !important;
}

/* ----- Header ----- */
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 16, 24, 0.78) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-header .header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-branding {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-logo img.custom-logo {
  width: auto !important;
  max-height: 52px !important;
  height: 52px !important;
  object-fit: contain;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-description {
  margin: 0 !important;
  color: rgba(244, 241, 234, 0.62) !important;
  font-size: 0.82rem !important;
  line-height: 1.5;
  max-width: 220px;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-navigation .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-navigation .menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: rgba(244, 241, 234, 0.86) !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-navigation .menu > li > a:hover,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-navigation .menu > li.current-menu-item > a {
  color: #1a1205 !important;
  background: linear-gradient(135deg, #ffd56a, #e89a1a 50%, #ff7a00);
  border-color: transparent;
}

/* Hide junk test page from nav */
body.ath-site .menu-item-18310,
body.ath-site .menu-item-object-page a[href*="/test/"] {
  display: none !important;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-navigation-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #f4f1ea;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-navigation-dropdown {
  background: rgba(12, 16, 24, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin: 0.5rem 1rem 1rem;
  padding: 0.5rem;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-navigation-dropdown .menu > li > a {
  color: #f4f1ea !important;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  display: block;
}

/* ----- Main / content ----- */
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-main {
  max-width: 980px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .page-header {
  margin: 0 0 1rem;
  padding: 1.4rem 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 193, 77, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(12, 16, 24, 0.55);
  backdrop-filter: blur(14px);
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .page-header .entry-title,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .page-header h1 {
  margin: 0 !important;
  color: #f4f1ea !important;
  font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
  font-weight: 800 !important;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .page-content,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-main > article,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor {
  color: rgba(244, 241, 234, 0.88) !important;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .page-content {
  padding: 1.35rem 1.25rem 1.6rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 24, 0.52);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

/* Override Elementor inline light colors */
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor p,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor span,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor li,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-heading .elementor-heading-title,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor h1,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor h2,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor h3 {
  color: rgba(244, 241, 234, 0.9) !important;
  background-color: transparent !important;
  font-family: "VazirAth", Tahoma, sans-serif !important;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor a,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .page-content a {
  color: #ffc14d !important;
  background-color: transparent !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(232, 154, 26, 0.35);
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor a:hover,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .page-content a:hover {
  color: #ffe0a0 !important;
  border-bottom-color: rgba(255, 193, 77, 0.75);
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-section,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .e-con,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-column,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-wrap {
  background-color: transparent !important;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor ol,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-widget-text-editor ul {
  padding-inline-start: 1.2rem;
  line-height: 1.9;
}

/* Forms / contact */
body.ath-site:not(.elementor-page-16705):not(.ath-holding) input[type="text"],
body.ath-site:not(.elementor-page-16705):not(.ath-holding) input[type="email"],
body.ath-site:not(.elementor-page-16705):not(.ath-holding) input[type="tel"],
body.ath-site:not(.elementor-page-16705):not(.ath-holding) input[type="number"],
body.ath-site:not(.elementor-page-16705):not(.ath-holding) input[type="url"],
body.ath-site:not(.elementor-page-16705):not(.ath-holding) textarea,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f4f1ea !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) input::placeholder,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) textarea::placeholder {
  color: rgba(244, 241, 234, 0.42) !important;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) button,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) input[type="submit"],
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .elementor-button {
  background: linear-gradient(135deg, #ffc14d, #e89a1a 45%, #ff7a00) !important;
  color: #1a1205 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 24px rgba(232, 154, 26, 0.32) !important;
}

/* Archive / mag cards */
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-main .entry-title a,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-main h2 a {
  color: #ffc14d !important;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-main img {
  border-radius: 16px;
}

/* Footer */
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-footer {
  margin-top: 2rem;
  background: rgba(8, 10, 14, 0.9) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 241, 234, 0.55) !important;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-footer .footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 1.1rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-footer .custom-logo {
  max-height: 44px !important;
  width: auto !important;
  height: 44px !important;
}

body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-footer .site-description,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-footer .copyright,
body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-footer .copyright p {
  color: rgba(244, 241, 234, 0.5) !important;
  margin: 0;
}

/* Canvas secondary pages (e.g. warranty) still get dark shell */
body.ath-site.elementor-template-canvas:not(.elementor-page-16705) {
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.94), rgba(10, 15, 22, 0.9)),
    var(--ath-pattern),
    #07090d !important;
  color: #f4f1ea !important;
}

@media (max-width: 900px) {
  body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-description {
    display: none;
  }
  body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-navigation.show {
    width: 100%;
  }
  body.ath-site:not(.elementor-page-16705):not(.ath-holding) .site-navigation .menu > li > a {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
  }
}
