/* ================================
   Media / Responsive
   Directional specifics live in style.css under [dir="rtl"] / [dir="ltr"]
================================ */

/* Large laptop */
@media (max-width: 1439px) {
  .header-brand-wedge {
    margin-inline-start: -20px;
  }

  .header-nav-list {
    gap: 1.35rem;
  }

  .hero-stage-section {
    height: calc(100vh - 100px);
    min-height: 520px;
  }

  .hero-card-polygon-layer {
    width: 52%;
    max-width: 620px;
  }

  .hero-content-holder {
    width: 46%;
    max-width: 540px;
    padding: 40px 56px 40px 44px;
  }

  .hero-lead-text {
    max-width: 360px;
  }
}

/* Laptop / small desktop */
@media (max-width: 1199px) {
  .hero-stage-section {
    height: calc(100vh - 90px);
    min-height: 500px;
  }

  .hero-card-polygon-layer {
    width: 56%;
    max-width: none;
  }

  [dir="rtl"] .hero-facet-outer {
    clip-path: polygon(0 0, 86% 0, 100% 48%, 84% 100%, 0 100%);
  }

  [dir="rtl"] .hero-facet-highlight {
    clip-path: polygon(0 0, 80% 0, 94% 48%, 78% 100%, 0 100%);
  }

  [dir="rtl"] .hero-facet-solid {
    clip-path: polygon(0 0, 74% 0, 88% 48%, 72% 100%, 0 100%);
  }

  [dir="ltr"] .hero-facet-outer {
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 16% 100%, 0 48%);
  }

  [dir="ltr"] .hero-facet-highlight {
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 22% 100%, 6% 48%);
  }

  [dir="ltr"] .hero-facet-solid {
    clip-path: polygon(26% 0, 100% 0, 100% 100%, 28% 100%, 12% 48%);
  }

  .hero-content-holder {
    width: 50%;
    max-width: none;
    padding: 36px 48px 36px 36px;
  }

  .hero-main-title {
    font-size: clamp(1.85rem, 2.8vw, 2.4rem);
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  /* Soften skew a bit so cards fit the narrower grid */
  :root {
    --card-skew: -4deg;
    --card-unskew: 4deg;
  }

  .header-nav-wrap.show {
    top: 68px;
    padding: 20px 24px;
  }

  .hero-stage-section {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex;
    flex-direction: column;
    background: var(--white);
    overflow: hidden;
  }

  .page-hero {
    min-height: 320px !important;
    height: auto !important;
  }

  .page-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(242, 240, 237, 0.92) 0%, rgba(242, 240, 237, 0.72) 52%, rgba(242, 240, 237, 0.15) 100%);
  }

  [dir="ltr"] .page-hero__media::after {
    background: linear-gradient(90deg, rgba(242, 240, 237, 0.92) 0%, rgba(242, 240, 237, 0.72) 52%, rgba(242, 240, 237, 0.15) 100%);
  }

  .hero-stage-section .hero-swiper {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 42vw !important;
    min-height: 280px !important;
    max-height: 420px !important;
    flex-shrink: 0;
    z-index: 1;
  }

  .hero-stage-section .hero-swiper .swiper-wrapper,
  .hero-stage-section .hero-swiper .swiper-slide {
    height: 100% !important;
  }

  .hero-stage-section .hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero-corner-wedge,
  .hero-card-polygon-layer {
    display: none !important;
  }

  .hero-content-holder {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    padding: 28px 24px 36px !important;
    justify-content: flex-start;
  }

  .hero-main-title {
    font-size: 1.85rem;
  }

  .hero-lead-text {
    font-size: 0.92rem;
    max-width: none;
    margin-bottom: 20px;
  }

  .hero-controls-bar {
    margin-top: 24px;
    flex-wrap: wrap;
  }

  .about-media-wrapper {
    --about-skew: -10deg;
    padding: 14px 18px 18px;
  }

  .about-main-image-wrap {
    height: 260px;
  }

  .about-thumb-wrap {
    height: 150px;
  }

  .products-grid {
    padding: 8px 10px 16px;
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
  }

  .product-card-wrap {
    padding-block: 6px;
  }

  .products-bg-decor-left,
  .products-bg-decor-right {
    opacity: 0.28;
    width: min(42vw, 220px);
    height: min(28vw, 160px);
  }

  .contact-section {
    min-height: 0;
    padding: 48px 0 56px;
    overflow-x: hidden;
  }

  .contact-form-card-wrap {
    max-width: 100%;
    width: 100%;
    margin-inline: auto !important;
  }

  .contact-form-card {
    width: 100%;
  }

  .contact-form-card__title {
    font-size: 1.7rem;
  }

  .contact-info-list {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
  }

  .about-section,
  .products-section,
  .certificates-section,
  .gallery-section,
  .features-section,
  .price-list-section {
    padding-top: 64px;
    padding-bottom: 64px;
    overflow-x: hidden;
  }

  .site-footer__inner {
    padding-top: 55px;
    padding-bottom: 40px;
  }

  .site-footer__bg-warehouse {
    width: min(70%, 850px);
    opacity: 0.4;
  }

  .site-footer__bg-pipes {
    width: min(50%, 620px);
    opacity: 0.35;
  }

  .site-footer__col--divider::after {
    display: none;
  }
}

