/*
Theme Name: River Ridge Hardware - Child Theme for Beaver Builder
Theme URI: https://vexingmedia.com
Version: 1.0
Description: Website theme designed by Vexing Media for River Ridge Hardware
Author: Vexing Media
Author URI: https://vexingmedia.com
template: bb-theme
*/

/*** Define Variables ***/
:root {
	--white: #fff;
	--red: #c30928;
	--gray: #e5e5e5;
	--black: #000;
	--framing-bg: url('https://dev.riverridgehardware.com/wp-content/uploads/2026/03/frame-it-today-art.jpg');
}

/*** MISC ***/
h3 {
	color: var(--black);
}

h4 {
	color: #666;
}

/* Button Push */
.btn-push .fl-col-content {
	display: flex;
	flex-direction: column;
}

.btn-push .fl-col-content .fl-module-button {
	margin-top: auto;
}

/* Remove Bottom Margin From Last P in BB Text Module */
.fl-rich-text p:last-child {
   margin-bottom: 0;
}

/* Visually Hidden */
body:not(.fl-builder-edit) .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*** Framing Row ***/
#framing-row .fl-row-content-wrap::before {
	content: '';
	height: 100%;
	width: 55%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1
	flex: 0 0 55%;
	background-image: var(--framing-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

@media screen and (min-width: 769px) {
	#framing-row .fl-row-content-wrap {
		background-size: 55% auto;
		background-position: center left;
	}

	#framing-row .fl-row-content::before {
		content: '';
		background-color: var(--black);
		height: 100%;
		width: 50%;
		position: absolute;
		top: 0;
		right: 0;
		z-index: 1;
		display: block;
	}

	#framing-row .fl-row-content-wrap::after {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		right: 50%;
		height: 100%;
		width: 50%;
		transform:scaleX(-1);
		background-image: url(https://dev.riverridgehardware.com/wp-content/uploads/2026/02/swish.svg);
		background-repeat: no-repeat;
		background-position: -50px center;
		background-size: auto 120%;
		pointer-events: none;
		z-index: 2;
	}

	#framing-row .fl-col-group {
		position: relative;
		z-index: 10;
	}
}

@media screen and (max-width: 768px) {
	#framing-row .fl-row-content-wrap::before {
		background-image: none;
	}
}

/*** Header ***/

/* Top Bar */
#top-bar {
	font-size: 0.9rem;
}

#top-bar a {
	text-decoration: none;
}

#top-bar a:hover {
	text-decoration: underline;
}

#top-bar .header-sep {
	margin: 0 10px;
}

@media screen and (max-width: 768px) {
	#top-bar .header-sep {
		margin: 2px 0;
		display: block;
		line-height: 0px;
		font-size: 0rem;
		height: 0px;
		width: 0px;
		visibility: hidden;
	}
}

/* Header */
header {
	position: relative;
	z-index: 1000;
}

/* Main Menu Spacing */
#header-nav-menu li {
	margin: 0 15px;
}

@media screen and (min-width: 769px) and (max-width: 992px) {
	#header-nav-menu li {
		margin: 0 10px;
	}
}

@media screen and (max-width: 768px) {
	#header-nav-menu li {
		margin: 15px 0;
	}
}

/* Highlight Active/Hover Menu Items */
#header-nav-menu li a:hover,
#header-nav-menu li.current-menu-item > a,
#header-nav-menu li.current-menu-item > div > a,
#header-nav-menu li.current_page_ancestor > div > a {
	border-bottom: 5px solid var(--black);
}

#header-nav-menu li a {
	border-bottom: 5px solid var(--white);
}

@media screen and (max-width: 768px) {
	#header-nav-menu li a:hover,
	#header-nav-menu li.current-menu-item > a,
	#header-nav-menu li.current-menu-item > div > a,
	#header-nav-menu li.current_page_ancestor > div > a {
		border-bottom: 0;
		color: var(--black);
	}

	#header-nav-menu li a {
		border-bottom: 0;
	}
}

/* Nav Dropdown */
#header-nav-menu #menu-main-menu ul.sub-menu {
	padding: 10px 0;
	z-index: 100;
}

#header-nav-menu #menu-main-menu ul.sub-menu > li {
	padding: 5px 0;
}

