/* Maxima Enviro Engineers — Brand Overrides */
:root {
  --rr-theme-primary: #FF8C00;
  --maxima-blue: #0099CC;
  --rr-common-selection: #0099CC;
}

/* Global layout — prevent horizontal page scroll */
html {
  overflow-x: hidden !important;
  max-width: 100%;
}

body,
body.body-1 {
  overflow-x: hidden !important;
  max-width: 100%;
}

main,
footer,
.fix {
  max-width: 100%;
  overflow-x: hidden;
}

header {
  max-width: 100%;
  overflow: visible;
}

.section__title {
  color: var(--rr-heading-primary);
}

/* Header & logo */
.header__area.header-2.sticky,
#header-sticky.sticky {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  z-index: 999;
}

.header-2 .header__top {
  overflow: hidden;
}

.header-2 .header__top .last_no_bullet::after {
  width: min(1230px, 100vw);
}

.header-2,
#header-sticky {
  max-width: 100%;
  overflow: visible;
}

.maxima-logo img,
img.maxima-logo,
.footer-2__logo img {
  max-height: 50px;
  width: auto;
  max-width: 100%;
  height: auto;
  background: transparent;
  object-fit: contain;
}

.footer-2__logo .maxima-logo img,
.footer-2__logo img.maxima-logo {
  max-height: 60px;
}

/* Footer — prevent contact/email overlap in adjacent columns */
.footer-2__main-wrapper .row > [class*="col-"] {
  min-width: 0;
}

.footer-2__widget.footer-2__widget-item-2,
.footer-2__widget.footer-2__widget-item-3,
.footer-2__widget.footer-2__widget-item-4 {
  padding-left: 0 !important;
  margin-right: 0 !important;
}

.footer-2__resources,
.footer-2__company {
  max-width: 100%;
}

.footer-2__resources li,
.footer-2__resources li a,
.footer-2__company ul li a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-2__resources li a {
  display: inline-block;
  max-width: 100%;
  line-height: 1.55;
}

.footer-2__resources li {
  line-height: 1.55;
  margin-bottom: 8px;
}

/* Footer headings + body copy when widget wrappers are present */
.footer-2__main-wrapper .footer-2__widget-title h6 {
  color: #fff !important;
}

.footer-2__main-wrapper .footer-2__content p,
.footer-2__main-wrapper .footer-2__company ul li,
.footer-2__main-wrapper .footer-2__company ul li a,
.footer-2__main-wrapper .footer-2__resources li,
.footer-2__main-wrapper .footer-2__resources li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-2__copyright p,
.footer-2__copyright a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-2__copyright-menu a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-2__copyright-menu a:hover {
  color: var(--rr-theme-primary);
}

/* Hero banner */
/* Show hero copy before Swiper initializes (theme hides text at opacity:0 until .swiper-slide-active) */
.banner-2__slider:not(.swiper-initialized) .banner-2__content-subtitle,
.banner-2__slider:not(.swiper-initialized) .banner-2__content-title,
.banner-2__slider:not(.swiper-initialized) .banner-2__content .description,
.banner-2__slider:not(.swiper-initialized) .banner-2__btn-box {
  opacity: 1;
  transform: translateY(0);
}

.banner-2__content-title {
  color: #fff !important;
}

.banner-2__content .description {
  color: rgba(255, 255, 255, 0.92) !important;
}

.banner-2__content-subtitle {
  color: #FF8C00 !important;
}

.banner-2__btn-box .rr-btn__border {
  border-color: #fff;
  color: #fff;
}

.banner-2__btn-box .rr-btn__border:hover {
  background: var(--rr-theme-primary);
  border-color: var(--rr-theme-primary);
}

/* Breadcrumb */
.breadcrumb__background-color {
  background-color: var(--maxima-blue);
}

.breadcrumb__title {
  color: #fff !important;
}

