/*
Theme Name: BRANY
Theme URI: 
Author: TRUTH NYC
Author URI: http://truthnyc.com
Description: This theme is created for BRANY
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brany
*/

:root {
	--header-height: 88px;
}

body {
	padding-top: var(--header-height);
}

header {
	padding: 15px 0;
	height: auto;
}

.nav-app a {
	text-decoration: none;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	transition: color 0.4s;
}

.nav-app ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.nav-app .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 16px;
}

.nav-app .menu-item-has-children {
	position: relative;
}

.nav-app .menu > li > a {
	font-weight: 400;
	line-height: 2.05;
	text-transform: uppercase;
	color: #d22d40;
}

.nav-app .menu-item-has-children > a {
	pointer-events: none;
}

.nav-app .menu > li > a:hover {
	color: #000;
}

.nav-app .sub-menu a {
	font-weight: 600;
	line-height: 1;
	color: #fff;
}
	
.nav-app .sub-menu a:hover {
	color: #000;
}

.nav-app .sub-menu {
	visibility: hidden;
	position: absolute;
	z-index: 100;
	top: 100%;
	left: 0;
	padding: 10px;
	white-space: nowrap;
	background: #d22d40;
}

.nav-app .menu-item-has-children:hover > .sub-menu {
	visibility: visible;
}

.astm-search-menu-wrapper.is-menu-wrapper {
	display: none;
}

.header-actions ~ .is-search-form {
	margin: 0;
	position: relative;
}

.header-actions ~ .is-search-form label {
	position: absolute;
	top: 100%;
	right: 0;
	width: 240px !important;
}

.header-actions ~ .is-search-form label input.is-search-input {
	border: 1px solid #d22d40 !important;
	background: #fff !important;
	opacity: 0;
}

.header-actions ~ .is-search-form label input.is-search-input:focus {
	opacity: 1;
}

.is-ajax-search-result.is-ajax-search-result {
	position: fixed !important;
	top: calc(var(--header-height) + 15px) !important;
	bottom: auto !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%) !important;
	width: 100% !important;
	max-width: 1108px !important;
	background-color: transparent !important;
}

@media all and (max-width: 991px) {
	body.has-open-header {
		overflow: hidden;
	}

	.header-actions {
		display: flex;
		flex-direction: column;
		gap: 7px;
		position: absolute;
		z-index: 2;
		top: 100%;
		left: 0;
		width: 100%;
		background: #fff;
		padding: 15px;
		border: 1px solid #d22d40;
		overflow: auto;
		opacity: 0;
		pointer-events: none;
		max-height: calc(100vh - var(--header-height));
		transition: opacity 0.4s;
		}
		
	body.has-open-header .header-actions {
		opacity: 1;
		pointer-events: auto;
		
	}

	.nav-app .menu {
		flex-direction: column;
		max-width: 688px;
		margin-inline: auto;
	}

	.nav-app .sub-menu {
		visibility: unset;
		position: static;
		white-space: unset;
		background: transparent;
		padding: 5px 0;
	}

	.nav-app .sub-menu a {
		color: #000;
	}
}

@media all and (max-width: 767px) {
	.nav-app .menu {
		max-width: 540px;
	}
}

/* Down arrow for menu items with dropdowns - matching webinars.brany.com style */
.nav-app .menu > .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.nav-app .menu > .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid #d22d40;
	border-bottom: 1.5px solid #d22d40;
	transform: rotate(45deg) translateY(-2px);
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.nav-app .menu > .menu-item-has-children > a:hover::after {
	border-color: #000;
}

/* ---- Layout container ---- */
.flex-tpl__container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Banner ---- */
.flex-tpl__banner { background: #f4f5f7; padding: 60px 0; }

/* Full-width background image variant */
.flex-tpl__banner--has-image {
	position: relative;
	background-size: cover;
	background-repeat: no-repeat;
	/* background-image & background-position are set inline from ACF */
}

/* Optional readability overlay (remove if you don't want it) */
.flex-tpl__banner--has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

/* Keep the text above the overlay, and make it readable on a dark bg */
.flex-tpl__banner-inner { position: relative; z-index: 1; }
.flex-tpl__banner--has-image .flex-tpl__heading,
.flex-tpl__banner--has-image .flex-tpl__subtext { color: #fff; }
.flex-tpl__banner--has-image .flex-tpl__eyebrow {
	color: #fff;
	border-left-color: #fff;
}

.flex-tpl__eyebrow {
	text-transform: uppercase; letter-spacing: .05em; font-weight: 300;
	border-left: 2px solid #b32147; padding-left: 10px; margin-bottom: 4px;
}
.flex-tpl__heading { font-size: 2.6rem; line-height: 1.15; font-weight: 700; margin: 0; }

/* ---- Body columns ---- */
.flex-tpl__body { padding: 50px 0; }
.flex-tpl__columns { display: flex; flex-wrap: wrap; gap: 40px; }

/* Two columns, adjustable widths via CSS variables */
.flex-tpl__body--two .flex-tpl__col--left  { flex: 0 0 calc(var(--left, 50%) - 20px); }
.flex-tpl__body--two .flex-tpl__col--right { flex: 0 0 calc(var(--right, 50%) - 20px); }

/* One column */
.flex-tpl__body--one .flex-tpl__col--left { flex: 1 1 100%; }

/* Responsive: stack columns on mobile */
@media (max-width: 768px) {
	.flex-tpl__body--two .flex-tpl__col--left,
	.flex-tpl__body--two .flex-tpl__col--right { flex: 1 1 100%; }
}


/* Reusable background box for form shortcodes */
.form-box {
    background-color: #f6f5f4;   /* matches the IRB Solutions form panel */
    padding: 40px;
    border-radius: 0;            /* square corners, like the reference */
}

/* Tighten padding a little on small screens */
@media (max-width: 768px) {
    .form-box {
        padding: 24px;
    }
}

/* White input fields inside any .form-box */
/*.form-box input[type="text"],
.form-box input[type="email"],
.form-box input[type="tel"],
.form-box input[type="url"],
.form-box input[type="number"],
.form-box input[type="date"],
.form-box input[type="search"],
.form-box select,
.form-box textarea,
.form-box .wpcf7-form-control {
    background-color: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 3px;
}

/* Keep them white on focus too (override any theme focus styling) */

/*.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus,
.form-box .wpcf7-form-control:focus {
    background-color: #ffffff;
}
*/


.page-id-8703 .wpcf7-form input[type="text"],
.page-id-8703 .wpcf7-form input[type="email"],
.page-id-8703 .wpcf7-form input[type="tel"],
.page-id-8703 .wpcf7-form textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    padding: 8px 10px;
    box-sizing: border-box;
}
