/* 3/5 components: reusable pieces shared by sections and pages. */

/* ---------- Section heading ---------- */
.f21-h2 {
	font-family: var(--f-head);
	font-size: var(--fs-h2);
	line-height: 1;
	font-weight: 600;
	color: var(--c-primary);
}
.f21-h2 .light { color: var(--c-light-green); }
.f21-h2--italic { font-style: italic; }
.f21-h2--center { text-align: center; }
.f21-h2--white { color: var(--c-white); }
.f21-h2--caps { text-transform: capitalize; }

/* ---------- Small label with mark ---------- */
.f21-label { display: flex; align-items: center; gap: 5px; font-size: 16px; line-height: 24px; color: var(--c-primary); }
.f21-label--center { justify-content: center; }
.f21-label--light { color: var(--c-white); }
.f21-ico--mark { width: 14px; height: 14px; flex: none; color: var(--c-primary); }
.f21-label--light .f21-ico--mark { color: var(--c-white); }

/* ---------- Pill button ---------- */
.f21-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 12px 24px;
	border-radius: var(--r-pill);
	background: var(--g-button);
	color: var(--c-primary);
	font-family: var(--f-btn);
	font-size: var(--fs-btn);
	line-height: 1;
	font-weight: 500;
	white-space: nowrap;
	transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.f21-btn--white { background: var(--c-white); }
.f21-btn .f21-ico--arrow { width: 15px; height: 15px; flex: none; transition: transform var(--t-fast) var(--ease); }
.f21-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(21, 61, 58, 0.22); }
.f21-btn:hover .f21-ico--arrow { transform: translateX(3px); }

/* ---------- Rich text (wysiwyg output) ---------- */
.f21-rich { font-size: var(--fs-copy); line-height: var(--lh-copy); }
.f21-rich p { margin-bottom: 0.9em; }
.f21-rich ul { list-style: disc; padding-left: 40px; }
.f21-rich ol { list-style: decimal; padding-left: 40px; }
.f21-rich strong, .f21-rich b { font-weight: 700; }
.f21-rich a { text-decoration: underline; }

/* ---------- Placeholder for an image that has not been set ---------- */
.f21-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	border: 1px dashed rgba(21, 61, 58, 0.35);
	border-radius: var(--r-img);
	background: repeating-linear-gradient(135deg, rgba(21, 61, 58, 0.05) 0 12px, rgba(21, 61, 58, 0.1) 12px 24px);
	color: var(--c-primary);
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-align: center;
}

/* ---------- Social icons / phone ---------- */
.f21-social { display: flex; align-items: center; gap: 11px; }
.f21-social a { display: flex; width: 18px; height: 18px; color: var(--c-primary); transition: opacity var(--t-fast); }
.f21-social a:hover { opacity: 0.7; }
.f21-social .f21-ico { width: 18px; height: 18px; }

.f21-phone { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--c-black); white-space: nowrap; }
.f21-phone .f21-ico--phone { width: 20px; height: 20px; color: var(--c-primary); }

/* ---------- Header ---------- */
.f21-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding-inline: var(--gutter);
	background: var(--c-bg);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: var(--shadow-header);
}
.admin-bar .f21-header { top: 32px; }
.f21-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); max-width: var(--container); min-height: var(--header-h); margin-inline: auto; padding-inline: 10px; }
.f21-header__left { display: flex; align-items: center; gap: var(--gap); }
.f21-header__right { display: flex; align-items: center; justify-content: flex-end; gap: var(--gap); }

.f21-logo { display: flex; align-items: center; justify-content: center; flex: none; width: var(--logo-box); }
.f21-logo__img { width: var(--logo-size); height: var(--logo-size); object-fit: contain; }
.f21-logo__text { display: flex; align-items: center; justify-content: center; width: var(--logo-size); height: var(--logo-size); border-radius: 50%; background: var(--c-white); color: var(--c-primary); font-family: var(--f-head); font-size: 10px; font-weight: 700; letter-spacing: 0.5px; }

