/* ==========================================================================
   RESPONSIVE CSS (responsive.css) - Salma Industries
   Organized strictly by device breakpoints for clean maintenance:
   1. Large Desktops & Laptops     (max-width: 1400px)
   2. Standard Desktops & Tablets  (max-width: 1200px)
   3. Tablets & Small Laptops      (max-width: 991px)
   4. Phablets & Landscape Phones  (max-width: 767px)
   5. Mobile Phones                (max-width: 575px)
   6. Extra Small Screens          (max-width: 375px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Desktops & Laptops (max-width: 1400px)
   -------------------------------------------------------------------------- */
@media (max-width: 1400px) {
  .hero-title {
    font-size: 58px;
  }

  .page-banner-heading {
    font-size: 52px;
  }

  .section-title {
    font-size: 42px;
  }

  .main-heading {
    font-size: 44px;
  }
}

/* --------------------------------------------------------------------------
   2. Standard Desktops & Tablets (max-width: 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {

  /* Global Typography */
  .hero-title {
    font-size: 46px;
    line-height: 1.18;
  }

  .page-banner-heading {
    font-size: 44px;
    line-height: 1.18;
  }

  .section-title {
    font-size: 36px;
    line-height: 1.22;
  }

  .main-heading {
    font-size: 38px;
    line-height: 1.22;
  }

  .cta-title {
    font-size: 36px;
    line-height: 1.22;
  }

  /* Home Page Components */
  .hero-desc {
    font-size: 18px;
  }

  .mosaic-bottom-item {
    height: 280px;
  }

  .projects-col:nth-child(1) .realisation-item:nth-child(1) {
    height: 300px;
  }

  .projects-col:nth-child(1) .realisation-item:nth-child(2) {
    height: 180px;
  }

  .projects-col:nth-child(2) .realisation-item:nth-child(1) {
    height: 200px;
  }

  .projects-col:nth-child(2) .realisation-item:nth-child(2) {
    height: 280px;
  }

  .projects-col:nth-child(3) .realisation-item:nth-child(1) {
    height: 320px;
  }

  .projects-col:nth-child(3) .realisation-item:nth-child(2) {
    height: 160px;
  }

  /* Process Cards */
  .process-number {
    font-size: 26px;
  }


}

