/* ============================================================
   ADDONRACKS — RESPONSIVE CSS
   responsive.css  |  Add this AFTER style.css & bootstrap.css
   Covers: Mobile (<=576px), Tablet (577px-1024px), Desktop tweaks
   ============================================================ */

/* ──────────────────────────────────────────────
   0. GLOBAL HELPERS
────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
}
* {
  box-sizing: border-box;
}

/* ──────────────────────────────────────────────
   1. TOP HEADER
────────────────────────────────────────────── */
@media (max-width: 991px) {
  .top-right-header,
  .md-display-none {
    display: none !important;
  }
  .top-header .col-md-6:last-child {
    display: none !important;
  }
  .top-header .col-md-6:first-child,
  .top-header .col-lg-7 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    text-align: center;
  }
  .top-left-header {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 4px;
  }
}
@media (max-width: 576px) {
  .top-header {
    padding: 6px 0;
  }
  .top-header a {
    font-size: 12px;
  }
  .top-left-header {
    flex-direction: column;
    gap: 2px;
    align-items: center;
  }
  .top-left-header span {
    display: none;
  }
}

/* ──────────────────────────────────────────────
   2. MAIN NAVIGATION / NAVBAR
────────────────────────────────────────────── */
@media (max-width: 991px) {
  .navbar-brand .logo img {
    max-height: 50px;
    width: auto;
  }
  .navbar-toggler {
    border: 2px solid #cc0000;
    padding: 6px 10px;
  }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23cc0000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  .navbar-collapse {
    background: #fff;
    padding: 12px 16px;
    border-top: 2px solid #cc0000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .navbar-nav .nav-link {
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  .dropdown-menu {
    border: none;
    background: #f8f8f8;
    padding: 0;
    box-shadow: none;
    margin: 0 !important;
  }
  .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
  }
  .dropdown-item:last-child {
    border-bottom: none;
  }
  .navbar-nav .ms-auto {
    width: 100%;
  }
  .nav-link.dropdown-toggle::after {
    float: right;
    margin-top: 6px;
  }
}
@media (max-width: 576px) {
  .navbar-brand .logo img {
    max-height: 42px;
  }
  .navbar {
    padding: 8px 0 !important;
  }
}

