/* ==========================================================================
   PPIS — Responsive Stylesheet
   Breakpoints: 1440 (desktop) → 1200 (laptop) → 992 (tablet)
                → 768 (mobile) → 480 (small mobile)
   ========================================================================== */

/* ----------------------------------------------------------------------
   Desktop — 1440px and below (large monitors keep the base styles;
   this trims max container width so content doesn't over-stretch)
---------------------------------------------------------------------- */
@media (max-width: 1440px) {
  .container {
    max-width: 1180px;
  }
.blog-section {
	padding: 80px 0;}
}
@media (max-width: 1370px){
	.hero-content {
    padding-top: 20px;
}
.blog-section {
	padding: 70px 0;}
}

@media (max-width: 1290px){
.hero-heading {
    font-size: 34px;
    color: var(--color-white);
    margin-bottom: 18px;
}	
}
/* ----------------------------------------------------------------------
   Laptop — 1200px and below
---------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-heading {
    font-size: 2.6rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-inner {
    grid-template-columns: 1fr 1.4fr;
    gap: 44px;
  }

  .process-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
  }

  .feature-row-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .core-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-banner-badge {
    width: 170px;
    height: 170px;
    right: 30px;
  }

  .nav-list {
    gap: 24px;
  }
  html,body{overflow-x: hidden;}
  header#site-header {
    top: 0px;position: fixed;
}
.blog-section {
    padding: 70px 0;
}
.testimonials-section {
    padding: 70px 0;
}
.what-we-do,
.future-section,
.core-services {
    padding: 70px 0;
}
.vision-mission {
    padding: 20px 0 70px;
}
.feature-row {
    padding: 0 0 70px;
}
    .footer-top {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }
        .hero-heading {
        font-size: 2rem;
    }
.dropdown-menu {
    left: -130%; 
}
}

/* ----------------------------------------------------------------------
   Tablet — 992px and below
---------------------------------------------------------------------- */
@media (max-width: 1100px){
	.hero-content {
        padding-top: 40px;
    }
}
@media (max-width: 1000px){
	.dropdown-menu {
		left: -210%;}
}
@media (max-width: 992px) {
  :root {
    --section-spacing: 80px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .why-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-intro {
    text-align: center;
  }

  .why-card--wide {
    grid-column: span 2;
  }

  .process-inner {
    grid-template-columns: 1fr;
  }

  .process-widget {
    position: static;
    margin-top: 20px;
  }

 

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 44px;
  }

  .banner-content blockquote p {
    font-size: 1.45rem;
  }

  /* Header crowding fix: between ~769px and 992px the full desktop nav
     (logo + 5 links + CTA) no longer fits its available width once the
     container narrows below ~944px usable — the tagline, tighter nav
     gap, and a smaller CTA claw back the ~90px needed so the header
     never wraps or overflows before the hamburger takes over at 768px. */
  .logo-text small {
    display: none;
  }

  .nav-list {
    gap: 16px;
  }

  .header-cta {
    padding: 12px 22px;
  }
  html,body{overflow-x: hidden;}
  .process-section {
    padding: 60px 0;
}
.page-banner-content h1 {
    font-size: 2.2rem;}
    .about-intro {
    padding: 60px 0 20px;
}

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-aside {
    position: static;
    margin-bottom: 30px;
  }

  .service-info-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-info-block img {
    height: 320px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}
/* ----------------------------------------------------------------------
   Mobile — 768px and below
---------------------------------------------------------------------- */
@media (max-width: 900px) {
.services-section {
	margin: 50px 0;}
	.why-section {
		padding: 70px 0;}
	 .blog-grid {
    grid-template-columns: repeat(1, 1fr);
  }
	.why-grid {
		grid-template-columns: repeat(2, 1fr);}
    .why-card--wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
  :root {
    --header-height: 74px;
    --section-spacing: 64px;
  }

  /* Header / Mobile nav */
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition), opacity var(--transition);
    justify-content: flex-start;
  }

    .main-nav.open {
        max-height: 100vh;
        opacity: 1;
        overflow-y: scroll;        padding-bottom: 50px;
    }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;        height: 100vh;
        overflow-y: scroll;        width: 100%;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 14px 2px;
  }

  .nav-link::after {
    display: none;
  }

  /* Services dropdown becomes a click-toggled accordion nested in the
     slide-down mobile nav — hover has no meaningful effect on touch,
     and max-height:0 keeps it collapsed regardless of :hover state. */
  .nav-link-wrap {
    justify-content: space-between;
  }

  .dropdown-toggle {
    width: 40px;
    height: 40px;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0;
    box-shadow: none;
    border-radius: 0;
    background-color: var(--light-bg);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transform: none;
    transition: max-height var(--transition), padding var(--transition);
  }

  .nav-item.open .dropdown-menu {
        max-height: fit-content;
    padding: 6px 0;
  }

  .dropdown-menu li a {
    padding: 10px 24px 10px 36px;
    font-size: 0.88rem;
  }

  /* Rotation follows .open only at mobile widths — a lingering :hover
     from a mouse on a resized/touch-hybrid browser shouldn't flip the
     chevron independently of the actual toggle state. */
  .nav-item:hover .dropdown-toggle svg {
    transform: none;
  }

  .nav-item.open .dropdown-toggle svg {
    transform: rotate(180deg);
  }

  /* Hero */
       .hero-section {
        min-height: auto;
        text-align: left;
        height: auto;
        padding: 80px 0px;
    }
  .hero-heading {
    font-size: 2.05rem;
  }

  .hero-text {
    font-size: 1rem;
  }

    .section-heading {
        margin-bottom: 20px;
    }

  .section-heading h2 {
    font-size: 1.7rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid.services-grid--3 {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .feature-row-grid {
    grid-template-columns: 1fr;
  }

  .core-services-grid {
    grid-template-columns: 1fr;
  }

  .page-banner-badge {
    display: none;
  }

    .page-banner-content h1 {
        font-size: 23px;
        margin-top: 0px;
        margin-bottom: 17px;
    }

  .about-intro-inner h2 {
    font-size: 1.4rem;
  }

  .future-content h2 {
    font-size: 1.55rem;
  }
    .service-detail {
        padding: 40px 0 0;
    }

  .borescope-frame {
    min-height: 300px;
  }

  .borescope-frame img {
    width: 220px;
    height: 220px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card--wide {
    grid-column: span 1;
    flex-direction: column;
  }

  .why-card--wide img {
    width: 100%;
    height: 200px;
  }

  .process-list h2 {
    font-size: 1.55rem;
  }

  .banner-section {
    min-height: 420px;
  }

  .banner-content blockquote p {
    font-size: 1.25rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip-inner {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }

  .footer-about p {
    max-width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .contact-text strong {
    font-size: 20px;}
    
}

/* ----------------------------------------------------------------------
   Small Mobile — 600px and below
---------------------------------------------------------------------- */
@media (max-width: 600px) {
	.contact-map iframe {
		height: 340px;}
  .container {
    padding: 0 18px;
  }

  .hero-heading {
    font-size: 1.65rem;
  }

    .hero-content {
        padding-top: 40px;
        padding-bottom: 10px;
    }

  .btn {
    width: 100%;
    padding: 14px 24px;
  }

  .hero-content .btn {
    width: auto;
  }

  .section-heading h2 {
    font-size:1.5rem;
  }

  .service-card,
  .testimonial-card {
    padding: 28px 22px;
  }

  .why-card-body,
  .blog-card-body {
    padding: 18px 18px 22px;
  }

  .progress-widget {
    padding: 26px 20px;
  }

  .banner-content blockquote p {
    font-size: 1.1rem;
  }

  .banner-footer {
    flex-direction: column;
  }

  .banner-footer .btn {
    width: 100%;
  }

  .footer-bottom-inner .btn {
    width: auto;
  }
  .why-section {
    padding:60px 0;
}
.process-section {
    padding: 50px 0;}
    .testimonials-section {
    padding: 50px 0;
}
.why-section {
    padding: 40px 0;
}
.blog-section {
    padding: 60px 0;}
    .what-we-do, .future-section {
        padding: 40px 0;
    }
.about-intro {
    padding: 50px 0 10px;
}
.vision-mission {
    padding: 10px 0 50px;
}
.feature-row {
    padding: 0 0 50px;
}
    .page-banner {
        min-height: auto;
         padding: 100px 0px 60px 0px;
    }
        .footer-top {
        gap: 10px;
    }
    header#site-header img {
        width: 110px;
    }
.contact-strip {
    padding: 0px 0px 40px 0;
}
.site-footer {
    padding-top: 60px;
}
.future-section{margin-bottom: 50px;}
.service-detail-grid {
	gap: 10px;}
.service-detail-media {
	max-height: 200px;}
.container.contact-strip-inner {
    margin-top: 10px;
}
.contact-item {
	padding: 12px 20px;}
.ref-section {
    margin-top: 40px;
}
	.breadcrumb li[aria-current="page"] {
    font-weight: 500;
    font-size: 12px;
}
.contact-text strong {
	text-align: left;}
	.service-info-block{        display: flex;
        flex-direction: column-reverse;}
	.hero-heading h1 br{display:none;}
}
