/* ==========================================================================
   Raymond Steels - Responsive Media Queries
   Mobile-First and Cross-Device Layout Optimization
   ========================================================================== */

@media (max-width: 1399px) {

  .hero-title .title-secondary {
    font-size: 58px;
  }
}

@media (max-width: 1199px) {
  .navbar-nav .nav-link {
    padding: 8px 12px !important;
    font-size: 14px;
  }

  .hero-section,
  .heroSwiper,
  .hero-slide {
    min-height: 75vh;
  }

  .hero-slide {
    padding-top: 130px;
    padding-bottom: 70px;
  }

  .hero-title .title-primary {
    font-size: 54px;
  }

  .hero-title .title-secondary {
    font-size: 48px;
  }

  .group-concerns-pill {
    padding: 22px 30px;
  }

  .unit-card-featured {
    transform: none;
  }

  .unit-card-featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 991px) {

  /* Mobile Header Navigation & Offcanvas Side Drawer */
  .mainHeader {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  }

  .custom-nav-container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body.menu-drawer-active {
    overflow: hidden !important;
    touch-action: none;
  }

  /* Backdrop Overlay */
  .nav-drawer-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 22, 44, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1055;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Side Drawer Panel */
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 460px !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: -10px 0 35px rgba(8, 22, 44, 0.18) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    z-index: 1060 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s !important;
    visibility: hidden;
  }

  .navbar-collapse.show,
  .navbar-collapse.drawer-open {
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  section {
    overflow: hidden;
  }

  .navbar-collapse.collapsing {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    transform: translateX(105%) !important;
    transition: none !important;
    display: flex !important;
    visibility: hidden !important;
  }

  /* Drawer Header */
  .nav-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
  }

  .drawer-brand-logo {
    max-height: 36px;
    width: auto;
    object-fit: contain;
  }

  .nav-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .nav-drawer-close:hover,
  .nav-drawer-close:active {
    background: #fee2e2;
    color: var(--theme-orange);
    transform: scale(1.06);
  }

  /* Drawer Navigation Links */
  .navbar-nav {
    padding: 14px 20px;
    flex: 1 1 auto;
    width: 100%;
    margin: 0 !important;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid #f1f5f9;
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    padding: 12px 2px !important;
    font-size: 15px;
    font-weight: 600;
    color: #1a2942 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: var(--theme-orange) !important;
  }

  .nav-item-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav-chevron {
    font-size: 11px;
    transition: transform 0.25s ease, color 0.25s ease;
  }

  .nav-item-dropdown .dropdown-toggle[aria-expanded="true"] .nav-chevron,
  .nav-item-dropdown.show .nav-chevron {
    transform: rotate(180deg);
    color: var(--theme-orange);
  }

  /* Submenu Dropdown inside Drawer */
  .products-dropdown-menu {
    position: static !important;
    transform: none !important;
    min-width: 100% !important;
    box-shadow: none !important;
    border: 1px solid #edf2f7 !important;
    padding: 8px !important;
    margin: 6px 0 12px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
  }

  .products-dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .product-dropdown-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 6px;
    border: 1px solid #eef2f6;
  }

  .product-dropdown-item:last-child {
    margin-bottom: 0;
  }

  .product-dropdown-item:hover,
  .product-dropdown-item.active-item {
    border-color: rgba(224, 76, 56, 0.35);
  }

  .item-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
  }

  .item-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
  }

  .item-badge {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  /* Drawer Footer CTA */
  .nav-action-btn {
    padding: 16px 20px 24px;
    border-top: 1px solid #edf2f7;
    background: #fafbfc;
    margin-top: auto;
    width: 100%;
  }

  .nav-action-btn .btn-pill-gradient {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    display: inline-flex;
  }

  .drawer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .drawer-contact-item {
    font-size: 12px;
    color: #475569;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
  }

  .drawer-contact-item:hover {
    color: var(--theme-orange);
  }

  .hero-section,
  .heroSwiper,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding-top: 120px;
    padding-bottom: 75px;
  }

  /* .hero-gradient-overlay {
    background: linear-gradient(180deg,
        rgba(255, 248, 238, 0.9) 0%,
        rgba(255, 248, 238, 0.75) 50%,
        rgba(255, 248, 238, 0.85) 100%);
  } */

  .hero-title .title-primary {
    font-size: 44px;
  }

  .hero-title .title-secondary {
    font-size: 38px;
  }

  /* Director Section (Editorial Text-Only) */
  .director-section {
    padding-top: 65px;
    padding-bottom: 50px;
  }

  .editorial-quote-frame {
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 20px 22px;
  }

  .editorial-lead-quote {
    font-size: 18px;
  }

  /* Group Concerns */
  .group-concerns-pill {
    border-radius: 30px;
    padding: 20px 24px;
  }

  .concerns-companies {
    flex-direction: column;
    gap: 8px;
  }

  .company-dot {
    display: none;
  }

  /* Manufacturing Units */
  .manufacturing-summary {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .unit-card-featured {
    transform: none;
    margin: 15px 0;
  }

  /* Steel Motion */
  .steel-motion-section {
    padding: 60px 0;
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .hero-slide {
    padding-top: 110px;
    padding-bottom: 85px;
  }

  .hero-swiper-navigation {
    bottom: 20px;
    gap: 12px;
  }

  .hero-swiper-btn {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .hero-title .title-primary {
    font-size: 36px;
  }

  .hero-title .title-secondary {
    font-size: 32px;
  }

  .btn-pill-gradient {
    padding: 10px 22px;
    font-size: 12px;
  }

  .btn-hero {
    padding: 12px 28px;
    font-size: 13px;
  }

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

  .director-headline {
    font-size: 32px;
  }

  .product-image-container {
    height: 180px;
  }

  .card-number-watermark {
    font-size: 58px;
  }

  /* Video Play Button */
  .motion-play-button {
    width: 76px;
    height: 76px;
  }

  .play-icon-box {
    width: 70px;
    height: 70px;
    font-size: 22px;
  }

  .motion-main-title {
    font-size: 42px;
  }

  .motion-controls-bar {
    padding: 12px 16px;
    gap: 10px;
  }

  .motion-ctrl-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .motion-time-display {
    font-size: 11px;
  }

  /* Footer */
  .main-footer {
    padding: 60px 0 25px;
  }

  .newsletter-input-group {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
    gap: 8px;
  }

  .btn-newsletter-pill {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
  }
}

@media (max-width: 575px) {
  .brand-logo {
    height: 40px;
  }

  /* 
  .hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
  } */

  .hero-title .title-primary {
    font-size: 30px;
  }

  .hero-title .title-secondary {
    font-size: 26px;
  }

  .director-img-frame {
    border-radius: 30px 80px 30px 30px;
  }

  .products-bottom-bar .d-inline-flex {
    flex-direction: column;
    gap: 8px !important;
  }

  .products-bottom-bar .bar-dot {
    display: none;
  }

  .stay-connected-strip .social-icons-wrapper {
    gap: 12px;
  }

  .social-circle-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  /* About Us Responsive */
  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-column {
    border-right: none;
    border-bottom: 1px solid rgba(4, 41, 97, 0.08);
  }

  .value-column:last-child {
    border-bottom: none;
  }
}

@media (max-width: 991px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .management-intro-wrap {
    border-left: none;
    padding-left: 0;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 16px;
  }

  .vision-graphic-container {
    min-height: 280px;
    margin: 30px 0;
  }
}

@media (max-width: 767px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-hero-section {
    min-height: 320px;
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .story-section,
  .management-section,
  .vision-mission-section,
  .our-values-section,
  .infra-overview-section,
  .infra-process-section,
  .infra-glance-section,
  .product-showcase-section,
  .product-process-section,
  .product-inquire-section,
  .product-detail-section,
  .product-applications-section,
  .explore-more-section {
    padding: 60px 0;
  }

  .infra-feature-item {
    justify-content: flex-start;
    padding: 10px 0;
  }

  .spec-table th,
  .spec-table td {
    padding: 14px 16px;
    font-size: 13.5px;
  }

  .product-card-tall .product-img-box {
    height: 280px;
  }

  .timeline-desc {
    min-height: auto;
  }

  .product-main-img-box {
    min-height: 340px;
  }

  .app-item {
    flex: 0 0 25%;
    max-width: 25%;
    border-bottom: 1px solid #eef2f6;
  }

  .app-item:nth-child(4n) {
    border-right: none;
  }
}

@media (max-width: 575px) {
  .infra-features-row .row>div:not(:last-child) {
    margin-bottom: 12px;
  }

  .infra-feature-item {
    padding: 5px 0;
  }

  .process-card-img-wrap {
    height: 220px;
  }

  .spec-table th,
  .spec-table td {
    padding: 12px 14px;
    font-size: 12.5px;
  }

  .product-card-tall .product-card-header,
  .product-card-horizontal .product-card-body {
    padding: 25px 20px;
  }

  .product-card-horizontal .product-img-box {
    min-height: 180px;
  }

  .app-item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .app-item:nth-child(2n) {
    border-right: none !important;
  }

  .explore-card-body {
    padding: 20px 16px;
  }

  .explore-card-num {
    font-size: 32px;
  }

  .explore-card-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .contact-form-card,
  .contact-facilities-card {
    padding: 24px 18px;
  }

  .contact-info-card {
    padding: 28px 20px;
  }

  .careers-hero-card,
  .careers-form-card {
    padding: 26px 20px;
  }

  .career-pillar-card,
  .job-opening-card,
  .quality-stage-card,
  .cert-card,
  .legal-card,
  .sitemap-group-card {
    padding: 24px 18px;
  }

  .editorial-lead-para {
    font-size: 16px;
  }

  .editorial-lead-quote {
    font-size: 17px;
  }
}

/* ========================================================
   MAP STATS RESPONSIVE
   ======================================================== */
@media (max-width: 991px) {
  .map-stats-section {
    padding: 65px 0 70px;
  }

  .map-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }

  .map-stat-col {
    justify-content: flex-start;
    padding-left: 20px;
  }
}

@media (max-width: 575px) {
  .map-stats-section {
    padding: 50px 0 55px;
  }

  .map-stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .map-stat-col {
    justify-content: center;
    padding-left: 0;
  }

  .map-stat-item {
    gap: 16px;
  }

  .map-stat-icon-wrap {
    width: 44px;
    height: 44px;
  }

  .map-stat-icon {
    width: 40px;
    height: 40px;
  }

  .map-stat-number {
    font-size: 34px;
  }
}