/* Pelstra overrides. Original Bugfree styles remain in custom.css. */
html { scroll-behavior: smooth; }
body.pelstra-preview { line-height: 1.6; background: #f5f5f1; }
:focus-visible { outline: 3px solid #90ba40; outline-offset: 5px; }
.pelstra-skip { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: white; z-index: 2000; }
.pelstra-skip:focus { top: 10px; }
header.main-header .header-sticky { background: #ffffff; backdrop-filter: none; }
.navbar-brand img { width: 142px; height: auto; }
.main-menu ul li a { color: #033f2d; }
.main-menu ul li a:hover { color: #087f3f; }
.header-btn .btn-default { border-radius: 0; }
.btn-default { border: 0; cursor: pointer; }
.btn-default::before { pointer-events: none; }
.navbar-toggler { color: #033f2d; display: flex; gap: 12px; align-items: center; font-size: 14px; padding: 12px; }
.pelstra-hero-link { border: 0; background: none; color: white; padding: 12px 0; min-height: 48px; font-size: 15px; font-weight: 600; }
.pelstra-hero-link i { margin-left: 10px; font-size: 12px; }
.pelstra-hero-link:hover { color: var(--accent-color); }
.hero-image-carousel-prime { display: block; padding: 0 0 2px; }
.hero-image-carousel-prime .swiper-wrapper { align-items: flex-end; }
.hero-image-carousel-prime .swiper-slide { width: 240px; }
.pelstra-product-card { margin: 0; padding: 18px; background: #edf1e8; border-radius: 12px; height: 246px; display: flex; flex-direction: column; }
.hero-image-carousel-prime .swiper-slide:nth-child(even) .pelstra-product-card { height: 216px; background: #efe5d8; }
.pelstra-product-card img { width: 100%; height: 166px; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.hero-image-carousel-prime .swiper-slide:nth-child(even) img { height: 136px; }
.pelstra-product-card figcaption { margin-top: auto; padding-top: 12px; }
.pelstra-product-card figcaption span { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #53654f; }
.pelstra-product-card h2 { font-size: 15px; line-height: 1.4; margin: 3px 0 0; color: #033f2d; }
.pelstra-carousel-controls { display: flex; justify-content: space-between; align-items: center; padding-block: 15px; gap: 15px; }
.pelstra-carousel-controls p { color: #d6e2d5; margin: 0; font-size: 12px; }
.pelstra-carousel-controls > div { display: flex; gap: 10px; }
.pelstra-carousel-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #88a38f; background: none; color: white; }
.pelstra-carousel-controls button:disabled { opacity: .35; }
.pelstra-stage-note { text-align: center; padding: 22px 15px; font-size: 12px; color: #53654f; }
.modal-body a { color: #056332; overflow-wrap: anywhere; display: inline-block; padding-block: 8px; }
@media(min-width:992px){ .navbar-toggler { display: none; } }
@media(max-width:991px){
.main-menu { width: 100%; }
.main-menu .nav-menu-wrapper { margin: 10px 0; text-align: left; }
.main-menu .nav-menu-wrapper > ul { display: flex; align-items: stretch; }
.header-btn { display: block; padding-bottom: 12px; }
}
@media(max-width:575px){
.navbar-brand img { width: 120px; }
.main-header .navbar .container { padding-inline: 15px; }
.hero-btn-prime .btn-default { font-size: 13px; padding: 16px 50px 16px 20px; }
.pelstra-hero-link { font-size: 13px; }
.hero-image-carousel-prime .swiper-slide { width: 210px; }
.pelstra-carousel-controls { padding-inline: 18px; }
.pelstra-carousel-controls p { max-width: 150px; font-size: 11px; }
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Restore index-3 geometry, decoration and typography from custom.css. */
.pelstra-hero-link { display: inline-flex; align-items: center; gap: 20px; font-size: 16px; }
.pelstra-hero-link .pelstra-contact-icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--accent-color); border: 3px solid #83a653; border-radius: 50%; color: var(--primary-color); }
.pelstra-hero-link i { margin: 0; font-size: 14px; }
@media(min-width:992px) and (max-width:1199px){ .main-menu ul li { margin-inline: 0; } .main-menu ul li a { font-size: 14px; padding-inline: 8px !important; } .navbar-brand img { width: 120px; } .header-btn .btn-default { padding-left: 16px; padding-right: 45px; font-size: 14px; } }

/* Hero without product showcase: retain space below its actions. */
.hero-prime { padding-bottom: 100px; }
@media(max-width:991px){ .hero-prime { padding-bottom: 60px; } }

/* About: retain the original theme composition, adapt product fit and verified facts. */
#about .image-2 img { object-fit: contain; background: #eee7da; padding: 20px; }
#about .about-us-body-counter-list { width: 100%; }
#about .about-us-body-counter-item-prime h3 { font-size: 48px; line-height: 1.1; }
#about .about-us-body-list-prime ul li::before { font-family: 'Font Awesome 6 Free'; color: #087f3f; }
.pelstra-about-location { margin: 0; font-size: 14px; line-height: 1.6; color: var(--primary-color); }
.pelstra-about-location i { margin-right: 6px; }
.pelstra-about-location span { color: var(--text-color); }
@media(max-width:1199px){ #about .about-us-image-box-prime { height: 540px; max-width: 640px; margin: 0 auto 40px; } }
@media(max-width:575px){ #about .about-us-image-box-prime { height: 360px; } #about .about-us-body-counter-item-prime h3 { font-size: 38px; } }

#about .about-us-image-box-prime { height: 620px; }
#about .image-2 img { height: auto; mix-blend-mode: multiply; }
#about .image-2 figure { background: #eee7da; }
@media(max-width:1199px){ #about .about-us-image-box-prime { height: 540px; } }
@media(max-width:575px){ #about .about-us-image-box-prime { height: 360px; } }

#about .image-2 img { background: transparent; }

/* Categories retain the theme Services grid and card treatments. */
#products .service-item-title-prime h3 { font-size: 20px; line-height: 1.4; }
#products .icon-box i { position: relative; z-index: 1; font-size: 26px; color: var(--primary-color); transition: color .4s; }
#products .service-item-prime:hover .icon-box i { color: white; }
@media(max-width:767px){ #products .service-item-title-prime h3 { font-size: 18px; } }

#products .section-footer-text a { color: var(--primary-color); }

@media(prefers-reduced-motion:reduce){ .wow { visibility: visible !important; opacity: 1 !important; transform: none !important; } }

/* Manufacturing: original Why Choose Us composition, with supplied imagery. */
#manufacturing .why-choose-us-img-prime img { height: auto; }
#manufacturing .image-1 figure { background: #edf1e8; }
#manufacturing .image-1 img { object-fit: contain; padding: 15px; mix-blend-mode: multiply; }
#manufacturing .why-choose-list-prime ul li::before { font-family: 'Font Awesome 6 Free'; color: #087f3f; }
#manufacturing .icon-box i { position: relative; z-index: 1; font-size: 23px; color: var(--primary-color); transition: color .4s; }
#manufacturing .why-choose-item-prime:hover .icon-box i { color: white; }
@media(max-width:1199px){ #manufacturing .why-choose-us-image-box-prime { max-width: 620px; margin: 0 auto 40px; } }

/* Brand stories use Our Story's dark band, heading/CTA and feature row. */
.pelstra-brands { background-image: url('../images/dark-section-bg-image.png'); }
.pelstra-brand-stories { margin-top: 40px; }
.pelstra-brand-story { height: 100%; display: flex; flex-direction: column; }
.pelstra-brand-image { margin: 0 0 28px; height: 330px; border-radius: 20px; background: #eee4d8; padding: 24px; }
.pelstra-brand-image-xout { background: #e7eddf; }
.pelstra-brand-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pelstra-brand-copy { display: flex; flex-direction: column; flex: 1; }
.pelstra-brand-label { color: var(--accent-color); font-size: 12px; letter-spacing: .1em; margin-bottom: 12px; }
.pelstra-brand-copy h3 { font-size: 36px; color: white; margin-bottom: 16px; }
.pelstra-brand-copy > p:not(.pelstra-brand-label) { color: #dce8dc; line-height: 1.7; max-width: 520px; }
.pelstra-brand-copy .readmore-btn { color: var(--accent-color); margin-top: auto; align-self: flex-start; }
.pelstra-brands .story-item-list-prime { margin-top: 60px; }
.pelstra-brands .icon-box i { position: relative; z-index: 1; color: var(--primary-color); font-size: 25px; }
@media(max-width:767px){ .pelstra-brand-image { height: 280px; } .pelstra-brand-copy h3 { font-size: 30px; } .pelstra-brands .story-item-list-prime { margin-top: 40px; } }

/* Featured products retain the theme project-card silhouette and overlay. */
.pelstra-featured .project-item { border-radius: 20px; overflow: hidden; background: #eee9df; }
.pelstra-featured .col-md-6:nth-child(even) .project-item { background: #edf1e8; }
.pelstra-featured .pelstra-featured-link { display: block; position: relative; height: 100%; color: white; }
.pelstra-featured .project-item-image figure { cursor: pointer; }
.pelstra-featured .project-item-image img { height: 460px; aspect-ratio: auto; object-fit: contain; padding: 25px 28px 160px; mix-blend-mode: multiply; }
.pelstra-featured .project-item-image figure::before { background: linear-gradient(180deg, transparent 48%, rgba(3,63,45,.92) 76%, #033f2d 100%); }
.pelstra-featured .project-item-content { left: 26px; right: 26px; bottom: 26px; }
.pelstra-product-category { color: #d1f58e; font-size: 13px; margin-bottom: 9px; }
.pelstra-featured .project-item-content h3 { color: white; font-size: 23px; line-height: 1.25; margin-bottom: 16px; }
.pelstra-product-enquiry { font-size: 14px; font-weight: 600; }
.pelstra-product-enquiry i { margin-left: 8px; font-size: 12px; }
.pelstra-featured .project-item-btn > span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--accent-color); }
.pelstra-featured .project-item-btn img { width: 25px; transform: rotate(-45deg); }
.pelstra-featured .project-item:focus-within .project-item-btn { opacity: 1; visibility: visible; transform: scale(1); }
.pelstra-featured .pelstra-featured-link:focus-visible { outline: 3px solid var(--accent-color); outline-offset: -5px; border-radius: 20px; }
.pelstra-featured .section-footer-text { margin-top: 10px; }
.pelstra-featured .section-footer-text a { color: var(--primary-color); }
@media(max-width:991px){ .pelstra-featured { padding: 60px 0; } }
@media(max-width:575px){ .pelstra-featured .project-item-image img { height: 420px; padding-inline: 20px; } .pelstra-featured .project-item-content h3 { font-size: 21px; } }

/* Industries adapts index-3's original Protection layout and image panel. */
#industries .protection-body-item-prime { width: calc(50% - 15px); align-items: flex-start; color: var(--primary-color); }
#industries .icon-box i { position: relative; z-index: 1; font-size: 22px; transition: color .4s; }
#industries .protection-body-item-prime:hover .icon-box i { color: white; }
#industries .protection-body-item-content-prime h3 { font-size: 18px; }
#industries .protection-body-item-content-prime p { font-size: 14px; line-height: 1.5; margin: 8px 0 10px; color: var(--text-color); }
.pelstra-industry-action { font-size: 13px; font-weight: 600; }
.pelstra-industry-action i { font-size: 11px; margin-left: 5px; }
.pelstra-industry-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 6px; border-radius: 6px; }
#industries .protection-image-box-prime { min-height: 700px; }
#industries .protection-image-prime img { min-height: 700px; }
#industries .protection-image-content-list-prime ul li::before { font-family: 'Font Awesome 6 Free'; }
#industries .protection-image-content-list-prime .btn-default { margin-top: 20px; }
@media(max-width:1199px){ #industries .protection-image-box-prime { margin: 40px 0 0; min-height: 580px; } #industries .protection-image-prime img { height: 580px; min-height: 0; object-position: center 35%; } }
@media(max-width:575px){ #industries .protection-body-item-prime { width: 100%; } #industries .protection-image-box-prime { min-height: 560px; } #industries .protection-image-prime img { height: 560px; } #industries .protection-image-content-prime { left: 20px; right: 20px; bottom: 24px; } #industries .protection-cta-box-content-prime h3 { font-size: 24px; } }

/* Distributor invitation: theme Our Story heading, CTA and icon row. */
.pelstra-partners { margin-top: 100px; background-image: url('../images/dark-section-bg-image.png'); }
.pelstra-partner-actions { flex-direction: column; align-items: flex-end; gap: 20px; }
.pelstra-partner-phone { color: white; font-size: 17px; padding: 10px 0; }
.pelstra-partner-phone i { color: var(--accent-color); margin-right: 10px; }
.pelstra-partner-phone:hover { color: var(--accent-color); }
.pelstra-partners .story-item-list-prime { margin-top: 60px; gap: 30px; }
.pelstra-partners .story-item-prime { width: calc((100% - 60px) / 3); align-items: flex-start; }
.pelstra-partners .story-item-prime::before { right: -15px; }
.pelstra-partners .icon-box i { position: relative; z-index: 1; font-size: 25px; color: var(--primary-color); }
.pelstra-partners .story-item-content-prime p { color: #dce8dc; margin: 12px 0 0; font-size: 15px; line-height: 1.6; }
@media(max-width:991px){ .pelstra-partners { margin-top: 60px; } .pelstra-partners .story-item-list-prime { margin-top: 40px; padding-top: 40px; } .pelstra-partners .story-item-prime { width: 100%; } .pelstra-partners .story-item-prime::before { display: none; } }
@media(max-width:767px){ .pelstra-partner-actions { align-items: flex-start; } }

/* Resources use the theme blog grid, rounded images and divided actions. */
.pelstra-resources .post-item { display: flex; flex-direction: column; }
.pelstra-resources .post-featured-image figure { border-radius: 20px; overflow: hidden; background: #eee9df; }
.pelstra-resources .post-featured-image img { object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.pelstra-resources #knowledge-centre .post-featured-image img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.pelstra-resources .post-item-body { display: flex; flex-direction: column; flex: 1; }
.pelstra-resources .post-item-content { flex: 1; }
.pelstra-resources .post-item-content h3 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
.pelstra-resources .post-item-content > p:last-child { margin-bottom: 0; }
.pelstra-resource-label { font-size: 13px; font-weight: 600; color: #087f3f; margin: 0 0 12px; }
.pelstra-resources .readmore-btn { color: var(--primary-color); }
@media(max-width:575px){ .pelstra-resources .post-item-content h3 { font-size: 22px; } }

/* Contact uses the theme form controls; footer retains its link columns and dark band. */
.pelstra-contact { padding: 0 0 100px; }
.pelstra-enquiry-panel { background: white; border-radius: 20px; padding: 35px; }
.pelstra-enquiry-panel > h3 { font-size: 26px; margin-bottom: 15px; }
#enquiry-preview-note { font-size: 14px; margin-bottom: 28px; }
.pelstra-enquiry-panel .form-label { font-size: 14px; font-weight: 600; color: var(--primary-color); }
.pelstra-enquiry-panel textarea { resize: vertical; }
#enquiry-status:not(:empty) { padding: 18px; margin: 22px 0 0; border-left: 3px solid #087f3f; background: #edf1e8; color: var(--primary-color); }
.pelstra-contact-details > div { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.pelstra-contact-details > div > i { width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-color); border-radius: 50%; color: var(--primary-color); font-size: 21px; }
.pelstra-contact-details h3 { font-size: 20px; margin-bottom: 8px; }
.pelstra-contact-details a { color: var(--primary-color); overflow-wrap: anywhere; }
.pelstra-contact-details address { font-style: normal; }
.pelstra-freight-note { border-top: 1px solid var(--divider-color); padding-top: 24px; margin-top: 30px; font-size: 14px; }
.pelstra-footer-logo { display: inline-block; background: white; padding: 15px 20px; border-radius: 12px; margin-bottom: 24px; }
.pelstra-footer-logo img { width: 160px; height: auto; }
.pelstra-footer .footer-links-box { gap: 25px; }
.pelstra-footer .footer-links { flex: 1; min-width: 0; }
.pelstra-footer .footer-links a { overflow-wrap: anywhere; }
.pelstra-footer .footer-links li { color: white; }
.pelstra-footer-preview { font-size: 12px; opacity: .8; margin-top: 10px; }
@media(max-width:991px){ .pelstra-contact { padding-bottom: 60px; } }
@media(max-width:575px){ .pelstra-enquiry-panel { padding: 24px 18px; } .pelstra-footer .footer-links-box { flex-direction: column; gap: 30px; } .pelstra-footer .footer-links { width: 100%; } }

.pelstra-enquiry-panel .form-control { background: #f5f6f2; border: 1px solid #d5ddd5; color: var(--primary-color); }
.pelstra-enquiry-panel .form-control:focus { border-color: #087f3f; box-shadow: 0 0 0 3px rgba(8,127,63,.12); }
.pelstra-footer-logo { align-self: flex-start; max-width: 200px; }
.pelstra-footer a[href^="mailto:"] { text-transform: none; }