.breadcrumb__menu ul li,
.breadcrumb__menu ul li a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.breadcrumb__menu ul li:after {
  content: "›" !important;
  font-family: inherit !important;
  font-weight: 400 !important;
}

.breadcrumb__area.overly:after {
  background: linear-gradient(97deg, rgba(0, 80, 120, 0.75) 2%, rgba(0, 0, 0, 0.55) 62%) !important;
  mix-blend-mode: normal !important;
}

.breadcrumb__area.overly:before {
  display: none;
}

/* Text marquee — solid readable text */
.text-slider__slider .carouselTicker__list li .title {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
  color: rgba(255, 255, 255, 0.85);
  -webkit-text-stroke: 0;
  font-size: 64px;
  line-height: 74px;
  font-family: var(--rr-ff-heading), sans-serif;
}

.text-slider__slider .carouselTicker__list li .title::before {
  display: none;
}

/* Reset legacy template offsets for redesigned about section */
.about-company .about-company__content {
  margin-top: 0;
  padding-left: 25px;
}

@media (max-width: 1199px) {
  .about-company .about-company__content {
    padding-left: 0;
  }
}

/* About company list */
.about-company__content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.about-company__content ul li {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.about-company__content ul li span {
  color: var(--rr-theme-primary);
  font-weight: bold;
  flex-shrink: 0;
}

/* Industry & service cards */
.industry-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
}

.industry-card:hover {
  border-color: var(--rr-theme-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.industry-card h5 {
  color: var(--maxima-blue);
  margin-bottom: 12px;
}

.industry-card h5 a {
  color: inherit;
}

.industry-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.industry-card ul li {
  padding: 4px 0;
  color: var(--rr-text-body);
  font-size: 14px;
}

.industry-card ul li::before {
  content: "•";
  color: var(--rr-theme-primary);
  margin-right: 8px;
}

/* Font Awesome 6 Free solid icons — theme defaults to weight 300 (Pro Light) */
.fa-solid,
.fas,
.industry-card i,
.expert__icon i,
.contact-us__icon--fa i,
.why-choose-us-2__icon i,
.working-process__icon i,
.team-member__media i,
.contact-us i {
  display: inline-block;
  font-family: "Font Awesome 6 Free", sans-serif;
  font-weight: 900 !important;
  font-style: normal;
}

.contact-us__icon--fa {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 140, 0, 0.12);
  border-radius: 50%;
  color: var(--rr-theme-primary);
  flex-shrink: 0;
  margin: 0 auto 18px;
  font-size: 22px;
}

/* Contact info cards — equal height, centered layout */
.contact-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.contact-us__info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: 32px 24px !important;
  margin-bottom: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-us__info-item:hover {
  border-color: var(--rr-theme-primary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-us__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 0 !important;
  flex: 1;
  gap: 10px;
}

.contact-us__text h6 {
  margin-bottom: 0 !important;
  color: var(--maxima-blue);
  font-weight: 600;
  font-size: 16px;
}

.contact-us__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--rr-text-body);
  max-width: 100%;
}

.contact-us__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.contact-us__links a {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rr-text-body);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

.contact-us__links a:hover {
  color: var(--rr-theme-primary);
}

@media (max-width: 991px) {
  .contact-us__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 575px) {
  .contact-us__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-us__info-item {
    padding: 28px 20px !important;
  }
}

/* Working process step icons */
.working-process__icon i {
  font-size: 46px;
  line-height: 1;
  color: #080a0b;
  transition: color 0.3s ease;
}

.working-process__icon:hover i {
  color: var(--rr-theme-primary);
}

.color-maxima-blue {
  color: var(--maxima-blue);
}

.theme-bg-maxima-blue {
  background-color: var(--maxima-blue);
}

/* Service list */
.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-list li::before {
  content: "✓";
  color: var(--rr-theme-primary);
  font-weight: bold;
  flex-shrink: 0;
}

/* Chemical table */
.chemical-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.chemical-table th,
.chemical-table td {
  border: 1px solid #e5e5e5;
  padding: 12px 16px;
  text-align: left;
}

