/*
Theme Name: Single Parent Fellowship
Theme URI: https://www.singleparentfellowship.com/
Description: Child theme of Hello Elementor for Single Parent Fellowship, Inc., migrated from Wix. Page templates are driven by ACF Pro fields and events use The Events Calendar; run `wp iq-import run` to build the site from /import.
Author: IQnection
Author URI: https://www.iqnection.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens (sampled from the Wix site)
   ========================================================================== */

:root {
	--spf-bg: #3d331a;
	--spf-gold: #f1d570;
	--spf-gold-dark: #c9ab4e;
	--spf-parchment: #f7f5ba;
	--spf-parchment-edge: #ebe7a3;
	--spf-rod: #64634e;
	--spf-nav-active: #7e7e61;
	--spf-brown: #5a4a1f;
	--spf-ink: #1e1b10;
	--spf-red: #d4202a;
	--spf-white: #fff;

	--font-serif: Georgia, "Times New Roman", serif;
	--font-body: "Didact Gothic", "Trebuchet MS", Arial, sans-serif;
	--font-label: "Oswald", "Arial Narrow", sans-serif;

	--shell: 1100px;
	--gutter: clamp(16px, 4vw, 40px);
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
	margin: 0;
	background: var(--spf-bg);
	color: var(--spf-ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
}

/* Hello Elementor boxes these at 1140px; this theme's shell manages its own width. */
body .site-header:not(.dynamic-header),
body .site-footer:not(.dynamic-footer),
body:not([class*="elementor-page-"]) .site-main {
	max-width: none;
	padding-inline: 0;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--spf-brown);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--spf-ink);
}

h1, h2, h3, h4 {
	line-height: 1.25;
	margin: 0 0 .6em;
}

p {
	margin: 0 0 1em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	z-index: 1000;
	top: 8px;
	left: 8px;
	padding: 8px 16px;
	background: var(--spf-white);
}

.text-center,
.has-text-align-center {
	text-align: center;
}

.button {
	display: inline-block;
	padding: 10px 22px;
	background: var(--spf-brown);
	color: var(--spf-white);
	font-family: var(--font-body);
	letter-spacing: .08em;
	text-decoration: none;
	border-radius: 3px;
	transition: background-color .15s ease, transform .15s ease;
}

.button:hover,
.button:focus {
	background: var(--spf-bg);
	color: var(--spf-gold);
	transform: translateY(-1px);
}

/* ==========================================================================
   Header — gold banner with a curved lower edge between two grey rods
   ========================================================================== */

.site-header {
	padding: 0 var(--gutter);
}

