/* Rad Web Studios brand logo — full RAD WEB STUDIOS mark */
.at-header-logo {
  overflow: visible !important;
  margin-left: 12px;
}

.at-header-logo a {
  overflow: visible !important;
  line-height: 0;
}

.at-header-logo img,
.at-offcanvas-logo img,
.at-search-logo img,
.footer-3-logo img,
.footer-12__brand-logo,
.footer-15__brand-icon,
.header-10__mark {
  height: 52px;
  width: auto !important;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.at-header-logo a img,
.at-offcanvas-logo a img,
.at-search-logo a img {
  mix-blend-mode: normal !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.at-offcanvas-2-wrapper .at-header-logo img {
  height: 56px;
  max-width: 200px;
}

/* Never invert/recolor the brand mark (theme CSS uses invert on logos) */
footer .at-header-logo img,
.logo-on-dark,
.footer-3-logo img,
.footer-12__brand-logo,
.footer-15__brand-icon,
[data-bs-theme=dark] .at-header-logo img,
[data-bs-theme=dark] .at-offcanvas-logo img,
[data-bs-theme=dark] .at-search-logo img,
img.dark-mode-invert[src*="radweb-logo"],
img[src*="radweb-logo"] {
  mix-blend-mode: normal !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Footer uses light variant of the same nav mark on dark backgrounds */
.footer-3-logo,
footer .at-header-logo {
  margin-left: 36px;
}

.footer-3-logo img,
footer .logo-on-dark,
footer .at-header-logo img {
  height: 56px;
  max-width: 200px;
}

.footer-12__brand-logo,
.footer-15__brand-icon {
  height: 56px;
  max-width: 220px;
}

@media (max-width: 575.98px) {
  .at-header-logo img,
  .at-offcanvas-logo img,
  .at-search-logo img {
    height: 42px;
    max-width: 140px;
  }
}

/* Keep dropdowns above hero headings */
.at-header-area.header-transparent {
  z-index: 999;
}

/* Mobile menu: the same self-contained panel on every page */
@media (max-width: 991.98px) {
  /* Above the transparent header (999) so its logo and icons don't show through the open menu */
  .at-offcanvas {
    z-index: 1000;
    right: 0;
    transform: translate3d(105%, 0, 0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0.28s ease;
  }

  .at-offcanvas.opened {
    right: 0;
    transform: translate3d(0, 0, 0);
    transition-duration: 0.28s;
  }

  .body-overlay {
    transition-duration: 0.2s;
    backdrop-filter: none;
  }
}

html.menu-scroll-lock,
html.menu-scroll-lock body {
  overflow: hidden;
  touch-action: none;
}

/* Opaque dark nav dropdowns — page content must not show through */
.at-main-menu nav ul li .submenu,
.header-7 #header7Nav.at-main-menu nav ul li .submenu,
.header-7 #header10Nav.at-main-menu nav ul li .submenu,
.header-10 #header10Nav.at-main-menu.menu-light.style-1 nav ul li .submenu {
  background: #0f0f0f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 20px 30px -8px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}

.at-main-menu nav ul li:hover > .submenu,
.at-main-menu nav ul li.has-dropdown.is-open > .submenu {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.at-main-menu nav ul li .submenu li a {
  color: #f5f5f5;
}

.at-main-menu nav ul li .submenu li:hover > a {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

.at-main-menu nav ul li .at-megamenu-title,
.at-megamenu-title {
  color: #ffffff;
}

.at-main-menu nav ul li .at-megamenu-title-wrap,
.at-megamenu-title-wrap {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

/* Service details hero: long titles must wrap, not overlap the copy */
.sec-1-services-details h1.section-title {
  display: block;
  white-space: normal;
  max-width: 100%;
  line-height: 1.05;
  overflow-wrap: break-word;
  margin-bottom: 1.25rem !important;
}

.sec-1-services-details h1.section-title .split-line {
  display: block;
  white-space: normal;
}

/* Compact service details spacing */
.sec-1-services-details {
  padding-top: 108px !important;
}

.sec-1-services-details .row {
  align-items: flex-start !important;
}

.sec-1-services-details .col-lg-6.pt-100 {
  padding-top: 0 !important;
}

@media (min-width: 992px) {
  .sec-1-services-details .col-lg-6,
  .sec-1-services-details .col-lg-5.ms-auto {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .sec-1-services-details .col-lg-5.ms-auto {
    margin-left: 0 !important;
  }
}

.sec-2-services-details {
  padding-top: 20px !important;
  padding-bottom: 12px !important;
}

/* Keep service image strip compact — mixed portrait/landscape slides must not inflate height */
.sec-2-services-details .about-me-slider-active,
.sec-2-services-details .swiper-wrapper,
.sec-2-services-details .swiper-slide {
  height: auto !important;
}

.sec-2-services-details .about-me-slider-thumb {
  height: clamp(260px, 32vw, 420px);
  overflow: hidden;
  border-radius: 1rem;
}

.sec-2-services-details .about-me-slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Service What we do: stacked cards that move on scroll (same mechanic as homepage) */
.sec-3-services-details {
  padding-bottom: 48px !important;
}

.sec-3-services-details .section-fix {
  padding-top: 16px !important;
}

/* A transformed/will-change ancestor turns the fixed-position pin into a scrolling one when ScrollSmoother is off */
#smooth-content main:has(.sec-3-services-details .section-fix) {
  will-change: auto;
}

.sec-4-services-details,
.sec-5-services-details {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

.sec-4-services-details .row.pt-100,
.sec-4-services-details .row.g-3.pt-100 {
  padding-top: 36px !important;
}

.sec-5-services-details .row.pt-30.pb-80 {
  padding-top: 20px !important;
  padding-bottom: 32px !important;
}

.sec-5-services-details + .pb-120 {
  display: none;
}

.sec-5-services-details ~ .alt-faq-area {
  padding-top: 64px !important;
}

.sec-5-services-details ~ .alt-faq-area .accordion.pt-80 {
  padding-top: 32px !important;
}

/* Portfolio cinema — black background / white text */
.page-portfolio-cinema,
.page-portfolio-cinema body,
body.page-portfolio-cinema {
  background-color: #000 !important;
  color: #fff !important;
}

body.page-portfolio-cinema .slideshow:not(.is-split):not(.is-stack):not(.is-horizontal) {
  background-color: #000 !important;
  color: #fff !important;
}

body.page-portfolio-cinema .at-header-area.header-transparent .at-main-menu nav > ul > li > a,
body.page-portfolio-cinema .at-header-search-btn,
body.page-portfolio-cinema .dark-light-mode,
body.page-portfolio-cinema .at-menu-bar,
body.page-portfolio-cinema .at-header-right {
  color: #fff !important;
}

body.page-portfolio-cinema .at-header-area.header-transparent .at-main-menu nav > ul > li > a:hover,
body.page-portfolio-cinema .at-header-area.header-transparent .at-main-menu nav > ul > li > a:focus {
  color: #fff !important;
  opacity: 0.75;
}

body.page-portfolio-cinema .slideshow .project-num,
body.page-portfolio-cinema .slideshow .project-title,
body.page-portfolio-cinema .slideshow .project-meta-bottom,
body.page-portfolio-cinema .slideshow .rail-index {
  color: #fff !important;
}

body.page-portfolio-cinema .slideshow .project-num {
  border-bottom-color: rgba(255, 255, 255, 0.35) !important;
}

body.page-portfolio-cinema .slideshow .rail-item.is-active .rail-index {
  color: #fff !important;
}

body.page-portfolio-cinema .hamburger-open-btn,
body.page-portfolio-cinema #header-sticky {
  color: #fff !important;
}

/* The white-panel menu must not inherit the page's forced white text */
body.page-portfolio-cinema .at-offcanvas {
  color: var(--at-neutral-900);
}

body.page-portfolio-cinema #magic-cursor.cursor-black-bg #ball,
body.page-portfolio-cinema.cursor-black-bg #ball {
  border-color: rgba(255, 255, 255, 0.5);
}
