/*
Theme Name: Adara Child
description: Client Theme - Adara
Template: adara-parent
Version: 1.0.0
Text Domain: adara-child
Author: BCW
*/

/* Park Falls build (ticket 55074): the parent paints the active/hover mobile-menu link with --color-1 (dark text),
   which is unreadable on the dark --color-3 mobile menu. Use the light --color-5 instead. */
.mobile-header .mobile-nav .current_page_item a,
.mobile-header .mobile-nav a:hover,
.mobile-header .mobile-nav a:focus {
	color: var(--color-5);
}

/* Park Falls build (ticket 55074): the Request Service form has a Service dropdown as a 6th field.
   The parent's form grid only places 5 fields by position, so give the dropdown its own full-width row. */
.form-section .form .gform_wrapper.gravity-theme .gform_fields {
	grid-template-rows: auto auto auto auto;
}
.form-section .form .gform_wrapper.gravity-theme .gform_fields .gfield.gfield--type-select {
	grid-column: 1 / -1;
	grid-row: 5;
}
.form-section .form .gform_wrapper.gravity-theme .gform_fields .gfield--type-select select {
	width: 100%;
	padding: 10px 12px;
	font-size: 1rem;
}
/* Park Falls build (ticket 55074): shorter message box so Phone and Email rows sit close together; space above the button. */
.form-section .form .gform_wrapper.gravity-theme .gform_fields .gfield textarea {
	height: 120px;
}
.form-section .form .gform_wrapper.gravity-theme .gform_footer {
	margin-top: 12px;
}

/* === Ported: Request form section (from Momentum theme, template-parts/fc-form_section.php + css/fc-form_section.css) ===
   Class renamed .form-section -> .request-form-section because Adara already styles .form-section (contact template).
   Source overlay used --color_1 at .25; mapped to Adara's dark --color-3 at .75 so white text stays readable on a photo.
   Two-column field layout, white inputs and a full-width button follow the Momentum "Reach Out" screenshot. */
.request-form-section {
	padding: 60px 0;
	background-size: cover;
	background-position: 50% 50%;
	position: relative;
	z-index: 1;
	color: #fff;
}
.request-form-section:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: var(--color-3);
	z-index: -1;
	opacity: 0.75;
}
.request-form-section .content {
	max-width: 900px;
	margin: 0 auto;
	font-size: 18px;
}
.request-form-section .content h2 {
	font-size: 32px;
	margin-bottom: 10px;
	color: #fff;
}
.request-form-section .content a {
	color: #fff;
	text-decoration: underline;
}
.request-form-section .gform_wrapper.gravity-theme {
	color: var(--color-1);
	margin-top: 25px;
}
.request-form-section .gform_wrapper.gravity-theme .gform_fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 24px;
	row-gap: 14px;
}
.request-form-section .gform_wrapper.gravity-theme .gform_fields .gfield {
	grid-column: auto;
}
.request-form-section .gform_wrapper.gravity-theme .gform_fields .gfield--type-select,
.request-form-section .gform_wrapper.gravity-theme .gform_fields .gfield--type-textarea {
	grid-column: 1 / -1;
}
.request-form-section .gform_wrapper.gravity-theme .gfield_label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.request-form-section .gform_wrapper.gravity-theme input:not([type="submit"]),
.request-form-section .gform_wrapper.gravity-theme select,
.request-form-section .gform_wrapper.gravity-theme textarea {
	width: 100%;
	background: #fff;
	color: var(--color-1);
	border: 1px solid #ccc;
	border-radius: 2px;
	padding: 12px 14px;
	font-size: 1rem;
}
.request-form-section .gform_wrapper.gravity-theme textarea,
.request-form-section .gform_wrapper.gravity-theme textarea.large {
	height: 130px;
	min-height: 0;
}
.request-form-section .gform_wrapper.gravity-theme .gform_footer {
	margin: 14px 0 0;
	padding: 0;
}
.request-form-section .gform_wrapper.gravity-theme .gform_footer .gform_button {
	width: 100%;
	background-color: #fff;
	color: var(--color-3);
	border: none;
	font-weight: 700;
	letter-spacing: .05em;
}
.request-form-section .gform_wrapper.gravity-theme .gform_footer .gform_button:hover,
.request-form-section .gform_wrapper.gravity-theme .gform_footer .gform_button:focus {
	background-color: var(--color-4);
	color: var(--color-3);
}
.request-form-section .gform_wrapper.gravity-theme .gform_validation_errors,
.request-form-section .gform_wrapper.gravity-theme .gfield_validation_message {
	background: #fff;
}
@media (max-width: 767px) {
	.request-form-section .gform_wrapper.gravity-theme .gform_fields {
		grid-template-columns: 1fr;
	}
	.request-form-section .content h2 {
		font-size: 26px;
	}
}
/* === End ported: Request form section === */

/* Park Falls build (ticket 55074): the parent gives dropdown panels a white background but the links can inherit a light colour; keep them dark. */
.main-nav .menu-item-has-children .sub-menu a {
	color: var(--color-1);
}
.main-nav .menu-item-has-children .sub-menu a:hover,
.main-nav .menu-item-has-children .sub-menu a:focus {
	color: var(--color-2);
}

/* Park Falls build (ticket 55074), review round: request form button/textarea/spacing, centred homepage intro, centred reviews intro. */
.request-form-section {
	margin-top: 40px;
}
/* the parent paints a translucent :after overlay on every Gravity Forms button; remove it here so the white button stays solid */
.request-form-section .gform_wrapper.gravity-theme .gform_footer .gform_button:after {
	display: none;
}
.request-form-section .gform_wrapper.gravity-theme .gform_footer .gform_button {
	opacity: 1;
	padding: 14px 20px;
	cursor: pointer;
}
.request-form-section .gform_wrapper.gravity-theme textarea,
.request-form-section .gform_wrapper.gravity-theme textarea.large {
	height: 130px !important;
	min-height: 0 !important;
}
.home .main-content .inner {
	text-align: center;
}
.page-template-page-reviews .main-section .flex-row {
	justify-content: center;
}
.page-template-page-reviews .main-section .content-col {
	flex: 0 0 100%;
	max-width: 100%;
	text-align: center;
}

/* Park Falls build (ticket 55074): centre the homepage "Local, Family-Owned" text column, including the logo placed in its editor content. */
.home .content-section .content-col .content {
	text-align: center;
}
.home .content-section .content-col .content img {
	display: block;
	margin: 0 auto 10px;
	max-width: 100%;
	height: auto;
}