/* Mobile phones */
@media (max-width: 767.98px) {
  :root {
    --card-skew: -3.2deg;
    --card-unskew: 3.2deg;
    --eyebrow-skew: -22deg;
    --eyebrow-unskew: 22deg;
  }

  .site-header {
    min-height: 64px;
  }

  .header-brand-wedge {
    margin-inline-start: -8px;
  }

  .header-brand-wedge img {
    height: 60px;
    /* max-height: 44px; */
  }

  .header-nav-wrap.show {
    top: 64px;
    padding: 16px 20px 20px;
  }

  .header-search-btn {
    width: 36px;
    height: 36px;
  }

  .header-mobile-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-stage-section .hero-swiper {
    height: 48vw !important;
    min-height: 240px !important;
    max-height: 340px !important;
  }

  .hero-content-holder {
    padding: 22px 16px 28px !important;
  }

  .hero-kicker-brand {
    margin-bottom: 10px;
    font-size: 0.86rem;
  }

  .hero-main-title {
    font-size: 1.55rem;
    line-height: 1.3;
  }

  .hero-title-dash {
    margin: 12px 0;
  }

  .hero-lead-text {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .hero-controls-bar {
    margin-top: 18px;
    gap: 10px;
  }

  .btn-hero-cta {
    font-size: 0.9rem;
    gap: 10px;
  }

  .btn-hero-cta .btn-cta-circle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .site-eyebrow-badge {
    margin-bottom: 16px;
    max-width: 100%;
  }

  .site-eyebrow-badge__icon-box {
    width: 52px;
    height: 38px;
    padding: 4px 6px;
  }

  .site-eyebrow-badge__icon {
    width: 26px;
    height: 26px;
  }

  .site-eyebrow-badge__body {
    padding: 0 22px 0 16px;
  }

  .site-eyebrow-badge__text {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
  }

  .about-media-wrapper {
    --about-skew: -8deg;
    padding: 10px 12px 14px;
  }

  .about-main-image-wrap {
    height: 200px;
  }

  .about-thumb-wrap {
    height: 110px;
  }

  .about-thumbs-row {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.65rem;
  }

  .products-bg-decor-left,
  .products-bg-decor-right {
    opacity: 0.22;
    width: min(48vw, 200px);
    height: min(32vw, 140px);
  }

  .products-section__background::before {
    opacity: 0.3;
  }

  .products-section__header {
    position: relative;
    z-index: 3;
  }

  .products-grid {
    padding: 6px 4px 12px;
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 1rem;
  }

  .product-card__image-box {
    height: 200px;
  }

  .product-card__body {
    padding: 18px 16px 22px;
  }

  .product-card__title {
    font-size: 1.1rem;
  }

  .product-card__desc {
    font-size: 0.86rem;
    min-height: 0;
  }

  .features-visual {
    height: 160px;
  }

  .features-title {
    font-size: 1.15rem;
  }

  .certificates-grid {
    max-width: 100%;
  }

  .price-list-features {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 14px;
  }

  .price-list-features-divider {
    display: none;
  }

  .products-section__title,
  .certificates-section__title,
  .gallery-section__title,
  .about-main-heading,
  .price-list-section__title,
  .contact-section__title {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  /* Contact */
  .contact-section {
    padding: 40px 0 48px;
  }

  .contact-section__container > .row {
    --bs-gutter-y: 1.5rem;
  }

  .contact-section__content {
    max-width: 100%;
    width: 100%;
  }

  .contact-section__logo {
    width: 140px;
  }

  .contact-section__subtitle,
  .contact-section__note {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .contact-form-card__body {
    padding: 22px 14px 18px;
  }

  .contact-form-card__header {
    margin-bottom: 16px;
  }

  .contact-form-card__title {
    font-size: 1.35rem;
    line-height: 1.35;
  }

  .contact-form-card__intro {
    font-size: 0.84rem;
  }

  .contact-form__fields {
    width: 100%;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0.65rem;
  }

  .contact-form__field {
    min-height: 48px;
  }

  .contact-form__input {
    height: 48px;
    font-size: 0.9rem;
  }

  .contact-form__textarea {
    min-height: 96px;
    height: 96px;
    font-size: 0.9rem;
  }

  .contact-form__field--textarea {
    min-height: 108px;
  }

  .contact-form-card .btn-hero-cta {
    width: 100%;
    height: 48px;
    margin-top: 6px;
  }

  .contact-form-card .btn-hero-cta .btn-cta-circle {
    width: 36px;
    height: 36px;
  }

  .contact-info-list {
    width: 100%;
    --bs-gutter-x: 0.7rem;
    --bs-gutter-y: 0.7rem;
  }

  .contact-info-card {
    width: 100%;
    min-height: 64px;
    padding: 12px;
    gap: 10px;
  }

  .contact-info-card__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1rem;
  }

  .contact-info-card__title {
    font-size: 0.88rem;
  }

  .contact-info-card__link,
  .contact-info-card__text {
    font-size: 0.78rem;
    word-break: break-word;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .site-footer__brand,
  .site-footer__list,
  .site-footer__contact-list {
    /* align-items: center; */
  }

  .site-footer__desc,
  .site-footer__title,
  .site-footer__contact-label,
  .site-footer__contact-val,
  .site-footer__contact-body {
    /* text-align: center; */
  }

  .site-footer__contact-item {
    justify-content: center;
  }

  .site-footer__title-line,
  .site-footer__brand-line {
    margin-inline: auto;
  }

  .site-footer__bg-pipes {
    display: none;
  }

  .site-footer__bg-warehouse {
    width: 100%;
    opacity: 0.28;
  }

  .wa-float {
    bottom: 16px;
    inset-inline-end: 14px;
  }

  .page-hero {
    min-height: 500px !important;
    height: auto !important;
  }

  .page-hero__container {
    padding-block: 36px;
  }

  .page-hero__breadcrumb-line {
    width: 60px;
  }

  .section {
    padding: 56px 0;
  }

  .cta-box,
  .inner-cta .cta-box {
    padding: 28px 20px;
    text-align: center;
    justify-content: center;
  }

  .cta-box .btn-hero-cta {
    width: 100%;
    justify-content: space-between;
  }

  .about-badge {
    inset-inline-start: 12px;
    bottom: 12px;
    width: 38%;
  }

  .product-detail-section {
    padding: 2.75rem 0 2.5rem;
  }

  .product-detail-media img {
    height: clamp(220px, 48vw, 320px);
  }

  .product-detail-copy {
    max-width: none;
  }

  .product-actions .btn-hero-cta {
    flex: 1 1 auto;
  }

  .info-card {
    padding: 22px 18px;
  }

  .vision-section,
  .mission-section,
  .locations-section {
    padding: 64px 0;
  }

  .amv-side-image {
    transform: skewX(-4deg);
  }

  .amv-side-image img {
    height: 280px;
    transform: skewX(4deg) scale(1.08);
  }
}

/* Small phones */
@media (max-width: 575.98px) {
  .hero-stage-section .hero-swiper {
    height: 52vw !important;
    min-height: 220px !important;
    max-height: 280px !important;
  }

  .hero-content-holder {
    padding: 20px 14px 26px !important;
  }

  .hero-main-title {
    font-size: 1.4rem;
  }

  .hero-lead-text {
    font-size: 0.84rem;
  }

  .hero-ctrl-arrow {
    width: 32px;
    height: 32px;
  }

  .hero-num-btn {
    font-size: 0.8rem;
    min-width: 28px;
    height: 28px;
  }

  .products-grid {
    --bs-gutter-y: 1.1rem;
  }

  .product-card__image-box {
    height: 180px;
  }

  .contact-form-card__body {
    padding: 18px 12px 16px;
  }

  .contact-form-card__title {
    font-size: 1.25rem;
  }

  .contact-info-card {
    flex-direction: row;
    align-items: flex-start;
    min-height: 0;
  }

  .features-visual {
    height: 140px;
  }

  .about-main-image-wrap {
    height: 200px;
  }

  .about-thumb-wrap {
    height: 200px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* Product details */
@media (max-width: 991.98px) {
  .pd-sidebar {
    position: static;
  }

  .pd-section {
    padding: 2.25rem 0 2.75rem;
  }

  .pd-main-swiper .swiper-slide {
    aspect-ratio: 4 / 3; height: auto;
  }

  .pd-gallery__thumb {
    height: 76px;
  }

  .pd-thumbs-swiper .swiper-slide {
    width: 28%;
  }
}

@media (max-width: 575.98px) {
  .pd-gallery__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-main-swiper .swiper-slide {
    aspect-ratio: 4 / 3; height: auto;
  }

  .pd-gallery__thumb {
    height: 68px;
  }

  .pd-thumbs-swiper .swiper-slide {
    width: 32%;
  }

  .pd-content,
  .pd-side-card {
    border-radius: 14px;
  }
}
