/* =====================================================================
   Khyati Construction Machinery – site specific styles & responsive fixes
   Loaded after main.css so these rules win.
   ===================================================================== */

/* ---------- Header ---------- */
.header-9-logo img {
  height: 70px;
  width: auto;
}
@media (max-width: 991px) {
  .header-9-logo img { height: 56px; }
  .header-9 { padding: 12px 15px; }
}
@media (max-width: 575px) {
  .header-9-logo img { height: 46px; }
  .header-9 { padding: 10px 12px; }
  .header-9-toggle-mobileMenu { font-size: 26px; }
}
.header-9-call-icon a:hover { color: var(--h9-primary-color); }

/* Fixed header shouldn't cover section titles when jumping to anchors */
.header.fixed-header + * { scroll-margin-top: 120px; }

/* ---------- Mobile menu ---------- */
.mobile-menu__logo img { max-height: 56px; width: auto; }
.mobile-menu .nav-submenu { padding-left: 12px; }
.mobile-menu .nav-menu__item.activePage > .nav-menu__link { color: var(--h9-primary-color); }

/* ---------- Home banner ---------- */
.banner-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.banner-slider .swiper-pagination-bullet-active { background: var(--h9-primary-color); }

/* ---------- Home brand/client slider ---------- */
.brand-9-thumb { width: 100%; text-align: center; }
.brand-9-thumb img,
.brand-9-active .swiper-slide-active .brand-9-thumb img { filter: none; }
.brand-9-wrapper img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}
@media (max-width: 575px) {
  .brand-9-wrapper img { max-height: 44px; }
}

/* ---------- Home feature panels (About / Products / Contact) ----------
   The theme hides the whole panel block under 768px. Show it as a stack
   of cards instead so phone visitors still get the content. */
.feature-9-thumb img { max-width: 100%; height: auto; }
@media (max-width: 767px) {
  .feature-9-thumb { margin-left: 0; margin-bottom: 24px; }
  .row-custom-wrapper { display: block !important; margin-left: 0; }
  .row-custom { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
  .col-custom,
  .col-custom.active {
    flex: none;
    width: 100%;
    height: auto;
    margin: 0 0 16px;
    padding: 24px 20px;
    border-radius: 14px;
    cursor: default;
  }
  .col-custom .panel-9-item { display: none; }
  .col-custom .panel-9-item-2,
  .col-custom .panel-9-content-2 span,
  .col-custom .panel-9-content-2 p,
  .col-custom .panel-9-title-2 {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .col-custom .panel-9-content-2 span { font-size: 44px; margin-bottom: 16px; }
  .col-custom .panel-9-content-2 p { max-width: 100%; }
  .feature-9-button { margin-top: 16px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .col-custom.active { padding: 30px 24px; }
}

/* ---------- Home about ---------- */
.about-9-thumb img { width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 575px) {
  .about-9-btn-box { flex-wrap: wrap; gap: 16px !important; }
}

/* ---------- Gallery slider (home) ---------- */
.project-9-active .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
.project-9-thumb {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}
.project-9-thumb img,
.project-9-thumb video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  display: block;
}
@media (max-width: 992px) {
  .project-9-thumb img,
  .project-9-thumb video { height: 250px; }
}
@media (max-width: 576px) {
  .project-9-thumb img,
  .project-9-thumb video { height: 220px; }
  .project-9-thumb { margin-bottom: 0; }
}

/* ---------- Features slider (home) ---------- */
.building-9-icon i { color: var(--h9-primary-color); }
@media (max-width: 575px) {
  .building-9-arrow-box { margin-top: 20px; }
}

/* ---------- FAQ ---------- */
.faq-two-thumb img { width: 100%; height: auto; border-radius: 12px; }

/* ---------- Testimonials / counters (about page) ---------- */
@media (max-width: 1199px) {
  .testimonial-9-counter { margin-left: 0; max-width: 100%; margin-bottom: 36px; }
  .testimonial-9-counter span { margin-bottom: 28px; }
  .testimonial-9-counter-number { margin-bottom: 24px; }
}
.testimonial-9-logo img { max-width: 100%; }

/* ---------- Product listing (category page) ---------- */
.product-card-link { display: block; color: inherit; }
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
}
.product-card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); transform: translateY(-4px); }
.product-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}
.product-card-thumb img.cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-card-content { padding: 15px; }
.product-card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
}
@media (max-width: 575px) {
  .product-card-title { font-size: 14px; }
  .product-card-content { padding: 10px; }
}
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 10px;
  color: #555;
}

/* ---------- Product details ---------- */
.project-details__thumb { max-height: none; overflow: visible; }   /* theme clipped the 540px square to 500px */
.main-preview {
  width: 100%;
  max-width: 540px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: 0.3s ease;
  background: #fff;
}
.thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}
.thumb-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
  border: 2px solid transparent;
  border-radius: 8px;
}
.thumb-box img:hover { transform: scale(1.05); }
.thumb-box img.active { border-color: var(--h9-primary-color); }
.project-details__desc img { max-width: 100%; height: auto; }
.project-details__desc table { width: 100%; display: block; overflow-x: auto; }
.btn-whatsapp {
  background-color: #25D366;
  color: #fff !important;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}
.btn-whatsapp:hover { background-color: #1EBE57; }

/* ---------- Gallery page ---------- */
.gallery-fixed-size {
  width: 100%;
  height: auto;
  aspect-ratio: 590 / 498;
  object-fit: cover;
  display: block;
  background: #000;
}
.property-item__thumb a { display: block; position: relative; }
.property-item__thumb a.video-link::after {
  content: "\f04b";
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40px;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* ---------- Blog ---------- */
.blog-details__thumb img {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}
.blog-details__desc img { max-width: 100%; height: auto; }
.blog-item__thumb-link img { width: 100%; }

/* ---------- Contact ---------- */
.contact-card__text a { word-break: break-word; }
.contact-map iframe { width: 100%; min-height: 320px; display: block; border: 0; }
.form-message { display: none; margin-top: 16px; }

/* ---------- Footer ---------- */
.footer-9-newsletter-form-input { flex-wrap: wrap; }
.footer-9-newsletter-form-input .icon-input { flex: 1 1 220px; }
.footer-9-newsletter-form-input .icon-input input { width: 100%; }
.footer-9-newsletter-paragraph { max-width: 100%; }
@media (max-width: 991px) {
  .footer-9-newsletter .ms-xl-5 { margin-left: 0 !important; }
  .footer-9-newsletter { margin-top: 30px; }
}
@media (max-width: 767px) {
  .bottom-footer__inner { flex-direction: column; text-align: center; }
  .footer-9-socail ul { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Generic ---------- */
img { max-width: 100%; }
.breadcrumb { overflow: hidden; }          /* 1050px bg image is centred and spilled past the viewport */
.breadcrumb__img { max-width: none; }
.google-map iframe { border: 0; }
body { overflow-x: hidden; }