#header-nav-menu #menu-main-menu ul.sub-menu > li a:hover,
#header-nav-menu #menu-main-menu ul.sub-menu > li.current-menu-item > a,
#header-nav-menu #menu-main-menu ul.sub-menu > li.current-menu-item > div > a,
#header-nav-menu #menu-main-menu ul.sub-menu > li.current_page_ancestor > div > a {
	border-bottom: 0;
	border-left: 5px solid var(--black);
	padding-left: 5px;
}

#header-nav-menu #menu-main-menu ul.sub-menu > li a {
	border-bottom: 0;
	border-left: 5px solid var(--white);
	padding-left: 5px;
}

/*** Footer ***/
#footer-nav-menu li a:hover {
	color: var(--black);
}

#copyright-row a {
	color: var(--black);
	text-decoration: none;
}

#copyright-row a:hover {
	text-decoration: underline;
}

/*** Home Page ***/

/* Masthead */
#masthead .fl-row-content-wrap::before {
	content: '';
	height: 100%;
	width: 55%;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	flex: 0 0 55%;
	background-image: var(--masthead-img);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

#masthead .fl-row-content-wrap {
	background-size: 55% auto;
	background-position: center right;
}

#masthead .fl-row-content::before {
	content: '';
	background-color: var(--black);
	height: 100%;
	width: 50%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: block;
}

#masthead .fl-row-content-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
	height: 100%;
  width: 50%;
  background-image: url(https://dev.riverridgehardware.com/wp-content/uploads/2026/02/swish.svg);
  background-repeat: no-repeat;
  background-position: -50px center;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 2;
}

#masthead .fl-col-group {
	position: relative;
	z-index: 10;
}

@media screen and (min-width: 769px) and (max-width: 992px) {
	#masthead .fl-row-content::before {
		width: 40%;
	}
	
	#masthead .fl-row-content-wrap::after {
		left: 45%;
		background-position: -40px center;
	}
}

@media screen and (max-width: 768px) {
	#masthead .fl-row-content::before {
		width: 100%;
	}

	#masthead .fl-row-content-wrap::after {
		background: none;
	}
}

/* Background Swooshes */
body.home #fl-main-content {
  position: relative;
  overflow: hidden;
}

body.home #fl-main-content > article {
	position: relative;
  z-index: 10;
}

body.home #fl-main-content::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
	height: 100%;
	transform:scale(-1, -1);
  background-image: url('https://dev.riverridgehardware.com/wp-content/uploads/2026/02/swoop-large.svg');
  background-position: bottom center;
	background-repeat: no-repeat;
	background-size: contain;
	z-index: 1;
}

body.home #fl-main-content::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
	height: 100%;
  background-image: url('https://dev.riverridgehardware.com/wp-content/uploads/2026/02/swoop-large.svg');
  background-position: bottom center;
	background-repeat: no-repeat;
	background-size: contain;
	z-index: 1;
}

@media screen and (min-width: 1800px) {
	body.home #fl-main-content::before,
	body.home #fl-main-content::after {
		background-size: cover;
	}
}

/*** Home CTAs ***/
.home-cta h2 {
	color: var(--black);
	font-size: 1.9rem;
}

/*** Interior Pages ***/

/* Background Swoosh */
#fl-main-content {
  position: relative;
  overflow: hidden;
}

#fl-main-content::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
	height: 100%;
  background-image: url('https://dev.riverridgehardware.com/wp-content/uploads/2026/02/swoop-small.svg');
  background-position: top center;
	background-repeat: no-repeat;
	background-size: contain;
}

@media screen and (min-width: 1800px) {
	#fl-main-content::before {
		background-size: cover;
	}
}

/* Rental Tools */
.tool-item {
	border-bottom: 0;
}

.tool-row {
	clear: both;
}

.tool-col-img {
	float: left;
	margin: 0 20px 20px 0;
	width: 150px;
}

@media screen and (max-width: 768px) {
	.tool-row {
		padding-bottom: 20px;
	}
	
	.tool-col-img {
		float: none;
		margin: 0 auto 20px;
		display: block;
		text-align: center;
	}
}




/*
@media screen and (min-width: 993px) {}

@media screen and (min-width: 769px) and (max-width: 992px) {}

@media screen and (max-width: 768px) {}
*/
