/*
Theme Name: heritagenonwovens
Theme URI: https://www.heritagenonwovens.com
Author: Internet Imagineering, LLC
Author URI: https://www.iiweb.io
Description: Custom template for Heritage Nonwovens
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
Text Domain: heritagenonwovens
*/

/* CSS LAYERS: https://css-tricks.com/css-cascade-layers/ */

/* Establish CSS Layer priorities, lowest => highest */
@layer reset, theme;

/* Theme styles: colors, fonts, etc. */
@layer theme {
    :root {
    	/* CUSTOM SITE COLORS */
		--hnw-dkpurple: #5371b1;
		--hnw-purple: #90a7d5;
		--hnw-black: #333333;
		--hnw-gray: #e1e1e1;
    
		/* STANDARD COLORS */
		--beige: #FF9900;
		--red: #459939;
		--dkred: #990000;
		--black: #000000;
		--ltgray: #DDDDDD;
		--midgray: #CCCCCC;
		--gray: #999999;
		--dkgray: #666666;
		--white: #ffffff;

    }

    body {
		background-color: #fff;
		margin: 0px 0px; 
		padding: 0px;
		font-family: 'Source Sans 3', trebuchet ms, arial, verdana, sans-serif;
		color: #333;
		font-size: 14px;
	}

	.clear { clear: both;}
	ul {margin: 0; padding: 0;}
	ul li {margin: 0; padding: 0;}

	.imgFull {width: 100%;}
	img.imgFull {width: 100%;}
	
	.lightbox {display: none; padding: 30px;}

	/* iiMenu */
	i.iiMenuIcon {margin: 0 0 0 5px;}
	ul.iiMenu > li:hover i.iiMenuIcon { rotate: 180deg; }

	ul.iiMenu {display: flex; /*justify-content: none;*/ padding: 0 0 0 0px;}
	ul.iiMenu li {list-style-type: none; margin: 0; padding: 0;}

	ul.iiMenu > li {position: relative; padding: 10px 20px 10px 20px; height: 45px; margin: 0;}
	ul.iiMenu > li > a {font-size: 1rem; color: var(--hnw-dkpurple); text-decoration: none; text-transform: uppercase; font-weight: 600; } /* main menu */
	ul.iiMenu > li > a:hover {color: var(--white); text-decoration: none;} /* main menu hover */
	ul.iiMenu > li:hover {background-color: var(--hnw-purple); color: var(--white); }
	ul.iiMenu > li:hover > a { color: var(--white);}

	ul.iiMenu > li > ul {position: absolute; background-color: var(--hnw-purple); margin: 0; padding: 10px 20px; min-width: 240px; top: 45px; border-bottom: 10px solid var(--hnw-dkpurple); left: 0px; justify-self: start;}
	ul.iiMenu > li > ul > li {justify-self: start; text-align: left;}
	ul.iiMenu ul {visibility: hidden; opacity: 0; transition: opacity 0.5s;}
	ul.iiMenu > li:hover > ul {visibility: visible; opacity: 1;}

	ul.iiMenu > li > ul a { display: block; color: var(--white); padding: 5px 0; margin: 0; font-weight: 600; text-decoration: none; font-size: 1rem; text-transform: uppercase;} /* subnav level 1 menu */
	ul.iiMenu > li > ul a:hover {color: var(--hnw-black); text-decoration: none;}

	ul.iiMenu > li > ul:before {
		content: '';
		width: 0;
		height: 0;
		border-left: 0px solid transparent;
		border-right: 0px solid transparent;
		border-bottom: 0px solid var(--);
		top: -10px;
		left: 25px;
		position: absolute;
	}


	/* MOBILE SIDENAV */
	.mobileNav {display: none;}

	#sidenav {
		 position: fixed; 
		 /* switch "right" to "left" to switch sides: */
		 left: calc(-100vw - 10px); transition: left 0.5s;
		 top:0; bottom: 0;
		 width: 100vw; max-width: 500px; /* full screen on small screens */
		 z-index: 99999999999; box-shadow: 0 0 10px #0008;
		 background: var(--white); color: var(--ec-red);
		 font-size:1.2rem;
	 }
	 #sidenav.active { left: 0; } /* switch "right" to "left" */
	 #sidenav-header {margin: 20px 0 0 40px; width: 140px;}
	 #sidenav-header img { display: block; width:100%; }
	 #sidenav ul { 
	     padding: 0; 
             margin:0;
	 }
    
     #sidenav > ul { max-height: calc(100vh - 100px); margin: 30px 0 0 10px; padding-bottom: 150px; overflow: auto; border-top: 1px solid #444;}
     #sidenav li { list-style-type: none; margin: 0; padding: 5px 2rem; }
	 #sidenav > ul > li { border-bottom: 1px solid #444; }
	 #sidenav a, #sidenav a:visited, #sidenav a.active { color: var(--ec-red); text-decoration: none; }
	 #sidenav-close { 
		 /* reposition within the sidenav as needed */
		 position: absolute; 
		 right: 1rem; top:1rem; 
		 cursor: pointer; 
		 font-size:1.5em;
		 transition: all 0.2s; 
	 }
	 #sidenav-close:hover, #sidenav-close:active { color: white; text-shadow: 2px 2px 8px #0008; transform: translate(-2px, -2px); }
	 #sidenav-footer { position:absolute; bottom:0; left:0; right:0; height: 100px; display: flex; justify-content: center; align-items: center; background: var(--white); text-align: center; font-size: .8rem; color: var(--ec-black)}
 
	 .sidenav-request {margin: 40px;}
    
    /* TEXT */
	.textWhite {color: var(--white);}
	.textBlack {color: var(--black);}
	
	.textDkPurple {color: var(--hnw-dkpurple);}
	
	/* BACKGROUND COLORS */
	.bgDkPurple {background-color: var(--hnw-dkpurple) !important;}

	/* BUTTONS */
	a.buttonRequest {display: block; width: 100%; padding: 28px 0; text-align: center; background-color: var(--hnw-purple); color: var(--white); text-transform: uppercase; font-weight: 600; font-size: 1rem; text-decoration: none; transition: .2s all;}
	a.buttonRequest:visited {display: block; width: 100%; padding: 28px 0; text-align: center; background-color: var(--hnw-purple); color: var(--white); text-transform: uppercase; font-weight: 600; font-size: 1rem; text-decoration: none;}
	a.buttonRequest:hover {display: block; width: 100%; padding: 28px 0; text-align: center; background-color: var(--hnw-dkpurple); color: var(--white); text-transform: uppercase; font-weight: 600; font-size: 1rem; text-decoration: none; transition: .2s all;}
	
	/* LINKS */
	a.headerlinks {font-size: .8rem; text-decoration: none; font-weight: 600; text-decoration: none; color: var(--hnw-black); text-transform: uppercase; margin: 0 20px;}
	a.headerlinks:visited {color: var(--hnw-black); text-decoration: none;}
	a.headerlinks:hover {color: var(--hnw-purple); text-decoration: none;}
	
	a.buttonWhite {font-size: 1rem; text-transform: uppercase; font-weight: 600px; color: var(--white); background: transparent; border: 2px solid var(--white); padding: 6px 20px; text-decoration: none;}
	a.buttonWhite:visited {font-size: 1rem; text-transform: uppercase; font-weight: 600px; color: var(--white); background: transparent; border: 2px solid var(--white); padding: 6px 20px; text-decoration: none;}
	a.buttonWhite:hover {font-size: 1rem; text-transform: uppercase; font-weight: 600px; color: var(--hnw-dkpurple); background-color: var(--white); border: 2px solid var(--white); padding: 6px 20px; text-decoration: none;}

	/* HEADINGS */
	
	h1.mainTitle {font-size: 2.2rem; margin: 0; padding: 0; line-height: 1.2rem; text-transform: uppercase;}
	h2.subTitle {font-size: 2rem; margin: 0; padding: 0; line-height: 1rem; text-transform: uppercase;}
	h3.sectionTitle {font-size: 1.8rem; margin: 0; padding: 0; line-height: .8rem; text-transform: uppercase;}
	h4.areaTitle {font-size: 1.6rem; margin: 0; padding: 0; line-height: .8rem; text-transform: uppercase;}

	h1.pageTitle1 {font-size: 2.4rem; margin: 0; padding: 0; line-height: 2.4rem; text-transform: uppercase; font-weight: 400;}
	h3.pageSubTitle1 {font-size: 1.4rem; font-family: 'PT Serif', serif; font-style: italic; line-height: 1.4rem; font-weight: 600; margin: 0 0 10px 0;}
	
	h2.featureTitle {font-size: 1.6rem; margin: 0; padding: 0; line-height: 2rem; font-weight: 400;}

	/* HEADER */
	.headerWrapper {width: 100%; transition: .2s all; position: fixed; z-index: 999999;}
	.headerContainer {width: 100%; display: grid; grid-template-columns: 260px auto; transition: .2s all;}
	.headerLogo {width: 100%; background-color: var(--hnw-gray); padding: 10px 0;}
	.headerLogo-Holder {background-color: var(--white); border: 1px solid var(--hnw-dkpurple); padding: 14px 20px; width: 240px; margin: 0 auto; transition: .2s all;}
	img.imgLogo {width: 90%; margin: 0 auto;}
	
	.headerMain {width: 100%;}
	.headerMain-Holder {width: 100%; background-color: #ffffff99; display: grid; grid-template-columns: auto 300px; transition: .2s all;}
	.headerSlogan {font-family: 'PT Serif', serif; font-size: 1rem; font-weight: 600; font-style: italic; color: var(--hnw-black); margin: 10px 0 0 20px;}
	
	.headerAction {width: 100%; display: grid; grid-template-columns: auto 180px; align-items: center;}
	.headerNav {text-align: right;}
	
	.scrolled .headerContainer {grid-template-columns: 140px auto;}
	.scrolled .headerLogo-Holder {width: 120px;}
	.scrolled .headerMain-Holder {background-color: var(--white); border-bottom: 1px solid var(--hnw-purple);}
	.scrolled .headerSlogan {display: none;}
	.scrolled a.buttonRequest {padding: 10px 0;}
	
	.sectionpicWrapper {width: 100%; background: #fff url('images/sectionpic-1.jpg') no-repeat top; height: 300px; min-height: 300px;}

	/* FRONT PAGE */
	.heroWrapper {width: 100%; max-height: 800px; aspect-ratio: 16 / 9; background: #fff url('images/hero-1.jpg') no-repeat top; background-size: cover; position: relative; z-index: 8888;}
	
	.heroCTA {position: absolute; width: 60%; max-width: 1400px; top: 50%;
    left: 50%; transform: translate(-50%, -50%); padding: 50px 50px; text-align: center; background-color: #ffffff99; border-bottom: 10px solid var(--hnw-dkpurple);}
    
    h1.heroTitle1 {font-size: 2.4rem; color: var(--hnw-dkpurple); font-weight: 300;}
    h3.heroTitle3 {font-size: 1.4rem; font-weight: 600; text-transform: uppercase; color: var(--hnw-purple);}
    
    .fpFeaturesWrapper {width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; grid-column-gap: 10px; margin: 10px 0;}
    .fpFeature-Holder {background-color: var(--hnw-purple); padding: 30px 30px; color: var(--white);}
    .featureDesc {font-size: 1rem; line-height: 1.4rem; margin: 20px 0 0 0;}
    .featureDesc p {margin: 10px 0 0 0;}
    .featureButton {margin: 30px 0 0 0;}
    
    .fpContent {width: 80%; margin: 100px auto;}
    
    .gridFeatureContent {width: 80%; margin: 0 auto;}

	/* LAYOUT */
	.pageWrapper {width: 80%; margin: 100px auto;}
	
	.grid-1-1 {width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 80px; margin: 0 0 50px 0;}
	.grid-1-1-1 {width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-column-gap: 80px; margin: 50px 0;}
	
	.gridCenter {align-items: center;}
	
	.pagetitleHolder {display: grid; grid-template-columns: 10px auto; grid-column-gap: 20px; margin: 0 0 50px 0;}
	.blockdkpurple {background-color: var(--hnw-dkpurple);}
	
	.content {font-size: 1.2rem; line-height: 1.8rem;}
	.content p {margin: 10px 0;}
	.content ul {margin: 10px 50px;}

	/* CONTENT PAGE CUSTOM STYLES */
	
	
	/* FOOTER */
	.testimonialWrapper {width: 100%; padding: 80px 0; background-color: var(--hnw-purple); margin: 10px 0;}
	.testimonialContainer {width: 60%; margin: 0 auto; text-align: center; font-family: 'PT Serif', serif; color: var(--white); font-size: 1.6rem; line-height: 2rem; font-style: italic;}
	
	.footerWrapper {width: 100%; background-color: var(--hnw-dkpurple); padding: 30px;}
	.footerContainer {width: 90%; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center;}
	.copyright {font-size: .8rem; font-weight: 600; color: var(--white); text-transform: uppercase;}
	.footerinfo {font-size: .8rem; font-weight: 600; color: var(--white); text-transform: uppercase; text-align: right;}
    
    
    @media only screen and (max-width: 1440px) {
		

	}

	@media only screen and (max-width: 1199px) {
		

	}

	@media only screen and (max-width: 1023px) {
	
	
		@media only screen and (max-width: 1023px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) {
	
	
		}

	}

	@media only screen and (max-width: 767px) {
		
	
	}

	@media only screen and (max-width: 480px) {
	
	
	}
    
}

/* A CSS Reset */
@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    * {margin: 0; }
    @media (prefers-reduced-motion: no-preference) {
        html { interpolate-size: allow-keywords; }
    }
    body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
    img, picture, video, canvas, svg { display: block; max-width: 100%;  }
    input, button, textarea, select { font: inherit; }
    p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
    p { text-wrap: pretty; }
    h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
    #root, #__next { isolation: isolate; }
}
