/* ============================================================
   responsive.css
   ALL media queries for the site live here. Nothing else in
   the codebase should contain an @media rule.
   ============================================================ */

/*=====================================================
   Media queries moved from css/style.css
======================================================*/
@media all and (min-width: 768px) and (max-width: 1199px) {
  #scroll-top.active {
    bottom: 100px;
  }
}
@media all and (max-width: 575px) {
  .float-contact {
    left: 15px;
    bottom: 15px;
  }
  .float-contact .float-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}
@media all and (max-width: 767px) {
  .site-heading .site-title {
    font-size: 26px;
  }
}
@media all and (min-width: 992px) {
  .navbar .nav-item .nav-link {
    margin-right: 22px;
    padding: 25px 10px;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-dark);
    text-transform: capitalize;
  }
  .navbar .nav-item .nav-link.active, .navbar .nav-item:hover .nav-link {
    color: var(--theme-color);
  }
  .navbar .nav-item:last-child .nav-link {
    margin-right: 0;
  }
  .navbar .nav-item .dropdown-menu {
    display: block;
    padding: 8px 0;
    margin-top: 0;
    left: -15px;
    border-radius: 0px;
    border: none;
    background: var(--color-dark);
    border-top: 3px solid var(--theme-color);
           width: 280px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition2);
  }
  .navbar .nav-item .dropdown-menu li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  }
  .navbar .nav-item .dropdown-menu li:last-child {
    border-bottom: none;
  }
  .navbar .nav-item .dropdown-menu .dropdown-item {
    font-size: 16px;
    padding: 8px 15px 8px 25px;
    font-weight: 500;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    text-transform: capitalize;
    transition: var(--transition2);
    z-index: 1;
  }
  .navbar .nav-item .dropdown-menu .dropdown-item:hover {
    background: transparent;
    padding-left: 32px;
  }
  .navbar .nav-item .dropdown-menu .dropdown-item::before {
    content: "//";
    position: absolute;
    left: 15px;
    top: 8px;
    color: var(--color-white);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition2);
    z-index: -1;
  }
  .navbar .nav-item .dropdown-menu .dropdown-item:hover::before {
    opacity: 1;
    visibility: visible;
  }
  .navbar .nav-item:hover .dropdown-menu {
    transition: 0.3s;
    opacity: 1;
    visibility: visible;
    top: 100%;
    transform: rotateX(0deg);
  }
  .navbar.fixed-top .nav-item .nav-link {
    color: var(--color-dark);
  }
  .navbar.fixed-top .nav-link.active,
  .navbar.fixed-top .nav-item:hover .nav-link {
    color: var(--theme-color);
  }
  .navbar .dropdown-menu-end {
    right: 0;
    left: auto;
  }
  .navbar .dropdown-menu.fade-down {
    top: 80%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
  }
  .navbar .nav-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-left: 30px;
  }
}
@media all and (max-width: 1199px) {
  .navbar .nav-item .nav-link {
    margin-right: 15px;
  }
  .navbar .nav-right {
    margin-left: 25px;
  }
  .navbar .nav-right .nav-btn,
  .navbar .nav-right .sidebar-btn {
    display: none;
  }
}
@media all and (max-width: 991px) {
  .navbar .offcanvas {
    width: 300px;
  }
  .navbar .offcanvas-header .btn-close {
    background: var(--color-red);
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50px;
    color: var(--color-white);
    font-size: 18px;
    box-shadow: none;
    opacity: 1;
  }
  .navbar .offcanvas-brand {
    width: 150px;
  }
  .navbar.fixed-top:has(.offcanvas.show) {
    animation: none;
  }
  .navbar .nav-item .nav-link {
    color: var(--color-dark);
    font-weight: 700;
    margin-right: 0px;
    transition: var(--transition);
  }
  .navbar .nav-item .nav-link:hover {
    color: var(--theme-color);
  }
  .navbar .nav-item .dropdown-menu {
    border-radius: 15px;
  }
  .navbar .nav-item .dropdown-toggle::after {
    float: right;
    margin-top: 2.5px;
  }
  .navbar-toggler {
    padding: 0;
    border: none;
  }
  .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }
  .navbar-toggler span {
    display: block;
    width: 22px;
    border-bottom: 3px solid var(--color-dark);
    border-radius: 50px;
    margin-top: 5px;
  }
  .navbar-toggler span:first-child {
    margin-top: 0;
  }
  .navbar-toggler span:nth-child(2) {
    width: 15px;
  }
  .navbar .mobile-menu-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .navbar .nav-right {
    display: none;
  }
}
@media all and (max-width: 991px) {
  .navbar .nav-item .dropdown-menu .dropdown-item {
    color: var(--color-dark);
  }
}
@media all and (min-width: 992px) {
  .navbar .nav-item.mega-dropdown {
    position: static;
  }
  .navbar .nav-item .dropdown-menu.applications-mega {
    left: 50%;
    width: min(1220px, 96vw);
    padding: 28px 32px;
    transform: translateX(-50%) rotateX(-75deg);
  }
  .navbar .nav-item:hover .dropdown-menu.applications-mega {
    transform: translateX(-50%) rotateX(0deg);
  }
  .applications-mega-head {
    color: var(--color-white);
    opacity: 0.7;
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }
  .applications-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 30px;
  }
  .applications-mega-item {
    opacity: 0;
    transform: translateY(12px);
  }
  .applications-mega-item .app-icon {
    background: rgba(255, 255, 255, 0.08);
  }
  .applications-mega-item .app-text {
    color: var(--color-white);
  }
  .applications-mega-item:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .navbar .nav-item:hover .applications-mega-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i, 0) * 0.04s);
  }
}
@media all and (max-width: 767px) {
  .hero-section .hero-single .hero-content .hero-sub-title {
    font-size: 7px;
  }
}
@media all and (max-width: 1199px) {
  .hero-section .hero-single .hero-content .hero-title {
    font-size: 37px;
  }
}
@media all and (max-width: 991px) {
  .hero-section .hero-single .hero-content .hero-title {
    font-size: 50px;
  }
}
@media all and (max-width: 767px) {
  .hs-1 .hero-single {
    height: unset;
    min-height: unset;
    padding-top: 150px;
  }
}
@media all and (min-width: 992px) and (max-width: 1199px) {
  .hs-1 .hero-single .hero-content {
    margin-top: 10px;
  }
}
@media all and (min-width: 992px) and (max-width: 1199px) {
  .hs-1 .hero-single .hero-content .hero-title {
    font-size: 50px;
  }
}
@media all and (max-width: 767px) {
  .hs-1 .hero-single .hero-content .hero-title {
    font-size: 45px;
  }
}
@media all and (max-width: 767px) {
  .hs-1 .hero-single .hero-content .hero-info-2 ul {
    flex-direction: column;
  }
}
@media all and (max-width: 991px) {
  .about-left {
    margin-right: 0;
  }
}
@media all and (max-width: 991px) {
  .about-right {
    margin-top: 80px;
  }
}
@media all and (max-width: 1199px) {
  .about-experience {
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
  }
}
@media all and (max-width: 1199px) {
  .about-experience .icon {
    display: none;
  }
}
@media all and (max-width: 767px) {
  .about-area2 .about-left .about-experience {
    margin-top: 0px;
  }
}
@media all and (max-width: 767px) {
  .about-area2 .about-left .call-box {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
    margin-top: 55px;
  }
}
@media all and (max-width: 767px) {
  .about-area2 .about-left .call-box .call-info {
    text-align: center;
  }
}
@media all and (max-width: 767px) {
  .about-area2 .about-left .call-box .call-info a {
    font-size: 16px;
  }
}
@media all and (max-width: 767px) {
  .about-area2 .about-left .rating-box {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }
}
@media all and (max-width: 767px) {
  .counter-title::before {
    bottom: -20px;
  }
}
@media all and (max-width: 767px) {
  .counter-box {
    padding-bottom: 20px;
  }
}
@media all and (max-width: 767px) {
  .counter-box::before {
    border-right: none;
    border-bottom: 1px solid var(--border-info-color);
    width: 100%;
    right: 0;
  }
}
@media all and (max-width: 991px) {
  .faq-area .accordion-button {
    font-size: 16px;
  }
}
@media all and (max-width: 991px) {
  .faq-area .faq-content {
    margin-bottom: 50px;
  }
}
@media all and (max-width: 767px) {
  .faq-area .faq-img img {
    min-height: 300px;
    -o-object-fit: cover;
       object-fit: cover;
  }
}
@media all and (max-width: 991px) {
  .testimonial-item {
    flex-direction: column;
  }
}
@media all and (max-width: 991px) {
  .choose-area2 .choose-img img,
  .choose-area2 .choose-img video {
    max-width: 100%;
    width: 100%;
  }
}
@media all and (max-width: 767px) {
  .cta-img .img-1 {
    display: none;
  }
}
@media all and (max-width: 767px) {
  .cta-img .img-2 {
    width: 72%;
  }
}
@media all and (max-width: 991px) {
  .footer-widget-wrap {
    padding-bottom: 0px;
  }
}
@media all and (max-width: 1199px) {
  .footer-widget-box {
    margin-bottom: 50px;
  }
}
@media all and (max-width: 1199px) {
  .footer-list li a {
    font-size: 14px;
  }
}
@media all and (max-width: 991px) {
  .footer-list li a {
    font-size: 16px;
  }
}
@media all and (max-width: 767px) {
  .footer-social {
    justify-content: flex-start;
    margin-top: 20px;
  }
}
@media all and (max-width: 1199px) {
  .footer-contact {
    flex-wrap: wrap;
    gap: 30px;
  }
}
@media all and (max-width: 991px) {
  .footer-contact {
    margin-top: 30px;
  }
}
@media all and (max-width: 991px) {
  .footer-contact-wrap {
    flex-wrap: wrap;
  }
}
@media all and (max-width: 991px) {
  .service-wrap {
    padding: 50px 10px;
  }
  /* .service-wrap.full (career.php "Current Openings") has higher
     specificity than the rule above, so it wouldn't actually pick up
     the mobile reduction without being targeted directly. */
  .service-wrap.full {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}
@media all and (max-width: 991px) {
  .portfolio-panel .pin-panel {
    height: 100%;
  }
}
@media all and (max-width: 991px) {
  .portfolio-panel .pin-panel .portfolio-info {
    margin: 25px 0 10px 0;
  }
}
@media all and (max-width: 991px) {
  .portfolio-panel .pin-panel .portfolio-bottom {
    margin-top: 18px;
  }
}
@media (prefers-reduced-motion) {
  .tw-marquee-group {
    animation-play-state: paused;
  }
}
@media all and (max-width: 575px) {
  .gform-row {
    flex-direction: column;
    gap: 0;
  }
}
@media all and (max-width: 575px) {
  .gform-popup {
    margin: 12px;
    border-radius: 16px;
  }
  .gform-header {
    padding: 22px 24px 32px;
  }
  .gform-form {
    padding: 18px 20px 22px;
  }
}

/*=====================================================
   Media queries moved from inline page <style> blocks
======================================================*/

/* moved from inline <style> in applications.php */
@media all and (max-width: 991px) {
  .app-block { padding: 40px 0; }
  .app-img-wrap img { height: 260px; margin-bottom: 20px; }
}


/* moved from inline <style> in history.php */
@media (max-width: 767px) {
    .our-journey::before { left: 24px; }
    .journey-row { gap: 16px; }
    .journey-dot { flex: 0 0 50px; width: 50px; height: 50px; font-size: 1.1rem; }
    .journey-box { padding: 20px; }
  }


/* moved from inline <style> in vision.php */
@media (max-width: 640px) {
    .vm-card { padding: 34px 24px; }
    .vm-card blockquote { font-size: 1.05rem; }
    .vm-card .big-quote { font-size: 4.5rem; }
  }


/* moved from inline <style> in common/related-applications.php */
@media all and (max-width: 767px) {
    .related-apps-area .related-app-slider.owl-theme .owl-nav .owl-prev {
      left: -8px;
    }
    .related-apps-area .related-app-slider.owl-theme .owl-nav .owl-next {
      right: -8px;
    }
  }


/*=====================================================
   Site-wide responsive fixes (hand-written)
======================================================*/

/* ---------- 1. Global safety net ---------- */
html, body {
  overflow-x: hidden;
}
img, video, iframe {
  max-width: 100%;
}

/* ---------- 2. Section spacing utilities ----------
   .pt-*/.pb-*/.py-* (60-150px) never scaled down for small
   screens in style.css, so every section on every page keeps
   full desktop spacing on phones. Scale down progressively. */
@media all and (max-width: 991px) {


  .pt-120 { padding-top: 90px; }
  .pb-120 { padding-bottom: 90px; }


  .pt-100 { padding-top: 80px; }
  .py-100 { padding-top: 80px; padding-bottom: 80px; }

  .py-90 { padding-top: 70px; padding-bottom: 70px; }

  .py-80 { padding-top: 60px; padding-bottom: 60px; }


  .pt-60,
  .py-60 { padding-top: 45px; }
  .pb-60,
  .py-60 { padding-bottom: 45px; }
}

@media all and (max-width: 767px) {
  .pt-150, .pt-140, .pt-130, .pt-120, .pt-110, .pt-100 { padding-top: 60px; }
  .pb-150, .pb-140, .pb-130, .pb-120, .pb-110, .pb-100 { padding-bottom: 60px; }
  .py-150, .py-140, .py-130, .py-120, .py-110, .py-100 { padding-top: 60px; padding-bottom: 60px; }

  .py-90, .py-80, .py-70 { padding-top: 50px; padding-bottom: 50px; }

  .pt-60, .py-60 { padding-top: 40px; }
  .pb-60, .py-60 { padding-bottom: 40px; }
}

@media all and (max-width: 480px) {
  .pt-150, .pt-140, .pt-130, .pt-120, .pt-110, .pt-100, .pt-90, .pt-80, .pt-70 { padding-top: 45px; }
  .pb-150, .pb-140, .pb-130, .pb-120, .pb-110, .pb-100, .pb-90, .pb-80, .pb-70 { padding-bottom: 45px; }
  .py-150, .py-140, .py-130, .py-120, .py-110, .py-100, .py-90, .py-80, .py-70 { padding-top: 45px; padding-bottom: 45px; }

  .pt-60, .py-60 { padding-top: 35px; }
  .pb-60, .py-60 { padding-bottom: 35px; }
}

/* ---------- 3. Breadcrumb / page banner ----------
   padding-top:200px + padding-bottom:120px + 35px title never
   shrinks in style.css, so every inner page opens with an
   oversized banner on phones. */
@media all and (max-width: 991px) {
  .site-breadcrumb {
    padding-top: 140px;
    padding-bottom: 80px;
  }
  .site-breadcrumb .breadcrumb-title {
    font-size: 28px;
  }
}
@media all and (max-width: 767px) {
  .site-breadcrumb {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .site-breadcrumb .breadcrumb-title {
    font-size: 24px;
  }
  .site-breadcrumb .breadcrumb-menu li {
    margin-left: 18px;
    font-size: 14px;
  }
  .site-breadcrumb .breadcrumb-menu li::before {
    right: -15px;
    font-size: 13px;
  }
}
@media all and (max-width: 480px) {
  .site-breadcrumb {
    padding-top: 165px;
    padding-bottom: 45px;
  }
  .site-breadcrumb .breadcrumb-title {
    font-size: 21px;
  }
}

/* ---------- 4. Industry-page featured product (.tds-card) ----------
   Base rules now live in css/style.css (moved there from the inline
   <style> block every *-industry.php page used to repeat). Its fixed
   40px padding and un-wrapped composition/property tables get cramped
   on phones. */
@media all and (max-width: 767px) {
  .tds-card {
    padding: 24px !important;
  }
  .tds-card table th,
  .tds-card table td {
    padding: 8px 10px !important;
    font-size: 13.5px !important;
  }
}
@media all and (max-width: 480px) {
  .tds-card {
    padding: 18px !important;
  }
  .tds-card .tds-badge {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
  .tds-card table th,
  .tds-card table td {
    padding: 7px 8px !important;
    font-size: 12.5px !important;
  }
  .tds-tag {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
}
/* Safety net: the two composition/property tables sit in a plain
   .row > .col-md-6 (not .table-responsive), so on very narrow
   screens let the column scroll instead of squeezing/overflowing. */
.tds-card .row.g-4.mt-1 > [class*="col-"] {
  overflow-x: auto;
}
.tds-card .row.g-4.mt-1 > [class*="col-"] table {
  min-width: 280px;
}

/* ---------- 5. Gallery & related-application image tiles ----------
   Base rules now live in css/style.css. Fixed pixel heights with no
   mobile reduction otherwise. */
@media all and (max-width: 575px) {
  .gallery-img img {
    height: 200px !important;
  }
  .related-apps-area .related-app-img-wrap {
    height: 130px !important;
  }
}

/* ---------- 6. Contact page map ----------
   contact.php embeds the Google Map with a fixed height="500"
   HTML attribute; CSS overrides it cleanly since it's just a
   presentational attribute, not an inline style. */
@media all and (max-width: 767px) {
  .contact-map iframe {
    height: 320px;
  }
}
@media all and (max-width: 480px) {
  .contact-map iframe {
    height: 260px;
  }
}

/* ---------- 7. Small-screen card padding ----------
   Theme's .feature-item/.choose-item keep desktop padding at
   every width; tighten it slightly on phones. */
@media all and (max-width: 480px) {
  .feature-item {
    padding: 22px 18px;
  }
  .choose-item {
    padding: 18px;
  }
}

/* ---------- 8. Theme buttons ---------- */
@media all and (max-width: 767px) {
  .theme-border-btn,
  .theme-btn2,
  .theme-btn {
    padding: 4px 7px;
  }
}

/* ---------- 9. Footer contact strip ---------- */
@media all and (max-width: 767px) {
  .footer-area.ft-2 .footer-contact.fc-2 {
    margin-top: 0px;
  }
  /* "Our Address" wraps to 2 lines while Call Us/Mail Us stay on 1,
     so with align-items:center its icon sits lower than the other
     two — align all three icons to the top of their content instead
     so they look consistent regardless of text length. */
  .footer-contact-item {
    align-items: flex-start;
  }
  /* .icon has no flex-shrink set, so in the cramped mobile row the
     flex item shrinks its width (but not height) once the address
     text pushes on space, turning the circle into an oval. */
  .footer-contact-item .icon {
    flex-shrink: 0;
  }
}