.chemical-table th {
  background: var(--maxima-blue);
  color: #fff;
  font-weight: 600;
}

.chemical-table tr:nth-child(even) {
  background: #f8f8f8;
}

/* Services page — image cards */
.services-overview__intro {
  max-width: 720px;
  color: #666;
  font-size: 16px;
  line-height: 1.7;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--rr-theme-primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.service-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.service-card__media {
  height: 210px;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 20px 4px 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rr-theme-primary);
  margin-bottom: 8px;
}

.service-card__body h5 {
  color: var(--maxima-blue);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.service-card:hover .service-card__body h5 {
  color: var(--rr-theme-primary);
}

.service-card__body p {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.service-card__cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rr-theme-primary);
}

@media (max-width: 767px) {
  .service-card__media {
    height: 180px;
  }
}

/* Project cards — uniform image sizing */
.project-card__media {
  display: block;
  height: 260px;
  overflow: hidden;
  position: relative;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card__link:hover h6 {
  color: var(--rr-theme-primary);
}

.project-card__cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rr-theme-primary);
}

.recent-project__item.project-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.recent-project__item.project-card:hover {
  border-color: var(--rr-theme-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.recent-project__item.project-card .project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recent-project__item.project-card .recent-project__text {
  margin-top: 0;
  padding: 18px 4px 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recent-project__item.project-card .recent-project__text h6 {
  margin-bottom: 10px;
}

.recent-project__item.project-card .recent-project__text p {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.recent-project__item.project-card .project-card__media {
  position: relative;
  border-radius: 6px;
}

.project-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--rr-theme-primary);
  color: #fff;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.recent-project .recent-project__media.project-card__media {
  height: 320px;
}

.protfolio-details__media.project-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .project-card__media {
    height: 220px;
  }

  .recent-project .recent-project__media.project-card__media {
    height: 260px;
  }

  .protfolio-details__media.project-hero img {
    height: 280px;
  }
}

/* Project filter */
.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.project-filter button {
  margin: 0;
}

.project-filter button.active {
  background-color: var(--rr-theme-primary) !important;
  border-color: var(--rr-theme-primary) !important;
  color: #fff !important;
}

/* Contact */
.contact-sidebar {
  background: #f8f8f8;
  padding: 30px;
}

.contact-sidebar h4 {
  color: var(--maxima-blue);
  margin-bottom: 20px;
}

.contact-sidebar i {
  color: var(--rr-theme-primary);
  margin-right: 8px;
}

.contact-us__icon img {
  filter: hue-rotate(180deg) saturate(2);
}

.contact__form-input input,
.contact__form-input textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  padding: 15px 20px;
  background: #fff;
  font-size: 15px;
  transition: border-color 0.3s;
}

.contact__form-input input:focus,
.contact__form-input textarea:focus {
  border-color: var(--rr-theme-primary);
  outline: none;
}

.contact__form-input {
  margin-bottom: 20px;
}

/* Odometer fallback before animation */
.odometer.odometer-auto-theme .odometer-digit .odometer-value,
.odometer.odometer-theme-default .odometer-digit .odometer-value {
  visibility: visible;
}

/* What We Offer — homepage services showcase */
.what-we-offer__intro {
  max-width: 680px;
  color: #666;
  font-size: 16px;
  line-height: 1.7;
}

.what-we-offer__slider {
  overflow: hidden;
}

.what-we-offer__slider .swiper-slide {
  height: auto;
}

