/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ================ Notes ================== */
/* ----------------------------------------- */
/* Note: Default Breakpoints https://docs.generatepress.com/article/responsive-display/ */
/* Note: The Order of CSS Cascading ----- */
/* 1. Theme File Editor Style.CSS File -- */
/* 2. GenerateBlocks Global Styles ------ */
/* 3. GeneratePress Block On-page Local Styling --------- */
/* 4. WP Code Snippets Plugin ----------- */
/* 5. Customizations Pannel CSS --------- */


/* ================ Defaults =============== */
/* ----------------------------------------- */
/* Set the main content area to a minimum vh & body color */
#main {
	min-height: 75vh;
}

body {
	background-color: var(--white);
}

/* ----------------------------------------- */
/* Default sticky scroll up nav background color & logo padding */

.sticky-nav-scrolling-up {
  background-color: #fff;
}

.sticky-navigation-logo .is-logo-image {
	padding: 0;
}

/* ----------------------------------------- */
/* remove bottom margin on last paragraph or list in container */
.gb-container p:last-child:last-of-type,
.gb-container ul:last-child:last-of-type {
  margin-bottom: 0px;
}

/* ----------------------------------------- */
/* Drop sidebar below content on tablet */
@media (max-width: 1024px) {
  .site-content {
    flex-direction: column;
  }

  .site-content .content-area,
  .site-content .is-right-sidebar {
    width: 100%;
  }
}

.single-post :is(p, ul, ol) + :is(h2, h3, h4) {
  margin-top: 40px;
}

/* ----------------------------------------- */
/* wp search block style */
.wp-block-search__button.has-icon {
  background-color: var(--accent);
  border-radius: 2px;
	transition: all 0.5s ease 0s;
}

.wp-block-search__button.has-icon:hover {
  background-color: var(--accent-2);
  background-color: green;
}

.wp-block-search__button svg {
  min-height: 1.6em;
  min-width: 1.6em;
  vertical-align: text-bottom;
}

/* ----------------------------------------- */
/* Removing visible outline on Focus */
a:active,
a:focus {
  outline: 0;
  border: none;
  -moz-outline-style: none;
}

textarea:focus,
input:focus {
  outline: none;
}

*:focus {
  outline: none;
}


/* ----------------------------------------- */
/* 'Media & Text' gutenberg block mobile padding */
/* Note: The block by default reformats at 601px wide */
@media (max-width: 600px) {
.wp-block-media-text__content {
  padding-top: 40px !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
}
}


/* ============ Helper Classes ============= */
/* ----------------------------------------- */
/* .pos-relative, .pos-absoulte, .display-none, .mobile-only, .dt-only */
.pos-relative{
	position: relative;
}
.pos-absolute{
	position:absolute;
	top: 0px;
	left: 0px;
}
.display-none {
  display: none !important;
}