.f21-nav__list { display: flex; align-items: center; }
.f21-nav__list a { display: block; padding: var(--nav-pad); font-family: var(--f-head); font-size: var(--fs-nav); line-height: 20px; font-weight: 400; color: var(--c-black); transition: color var(--t-fast); }
.f21-nav__list a:hover,
.f21-nav__list .current-menu-item > a,
.f21-nav__list a.is-active { color: var(--c-primary); }
.f21-nav__extra { display: none; }

.f21-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--c-primary); }
.f21-burger .f21-ico { width: 26px; height: 26px; }
.f21-burger__close { display: none; }
.f21-burger[aria-expanded="true"] .f21-burger__open { display: none; }
.f21-burger[aria-expanded="true"] .f21-burger__close { display: block; }

@media (max-width: 1180px) {
	.f21-header__social { display: none; }
}

@media (max-width: 1024px) {
	.f21-header__phone span { display: none; }
}

@media (max-width: 767px) {
	.admin-bar .f21-header { top: 46px; }
	.f21-header__inner { padding-inline: 0; gap: 10px; }
	.f21-logo { justify-content: flex-start; }
	.f21-header__right { gap: 10px; }
	.f21-header__phone { display: none; }
	.f21-header__cta { padding: 10px 20px; font-size: 12px; }
	.f21-burger { display: flex; }

	.f21-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 10px 20px 20px;
		background: var(--c-bg);
		box-shadow: var(--shadow-header);
	}
	.f21-nav.is-open { display: block; }
	.f21-nav__list { flex-direction: column; align-items: stretch; }
	.f21-nav__list a { padding: 12px 0; border-bottom: 1px solid rgba(21, 61, 58, 0.1); }
	.f21-nav__extra { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }
}

/* ---------- Footer ---------- */
.f21-footer { background: var(--c-primary); color: var(--c-white); padding-block: 30px; text-align: center; }
.f21-footer__line { font-family: var(--f-head); font-size: var(--fs-footer-line); line-height: var(--lh-footer-line); font-weight: 600; margin-bottom: 34px; }
.f21-footer__line em { font-style: italic; }
.f21-footer__list { display: flex; flex-wrap: wrap; justify-content: center; }
.f21-footer__list a { display: block; padding: 13px 20px; font-family: var(--f-head); font-size: var(--fs-footer-nav); line-height: 20px; transition: color var(--t-fast); }
.f21-footer__list a:hover { color: var(--c-accent); }

@media (max-width: 767px) {
	.f21-footer__line { margin-bottom: 16px; }
	.f21-footer__list a { padding: 4px 10px; }
}

/* ---------- Lightbox ---------- */
.f21-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: rgba(0, 0, 0, 0.85); }
.f21-lightbox[hidden] { display: none; }
.f21-lightbox__img { max-width: 100%; max-height: 100%; border-radius: var(--r-card); }
.f21-lightbox__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; color: var(--c-white); }
.f21-lightbox__close .f21-ico { width: 28px; height: 28px; }

/* ---------- Inner pages ---------- */
.f21-page { padding-block: var(--section-y) 70px; background: var(--c-white); }
.f21-page--funnel { background: var(--c-bg); }
.f21-page__title { font-family: var(--f-head); font-size: var(--fs-h2); line-height: 1.1; font-weight: 600; color: var(--c-primary); margin-bottom: 30px; }
.f21-prose { font-size: 16px; line-height: 1.7; color: var(--c-body); overflow-wrap: break-word; }
.f21-prose > * + * { margin-top: 1em; }
.f21-prose h2, .f21-prose h3, .f21-prose h4 { font-family: var(--f-head); font-weight: 600; color: var(--c-primary); line-height: 1.25; margin-top: 1.6em; }
.f21-prose h2 { font-size: 26px; }
.f21-prose h3 { font-size: 21px; }
.f21-prose h4 { font-size: 18px; }
.f21-prose ul { list-style: disc; padding-left: 24px; }
.f21-prose ol { list-style: decimal; padding-left: 24px; }
.f21-prose li + li { margin-top: 0.4em; }
.f21-prose a { color: var(--c-teal); text-decoration: underline; }
.f21-prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.f21-prose th, .f21-prose td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.f21-prose th { background: var(--c-bg); color: var(--c-primary); font-weight: 700; }
/* The funnel plugin styles its own markup; do not let prose rules reach in. */
.f21-page--funnel .f21-prose > * + * { margin-top: 0; }
