/*--------------------------------------------------------------
# Modern compact layer (loaded after style.css)
# Changes layout & components only; section backgrounds untouched.
--------------------------------------------------------------*/
:root {
  --pm-accent: #3498db;
  --pm-text: #2b2b2b;
  --pm-muted: #6b7280;
  --pm-radius: 14px;
  --pm-shadow: 0 6px 22px rgba(17, 38, 66, 0.07);
  --pm-shadow-hover: 0 12px 30px rgba(17, 38, 66, 0.13);
}

body {
  color: var(--pm-text);
}

/* ---------- Sections & titles ---------- */
section {
  padding: 44px 0;
}

.section-title {
  padding-bottom: 22px;
}

.section-title h2 {
  font-size: 26px;
  letter-spacing: 0.5px;
}

.section-title h2::before,
.section-title h2::after {
  width: 36px;
}

/* ---------- Header ---------- */
#header {
  padding: 14px 0;
}

#header.header-scrolled {
  padding: 8px 0;
}

#header .logo img {
  height: 44px;
}

#hero {
  margin-top: 72px;
  min-height: 0;
  padding: 36px 0 28px;
}

#hero h1 {
  font-size: 40px;
  line-height: 48px;
}

#hero .hero-img img {
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  max-height: 360px;
}

#hero .ratio {
  border-radius: var(--pm-radius);
  overflow: hidden;
  box-shadow: var(--pm-shadow);
}

/* ---------- Clients: one-line logo marquee ---------- */
.clients {
  padding: 18px 0;
}

.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: pm-marquee 60s linear infinite;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.clients-track .client-logo {
  flex: 0 0 auto;
}

.clients .clients-track img {
  height: 56px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  padding: 0;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: 0.3s;
}

.clients .clients-track img:hover {
  filter: none;
  opacity: 1;
  transform: none;
}

@keyframes pm-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

/* ---------- About ---------- */
.about .content p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.about .content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--pm-accent);
}

/* ---------- Shared card look ---------- */
#laboratory .card,
.more-services .card,
.pricing .box,
.portfolio .portfolio-wrap {
  border: 0;
  border-radius: var(--pm-radius);
  overflow: hidden;
  box-shadow: var(--pm-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

#laboratory .card:hover,
.more-services .card:hover,
.pricing .box:hover,
.portfolio .portfolio-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--pm-shadow-hover);
}

/* ---------- Laboratory ---------- */
#laboratory .img-cover {
  height: 190px;
}

#laboratory .title {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0 0;
}

#laboratory .title a {
  color: var(--pm-text);
}

/* ---------- Machinery ---------- */
.more-services {
  padding-top: 20px;
}

.more-services .card {
  padding: 0;
  height: 170px;
}

.more-services .card-body {
  background: none;
  box-shadow: none;
  padding: 10px 4px 0;
}

.more-services .card-title {
  font-size: 15px;
  margin: 0;
  text-align: center;
}

.more-services .card-title a {
  color: var(--pm-text);
}

/* ---------- Achievements ---------- */
.testimonials .testimonial-wrap {
  padding: 0;
  height: auto;
}

.testimonials .swiper-slide.testimonial-wrap {
  background: #fff;
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.testimonials .testimonial-wrap h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.testimonials .testimonial-wrap img.image-grayscale {
  width: 120px !important;
  height: 120px !important;
  margin-bottom: 12px;
}

.testimonials .achv-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--pm-muted);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.testimonials .achv-desc.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.testimonials .achv-desc .quote-icon-left,
.testimonials .achv-desc .quote-icon-right {
  display: none;
}

.achv-toggle {
  border: 0;
  background: none;
  padding: 0;
  color: var(--pm-accent);
  font-size: 14px;
  font-weight: 600;
}

.testimonials .swiper-pagination {
  margin-top: 14px;
}

/* ---------- Product ---------- */
.portfolio .portfolio-item {
  margin-bottom: 0;
}

.portfolio .portfolio-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio .portfolio-info h4 {
  font-size: 16px;
}

/* ---------- Horizontal scroller (Laboratory, Machinery, Training) ---------- */
.pm-scroller-wrap {
  position: relative;
}

.pm-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
}

.pm-scroller::-webkit-scrollbar {
  height: 6px;
}

.pm-scroller::-webkit-scrollbar-thumb {
  background: #cfd8e3;
  border-radius: 6px;
}

.pm-scroller > .pm-item {
  flex: 0 0 var(--pm-item-w, 270px);
  max-width: var(--pm-item-w, 270px);
  scroll-snap-align: start;
}

.pm-nav {
  position: absolute;
  top: 70px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--pm-accent);
  font-size: 22px;
  line-height: 1;
  box-shadow: var(--pm-shadow-hover);
  transition: 0.2s;
}

.pm-nav:hover:not(:disabled) {
  background: var(--pm-accent);
  color: #fff;
}

.pm-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.pm-nav.prev {
  left: -14px;
}

.pm-nav.next {
  right: -14px;
}

.pm-scroller-wrap.no-overflow .pm-nav {
  display: none;
}

.pm-scroller-wrap.no-overflow .pm-scroller {
  justify-content: center;
}

/* Training cards */
.pricing .training-item .box {
  height: 100%;
  padding: 0 0 14px;
  border: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.pricing .training-item .box .img-cover {
  order: 1;
  height: 160px;
}

.pricing .training-item .box h3 {
  order: 2;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 14px 4px;
  margin: 0;
  background: none;
  color: var(--pm-text);
}

.pricing .training-item .box p {
  order: 3;
  font-size: 13px;
  color: var(--pm-muted);
  padding: 0 14px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product "show more" */
.portfolio .portfolio-item.product-extra {
  display: none;
}

.btn-show-more {
  border: 2px solid var(--pm-accent);
  background: #fff;
  color: var(--pm-accent);
  border-radius: 50px;
  padding: 8px 26px;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}

.btn-show-more:hover {
  background: var(--pm-accent);
  color: #fff;
}

/* ---------- Technology ---------- */
.faq p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Contact & map ---------- */
.contact .info > div {
  margin-bottom: 14px;
}

.contact .info p {
  margin-bottom: 0;
}

.map-embed {
  height: 280px !important;
}

#footer {
  padding: 18px 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 991px) {
  #hero {
    margin-top: 72px;
    padding: 20px 0;
  }

  #hero .hero-img img {
    max-height: 240px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 32px 0;
  }

  .section-title h2 {
    font-size: 22px;
  }

  #hero h1 {
    font-size: 26px;
    line-height: 34px;
  }

  .clients .clients-track img {
    height: 44px;
  }

  #laboratory .img-cover {
    height: 120px;
  }

  .more-services .card {
    height: 120px;
  }

  .pm-scroller > .pm-item {
    flex-basis: 220px;
    max-width: 220px;
  }

  .pm-nav {
    display: none;
  }

  .map-embed {
    height: 220px !important;
  }
}

/* ---------- About: Mission list ---------- */
.about .mission-text p {
  text-align: justify;
}

.about .mission-text .mission-lead {
  font-weight: 600;
  margin-bottom: 8px;
}

.about .mission-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.about .mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.about .mission-list li i {
  color: var(--pm-accent);
  font-size: 17px;
  line-height: 1.3;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .about .mission-list {
    grid-template-columns: 1fr;
  }
}