.site-header__banner {
	position: relative;
	max-width: var(--shell);
	margin: 0 auto;
	padding: 22px clamp(20px, 8vw, 100px) 34px;
	box-sizing: border-box;
	background: linear-gradient(180deg, #f3db7c 0%, var(--spf-gold) 70%);
	border-inline: 14px solid var(--spf-rod);
	border-radius: 0 0 50% 50% / 0 0 22px 22px;
	overflow: hidden;
}

/* Swoosh across the banner, echoing the original header art */
.site-header__banner::before {
	content: "";
	position: absolute;
	left: -10%;
	top: 30%;
	width: 55%;
	height: 120%;
	border-top: 10px solid rgba(140, 120, 60, .35);
	border-radius: 50%;
	transform: rotate(8deg);
	pointer-events: none;
}

.site-title {
	position: relative;
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(1.4rem, 3.4vw, 1.9rem);
	line-height: 1.2;
}

.site-title a {
	color: #4a3d14;
}

.site-title a:hover,
.site-title a:focus {
	color: var(--spf-ink);
}

.site-tagline {
	position: relative;
	margin: 2px 0 0 clamp(0px, 9vw, 100px);
	font-family: var(--font-serif);
	font-size: 1rem;
	color: #7a6a33;
}

/* ==========================================================================
   Page shell — sidebar + parchment
   ========================================================================== */

.page-shell {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	max-width: var(--shell);
	margin: clamp(20px, 3vw, 30px) auto 0;
	padding: 0 var(--gutter);
	box-sizing: content-box;
}

.sidebar {
	position: relative;
	background: var(--spf-parchment);
	border-left: 14px solid var(--spf-rod);
	padding-bottom: 40px;
}

.sidebar__logo {
	display: block;
	padding: 24px;
	background: var(--spf-bg);
}

.sidebar__logo img {
	display: block;
	width: 100%;
	max-width: 190px;
	margin: 0 auto;
}

.site-nav__toggle {
	display: none;
}

.site-nav__menu {
	margin: 24px 0 0;
	padding: 0 12px;
	list-style: none;
}

.site-nav__menu a {
	display: inline-block;
	padding: 6px 10px;
	color: var(--spf-ink);
	font-family: var(--font-serif);
	font-size: 1.02rem;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.site-nav__menu a:hover,
.site-nav__menu a:focus,
.site-nav__menu .current-menu-item > a {
	background: var(--spf-nav-active);
	color: var(--spf-gold);
}

body .site-main.parchment,
.parchment {
	position: relative;
	min-height: 60vh;
	padding: clamp(40px, 6vw, 70px) clamp(20px, 5vw, 60px) clamp(48px, 7vw, 90px);
	background: var(--spf-parchment);
	border-right: 14px solid var(--spf-rod);
	border-radius: 60% 0 0 0 / 34px 0 0 0;
	box-sizing: border-box;
}

/* Curled lower edge of the scroll */
.page-shell::after {
	content: "";
	grid-column: 1 / -1;
	height: 34px;
	background: var(--spf-parchment);
	border-inline: 14px solid var(--spf-rod);
	border-radius: 0 0 50% 50% / 0 0 34px 34px;
	box-shadow: inset 0 -6px 0 var(--spf-parchment-edge);
}

@media (max-width: 860px) {
	.page-shell {
		grid-template-columns: 1fr;
	}

	.sidebar {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		border-left: 0;
		border-radius: 0;
		padding: 0;
		background: var(--spf-bg);
	}

	.sidebar__logo {
		padding: 10px 0;
	}

	.sidebar__logo img {
		width: 72px;
	}

	.site-nav {
		flex: 1;
	}

	.site-nav__toggle {
		display: flex;
		align-items: center;
		gap: 8px;
		margin-left: auto;
		padding: 10px 14px;
		border: 1px solid var(--spf-gold);
		border-radius: 3px;
		background: transparent;
		color: var(--spf-gold);
		font-family: var(--font-serif);
		font-size: 1rem;
		cursor: pointer;
	}

	.site-nav__toggle svg {
		width: 22px;
		height: 22px;
	}

	.site-nav__menu {
		display: none;
		margin: 0;
		padding: 8px 0 12px;
	}

	.site-nav.is-open {
		flex-basis: 100%;
	}

	.site-nav.is-open .site-nav__toggle {
		margin: 0 0 0 auto;
	}

	.site-nav.is-open .site-nav__menu {
		display: block;
	}

	.site-nav__menu a {
		display: block;
		color: var(--spf-parchment);
		padding: 10px 12px;
		border-top: 1px solid rgba(241, 213, 112, .2);
	}

	.parchment {
		border-right-width: 8px;
		border-left: 8px solid var(--spf-rod);
		border-radius: 50% 50% 0 0 / 24px 24px 0 0;
	}

	.page-shell::after {
		border-inline-width: 8px;
	}
}

/* ==========================================================================
   Entries
   ========================================================================== */

.entry {
	max-width: 760px;
	margin: 0 auto;
}

.entry__eyebrow,
.entry--home .entry__title {
	margin: 0;
	font-family: var(--font-body);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 1.85rem);
	line-height: 1.4;
}

.entry__header {
	margin-bottom: 1.2em;
}

.entry__title {
	font-family: "Trebuchet MS", var(--font-body);
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 1.9rem);
	color: #3b3216;
}

.entry__title--large {
	font-family: Helvetica, Arial, sans-serif;
	font-size: clamp(2rem, 5.5vw, 3.6rem);
	color: #000;
}

.entry__lead {
	max-width: 520px;
	margin: 0 auto 2em;
	font-family: Helvetica, Arial, sans-serif;
}

.indented p {
	text-indent: 1.6em;
}

.entry--home .entry__intro {
	font-weight: 700;
}

.entry__content,
.feature__intro {
	font-family: "Trebuchet MS", var(--font-body);
}

.callout {
	margin: 1.8em 0 1.4em;
	font-style: italic;
	font-weight: 700;
	font-size: 1.15rem;
}

