/* Mobile overrides for the shared Bootstrap-era layout and CMS pages. */
.mobile-home-hero, .mobile-submenu-toggle { display: none; }
.modal-dialog .container { width: 100%; max-width: 100%; }
@media (max-width: 1199px) and (min-width: 992px) {
    .header-area .logo { max-width: 32%; }
    .header-area .logo img { max-width: 100%; height: auto; }
    .main-menu .navigation > li > a { padding-left: 11px; padding-right: 11px; }
    .mainmenu-right-box { margin-left: 8px; }
}
@media (max-width: 991px) {
    .top-bar-area .welcome { float: none !important; margin: 0; padding: 10px 0 0; text-align: center; }
    .top-bar-area .welcome p { white-space: normal; line-height: 1.5; font-size: 13px; overflow-wrap: anywhere; }
    .top-bar-area .top-menu { float: none !important; overflow: visible; }
    .top-bar-area .top-menu ul { display: flex; justify-content: center; flex-wrap: wrap; float: none; }
    .top-bar-area .top-menu ul li { display: block; float: none; border: 0; padding: 0; }
    .top-bar-area .top-menu ul li a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 13px; line-height: 1.4; }
    .header-area, .header-area.stricky-fixed { position: sticky !important; top: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 16px #20233c0a; }
    .header-area .site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; position: relative; }
    .header-area .logo, .header-area.stricky-fixed .logo { float: none !important; width: min(64vw, 280px); max-width: calc(100% - 68px); padding: 0; }
    .header-area .logo a, .header-area.stricky-fixed .logo a { display: block; margin: 0; }
    .header-area .logo a img, .header-area.stricky-fixed .logo a img { display: block; width: 100%; max-width: 100%; height: auto; }
    .header-area .header-right { float: none !important; }
    .header-area .main-menu { float: none !important; display: block; position: static; padding: 0; width: auto; }
    .header-area .mainmenu-right-box { display: none; }
    .header-area .main-menu .navbar-header { float: none; display: block; width: auto; padding: 0; position: static; }
    .header-area .main-menu .navbar-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; float: none; width: 46px; height: 46px; margin: 0; padding: 10px; border: 1px solid #dfe2ef; border-radius: 6px; background: #fff; }
    .header-area .main-menu .navbar-toggle .icon-bar { display: block; margin: 0; width: 22px; height: 2px; background: #3d4394; }
    .header-area #site-navigation { display: none !important; position: absolute; top: 100%; left: 0; right: 0; width: 100%; max-height: min(65vh, 560px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 10px 15px 18px; border: 0; background: #fff; box-shadow: 0 12px 18px #20233c14; }
    .header-area[data-mobile-open="true"] #site-navigation { display: block !important; }
    .header-area .main-menu #site-navigation > .navigation { display: block; width: 100%; float: none !important; margin: 0 !important; background: #fff; }
    .header-area .main-menu #site-navigation .navigation li { position: relative; width: 100%; float: none; margin: 0 !important; padding: 0; border: 0 !important; }
    .header-area .main-menu #site-navigation .navigation li::before, .header-area .main-menu #site-navigation .navigation li a::after, .header-area .dropdown-btn { display: none !important; }
    .header-area .main-menu #site-navigation .navigation li a { display: flex; align-items: center; min-height: 48px; white-space: normal; padding: 12px 52px 12px 14px !important; line-height: 1.5; font-size: 14px; color: #252946; background: #fff; border-radius: 5px; }
    .header-area .main-menu #site-navigation .navigation > li.current > a { color: #3d4394; background: #eef0fa; }
    .header-area .main-menu #site-navigation .navigation li > ul { display: none !important; position: static; float: none; width: 100%; min-width: 0; margin: 0; padding: 0 0 8px 14px; transform: none; opacity: 1; visibility: visible; border: 0 !important; box-shadow: none; background: #fff; transition: none; }
    .header-area .main-menu #site-navigation .navigation li[data-submenu-open="true"] > ul { display: block !important; }
    .header-area .main-menu #site-navigation .navigation li > ul a { font-size: 13px; }
    .header-area .mobile-submenu-toggle { display: grid; place-items: center; position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; padding: 0; border-radius: 5px; color: #3d4394; background: #f4f5fb; font-size: 24px; line-height: 1; }
    .header-area button:focus-visible, .header-area a:focus-visible { outline: 3px solid #43c3ea; outline-offset: 2px; }
    .breadcrumb-area { padding-top: 55px; padding-bottom: 55px; }
    .breadcrumb-area h1, .breadcrumb-area .breadcrumbs h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.25; overflow-wrap: anywhere; }
    .cms-prose, .text-holder, .cms-card, .single-footer-widget { min-width: 0; overflow-wrap: anywhere; }
    .cms-prose table { display: block; max-width: 100%; overflow-x: auto; }
    .cms-prose iframe, .cms-prose video { max-width: 100%; }
    .footer-area { padding-top: 48px; padding-bottom: 24px; }
    .single-footer-widget { margin-bottom: 32px; }
    .single-footer-widget .footer-logo img { max-width: min(100%, 300px); height: auto; }
    .footer-contact-info .text-holder { overflow-wrap: anywhere; }
    .footer-bottom-area .footer-menu ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 0; }
    .footer-bottom-area .footer-menu ul li { display: block; padding: 0; margin: 0; }
    .footer-bottom-area .footer-menu a { display: inline-flex; align-items: center; min-height: 44px; }
    input, select, textarea { max-width: 100%; font-size: 16px !important; }
    .modal-dialog { max-width: calc(100% - 24px); margin: 12px auto; }
    .modal-dialog .container { padding: 0 15px; }
    ul.cms-working-hours li { flex-wrap: wrap; gap: 6px 14px; }
    ul.cms-working-hours li span { margin-left: auto; max-width: 72%; }
}
@media (max-width: 767px) {
    .container { max-width: 100%; }
    .sec-pding-two, .latest-blog-area, .latest-project-area, .feedback-section { padding-top: 45px; padding-bottom: 45px; }
    .sec-title { height: auto; min-height: 80px; margin-bottom: 24px; }
    .sec-title .overlay-title h2 { font-size: clamp(25px, 6vw, 34px); line-height: 1.25; }
    .sec-title .overlay-title { position: relative; padding-top: 15px; }
    .sec-title .line-through { position: absolute; font-size: 76px; line-height: 1; top: 0; left: 0; }
    .sec-title.text-center .line-through { left: 50%; transform: translateX(-50%); }
    .rev_slider_wrapper { display: none !important; }
    .mobile-home-hero { display: block; background: #252a65; }
    .mobile-hero-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #8f97cc #252a65; }
    .mobile-hero-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: 44px 24px 40px; background: linear-gradient(110deg, #20264eeb, #292f68b8), var(--hero-image) center/cover; }
    .mobile-hero-slide h1, .mobile-hero-slide h2 { font-size: clamp(31px, 8.8vw, 45px); line-height: 1.17; letter-spacing: -.035em; color: #fff; margin: 20px 0; overflow-wrap: anywhere; }
    .mobile-hero-slide > p { color: #e4e7f5; font-size: 16px; line-height: 1.7; }
    .mobile-hero-slide .mobile-hero-eyebrow { color: #d5daf8; font-size: 11px; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
    .mobile-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
    .mobile-hero-actions .thm-btn { white-space: normal; text-align: center; padding: 13px 20px; line-height: 1.5; }
    .mobile-hero-secondary { display: inline-flex; align-items: center; min-height: 44px; gap: 14px; color: #fff; }
    .mobile-hero-secondary:hover { color: #dfe5ff; }
    .mobile-hero-hint { margin: 0; padding: 12px 24px; color: #e4e7f5; font-size: 12px; text-align: right; }
    .mobile-home-hero a:focus-visible, .mobile-hero-track:focus-visible { outline: 3px solid #43c3ea; outline-offset: -3px; }
    .cms-directory .cms-card { padding: 24px; }
    .cms-directory .empty-state { padding: 32px 24px; }
    .single-choose-item { margin-bottom: 24px; }
    .contact-info-area .work-box { padding: 24px 20px; }
    .about-modern .about-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .about-modern .about-hero-copy h1 { overflow-wrap: anywhere; }
    .about-modern .about-actions { gap: 14px 20px; }
    .about-modern .about-image-frame img { max-width: 100%; }
    .about-modern .about-cta .about-button-light { white-space: normal; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-hero-track { scroll-behavior: auto; scroll-snap-type: none; }
}
/* Carousel tracks are intentionally wider than their viewport. */
.rev_slider_wrapper, .services-area .service-carousel, .brand-area .brand, .feedback-section .single-item-carousel { max-width: 100%; overflow: hidden; }
@media (max-width: 767px) {
    .sec-title .line-through { display: none; }
    .sec-title { min-height: 0; padding-bottom: 10px; }
    .sec-title .overlay-title { padding-top: 0; }
}
