
/*
Theme Name: Farr 2025
Description: Child theme of Twenty Twenty-Five
Author: Matt Harris
Author URI: https://riotactstudios.com
Template: twentytwentyfive
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.2
*/

:root {
  font-size: 16px;
  --body-text-color: #3A3B41;
  --body-accent-color: #06A7FF;
  --bodyfont: Roboto, sans-serif;
  --headingfont: Oswald, sans-serif;
}

*:focus {
  outline: none;
}

/*-------------------------------*/
/*- Responsive ------------------*/
/*-------------------------------*/

.mobile-only {
  display: block;
}

.tablet-only {
  display: none;
}

.tablet-plus {
  display: none;
}

.desktop-only {
  display: none;
}

.wrap-anyway {
  flex-wrap: wrap !important;
}

.image-first > .image-first-item {
  order: 1;
}

.image-first > .text-first {
  order: 2;
}

.mobile-only.is-position-sticky {
  position: fixed !important;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.header {
  margin-top: 26px;
}

/*-------------------------------*/
/*- Filters ---------------------*/
/*-------------------------------*/

.white-icon,
.white-icon img {
  filter: brightness(0) invert(1);
}

/*-------------------------------*/
/*- Header Menu -----------------*/
/*-------------------------------*/

.header-menu-wrapper {
	position: relative;
}

.header-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}

.header-menu > li {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  position: relative;
} 

.header-menu > li > a {
  position: relative;
  display: block;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  line-height: 60px;
  height: 60px;
  margin: 0 20px;
  color: var(--body-text-color);
  transition: all 0.3s ease;
}

.header-menu > li:first-child > a {
  margin-left: 0;
}

.header-menu > li:last-child > a {
  margin-right: 0;
}

.header-menu > li.menu-item-has-children > a:after {
	position: absolute;
	top: 50%;
	right: -15px;
  transform: translateY(-50%);
  content: '\f078';
  font: var(--fa-font-sharp-regular);
  font-size: 8px;
}

.header-menu > li > .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 999;
  min-width: 220px;
  background-color: #fff;
  text-align: left;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #eee;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.header-menu > li > .sub-menu > li {
  display: block;
  margin:  0;
  padding: 0 13px;
}

.header-menu > li > .sub-menu > li:last-child {
  border-bottom: 0;
}

.header-menu > li > .sub-menu > li > a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  padding: 10px;
  margin: 0;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.header-menu > li:hover > a,
.header-menu > li > .sub-menu > li a:hover {
  color: var(--body-accent-color);
}

.header-menu > li.current-menu-item > a,
.header-menu > li > .sub-menu > li.current-menu-item > a {
	color: var(--body-accent-color);
}

.header-menu > li:hover .sub-menu {
  display: block;
}

/*-------------------------------*/
/*- Mega Menu -------------------*/
/*-------------------------------*/

.header-menu > li > .mega-menu-content {
	position: absolute;
  display: none;
  flex-wrap: wrap;
  justify-content: space-between;
  top: 100%;
  z-index: 999;
  background-color: #fff;
  box-sizing: border-box;
  margin: 0;
  padding: 20px 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  /* Width and left set by JavaScript */
  gap: 20px 0;
}

.header-menu > li:hover .mega-menu-content {
  display: flex;
}

.mega-menu-item {
	display: flex;
	align-items: center;
	width: 29%;
}

.mega-menu-item-thumb {
	margin-right: 10px;
  width: 48px;
}

.mega-menu-item-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
}

.mega-menu-item-details {
  width: calc(100% - 58px);
}

.mega-menu-item-details h4 {
  font-size: 18px;
	margin: 0;
	transition: 0.3s ease;
}

.mega-menu-item:hover h4,
.mega-menu-item.current-menu-item h4 {
	color: #cc0000;
}

.mega-menu-item-details p {
	font-size: 12px;
	color: #aaa;
	margin: 0;
}

/*-------------------------------*/
/*- Mobile Menu -----------------*/
/*-------------------------------*/

.mobile-menu-open {
	font-size: 20px;
}

#mobile-menu-container {
	height: 100%;
  width: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  background-color: #131b20;
  overflow-x: hidden;
  transition: 0.5s;
}

.mobile-menu-content {
  position: relative;
  top: 50px;
  width: 100%;
  margin-top: 30px;
}

#mobile-menu-container .closebtn {
  position: absolute;
  top: 20px;
  right: 10px;
  font-size: 60px;
  color: #fff;
}

.menu-mobile {
  padding: 0 0 30px 0;
}

.menu-mobile li {
  list-style: none;
  margin: 0;
}

.menu-mobile li:before {
  content: none;
}

.menu-mobile li a {
  position: relative;
  display: block;
  padding: 10px 20px;
  transition: all .3s ease;
  color: #ccc;
}

.menu-mobile li.menu-toggle > a:after {
  position: absolute;
  content: '';
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #ccc;
  border-right: 2px solid #ccc;
  transform: translateY(-50%) rotate(45deg);
}

