/*
Theme Name:   RevivalFire Child
Theme URI:    http://dalen-garris-project.local/
Description:  Hello Elementor child theme for RevivalFire Ministries. All pages, the header and the footer are built with Elementor; this theme only adds the site-wide header/footer rendering, the WordPress menu, forms and a few small styles Elementor free cannot set.
Author:       RevivalFire Ministries
Template:     hello-elementor
Version:      1.0.0
Text Domain:  revivalfire
*/

/* ---------- Header placement ---------- */
.rf-site-header {
	position: relative;
	z-index: 100;
	background-color: var(--e-global-color-rfdark, #0f1417);
}

/* Elementor full-width pages open with a dark hero, so the header floats over it. */
body.rf-transparent-header .rf-site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background-color: transparent;
}

body.admin-bar.rf-transparent-header .rf-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar.rf-transparent-header .rf-site-header {
		top: 46px;
	}
}

.rf-fallback-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px;
	color: #fff;
}

.rf-fallback-title {
	color: #fff;
	font-weight: 600;
}

/* ---------- Primary navigation – [rf_menu] ---------- */
.rf-menu {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-menu a {
	display: block;
	font-family: var(--e-global-typography-secondary-font-family, "Inter"), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.rf-menu a:hover,
.rf-menu a:focus-visible,
.rf-menu .current-menu-item > a,
.rf-menu .current_page_item > a {
	color: var(--e-global-color-primary, #e99d4d);
}

/* Dropdowns (desktop). */
.rf-menu > li {
	position: relative;
}

.rf-menu > .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

.rf-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	z-index: 30;
	min-width: 230px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--e-global-color-rfdark, #0f1417);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-top: 2px solid var(--e-global-color-primary, #e99d4d);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.rf-menu > li:hover > .sub-menu,
.rf-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Hover bridge so the pointer can travel from the parent into the dropdown. */
.rf-menu > .menu-item-has-children::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 14px;
}

.rf-menu > li > .sub-menu {
	margin-top: 12px;
}

.rf-menu .sub-menu a {
	padding: 9px 22px;
	font-size: 15px;
}

.rf-menu .current-menu-ancestor > a {
	color: var(--e-global-color-primary, #e99d4d);
}

.rf-nav-toggle {
	display: none;
}

@media (max-width: 1200px) {
	.rf-menu {
		gap: 20px;
	}
}

@media (max-width: 1024px) {
	.rf-nav-toggle,
	.rf-nav-toggle:hover,
	.rf-nav-toggle:focus {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		padding: 0 11px;
		background: transparent;
		border: 1px solid rgba(255, 255, 255, 0.35);
		border-radius: 6px;
		cursor: pointer;
	}

	.rf-nav-toggle:hover,
	.rf-nav-toggle:focus-visible {
		border-color: var(--e-global-color-primary, #e99d4d);
	}

	.rf-nav-toggle span {
		display: block;
		height: 2px;
		background: #fff;
		border-radius: 2px;
		transition: transform 0.25s ease, opacity 0.25s ease;
	}

	.rf-nav.is-open .rf-nav-toggle span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.rf-nav.is-open .rf-nav-toggle span:nth-child(2) {
		opacity: 0;
	}

	.rf-nav.is-open .rf-nav-toggle span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.rf-nav {
		position: relative;
	}

	.rf-menu {
		position: absolute;
		top: calc(100% + 14px);
		right: 0;
		z-index: 20;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		min-width: 250px;
		padding: 10px 0;
		background: var(--e-global-color-rfdark, #0f1417);
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 8px;
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

	.rf-nav.is-open .rf-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.rf-menu a {
		padding: 11px 24px;
	}

	/* Submenus listed inline in the mobile panel. */
	.rf-menu {
		max-height: calc(100vh - 110px);
		overflow-y: auto;
	}

	.rf-menu .sub-menu {
		position: static;
		min-width: 0;
		margin: 0;
		padding: 0 0 6px;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.rf-menu > li > .sub-menu {
		margin-top: 0;
	}

	.rf-menu .sub-menu a {
		padding: 8px 24px 8px 40px;
		font-size: 15px;
		color: rgba(255, 255, 255, 0.78);
	}

	.rf-menu > .menu-item-has-children > a {
		pointer-events: none;
		font-weight: 600;
	}

	.rf-menu > .menu-item-has-children::before {
		display: none;
	}
}

/* ---------- Elementor widget fine-tuning ---------- */

/* Keep Image Box icons at their set width (the content column is 100% wide and would squeeze them). */
.elementor-widget-image-box .elementor-image-box-img {
	flex-shrink: 0;
}

/* Hello's reset adds top margins to h1–h6; widget titles are spaced with Elementor controls instead. */
.elementor-widget-image-box .elementor-image-box-title {
	margin-top: 0;
}

/* Buttons are inline-blocks: without this the body line-height adds a few pixels above them. */
.elementor-widget-button {
	line-height: 0;
}

/* ---------- Button glyphs ----------
 * Elementor Button widgets get the design's own icons (assets/icons, copied from the
 * design Assets folder) via CSS classes set in Advanced > CSS Classes. The PNGs are used
 * as masks, so each glyph takes the button's text colour, including on hover.
 */
.rf-icon-arrow .elementor-button-content-wrapper,
.rf-icon-play .elementor-button-content-wrapper,
.rf-icon-heart .elementor-button-content-wrapper {
	align-items: center;
}

.rf-icon-arrow .elementor-button-content-wrapper {
	gap: 12px;
}

.rf-icon-arrow .elementor-button-content-wrapper::after,
.rf-icon-play .elementor-button-content-wrapper::before,
.rf-icon-heart .elementor-button-content-wrapper::before {
	content: "";
	flex: 0 0 auto;
	background-color: currentColor;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.rf-icon-arrow .elementor-button-content-wrapper::after {
	width: 15px;
	height: 15px;
	-webkit-mask-image: url("assets/icons/arrow-right.png");
	mask-image: url("assets/icons/arrow-right.png");
	transition: transform 0.25s ease;
}

.rf-icon-arrow .elementor-button:hover .elementor-button-content-wrapper::after,
.rf-icon-arrow .elementor-button:focus-visible .elementor-button-content-wrapper::after {
	transform: translateX(4px);
}

.rf-icon-sm .elementor-button-content-wrapper {
	gap: 9px;
}

.rf-icon-sm .elementor-button-content-wrapper::after {
	width: 13px;
	height: 13px;
}

.rf-icon-play .elementor-button-content-wrapper {
	gap: 13px;
}

.rf-icon-play .elementor-button-content-wrapper::before {
	width: 16px;
	height: 18px;
	background-color: var(--e-global-color-primary, #e99d4d);
	-webkit-mask-image: url("assets/icons/play.png");
	mask-image: url("assets/icons/play.png");
}

.rf-icon-heart .elementor-button-content-wrapper {
	gap: 6px;
}

.rf-icon-heart .elementor-button-content-wrapper::before {
	width: 26px;
	height: 20px;
	-webkit-mask-image: url("assets/icons/heart.png");
	mask-image: url("assets/icons/heart.png");
}

/* ---------- Long-form text (Text Editor widgets with the "rf-prose" class) ---------- */
.rf-prose::after {
	content: "";
	display: table;
	clear: both;
}

.rf-prose h2,
.rf-prose h3 {
	margin: 0 0 18px;
	font-family: var(--e-global-typography-primary-font-family, "Playfair Display"), serif;
	font-weight: 400;
	color: #000;
}

.rf-prose h2 {
	font-size: 34px;
	line-height: 1.2;
}

.rf-prose h3 {
	font-size: 25px;
	line-height: 1.3;
}

.rf-prose ul,
.rf-prose ol {
	margin: 0 0 18px;
	padding-left: 1.3em;
}

.rf-prose li {
	margin-bottom: 12px;
}

.rf-prose li::marker {
	color: var(--e-global-color-accent, #d99832);
}

.rf-prose blockquote {
	margin: 0 0 18px;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--e-global-color-accent, #d99832);
	font-family: var(--e-global-typography-primary-font-family, "Playfair Display"), serif;
	font-size: 18px;
	line-height: 1.6;
}

.rf-prose a,
.rf-link-accent a {
	color: var(--e-global-color-secondary, #b28353);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rf-prose a:hover,
.rf-link-accent a:hover {
	color: var(--e-global-color-primary, #e99d4d);
}

/* Images that the text flows around. */
.rf-prose img.rf-float {
	float: right;
	width: 44%;
	max-width: 460px;
	height: auto;
	margin: 6px 0 24px 40px;
	border-radius: 8px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
	.rf-prose img.rf-float {
		float: none;
		display: block;
		width: 100%;
		max-width: none;
		margin: 0 0 24px;
	}

	.rf-prose h2 {
		font-size: 28px;
	}
}

/* Rounded self-hosted videos. */
.rf-rounded video,
.rf-rounded .elementor-custom-embed-image-overlay,
.rf-rounded .elementor-wrapper {
	border-radius: 8px;
	overflow: hidden;
}

/* Audio players inside broadcast cards. */
.e-con .wp-audio-shortcode {
	width: 100% !important;
}

/* ---------- Heading accent (e.g. "REVIVAL" in the hero) ---------- */
.rf-accent {
	color: var(--e-global-color-primary, #e99d4d);
}

/* ---------- Forms ---------- */
.rf-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rf-form-notice {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
}

.rf-form-notice.is-success {
	color: #8fce8a;
}

.rf-form-notice.is-error {
	color: #ff9d8c;
}

/* Newsletter – [rf_subscribe_form] */
.rf-subscribe {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 385px;
}

.rf-subscribe-lists {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	flex: 1 1 100%;
	margin: 0 0 8px;
	padding: 0;
	border: 0;
}

.rf-subscribe-lists label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: #fff;
	cursor: pointer;
}

.rf-subscribe-lists input {
	width: 16px;
	height: 16px;
	accent-color: var(--e-global-color-accent, #d99832);
}

.rf-subscribe-center .rf-subscribe {
	margin: 0 auto;
	max-width: 460px;
}

.rf-subscribe-center .rf-subscribe-lists {
	justify-content: center;
}

.rf-subscribe-center .rf-form-notice {
	text-align: center;
}

.rf-subscribe input[type="email"] {
	flex: 1 1 200px;
	height: 39px;
	padding: 0 16px;
	font-family: var(--e-global-typography-secondary-font-family, "Inter"), sans-serif;
	font-size: 12px;
	color: #fff;
	background: transparent;
	border: 1px solid #999;
	border-radius: 4px;
}

.rf-subscribe input[type="email"]::placeholder {
	color: #8a8b8c;
	opacity: 1;
}

.rf-subscribe input[type="email"]:focus {
	outline: none;
	border-color: var(--e-global-color-accent, #d99832);
}

.rf-subscribe button,
.rf-contact-form button {
	flex: 0 0 auto;
	height: 39px;
	padding: 0 16px;
	font-family: var(--e-global-typography-secondary-font-family, "Inter"), sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.5px;
	color: #111;
	background: var(--e-global-color-accent, #d99832);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.rf-subscribe button:hover,
.rf-subscribe button:focus,
.rf-contact-form button:hover,
.rf-contact-form button:focus {
	color: #111;
	background: var(--e-global-color-primary, #e99d4d);
}

/* Contact – [rf_contact_form] */
.rf-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
	margin-bottom: 24px;
}

.rf-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	font-family: var(--e-global-typography-secondary-font-family, "Inter"), sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.rf-field--full {
	grid-column: 1 / -1;
}

.rf-field input,
.rf-field textarea {
	width: 100%;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	color: #111;
	background: #fff;
	border: 1px solid #d9cfc3;
	border-radius: 4px;
}

.rf-field input:focus,
.rf-field textarea:focus {
	outline: none;
	border-color: var(--e-global-color-accent, #d99832);
}

.rf-contact-form button {
	height: 50px;
	padding: 0 32px;
	font-size: 16px;
}

@media (max-width: 767px) {
	.rf-form-grid {
		grid-template-columns: 1fr;
	}
}
