/*
 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
*/

/*
 * Media Queries
 * 
 * Mobile only 
@media (max-width: 768px) {}
 *
 * Tablet and above
@media (min-width: 769px) {}
 *
 * Tablet only 
@media (min-width: 769px) and (max-width: 1024px) {}
 *
 * Tablet and smaller 
@media (max-width: 1024px) {}
 *
 * Desktop only 
@media (min-width: 1025px) {}
*/

:root {	
	--wp--custom--carousel-block--navigation-color: #fff;
	--wp--custom--carousel-block--navigation-size: 32px;
	--wp--custom--carousel-block--pagination-bullet-size: 14px;
	--wp--custom--carousel-block--pagination-bullet-opacity: 1;
	--wp--custom--carousel-block--pagination-bullet-color: #fff;
	--wp--custom--carousel-block--pagination-bullet-active-color: #f7ae2d;
}

body {
	--gp-slideout-width: 326px;
}

.cf:before,
.cf:after {
    content: " ";
    display: table;
}

.cf:after {
    clear: both;
}

a.no-underline,
.no-underline a {
    text-decoration: none;
}

.flex,
a.flex {
	display: flex;
}

.hang-indent {
	text-indent: -0.8rem;
}

/* primary menu */

@media (min-width: 769px) {
	#menu-primary-menu > li > a {
        position: relative;
    }
	
    #menu-primary-menu > li > a::after {
        background-color: currentColor;
        bottom: 0;
        content: "";
        height: 3px;
        left: 0;
        position: absolute;
        will-change: width;
        width: 0%;
        transition: width 350ms ease-in-out;
    }
	
	#menu-primary-menu > li > a:hover::after,
	#menu-primary-menu > li > a:focus::after,
	#menu-primary-menu > li.current_page_item > a::after,
	#menu-primary-menu > li.current-page-ancestor > a::after {
        width: 100%;
    }
}

/* Hero arrows */

.hero-arrow-container {
	column-gap: 10px;
    display: flex;
    flex-basis: auto;
    flex-grow: 1;
    flex-shrink: 0;
    justify-content: flex-end;
}

.hero-arrow-button {
	background-color: #00ace0;
    display: inline-flex;
    padding: 8px;
}

div.hero-arrow-button {
	background-color: #00ACE08F;
}

.hero-arrow-button img {
	width: 40px;
}

@media (min-width: 769px) {
	.hero-arrow-container {
		margin-left: auto;
	}
	
	.hero-arrow-button img {
		width: 57px;
	}
}


.gb-tabs__menu-item > span {
	padding-bottom: 6px;
	position: relative;
}

.gb-tabs__menu-item > span::after {
	background-color: currentColor;
	bottom: 0;
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	will-change: width;
	width: 0%;
	transition: width 350ms ease-in-out;
}

.gb-tabs__menu-item:hover > span::after,
.gb-tabs__menu-item:focus > span::after,
.gb-tabs__menu-item.gb-block-is-current span::after {
	width: 100%;
}

/* slider */

.swiper-wrapper {
	display: flex;
	align-items: center;
}

.slide-quote {
	text-wrap-style: pretty;
}

/* search */

.search .post-image {
	display: none;
}

.search .entry-summary {
	margin-top: 1em;
}

/* Visually hidden utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Tooltip (visual only; screen readers already get aria-label) */
.a11y-tooltip {
  z-index: 9999;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.2;
  background: #000;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .15s ease;
  /* position/top/left are set in JS as fixed coords */
}

.screen-reader-text {
	color: #042231;
}