/* ──────────────────────────────────────────────
   3. HERO / BANNER SLIDER (index.html)
────────────────────────────────────────────── */
@media (max-width: 991px) {
  .banner .swiper-slide img {
    height: 360px;
    object-fit: cover;
    width: 100%;
  }
  .banner .swiper-slide .content {
    padding: 16px 20px;
  }
  .banner .swiper-slide .content h2 {
    font-size: 22px;
    line-height: 1.3;
  }
  .banner .swiper-slide .content p {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 34px !important;
    height: 34px !important;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px !important;
  }
}
@media (max-width: 576px) {
  .banner .swiper-slide img {
    height: 220px;
  }
  .banner .swiper-slide .content {
    padding: 10px 14px;
  }
  .banner .swiper-slide .content h2 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .banner .swiper-slide .content p {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
  .banner .swiper-slide .content .main-btn {
    padding: 5px 14px;
    font-size: 12px;
    margin-top: 6px !important;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

/* ──────────────────────────────────────────────
   4. ABOUT SECTION (index.html)
────────────────────────────────────────────── */
@media (max-width: 991px) {
  .about .about-img {
    min-height: 280px !important;
  }
  .about .col-lg-5,
  .about .col-md-6:first-child {
    margin-bottom: 24px;
  }
  .about .col-md-5 {
    min-height: 280px;
  }
}
@media (max-width: 767px) {
  .about .row.gx-5 {
    flex-direction: column;
  }
  .about .col-lg-5,
  .about .col-md-6,
  .about .col-md-5,
  .about .col-lg-7 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
  }
  .about .about-img {
    position: relative !important;
    min-height: 220px !important;
    width: 100%;
  }
  .about .about-img img {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover;
  }
  /* Inner page image fix */
  .about .col-md-5 .position-relative {
    min-height: 220px;
  }
  .about .col-md-5 .position-absolute {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover;
    display: block;
    border-radius: 6px;
  }
  .heading-section h5 {
    font-size: 14px;
  }
  .heading-main {
    font-size: 22px !important;
    line-height: 1.3;
  }
}
@media (max-width: 576px) {
  .about {
    padding: 24px 0 !important;
  }
  .about .about-img,
  .about .col-md-5 .position-relative {
    min-height: 190px !important;
  }
  .about .about-img img,
  .about .col-md-5 .position-absolute {
    height: 190px !important;
  }
}

/* ──────────────────────────────────────────────
   5. PRODUCT SLIDER SECTION
────────────────────────────────────────────── */
@media (max-width: 991px) {
  .service .service-box {
    border-radius: 8px;
    overflow: hidden;
  }
  .service .service-box .image img {
    height: 200px;
    object-fit: cover;
    width: 100%;
  }
  .service .service-box .content {
    padding: 14px 16px;
  }
  .service .service-box h4 {
    font-size: 16px;
  }
  .service .service-box p {
    font-size: 13px;
  }
}
@media (max-width: 576px) {
  .service {
    padding: 24px 0 !important;
  }
  .service .service-box .image img {
    height: 180px;
  }
  .service .heading-main {
    font-size: 20px !important;
  }
}

/* ──────────────────────────────────────────────
   6. WHY CHOOSE US SECTION
────────────────────────────────────────────── */
@media (max-width: 767px) {
  .why-choose-us .col-md-4 {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
  .why-choose-us .content {
    text-align: center;
    padding: 16px 10px;
  }
  .why-choose-us .icon {
    margin: 0 auto 10px auto;
  }
  .why-choose-us .icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }
  .why-choose-us h4 {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .why-choose-us .col-md-4 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ──────────────────────────────────────────────
   7. WHAT WE DO SECTION
────────────────────────────────────────────── */
@media (max-width: 991px) {
  .waht-we-do .what-we-do-bg {
    min-height: 280px;
    background-size: cover !important;
    background-position: center !important;
  }
}
@media (max-width: 767px) {
  .waht-we-do .row {
    flex-direction: column;
  }
  .waht-we-do .what-we-do-bg,
  .waht-we-do .what-we-do-content {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .waht-we-do .what-we-do-bg {
    min-height: 220px;
  }
  .waht-we-do .what-we-do-content {
    padding: 24px 16px;
  }
  .waht-we-do .content ul {
    padding-left: 16px;
  }
  .waht-we-do .content ul li {
    font-size: 14px;
    margin-bottom: 6px;
  }
}
@media (max-width: 576px) {
  .waht-we-do .what-we-do-bg {
    min-height: 180px;
  }
}

/* ──────────────────────────────────────────────
   8. OUR CLIENTS SLIDER
────────────────────────────────────────────── */
@media (max-width: 767px) {
  .our-client .swiper-slide img {
    max-height: 70px;
    object-fit: contain;
    width: 100%;
  }
}
@media (max-width: 576px) {
  .our-client {
    padding: 20px 0 !important;
  }
}

/* ──────────────────────────────────────────────
   9. INNER PAGE HERO BANNER
────────────────────────────────────────────── */
@media (max-width: 991px) {
  .inner-hero-bg {
    padding: 40px 0 !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .inner-hero-bg h1.display-3 {
    font-size: 28px !important;
  }
}
@media (max-width: 576px) {
  .inner-hero-bg {
    padding: 28px 0 !important;
  }
  .inner-hero-bg h1.display-3 {
    font-size: 20px !important;
    line-height: 1.3;
  }
  .inner-hero-bg .breadcrumb {
    font-size: 12px;
  }
  .content-bnr {
    padding: 0 12px;
  }
}

/* ──────────────────────────────────────────────
   10. INNER PRODUCT DETAIL SECTION
────────────────────────────────────────────── */
@media (max-width: 767px) {
  .about.py-4 .row.gx-5,
  .about.py-5 .row.gx-5 {
    flex-direction: column;
  }
  .about .col-md-5,
  .about .col-md-7 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .about .col-md-5 {
    min-height: 220px;
    margin-bottom: 20px;
  }
  .about .col-md-5 .position-relative {
    position: relative !important;
    width: 100%;
    min-height: 220px;
    display: block;
  }
  .about .col-md-5 .position-absolute.obect-fit,
  .about .col-md-5 img.position-absolute {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover;
    display: block;
    border-radius: 6px;
  }
  .inner-heading {
    font-size: 18px !important;
    line-height: 1.4;
  }
}
@media (max-width: 576px) {
  .inner-heading {
    font-size: 16px !important;
  }
  .about .content p {
    font-size: 14px;
  }
}

/* ──────────────────────────────────────────────
   11. CONTACT PAGE
────────────────────────────────────────────── */
@media (max-width: 991px) {
  .address .col-lg-4 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .address .bg-light {
    height: auto !important;
    padding: 24px 16px !important;
    margin-bottom: 16px;
  }
  .contact-form .row.gx-5 {
    flex-direction: column;
  }
  .contact-form .col-lg-6 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .contact-form .contac-img {
    max-height: 320px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 24px;
  }
  .contact-form .contac-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
  }
}
@media (max-width: 767px) {
  .address .row.g-5 {
    --bs-gutter-y: 1rem;
    --bs-gutter-x: 1rem;
  }
  .contact-form .bg-white.rounded.p-5 {
    padding: 24px 16px !important;
  }
  .contact-form h1 {
    font-size: 22px;
    margin-bottom: 20px !important;
  }
}
@media (max-width: 576px) {
  .contact-form .contac-img,
  .contact-form .contac-img img {
    max-height: 200px;
    height: 200px;
  }
}

/* ──────────────────────────────────────────────
   12. FOOTER
────────────────────────────────────────────── */
@media (max-width: 991px) {
  footer .col-lg-3,
  footer .col-lg-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  footer .col-lg-6 .col-lg-6 {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
  footer h4 {
    font-size: 15px;
    margin-bottom: 14px !important;
  }
  footer p,
  footer a {
    font-size: 13px;
  }
}
@media (max-width: 767px) {
  footer .row.g-5 {
    --bs-gutter-y: 1.5rem;
    --bs-gutter-x: 1rem;
  }
  footer .col-lg-3.col-md-3,
  footer .col-lg-6.col-md-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  footer .col-lg-6.col-md-6 .col-lg-6.col-md-6 {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
  footer .d-flex .btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}
@media (max-width: 576px) {
  footer {
    padding-top: 28px !important;
  }
  footer .col-lg-6 .col-lg-6,
  footer .col-lg-6 .col-md-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 8px;
  }
}

/* ──────────────────────────────────────────────
   13. BUTTONS
────────────────────────────────────────────── */
@media (max-width: 576px) {
  .main-btn {
    padding: 8px 18px !important;
    font-size: 13px !important;
  }
  .btn-primary.py-3 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-size: 14px;
  }
}

/* ──────────────────────────────────────────────
   14. GENERAL SECTION SPACING
────────────────────────────────────────────── */
@media (max-width: 767px) {
  .py-5 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  .py-4 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
}
@media (max-width: 576px) {
  .py-5 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body {
    overflow-x: hidden;
  }
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ──────────────────────────────────────────────
   15. HEADING SECTION
────────────────────────────────────────────── */
@media (max-width: 767px) {
  .heading-section {
    margin-bottom: 20px;
  }
  .heading-section h5 {
    font-size: 13px;
    letter-spacing: 0.5px;
  }
  .heading-main {
    font-size: 20px !important;
  }
  .heading-section.text-center {
    text-align: center !important;
  }
}
@media (max-width: 576px) {
  .heading-main {
    font-size: 18px !important;
    line-height: 1.35;
  }
}

/* ──────────────────────────────────────────────
   16. SWIPER PAGINATION DOTS
────────────────────────────────────────────── */
@media (max-width: 767px) {
  .swiper-pagination {
    position: relative !important;
    margin-top: 16px;
  }
  .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
  }
}

/* ──────────────────────────────────────────────
   17. POSITION ABSOLUTE IMAGE FIX (Global)
────────────────────────────────────────────── */
@media (max-width: 767px) {
  .h-100 {
    height: auto !important;
  }
  
}

/* ──────────────────────────────────────────────
   18. TABLET-SPECIFIC (577px - 1024px) TWEAKS
────────────────────────────────────────────── */
@media (min-width: 577px) and (max-width: 1024px) {
  .navbar-brand .logo img {
    max-height: 52px;
  }
  .banner .swiper-slide img {
    height: 300px;
    object-fit: cover;
  }
  .banner .swiper-slide .content h2 {
    font-size: 24px;
  }
  .service .service-box .image img {
    height: 190px;
  }
  .why-choose-us .col-md-4 {
    width: 33.333%;
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
  /* Footer 2-col on tablet */
  footer .col-lg-3 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  footer .col-lg-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    order: 3;
  }
}

/* ──────────────────────────────────────────────
   19. LARGE DESKTOP (>=1200px) TWEAKS
────────────────────────────────────────────── */
@media (min-width: 1200px) {
  .navbar-nav .nav-link {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
