/* Project-wide responsive fixes for the shared PHP pages. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

.page-lines {
  pointer-events: none;
}

.section-header.header-1 {
  z-index: 1030;
}

.navbar-brand img,
.offcanvas-title img,
.section-footer .navbar-brand img {
  width: min(219px, 58vw);
  height: auto;
  object-fit: contain;
}

.toggler-icon {
  padding: 10px 0 10px 14px;
  line-height: 1;
}

.toggler-icon svg {
  width: 34px;
  height: auto;
}

.section-hero .video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1199.98px) {
  .section-header .container {
    max-width: 100%;
  }

  .section-header .navbar {
    min-height: 76px;
    padding: 8px 0;
  }

  .section-header .navbar-brand {
    margin-right: 0;
  }

  .offcanvas-backdrop {
    z-index: 1040;
  }

  #architronixNavbar {
    --bs-offcanvas-width: min(86vw, 360px);
    background-color: var(--bs-primary);
    color: var(--bs-secondary);
    z-index: 1045;
  }

  #architronixNavbar .offcanvas-header {
    border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.18);
    padding: 18px 22px;
  }

  #architronixNavbar .offcanvas-body {
    padding: 10px 22px 24px;
    overflow-y: auto;
  }

  #architronixNavbar .navbar-nav {
    align-items: stretch !important;
    gap: 0;
  }

  #architronixNavbar .nav-link {
    color: var(--bs-secondary);
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.14);
  }

  #architronixNavbar .nav-link:hover,
  #architronixNavbar .nav-link:focus {
    color: var(--bs-secondary);
  }
}

@media (max-width: 767.98px) {
  .section-hero.hero-3 {
    min-height: 100svh;
  }

  .section-hero .content-text {
    padding-top: 110px;
    padding-bottom: 70px;
  }

  .section-hero .huge-text {
    font-size: clamp(2.5rem, 15vw, 5rem) !important;
    line-height: 0.95 !important;
    word-break: normal;
  }

  .section-about .about-contents {
    padding-top: 28px;
    gap: 24px;
  }

  .section-title-wrapper .scrolling-text {
    font-size: clamp(4.5rem, 25vw, 8rem) !important;
  }

  .blog-single-text .display-3 {
    font-size: clamp(2.4rem, 13vw, 4.2rem);
  }

  .footer-contents {
    text-align: center;
  }

  .address-details {
    border-left: 0;
    padding-left: 0;
  }

  .address-details .separator::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 420px) {
  .navbar-brand img,
  .offcanvas-title img,
  .section-footer .navbar-brand img {
    width: 168px;
  }

  .toggler-icon svg {
    width: 30px;
  }

  .section-header .navbar {
    min-height: 64px;
  }
}

/* Site-wide responsive hardening. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.container,
.container-fluid {
  min-width: 0;
}

p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
li {
  overflow-wrap: anywhere;
}

.row {
  min-width: 0;
}

.btn {
  white-space: normal;
}

.btn svg {
  flex: 0 0 auto;
}

.section-full-width,
.max-width,
.swiper,
.swiper-wrapper,
.swiper-slide {
  max-width: 100%;
}

.section-hero.hero-3,
.section-hero .video-bg {
  min-height: clamp(560px, 100svh, 900px);
}

.section-hero .video-bg > div:not(.video-bg-overlay) {
  min-height: inherit;
  display: flex;
  align-items: center;
}

.section-hero .content-text {
  max-width: min(820px, 100%);
}

.section-hero .huge-text {
  font-size: clamp(2.6rem, 6.4vw, 6.8rem) !important;
  line-height: 1 !important;
}

.section-title .heading-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.section-title .subtitle,
.subtitle-width {
  max-width: 780px;
}

.about-image,
.blog-image,
.shop-image {
  width: 100%;
}

.about-image img,
.blog-image img,
.shop-image img {
  display: block;
  width: 100%;
}

.blog-wrapper {
  height: 100%;
}

.blog-wrapper .blog-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.blog-wrapper .blog-image img,
.shop-image-wrapper .shop-image,
.shop-image-wrapper .shop-image img {
  height: 100%;
  object-fit: cover;
}

.shop-image-wrapper {
  aspect-ratio: 4 / 3;
}

.blog-single-image {
  min-height: 220px;
}

.blog-single-text .display-3 {
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  line-height: 1;
}

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

.contact-details p,
.address-details p {
  min-width: 0;
}

.section-footer iframe {
  display: block;
  width: 100%;
}

.copyright {
  padding: 22px 0;
}

@media (max-width: 1199.98px) {
  .page-lines {
    display: none;
  }

  .navbar-style-2 {
    justify-content: space-between;
  }

  .modal-search-form .form-control {
    font-size: clamp(1.5rem, 8vw, 4rem);
  }
}

@media (max-width: 991.98px) {
  .section-about .about-bg {
    margin-top: 0;
    padding: 48px 0;
  }

  .section-about.about-1 .row,
  .section-about.about-2 .row {
    row-gap: 32px;
  }

  .section-about .about-contents {
    padding-top: 0;
  }

  .section-contact-map {
    padding-bottom: 54px;
  }

  .contact-details {
    margin-top: 18px;
  }

  .footer-contents .row {
    align-items: flex-start !important;
  }

  .footer-contents .contact-lists {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-hero.hero-3,
  .section-hero .video-bg {
    min-height: 100svh;
  }

  .section-hero .video-bg > div:not(.video-bg-overlay) {
    align-items: flex-end;
  }

  .section-hero .content-text {
    padding-top: 130px;
    padding-bottom: 70px;
  }

  .section-hero .huge-text {
    font-size: clamp(2rem, 10.5vw, 3.8rem) !important;
    max-width: 12ch;
  }

  .architronix-button .btn,
  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title-wrapper {
    padding-top: 34px;
  }

  .section-title-wrapper .section-title {
    top: 0;
  }

  .section-title-wrapper .scrolling-text {
    font-size: clamp(3.5rem, 22vw, 7rem) !important;
  }

  .section-title .subtitle {
    font-size: 1.05rem !important;
  }

  .section-about .about-bg {
    margin-top: 0 !important;
    padding: 36px 0;
  }

  .about-content-inner {
    gap: 10px;
  }

  #services {
    margin-top: 34px !important;
  }

  .swiper-custom-progress .blog-swiper-pagination-wrapper,
  .swiper-custom-progress .project-swiper-pagination-wrapper,
  .swiper-custom-progress .shop-swiper-pagination-wrapper,
  .swiper-custom-progress .testimonial-swiper-pagination-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
  }

  .swiper-button-progress {
    gap: 12px;
  }

  .blog-single-image {
    height: clamp(220px, 48vw, 280px) !important;
    margin-bottom: 28px;
  }

  .blog-single-text {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .section-shop .section-padding-lg {
    padding-top: 20px;
    padding-bottom: 50px;
  }

  .mission-vision-card {
    border-radius: 8px;
  }

  .footer-contents {
    --bs-footer-contents-padding: 44px 0 36px 0;
  }

  .section-footer .navbar-brand {
    display: inline-flex;
    justify-content: center;
  }

  .section-footer iframe {
    height: 240px;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 16px;
  }

  #architronixNavbar {
    --bs-offcanvas-width: 100vw;
  }

  #architronixNavbar .offcanvas-header,
  #architronixNavbar .offcanvas-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-header .navbar {
    min-height: 68px;
  }

  .section-hero .content-text {
    padding-top: 110px;
  }

  .section-hero .huge-text {
    font-size: clamp(1.8rem, 9.5vw, 3.1rem) !important;
    max-width: 12ch;
  }

  .blog-wrapper .blog-details {
    margin-top: 14px;
  }

  .blog-title {
    line-height: 1.35;
  }

  .contact-details .d-flex p,
  .address-details .d-flex p {
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .contact-details .stroke-heading {
    display: none;
  }

  .modal-fullscreen .modal-header {
    padding: 18px;
  }

  .modal-fullscreen .btn-close svg {
    width: 34px;
    height: 34px;
  }

  .modal-fullscreen .modal-body {
    display: flex;
    align-items: center;
  }

  .modal-search-form .search-icon svg {
    width: 30px;
    height: 30px;
  }

  .progressCounter {
    right: 14px;
    bottom: 14px;
    transform: scale(0.85);
    transform-origin: right bottom;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar-brand img,
  .offcanvas-title img,
  .section-footer .navbar-brand img {
    width: 150px;
  }

  .section-hero .huge-text {
    font-size: 1.75rem !important;
  }
}