/* --------------------------------------------------------------------------
   3. Tablets & Small Laptops (max-width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {

  /* Layout Spacing */
  body {
    padding-top: 68px;
  }

  .py_100 {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .section-padding {
    padding: 60px 0;
  }

  /* Typography */
  .hero-title {
    font-size: 38px;
    line-height: 1.2;
  }

  .page-banner-heading {
    font-size: 36px;
    line-height: 1.2;
  }

  .page-banner-content {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .section-title {
    font-size: 30px;
    line-height: 1.25;
  }

  .main-heading {
    font-size: 32px;
    line-height: 1.25;
  }

  .cta-title {
    font-size: 30px;
    line-height: 1.25;
  }

  .page-banner-desc {
    font-size: 16px;
  }

  .section-desc,
  .dec-txt {
    font-size: 16px;
    line-height: 1.6;
  }


  /* Home: Hero */
  .hero-section {
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
    display: flex;
    align-items: center;
    padding: 45px 0;
    background-position: right 30% center;
  }

  .hero-section::before {
    background: linear-gradient(90deg, rgba(0, 75, 153, 0.95) 0%, rgba(0, 75, 153, 0.85) 60%, rgba(0, 75, 153, 0.4) 100%);
  }

  .hero-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }

  .hero-strip-divider {
    display: none;
  }

  .hero-item-rgt p {
    text-align: left;
  }

  .activites-page-section {
    padding: 45px 0 65px;
  }

  .activite-row {
    margin-bottom: 40px;
  }

  .activite-image-box {
    height: 240px;
  }

  .activite-content-box {
    padding: 16px 0 0 0;
  }

  .activite-number {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .activite-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .activite-desc {
    font-size: 14.5px;
    margin-bottom: 14px;
  }

  /* Home: About & Flex headers */
  .about-content {
    padding-right: 0;
  }

  .about-section::after {
    display: none;
  }

  .about-img-box {
    display: block;
  }

  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }

  /* Home: Sectors 3x2 -> 2x3 on Tablet */
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-card {
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 30px 24px;
    min-height: auto;
  }

  .quality-safety-section {
    padding: 50px 0;
  }

  .cta-banner-section {
    padding: 40px 0
  }

  .sectors-section {
    padding: 50px 0;
  }


  /* Home: Mosaic */
  .categories-grid-top {
    margin-bottom: 20px;
  }

  .mosaic-bottom-row {
    grid-template-columns: 1fr;
  }

  .mosaic-bottom-item {
    height: 250px;
  }

  /* Home: Process 4-col -> 2-col */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Home: Realisations Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-col {
    gap: 16px;
  }

  .projects-col:nth-child(n) .realisation-item:nth-child(n) {
    height: 240px;
  }

  /* Workshop Banner */
  .workshop-img-wrap {
    min-height: 340px;
  }

  .workshop-content {
    padding-left: 0;
    margin-top: 30px;
  }

  .workshop-content-box,
  .company-team-content-box,
  .qs-cert-content-box {
    max-width: 100%;
    padding: 36px 24px;
  }

  /* CTA Sections */
  .cta-info-wrap {
    padding-right: 0;
    margin-bottom: 28px;
  }

  .cta-box-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cta-right,
  .cta-right-box {
    align-items: flex-start;
    width: 100%;
  }

  /* Company Page */
  .company-mission-quote {
    font-size: 22px;
    line-height: 1.5;
  }

  .company-strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-strength-card:nth-child(3n) {
    border-right: 1px solid #E6ECEF;
  }

  .company-strength-card:nth-child(2n) {
    border-right: none;
  }

  .company-strength-card:nth-child(n+4) {
    border-bottom: 1px solid #E6ECEF;
  }



  /* Quality & Safety Page */
  .quality-intro-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .quality-safety-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  /* Contact Page */
  .contact-right-panel {
    margin-top: 40px;
  }

  .contact-map-wrap {
    min-height: 380px;
  }

  .contact-map-wrap iframe {
    min-height: 380px;
  }

  /* Activities Details */
  .activity-hero-img-wrap {
    max-height: 380px;
  }

  .activity-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .activity-gallery-item {
    height: 250px;
  }

  .activity-gallery-item.col-span-2 {
    grid-column: span 2;
  }

  .page-hero-banner {
    min-height: 400px;
    padding: 38px 0 30px;
  }

}

