/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Child theme for GeneratePress
 Author:       Cheryl Botkins
 Author URI:   https://yourwebsite.com
 Template:     generatepress
 Version:      1.0.0
*/


:root {
/* Code below acts as control panel for sitewide text-sizing. Utilizes clamp values for smooth resizing between screen sizes. Styles below map to global styles via the GeneratePress Global Styles editor. */
	--fs-body: clamp(1rem, calc(0.96rem + 0.21vw), 1.125rem);
	--fs-headline-h1: clamp(2.44rem, calc(1.96rem + 2.41vw), 3.89rem);
	--fs-headline-h2: clamp(1.95rem, calc(1.69rem + 1.33vw), 2.75rem);
	--fs-headline-h3: clamp(1.56rem, calc(1.44rem + 0.64vw), 1.94rem);
	--fs-headline-h4: clamp(1.25rem, calc(1.21rem + 0.21vw), 1.38rem);
	--fs-headline-h5: clamp(1.25rem, calc(1.21rem + 0.21vw), 1.38rem);
	--fs-headline-h6: clamp(1rem, calc(0.97rem + 0.17vw), 1.125rem); 
	--fs-headline-pre: clamp(0.97rem, calc(1.01rem + -0.05vw), 1rem); 
	--fs-headline-body-xl: clamp(1.27rem, calc(1.15rem + 0.59vw), 1.62rem); 
	--fs-headline-body-l: clamp(1.13rem, calc(1.05rem + 0.38vw), 1.35rem);
	--fs-headline-body-s: clamp(0.89rem, calc(0.87rem + 0.08vw), 0.94rem);
	--fs-headline-body-xs: clamp(0.78rem, calc(0.79rem + -0.01vw), 0.79rem);
	--fs-headline-body-xxs: clamp(0.70rem, calc(0.71rem + -0.01vw), 0.71rem);
	--text-s: clamp(0.89rem, calc(0.87rem + 0.08vw), 0.94rem); 
	--text-xs: clamp(0.78 rem, calc(0.79rem + -0.01vw), 0.79rem);
}

/* Default Body / p font settings */
p, div {
	font-size: var(--fs-body);
	line-height: 1.8;
}

p {
	margin-bottom: 1.5rem;
}

/* Default Headings weight, margin */
h1, h2, h3, h4, h5, h6, .gb-headline-h1, .gb-headline-h2, .gb-headline-h3, .gb-headline-h4, .gb-headline-h5, .gb-headline-h6, .gb-headline-pre {
	margin-bottom: 1rem;
}


h1, .gb-h1 {
	font-size: var(--fs-headline-h1);
	line-height: 1.05;
}

h2, .gb-h2 {
	font-size: var(--fs-headline-h2);
	line-height: 1.1;
}

h3, .gb-h3 {
	font-size: var(--fs-headline-h3);
	line-height: 1.15;
}

h4, .gb-h4 {
	font-size: var(--fs-headline-h4);
	line-height: 1.1;
}

h5, .gb-h5 {
	font-size: var(--fs-headline-h5);
	line-height: 1.25;
}

h6, .gb-h6 {
	font-size: var(--fs-headline-h6);
	line-height: 1.4;
}

.gb-headline-pre {
	font-size: var(--fs-headline-pre);
	text-transform: uppercase;
	letter-spacing: .1em;
}

/* Additional Body font-size */

.gb-body-xl {
	font-size: var(--fs-headline-body-xl);
}

.gb-body-l {
	font-size: var(--fs-headline-body-l);
}

.gb-body-s {
	font-size: var(--fs-headline-body-s);
}

.gb-body-xs {
	font-size: var(--fs-headline-body-xs);
}

.gb-body-xxs {
	font-size:var(--fs-headline-body-xxs);
}

li {
	padding-bottom: .5rem;
}

/* Remove bottom margin on last li */
li:not(nav li):last-child:last-of-type {
	padding-bottom:0;
}

ol, ul {
	margin: 0 0 1rem 1.25rem;
}

/* Adds top margin to H2-H6 for ideal legibility for long blocks of text. Used on blog posts and other thought leadership content. */
.long-form-content :is(h2, h3, h4, h5, h6) {
	margin-top: 1.5em;
}


/* Button Global line height */
.gb-button {
	line-height: 1em;
}