.what-we-offer__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.what-we-offer__card:hover {
  border-color: var(--rr-theme-primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.what-we-offer__media {
  display: block;
  position: relative;
  height: 220px;
  overflow: hidden;
}

.what-we-offer__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.what-we-offer__card:hover .what-we-offer__media img {
  transform: scale(1.06);
}

.what-we-offer__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--rr-theme-primary);
  color: #fff;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.what-we-offer__body {
  padding: 28px 30px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.what-we-offer__body h6 {
  color: var(--maxima-blue);
  margin-bottom: 12px;
}

.what-we-offer__body h6 a {
  color: inherit;
}

.what-we-offer__body h6 a:hover {
  color: var(--rr-theme-primary);
}

.what-we-offer__body p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.what-we-offer__card .expert__arrow {
  border-color: rgba(0, 0, 0, 0.15);
  align-self: flex-start;
}

.what-we-offer__card:hover .expert__arrow {
  background-color: var(--rr-theme-primary);
  border-color: transparent;
}

.what-we-offer__card:hover .expert__arrow svg [stroke="#767676"] {
  stroke: #fff;
}

@media (max-width: 767px) {
  .what-we-offer__media {
    height: 200px;
  }
}

/* Inner page spacing — reduce gap below breadcrumb hero */
.breadcrumb-space {
  padding-top: 140px;
  padding-bottom: 80px;
}

.breadcrumb__area + section.section-space,
.breadcrumb__area + section.about-company,
.breadcrumb__area + section.contact-us {
  padding-top: 60px;
}

@media (max-width: 991px) {
  .text-slider__slider .carouselTicker__list li .title {
    font-size: 36px;
    line-height: 44px;
  }
}

/* Sliders & carousels — clip overflow from duplicate slides */
.banner-2,
.banner-2__slider,
.banner-2__slider.swiper {
  overflow: hidden;
}

.expert__slider,
.what-we-offer__slider {
  overflow: hidden;
}

.recent-project .swiper {
  overflow: hidden !important;
}

.clients-testimonial .swiper,
.team-member .swiper,
.latest-article .swiper,

/* Text marquee full-bleed without page overflow */
.text-slider {
  overflow-x: hidden;
}

.text-slider__slider .carouselTicker__wrap {
  overflow: hidden !important;
}

/* Offcanvas panel hidden off-screen should not widen the page */
.offcanvas__area:not(.info-open) {
  pointer-events: none;
}

/* About Company — home page image collage */
.about-company__visual {
  position: relative;
  min-height: 480px;
  padding: 12px 12px 48px 0;
}

.about-company__main-img {
  width: 82%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.about-company__main-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.about-company__secondary-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  border: 7px solid #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  z-index: 1;
}

.about-company__secondary-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.about-company__badge {
  position: absolute;
  top: 24px;
  right: 6%;
  background: #fff;
  padding: 22px 26px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  text-align: center;
  z-index: 2;
  border-left: 4px solid var(--rr-theme-primary);
}

.about-company__badge h2 {
  font-size: 52px;
  line-height: 1;
  color: var(--rr-theme-primary);
  margin-bottom: 4px;
}

.about-company__badge h2 span {
  font-size: 52px;
  font-weight: 800;
  color: var(--rr-theme-primary);
}

.about-company__badge h6 {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  margin: 0;
  color: var(--rr-heading-primary);
}

@media (max-width: 991px) {
  .about-company__visual {
    min-height: 420px;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .about-company__main-img {
    width: 88%;
  }

  .about-company__main-img img {
    height: 320px;
  }

  .about-company__secondary-img {
    width: 62%;
  }

  .about-company__secondary-img img {
    height: 200px;
  }
}

@media (max-width: 575px) {
  .about-company__visual {
    min-height: 360px;
    padding-bottom: 40px;
  }

  .about-company__main-img {
    width: 100%;
  }

  .about-company__main-img img {
    height: 260px;
  }

  .about-company__secondary-img {
    width: 70%;
    border-width: 5px;
  }

  .about-company__secondary-img img {
    height: 160px;
  }

  .about-company__badge {
    top: 16px;
    right: 0;
    padding: 16px 20px;
  }

  .about-company__badge h2,
  .about-company__badge h2 span {
    font-size: 40px;
  }
}

/* Embedded maps */
iframe {
  max-width: 100%;
}