.menu-mobile li.menu-toggle > a.active:after {
	border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-135deg);
}

.menu-mobile li a.active {
  color: #fff;
  background: #06A7FF;
}

.menu-mobile .sub-menu {
  display: none;
  margin: 0;
  padding: 0;
}

.menu-mobile .sub-menu li a {
  padding: 10px 20px 10px 40px;
}

.menu-mobile .sub-menu li .sub-menu li a {
  padding: 10px 20px 10px 60px;
}

.menu-mobile .current-menu-item a {
  color: #06A7FF;
}

/*-------------------------------*/
/*- Hero ------------------------*/
/*-------------------------------*/

.hero {
  align-items: flex-start;
}

/*-------------------------------*/
/*- Hero Carousel ---------------*/
/*-------------------------------*/

.hero-carousel h1,
.hero-carousel h2 {
  font-size: 40px;
  text-align: center;
  margin: 20px 0;
}

.hero-carousel h1 span,
.hero-carousel h2 span {
  color: var(--body-accent-color);
}

/*-------------------------------*/
/*- Icon Grid -------------------*/
/*-------------------------------*/

.icon-grid {
  margin-block-start: -200px !important;
}

.icon-grid-item {
  width: 350px;
}

/*-------------------------------*/
/*- Team Icons ------------------*/
/*-------------------------------*/

.team-icons {
  width: 230px;
}

/*-------------------------------*/
/*- Service Card ----------------*/
/*-------------------------------*/

.service-card {
  position: relative;
}

.service-card img {
  position: absolute;
  top: -75px;
  left: 50%;
  transform: translateX(-50%);
}

/*-------------------------------*/
/*- Service Icon Grid -----------*/
/*-------------------------------*/

.service-icon-grid > .wp-block-group {
  width: calc(100% / 3);
  margin-bottom: 40px;
}

/*-------------------------------*/
/*- Slider Gallery --------------*/
/*-------------------------------*/

.gallery-main-slider img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.gallery-thumb-slider {
  width: calc(100% - 50px);
  margin: 20px auto;
  position: relative;
}

.gallery-slider .gallery-thumb-slider .slick-track {
    display: flex;
    gap: 10px;
}
.gallery-slider .gallery-thumb-slider .slick-slide {
    flex: 1;
    min-width: 0;
}
.gallery-slider .gallery-thumb-slider .slick-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.gallery-slider .gallery-thumb-slider .slick-list {
    margin: 0;
    padding: 0;
}

.gallery-thumb-slider .previous,
.gallery-thumb-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-thumb-slider .previous {
  left: -25px;
}

.gallery-thumb-slider .next {
  right: -25px;
}

/*-------------------------------*/
/*- Footer Carousel -------------*/
/*-------------------------------*/

.footer-carousel {
  position: relative;
}

.footer-carousel:before {
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.3);
  z-index: 9;
}

.footer-carousel .text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  text-align: center;
  color: #fff;
  z-index: 10;
  font-size: 48px;
  margin: 0;
}

.slider-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: .6;
  filter: grayscale(80%);
}

/*-------------------------------*/
/*- Accordion -------------------*/
/*-------------------------------*/

.accordion-row {
  margin-bottom: 20px;
}

.accordion-content {
  padding: 20px 20px 0 20px;
}

.accordion h4 {
  margin: 0;
}

.accordion-content p {
  margin: 0;
}

/*-------------------------------*/
/*- Footer Elements -------------*/
/*-------------------------------*/

#footer-connect {
  order: 2;
}

#footer-links {
  order: 3;
}

#large-map {
  min-height: 400px;
}

.gform_heading {
  display: none !important;
}

/*-------------------------------*/
/*- Larger Than Phone -----------*/
/*-------------------------------*/ 

@media (min-width: 750px) {
	.mobile-menu-open {
		display: none;
	}

	.header-menu, body .mobile-hidden-flex {
		display: flex;
	}

	.mobile-only {
		display: none;
	}

  .tablet-only,
  .tablet-plus {
    display: block;
  }

  .header {
    margin-top: 0;
  }

  .hero {
    align-items: center;
  }

  .icon-grid {
    margin-block-start: -65px !important;
  }

  .image-first .text-first {
    order: 1;
  }

  .slider-image {
    aspect-ratio: 3 / 1;
  }

	.map-section-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
  }

  #footer-connect {
    order: 3;
  }

  #footer-links {
    order: 2;
  }
}

/*-------------------------------*/
/*- Larger Than Tablet ----------*/
/*-------------------------------*/ 

@media (min-width: 1000px) {

  .hero-carousel h1,
  .hero-carousel h2 {
    font-size: 50px;
  }

  .service-icon-grid > .wp-block-group {
    width: calc(100% / 5);
  }
}

/*-------------------------------*/
/*- Desktop ---------------------*/
/*-------------------------------*/

@media (min-width: 1300px) {

  .tablet-only {
    display: none;
  }

  .desktop-only {
    display: block;
  }

}