/*Basic animations*/
/* start hidden, slightly down */
.fade-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Reveal when the row becomes visible */
.fade-row.is-visible .fade-card {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays (you can tweak timings) */
.fade-row .fade-card:nth-child(1) { transition-delay: 0s;   }
.fade-row .fade-card:nth-child(2) { transition-delay: 0.2s; }
.fade-row .fade-card:nth-child(3) { transition-delay: 0.4s; }
.fade-row .fade-card:nth-child(4) { transition-delay: 0.6s; }
.fade-row .fade-card:nth-child(5) { transition-delay: 0.8s; }




/* Make a reusable "side offset" variable */
:root {
  --site-edge-offset: calc((100vw - var(--gb-container-width)) / 2);
}

/* Use it for left padding */
.align-with-content {
  padding-left: var(--site-edge-offset);
}

/* Offset default underline beneth linked text */

a {
     text-underline-offset: 5px;
}

a .wp-font-awesome-icon {
  padding-left: 5px;
}

html {
scroll-behavior: smooth;
scroll-padding-top: 100px;
}

.wp-block-list > li {
  padding-bottom: 1rem;
}

.wp-block-list > li:last-child {
  padding-bottom: 0;
}

.shadowed {
	box-shadow: 0 1px 8px 0 rgb(0 0 0 / 8%);
}

.stretch-link{
	position: relative;
}

.stretch-link a::after{
	content: '';
	position: absolute;
	inset: 0;
}

.stretch-link a:is(:focus-visible)::after{
	outline: 2px solid;
}

.stretch-link a:is(:hover, :focus){
	outline: none;
}

/* Logo row wrapper */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* or space-between */
  gap: 32px; /* adjust */
}

/* Each logo “cell” */
.logo-row .logo-cell {
  height: 56px;            /* controls uniformity */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The image itself */
.logo-row .logo-cell img {
  max-height: 100%;
  width: auto;
  max-width: 140px;        /* prevents one mega-wide logo dominating */
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .logo-row { gap: 18px; }
  .logo-row .logo-cell { height: 44px; }
  .logo-row .logo-cell img { max-width: 150px; }
}

.accordion-basic .gb-accordion__content div {
	margin-top:.25rem;
}

.accordion-basic .gb-accordion__item {
	padding: 1rem 0;
	color: var(--contrast);
	border-left:none;
	border-right:none;
	border-top:none;
	border-bottom:1px var(--contrast-3) solid;
	padding-bottom:1rem;
	padding-top:0;
}

.accordion-basic .gb-accordion__toggle-icon {
	color: var(--accent);
}

.accordion-basic p {
	margin-bottom:0;
	font-size: var(--fs-headline-body-s);
	color: var(--contrast);

}

/* CASE STUDY STYLES */
#case-study-content ul.wp-block-list > p,
#case-study-content ol.wp-block-list > p {
  display: none;
}

.case-study-quote_body p:nth-of-type(2) {
font-size: var(--fs-headline-body-l);
}

.case-study-quote_body p:empty {
  display: none;
  margin: 0;
}

.single-industry-landing-pag .gb-accordion__item a::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.8em;
  margin-left: 0.4em;
  vertical-align: -0.05em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path fill='black' d='M80 64l176 192L80 448V64z'/></svg>");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path fill='black' d='M80 64l176 192L80 448V64z'/></svg>\");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.single-industry-landing-pag .gb-accordion__item a:hover {
	color: white;
}

.single-industry-landing-pag .gb-accordion__item a {
	font-weight:700;
	color: var(--accent);
}



/* BLOG STYLES */
body.blog.paged .blog_content_pre-loop {
  display: none !important;
}

.blog_arrow-reveal_parent .blog_arrow-reveal_icon {
	opacity:0;
	
}

.blog_arrow-reveal_parent:hover .blog_arrow-reveal_icon {
	opacity:1;
	transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* NAV STYLES */
.gb-menu-link  {
	font-size: var(--fs-headline-body-s);
	column-gap:0px!important;
}

#menu-main > li:hover > a {
  color:var(--accent);
}

@media (max-width: 1030px) {
  #menu-main > li:hover > a {
    color:white;
  }
}

#page {
	position: relative;
	isolation: isolate;
}

#page::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 220ms ease, visibility 220ms ease;
	z-index: 100;
}

body.megamenu-open #page::before {
	opacity: 1;
	visibility: visible;
}

.gb-site-header {
	position: relative;
	z-index: 200;
}

.gb-site-header .gb-overlay {
	position: relative;
	z-index: 200;
}