/* --------------------------------------------------------------------------
   4. Phablets & Landscape Phones (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {

  /* Layout Spacing */
  .section-padding {
    padding: 50px 0;
  }

  .py_100 {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  /* Typography */
  .hero-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .page-banner-heading {
    font-size: 30px;
    line-height: 1.2;
  }

  .section-title {
    font-size: 26px;
    line-height: 1.25;
  }

  .main-heading {
    font-size: 28px;
    line-height: 1.25;
  }

  .cta-title {
    font-size: 26px;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 16px;
    line-height: 1.55;
  }

  /* Breadcrumbs */
  .page-banner-breadcrumb {
    font-size: 13px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Process Cards 2-col -> 1-col */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Sectors 2-col -> 1-col */
  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .sector-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px 18px;
  }

  .sector-card:last-child {
    border-bottom: none;
  }

  /* Quality Grid Table */
  .quality-grid-table,
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .quality-grid-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 24px 18px;
  }

  .quality-grid-cell:nth-child(n+3) {
    border-bottom: none;
  }


  /* Company Strengths 2-col -> 1-col */
  .company-strengths-grid {
    grid-template-columns: 1fr;
  }

  .company-strength-card {
    border-right: none;
    border-bottom: 1px solid #E6ECEF;
    padding: 26px 20px;
  }



  /* QS Cards Grid */
  .qs-cards-grid {
    grid-template-columns: 1fr;
  }

  .qs-card {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding: 26px 20px;
  }

  .qs-card:last-child {
    border-bottom: none;
  }

  /* Legal & Sitemap Responsive */
  .legal-nav-sticky {
    position: static;
    margin-bottom: 30px;
  }

  /* Activities Family Cards */
  .famille-featured-img {
    height: 200px;
  }

  .famille-mini-card {
    flex-direction: column;
  }

  .famille-mini-thumb {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 160px;
  }

  .gallery-page-section {
    padding: 40px 0 70px;
  }

  .gallery-filter-wrap {
    margin-bottom: 25px;
  }

  .filter-tab-btn {
    font-size: 14px;
    padding: 7px 14px;
  }

  .gallery-card-img {
    height: 200px;
  }

  .gallery-card-title {
    font-size: 17px;
  }

  /* Projects Filter Tabs */
  /* .gallery-filter-tabs {
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .gallery-filter-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13px;
    flex-shrink: 0;
  } */

  .activity-hero-img-wrap {
    height: 240px;
  }

  /* Tech Table in Activity Details */
  .tech-table-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 0;
  }

  .tech-label {
    min-width: auto;
    font-weight: 600;
  }

  /* Activity Nav Prev/Next */
  .activity-nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .activity-nav-prev,
  .activity-nav-next {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Legal & Sitemap (< 768px) */
  .legal-doc-card {
    padding: 22px 18px;
    margin-bottom: 18px;
  }

  .legal-card-header {
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .legal-card-title {
    font-size: 17px;
  }

  .legal-info-table tr,
  .legal-info-table tr td {
    display: block;
    width: 100% !important;
  }

  .legal-info-table tr td:first-child {
    border-radius: 6px 6px 0 0;
    padding-bottom: 2px;
  }

  .legal-info-table tr td:last-child {
    border-radius: 0 0 6px 6px;
    padding-top: 2px;
    margin-bottom: 8px;
  }

  .sitemap-hub-card {
    padding: 22px 18px;
    margin-bottom: 20px;
  }

  .sitemap-hub-title {
    font-size: 18px;
  }

  .sitemap-link-card {
    padding: 14px 16px;
  }
}

/* --------------------------------------------------------------------------
   5. Mobile Phones (< 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {

  /* Layout Spacing */
  body {
    padding-top: 64px;
  }

  .py_100 {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-padding {
    padding: 40px 0;
  }

  /* Typography */
  .hero-title {
    font-size: 26px;
    line-height: 1.22;
    margin-bottom: 12px;
  }

  .page-banner-heading {
    font-size: 24px;
    line-height: 1.22;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .main-heading {
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }

  .cta-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .page-banner-desc {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .section-desc,
  .dec-txt {
    font-size: 14.5px;
    line-height: 1.55;
  }

  /* Buttons on Mobile (Full Width for easy tap) */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .btn-salma-primary,
  .btn-salma-outline-white,
  .btn-salma-outline-dark {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
  }

  /* Hero Section */
  .hero-section {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    display: flex;
    align-items: center;
    padding: 35px 0;
    background-position: right 18% center;
  }

  .hero-section::before {
    background: linear-gradient(180deg, rgba(0, 75, 153, 0.95) 0%, rgba(0, 75, 153, 0.88) 70%, rgba(0, 75, 153, 0.65) 100%);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn-salma-primary,
  .hero-actions .btn-salma-outline-white {
    width: 100%;
    justify-content: center;
  }

  /* Badge */
  .section-tag-badge {
    height: auto;
    padding: 6px 38px 6px 12px;
    -webkit-clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0 100%);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0 100%);
  }

  .section-tag-badge svg {
    display: none;
  }

  .section-tag-badge span {
    font-size: 13px;
    white-space: normal;
  }

  /* Activity Details Breadcrumb */
  .activity-breadcrumb-wrap {
    padding: 24px 0 16px;
    margin-bottom: 20px;
    gap: 12px;
  }

  /* Mosaic */
  .mosaic-top-banner {
    max-height: 200px;
  }

  .mosaic-bottom-item {
    height: 180px;
  }

  /* Workshop */
  .workshop-img-wrap {
    min-height: 240px;
  }

  .workshop-content-box,
  .company-team-content-box,
  .qs-cert-content-box {
    padding: 24px 16px;
  }

  /* Company */
  .company-mission-quote {
    font-size: 18px;
    line-height: 1.5;
  }

  .company-team-img-wrap,
  .qs-cert-img-wrap {
    min-height: 240px;
  }

  /* Activities Details */
  .activity-hero-img-wrap {
    max-height: 260px;
    border-radius: 4px;
  }

  .activity-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .activity-gallery-item,
  .activity-gallery-item.col-span-2 {
    grid-column: span 1;
    height: 200px;
  }

  .activity-detail-title {
    font-size: 22px;
  }

  /* Contact Us Page Form */

  .form-control-custom {
    padding: 12px 14px;
    font-size: 14px;
  }

  .form-label-custom {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .file-upload-box {
    padding: 14px 12px;
  }

  .file-upload-icon-text {
    font-size: 14px;
  }

  .file-upload-sub {
    font-size: 12px;
  }

  .contact-info-heading {
    font-size: 15px;
  }

  .contact-info-text {
    font-size: 13.5px;
  }

  .contact-map-wrap {
    min-height: 280px;
  }

  .contact-map-wrap iframe {
    min-height: 280px;
  }

  /* Footer */


  .page-hero-banner {
    min-height: 280px;
    padding: 30px 0;
  }

  .quality-safety-section {
    padding: 40px 0;
  }


  .sectors-section {
    padding: 40px 0;
  }

  .company-strength-title {
    font-size: 18px;
  }

  .footer-main-area,
  .footer-top {
    padding-bottom: 20px;
  }

  /* Legal & Sitemap (< 576px) */
  .legal-page-section,
  .sitemap-page-section {
    padding: 36px 0 50px;
  }

  .legal-card-title {
    font-size: 16px;
  }

  .legal-card-content p {
    font-size: 14px;
    line-height: 1.65;
  }

  .sitemap-hub-title {
    font-size: 16px;
  }

  .sitemap-link-title {
    font-size: 14.5px;
  }

  .sitemap-link-desc {
    font-size: 12.5px;
  }
}

/* --------------------------------------------------------------------------
   6. Extra Small Screens (max-width: 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
  .hero-title {
    font-size: 23px;
  }

  .page-banner-heading {
    font-size: 21px;
  }

  .section-title {
    font-size: 20px;
  }

  .main-heading {
    font-size: 21px;
  }

  .cta-title {
    font-size: 20px;
  }

  .section-tag-badge span {
    font-size: 11px;
  }

  .btn-salma-primary,
  .btn-salma-outline-white,
  .btn-salma-outline-dark {
    padding: 11px 16px;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   Addendum v2.2 Responsive Refinements
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .catalogue-band-title {
    font-size: 1.35rem;
  }

  .catalogue-band-desc {
    font-size: 0.95rem;
  }

  .catalogue-band-section {
    padding: 40px 0;
  }

  .expertise-intermediate-band {
    padding: 35px 0;
  }

  .expertise-intermediate-text {
    font-size: 1.1rem;
  }

  .activity-takecharge-title {
    font-size: 1.2rem;
  }

  .faq-accordion-btn {
    padding: 14px 18px;
    font-size: 0.98rem;
  }

  .faq-body {
    padding: 14px 18px 18px;
    font-size: 0.9rem;
  }

  .hero-slider-caption-pill {
    bottom: 24px;
    right: 20px;
    font-size: 12px;
    padding: 6px 14px;
  }
}