.callout p {
	margin: 0;
}

/* Home: offerings list */
.offerings {
	margin-top: 2em;
}

.offerings__title {
	font-family: var(--font-body);
	font-style: italic;
	font-weight: 400;
	font-size: 1.1rem;
	margin-bottom: .3em;
	color: #4a3d14;
}

.offerings ul {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2 280px;
	column-gap: 32px;
}

.offerings li {
	position: relative;
	padding: 4px 0 4px 22px;
	break-inside: avoid;
	font-weight: 700;
}

.offerings li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .85em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--spf-brown);
}

/* Home: contact */
.contact-card {
	margin-top: 1.4em;
	padding: clamp(20px, 4vw, 32px);
	background: rgba(255, 255, 255, .35);
	border: 1px solid var(--spf-parchment-edge);
	border-radius: 8px;
	font-weight: 700;
}

.contact-card__title {
	font-family: var(--font-body);
	font-style: italic;
	font-size: 1.2rem;
}

.contact-card__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.contact-card p {
	margin: 0 0 .25em;
}

/* Content with Image */
.feature--beside {
	display: grid;
	grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
	gap: clamp(20px, 4vw, 32px);
	align-items: center;
	margin-bottom: 2em;
}

.feature__figure {
	margin: 0;
}

.feature__figure img {
	display: block;
	width: 100%;
}

.feature__figure--after {
	max-width: 440px;
	margin: 2em auto 0;
}

.feature__figure--after img {
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(61, 51, 26, .25);
}

.feature__intro p:first-child {
	color: #3b3216;
}

.entry--feature .entry__title + .feature .feature__intro p:first-child {
	font-size: 1.1rem;
}

.entry__content .is-alert,
.entry__content .is-alert a {
	color: var(--spf-red);
	font-size: 1.15rem;
}

.entry__content hr {
	margin: 2em 0 0;
	border: 0;
	border-top: 3px solid #000;
}

.entry__content .no-indent p,
.entry__content p.no-indent {
	text-indent: 0;
}

@media (max-width: 640px) {
	.feature--beside {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.feature--beside .feature__figure {
		max-width: 240px;
	}
}

/* Volunteer */
.volunteer__banner {
	margin: 0 0 2em;
}

.volunteer__banner img {
	display: block;
	width: 100%;
	max-height: 300px;
	object-fit: cover;
	border-radius: 4px;
}

.volunteer__details {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 24px;
	font-family: Helvetica, Arial, sans-serif;
}

.volunteer__details .entry__content p {
	margin: 0 0 .3em;
}

.volunteer__details .button {
	background: #0057e1;
	letter-spacing: .1em;
}

.volunteer__details .button:hover,
.volunteer__details .button:focus {
	background: #0046b5;
	color: var(--spf-white);
}

/* ==========================================================================
   The Events Calendar
   ========================================================================== */

.tribe-events-before-html {
	margin-bottom: 1.5em;
}

/* The intro banner belongs to the calendar views, not individual events. */
.single-tribe_events .tribe-events-before-html {
	display: none;
}

.tribe-events-before-html .events-intro {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 24px;
	background-size: cover;
	background-position: center;
	border-radius: 6px;
	overflow: hidden;
}

.tribe-events-before-html .events-intro h2 {
	position: relative;
	margin: 0;
	padding: 12px 24px;
	background: rgba(247, 245, 186, .82);
	border-radius: 4px;
	color: #000;
	font-family: Helvetica, Arial, sans-serif;
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	text-align: center;
}

.tribe-common .tribe-common-l-container,
.tribe-events .tribe-events-l-container {
	padding: 0 !important;
}

.tribe-events-pg-template {
	max-width: none !important;
	padding: 0 !important;
}

.single-tribe_events .tribe-events-single-event-title {
	font-family: "Trebuchet MS", var(--font-body);
	color: #3b3216;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(32px, 5vw, 48px);
	text-align: center;
}

.site-footer__link {
	display: inline-block;
	padding: 4px 14px;
	border-bottom: 1px solid var(--spf-gold);
	color: var(--spf-gold);
	font-family: var(--font-label);
	font-size: 1.15rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link:focus {
	color: var(--spf-parchment);
	border-bottom-color: var(--spf-parchment);
}