@media only screen and (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

@media only screen and (max-width: 768px) {
  .dt-only {
    display: none !important;
  }
}

/* ----------------------------------------- */
/* --- Mobile Column Flip --- */
@media only screen and (max-width: 768px) {
 .mobile-flip {
   flex-direction: column-reverse;
 }
}

/* ----------------------------------------- */
/* Can use to set spacer elements smaller on mobile. */
@media only screen and (max-width: 768px) {
  .mobile-xsmall {
    height: 5px !important;
  }
  .mobile-small {
    height: 20px !important;
  }
  .mobile-medium {
    height: 40px !important;
  }
}

/* ----------------------------------------- */
/* Can use to set spacer elements smaller on tablet. */
/* 
@media only screen and (min-width: 769px) and (max-width: 1024px) {
   .med-xsmall {
     height: 5px !important;
   }
   .med-small {
     height: 20px !important;
   }
   .med-medium {
     height: 65px !important;
   }
} 
*/


/* ============ Alignwide & Allow Width Classes ============= */
/* ---------------------------------------------------------- */
/* -- Alignwide & Allow Width Classes ----------------------  */
/* -- Unset or default width containers will inherit from parent -------- */
/* -- Set width containers will function as exptected within other set containers, but not exceed the parent container's width -------- */

/* ----- Resetting alignwide interitance from parent generatepress theme ----- */
.entry-content .alignwide, 
body:not(.no-sidebar) .entry-content .alignfull {
/*     margin-left: -32px; */
/*     width: calc(100% + 64px); */
/*     max-width: calc(100% + 64px); */
    margin-left: unset;
    width: unset;
    max-width: unset;
}
@media (max-width: 768px) {
  .entry-content .alignwide, 
  body:not(.no-sidebar) .entry-content .alignfull {
    margin-left: unset !important;
    width: unset !important;
    max-width: unset !important;
  }
}

/* -- .allow-default Class -- */
/* -- forces element with 'default width' to not inherit from parent, but be site default of 800px wide -- */
/* -- all other set widths will override .allow-default -- */
@media only screen and (min-width: 800px) {
  .site-content .allow-default,
  .entry-content .allow-default,
  body .allow-default {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* -- alignwide -- */
@media only screen and (min-width: 800px) {
  .site-content .alignwide, 
  .site-content .allow-default.alignwide,
  .entry-content .alignwide, 
  .entry-content .allow-default.alignwide,
  .site-footer .alignwide, 
  .site-footer .allow-default.alignwide,
  .site-header .alignwide, 
  .site-header .allow-default.alignwide,
  body .alignwide, 
  body .allow-default.alignwide{
    width: 100% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* -- alignfull -- */
@media only screen and (min-width: 800px) {
  .site-content .allow-default.alignfull,
  .entry-content .allow-default.alignfull,
  .site-footer .allow-default.alignfull,
  .site-header .allow-default.alignfull,
  body .allow-default.alignfull  {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
    width: auto;
  }
}

/* -- allow-twelve class -- */
@media only screen and (min-width: 800px) {
  .site-content .allow-twelve.alignwide,
  .entry-content .allow-twelve.alignwide,
  .site-footer .allow-twelve.alignwide,
  .site-header .allow-twelve.alignwide,
  body .allow-twelve.alignwide {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* -- allow-thriteen class -- */
@media only screen and (min-width: 800px) {
  .site-content .allow-thirteen.alignwide,
  .entry-content .allow-thirteen.alignwide,
  .site-footer .allow-thirteen.alignwide,
  .site-header .allow-thirteen.alignwide,
  body .allow-thirteen.alignwide  {
    width: 100% !important;
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* -- allow-fourteen class -- */
@media only screen and (min-width: 800px) {
  .site-content .allow-fourteen.alignwide,
  .entry-content .allow-fourteen.alignwide,
  .site-footer .allow-fourteen.alignwide,
  .site-header .allow-fourteen.alignwide,
  body .allow-fourteen.alignwide  {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ================= Outter Container Padding =============== */
/* ---------------------------------------------------------- */
/* Setting outter container padding for: */
/* .gbp-section */
/* .top-bar */
/* .site-header */
/* .sticky-nav-scrolling-up  */
/* .page-hero-banner */
/* .prefooter */
/* .site-footer-wrapper ** Note .site-footer is a class taken when setting the Generatepress element */
/* all outter blocks under .site-content .entry-content  */
/* .four-o-four-page-content */

/*.top-bar,
.site-header,
.sticky-nav-scrolling-up,
.prefooter,
.site-footer-wrapper,
.page-hero-banner,
.site-content .entry-content > *,
.gbp-section,
.four-o-four-page-content {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

@media (max-width: 1024px) {
.top-bar,
.site-header,
.sticky-nav-scrolling-up,
.prefooter,
.site-footer-wrapper,
.page-hero-banner,
.site-content .entry-content > *,
.gbp-section,
.four-o-four-page-content {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 767px) {
.top-bar,
.site-header,
.sticky-nav-scrolling-up,
.prefooter,
.site-footer-wrapper,
.page-hero-banner,
.site-content .entry-content > *,
.gbp-section,
.four-o-four-page-content {
        padding-left: 20px !important;
	    padding-right: 20px !important;
    }
}

/* ----------------------------------------------- */
/* === .gbp-section ========== */
/* .gbp-section */
/* Is just horisontal padding on the outer container and is overridden in the section on outter padding above */

/* ADDITIONAL STYLES FOR PROCHEMWATER */

body {overflow-x: hidden;}

/* Utility Styles */
.word-break {word-break: break-word;}

/* Left Sidebar Sticky fix */
.admin-bar .left-sidebar-sticky {top: var(--wp-admin--admin-bar--height);}

/* Header Styles */
nav li a {column-gap: 5px;}
nav .gb-submenu-toggle {
	margin-top: 3px;
    background-color: rgb(255 255 255 / 85%);
    border-radius: 50%;
	width: 15px;
    height: 15px;
    color: #000;
}

.nav-container ul#menu-primary>.menu-item>a {position: relative;}
.nav-container ul#menu-primary>.menu-item>a:hover:before {content: ''; position: absolute; width: 100%; border-bottom: 3px solid var(--white); bottom: 3px;}
.nav-container .gb-menu-container--mobile ul#menu-primary>.menu-item>a:hover:before {border: none;}
@media (max-width: 1024px) {
	.nav-container .gb-menu-container--mobile ul.sub-menu,
	.nav-container .gb-menu-container--mobile ul.sub-menu .menu-item {background-color: var(--black); margin-left: 10px;}
	.nav-container ul#menu-primary>.menu-item {border-bottom: 1px solid rgb(241 241 241 / 50%);}
	.nav-container ul.sub-menu>.menu-item {border-bottom: 1px solid rgb(241 241 241 / 0%);}
	.nav-container a {justify-content: center !important;}
	.nav-container .gb-menu-toggle:focus {background-color: var(--cyan-blue);}
	/*.nav-container ul#menu-primary>.menu-item>a:focus,
	.nav-container ul#menu-primary>.menu-item>a:active,
	.nav-container ul#menu-primary>.menu-item:focus,
	.nav-container ul#menu-primary>.menu-item:active {background: #000000 !important;}*/
	.nav-container a {-webkit-tap-highlight-color: transparent;}
}
/* Homepage Styles */
@media (max-width: 767px) {
	.top-hero-video video {height: 500px; object-fit: cover;}
}

/* Industries page Table styles */
.indu-tab-content {column-count: 2; color: var(--blue-hover);}
.indu-tab-content a:hover {color: var(--primary);}
.indu-tab-content a {text-decoration: none;}
.indu-table {font-size: 16px;}
.indu-table tbody>tr:first-child {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    font-weight: 700;
}
.indu-table tbody>tr:first-child td {padding: 20px 10px;}
.indu-table td {border-color: var(--white); padding: 12px 10px;}
.indu-table td:has(img) {text-align: center;}
@media (max-width: 500px) {
	.indu-tab-content {column-count: 1;}
}

/* Blog Category Page Hero Container - CSS not updating properly */
.blog-cat-hero, .blog-post-hero {background: linear-gradient(to left,rgba(0,0,0,.3) 0%,rgba(0,0,0,.3) 100%),url(/wp-content/uploads/2026/01/newsheader2.jpg) !important; background-size: cover !important; background-repeat: no-repeat !important; background-position: top;}

/* Blog Category Template & Post Template Styles */
.gb-right-post__meta {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.gb-right-post__cats a {
    color: var(--primary);
    text-decoration: none;
}
.post-template-cat {margin-bottom: 0;}
.post-template-cat a {
    color: var(--primary);
    text-decoration: none;
}
.post-template-publi {margin-bottom: 20px;}
.category-template a {
    color: var(--primary);
    text-decoration: none;
}
.category-template .gb-left-list__meta {
    display: flex;
    flex-direction: column;
}
.gb-left-list__title {
    font-size: 22px;
    font-weight: 600;
}
.gb-left-list__button {
    display: inline-block;
    padding: 5px 10px;
    font-weight: 600;
    background-color: var(--primary);
    color: var(--white) !important;
    border-radius: 3px;
    text-transform: uppercase;
}
.category-template ul {
    list-style: none;
    margin-left: 0;
}
.category-template li {margin-bottom: 20px;}

.post-template a {
    color: var(--primary);
    text-decoration: none;
}
.post-template .gb-left-list__meta {display: flex; flex-direction: column;}
.post-template ul {
    list-style: none;
    margin-left: 0;
}
.post-template li {margin-bottom: 20px;}


/* Case Studies Query Styles */
.case-studies-query .gb-loop-item {height: 300px;}

/* Form input fields fix */
form input, form textarea {width: 100%;}

/* Treatment Solutions Sub Categories Hero fix */
.treat-solu-hero {background: url(/wp-content/uploads/2025/12/IHPRO-for-water-reus-bg2.jpg) center/cover no-repeat,linear-gradient(to left,rgba(0,0,0,.7) 0%,rgba(0,0,0,.7) 100%) !important;}

/* Case Studies Category Hero fix */
.case-stu-hero {background: url(/wp-content/uploads/2026/01/pana-header.jpg) center/cover no-repeat,linear-gradient(to left,rgba(0,0,0,.7) 0%,rgba(0,0,0,.7) 100%) !important;}