/* Shared layout safeguards; page colours, typography and desktop styling stay local. */
:root { --nav-height: 95px; }
html { scroll-padding-top: var(--nav-height); }
body { padding-top: var(--nav-height); }
body > nav { height: var(--nav-height); min-width: 0; z-index: 1000; }
body > nav .logo-wrap img { display: block; }
img, video, iframe, input, textarea, select { max-width: 100%; }
section, article, .card, .card > *, .pe-ftr-inner > *, .product-copy,
.product-carousel-window, .product-media, .adv-text, .adv-image,
.rohit-gfrp-wrapper > *, .barrier-wrapper > * { min-width: 0; }
p, h1, h2, h3, a, label { overflow-wrap: break-word; }
.nav-container > ul { flex-wrap: nowrap; }
.nav-container ul li:focus-within > ul,
.nav-container ul li.open > ul { opacity: 1; visibility: visible; transform: none; }
.nav-container ul li:focus-within > ul > li,
.nav-container ul li.open > ul > li { opacity: 1; transform: none; }
.menu-toggle { border: 0; background: transparent; font-family: inherit; line-height: 1.2; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card > a { flex-shrink: 0; max-width: 100%; }
.card p { flex: 1; }
.product-slide { flex: 0 0 100%; min-width: 0; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr); }
.barrier-section { height: auto; min-height: 90vh; }
.pe-ftr-inner > * { overflow-wrap: anywhere; }
.pe-ftr-links { padding-left: 0 !important; flex: 1 1 240px; }
.pe-ftr-links--stack { flex: 1 1 150px; }
.pe-ftr-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pe-ftr-links--stack ul { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body > nav { min-height: 76px; }
    .menu-toggle { display: block; flex-shrink: 0; }
    .logo-wrap { min-width: 0; }
    .logo-wrap img { max-width: 100%; height: auto; max-height: 75px; }
    .nav-container { position: absolute; top: 100%; right: 0; width: 100%; max-height: calc(100dvh - var(--nav-height, 95px)); overflow-y: auto; overflow-x: hidden; background: #fff; overscroll-behavior: contain; }
    .nav-container > ul { display: none; flex-direction: column; width: 100%; margin: 0; padding: 0; }
    .nav-container.show > ul { display: flex; }
    .nav-container ul li { width: 100%; }
    .nav-container ul li a { white-space: normal; text-align: center; padding: 14px; }
    .nav-container ul li > ul { position: static; display: none; min-width: 0; width: 100%; opacity: 1; visibility: visible; transform: none; }
    .nav-container ul li.open > ul { display: flex; flex-direction: column; }
    .nav-container ul li ul li { opacity: 1; transform: none; }
    .nav-container ul li ul li a { text-align: center; }
    .barrier-wrapper { gap: 32px; }
}
@media (max-width: 900px) {
    .product-slide { grid-template-columns: minmax(0, 1fr); }
    .barrier-section { margin-top: 0; margin-bottom: 0; min-height: 0; }
    .barrier-wrapper { flex-direction: column; }
}
@media (max-width: 768px) {
    .hero-text, .hero-slider { min-width: 0; }
    .pe-ftr-brand { flex-basis: 100%; }
    .rohit-feature-grid, .featuresLeft { grid-template-columns: minmax(0, 1fr); }
    .product-media { height: auto; }
}
@media (max-width: 600px) {
    .grid { grid-template-columns: minmax(0, 1fr); }
    .card { flex-direction: column; }
    .card p { width: 100%; }
    .product-slide { padding: 16px; }
    .product-nav { width: 32px; height: 32px; }
}
@media (min-width: 1921px) {
    .grid { max-width: 1800px; margin-inline: auto; }
}
.pe-ftr-links ul li a { white-space: normal; word-break: normal; overflow-wrap: normal; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.blog-page { height: auto; min-height: 100vh; }
body > .hero { margin-top: 0; padding-top: 0; min-height: 0; }

/* The fixed header already reserves its height; avoid a second top spacer. */
.group-introduction { padding-top: clamp(28px, 3vw, 50px); }
.contact_us_2 { margin-top: 0; }
.contact_us_2 .responsive-container-block.big-container { padding-top: 32px; }
.contact_us_2 .responsive-container-block.container,
.contact_us_2 .container-block.form-wrapper { margin-top: 0; }

/* Keep the original spacious three-column footer on desktop. */
@media (min-width: 1200px) {
    .pe-ftr-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr) minmax(100px, .5fr);
        column-gap: 80px;
        align-items: start;
    }
}
@media (max-width: 700px) {
    .pe-ftr-inner { gap: 32px; }
    .pe-ftr-brand, .pe-ftr-links { flex: 0 1 auto; }
}

/* Banner images touch the header; the header offset belongs to the page only. */
body > .hero .slides img { padding-top: 0; }

/* Keep the whole banner, including pagination, inside the first screen. */
body > .hero .slides img {
    max-height: calc(100vh - var(--nav-height, 105px)) !important;
    max-height: calc(100svh - var(--nav-height, 105px)) !important;
}
