/* Static conversion + responsive stability fixes
   Keeps the original design, but makes the static version safer on desktop, tablet and mobile. */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

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

img {
  height: auto;
}

iframe {
  border: 0;
}

.container,
.container-fluid,
.row,
[class*="col-"] {
  min-width: 0;
}

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

input,
textarea,
select,
button {
  max-width: 100%;
}

textarea {
  resize: vertical;
}

/* Demo static form message */
.static-form-message {
  margin-top: 12px;
  font-weight: 600;
  line-height: 1.45;
}

/* Prevent large decorative elements from creating horizontal scroll in static/mobile view */
[class*="shape"],
[class*="pattren"],
[class*="pattern"] {
  max-width: 100vw;
}

/* Header/menu safety */
.main-menu__wrapper,
.main-menu__wrapper-inner,
.main-menu__left,
.main-menu__right {
  min-width: 0;
}

.main-menu__list a,
.mobile-nav__container a {
  word-break: normal;
}

.mobile-nav__wrapper {
  overflow-y: auto;
}

.mobile-nav__content {
  max-width: 420px;
  width: 90%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.locked {
  overflow: hidden;
}

/* Sliders/carousels */
.owl-carousel,
.swiper,
.swiper-container,
.owl-stage-outer {
  max-width: 100%;
  overflow: hidden;
}

/* Tables and embedded wide content */
table {
  width: 100%;
}

.table-responsive,
.blog-details__text,
.project-details__text,
.service-details__text {
  overflow-x: auto;
}

/* Forms and search popup */
.search-popup form,
.search-popup .form-group,
.contact-form-validated,
.comment-one__form,
.contact-one__form {
  max-width: 100%;
}

.search-popup input[type="search"] {
  min-width: 0;
}

@media (max-width: 1199px) {
  .main-menu__wrapper-inner {
    gap: 14px;
  }

  .main-menu__right {
    flex-shrink: 1;
  }
}

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

  .row {
    row-gap: 24px;
  }

  .section-title__title,
  .banner-one__content-title,
  .page-header__inner h2,
  .main-slider__title {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .banner-one__img,
  .about-one__img,
  .project-details__img,
  .blog-details__img,
  .service-details__img {
    margin-top: 24px;
  }

  .contact-one__form .row,
  .comment-one__form .row {
    row-gap: 0;
  }
}

@media (max-width: 767px) {
  .section-title {
    margin-bottom: 28px;
  }

  .section-title__title {
    font-size: 34px;
    line-height: 1.18;
  }

  .banner-one__content-title,
  .main-slider__title {
    font-size: 42px;
    line-height: 1.1;
  }

  .page-header__inner h2 {
    font-size: 38px;
    line-height: 1.15;
  }

  .banner-one__content-title br,
  .section-title__title br,
  .main-slider__title br,
  .page-header__inner h2 br {
    display: none;
  }

  .contact-one__form .row > [class*="col-"],
  .comment-one__form .row > [class*="col-"] {
    margin-bottom: 15px;
  }

  .search-popup .form-group,
  .search-popup__content form {
    width: calc(100vw - 30px) !important;
  }

  .mobile-nav__content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .scroll-to-top {
    right: 16px;
    bottom: 16px;
  }

  .chat-icon {
    right: 16px;
    bottom: 82px;
  }
}

@media (max-width: 575px) {
  .section-title__title {
    font-size: 29px;
  }

  .banner-one__content-title,
  .main-slider__title {
    font-size: 34px;
  }

  .page-header__inner h2 {
    font-size: 30px;
  }

  .thm-btn {
    padding-left: 22px;
    padding-right: 22px;
    white-space: normal;
    text-align: center;
  }

  .mobile-nav__content {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .section-title__title {
    font-size: 26px;
  }

  .banner-one__content-title,
  .main-slider__title {
    font-size: 30px;
  }
}
