/* =================================================================
 * RenderforAI — main stylesheet
 * Lightweight, no framework. Colors/fonts come from CSS variables
 * injected by the Customizer (see functions.php → renderforai_dynamic_css).
 * ================================================================= */

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--rfa-font-body, 'Inter', sans-serif);
	color: var(--rfa-body, #52606D);
	background: #fff;
	line-height: 1.65;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rfa-accent, #1FBA52); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
	color: var(--rfa-heading, #1A2433);
	line-height: 1.18;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -0.01em;
}
p { margin: 0 0 1.1em; }

/* ---------- Layout ---------- */
.rfa-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.rfa-section { padding: 84px 0; }
.rfa-section__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-align: center; }
.rfa-section__subtitle { text-align: center; max-width: 620px; margin: 0 auto 2.6em; font-size: 1.08rem; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
	white-space: nowrap;
}
.rfa-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100000;
	background: #fff; padding: 10px 16px; border-radius: 8px;
}
.rfa-skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.rfa-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: .5em;
	padding: 13px 26px;
	border-radius: 8px;
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
	font-weight: 600;
	font-size: .98rem;
	line-height: 1;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
	text-decoration: none !important;
}
.rfa-btn:hover { transform: translateY(-1px); }
.rfa-btn--primary { background: var(--rfa-accent, #1FBA52); color: #fff; box-shadow: 0 6px 16px -6px rgba(31,186,82,.6); }
.rfa-btn--primary:hover { background: var(--rfa-accent-dark, #159941); color: #fff; }
.rfa-btn--ghost { background: #fff; color: var(--rfa-heading, #1A2433); border-color: #d7dde4; }
.rfa-btn--ghost:hover { border-color: var(--rfa-accent, #1FBA52); color: var(--rfa-accent-dark, #159941); }
.rfa-btn--sm { padding: 10px 18px; font-size: .9rem; }
.rfa-btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Pill / eyebrow label ---------- */
.rfa-pill {
	display: inline-block;
	background: rgba(31,186,82,.12);
	color: var(--rfa-accent-dark, #159941);
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
	font-weight: 600;
	font-size: .82rem;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 22px;
}

/* ---------- Promo / Trial top bar ---------- */
.rfa-topbar {
	background: var(--rfa-topbar-bg, #3D4B5C);
	color: var(--rfa-topbar-text, #fff);
	font-size: .92rem;
	font-weight: 600;
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
}
.rfa-topbar__inner {
	max-width: 1140px; margin: 0 auto; padding: 9px 44px;
	display: flex; align-items: center; justify-content: center;
	position: relative; text-align: center;
}
.rfa-topbar__text, .rfa-topbar__text a { color: var(--rfa-topbar-text, #fff); }
.rfa-topbar__text a { text-decoration: underline; }
.rfa-topbar__close {
	position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	background: none; border: 0; color: inherit; opacity: .75;
	font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 2px 6px;
}
.rfa-topbar__close:hover { opacity: 1; }

/* ---------- Header ---------- */
.rfa-header {
	background: #fff;
	border-bottom: 1px solid #eef1f4;
}
body.rfa-sticky-header .rfa-header { position: sticky; top: 0; z-index: 999; }
.rfa-header__inner {
	display: flex; align-items: center; gap: 24px;
	min-height: 72px;
}
.rfa-branding { flex: 0 0 auto; }
.rfa-branding img { max-height: 40px; width: auto; }
.rfa-logo {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
	font-weight: 700; font-size: 1.32rem; color: var(--rfa-heading, #1A2433);
	letter-spacing: -.01em; line-height: 1;
}
.rfa-logo:hover { text-decoration: none; }
.rfa-logo__bolt { flex: 0 0 auto; width: 26px; height: 26px; display: block; }
.rfa-logo__text { display: inline-block; }
.rfa-logo__accent { color: var(--rfa-accent, #1FBA52); }
.rfa-footer .rfa-logo { font-size: 1.18rem; }
.rfa-footer .rfa-logo__bolt { width: 22px; height: 22px; }

.rfa-nav { flex: 1 1 auto; }
.rfa-menu {
	display: flex; align-items: center; gap: 6px;
	list-style: none; margin: 0; padding: 0;
	justify-content: center;
}
.rfa-menu li { position: relative; }
.rfa-menu a {
	display: block; padding: 8px 14px;
	color: var(--rfa-heading, #1A2433);
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
	font-weight: 500; font-size: .98rem;
}
.rfa-menu a:hover { color: var(--rfa-accent, #1FBA52); text-decoration: none; }
.rfa-menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 200px;
	background: #fff; border: 1px solid #eef1f4; border-radius: 10px;
	box-shadow: 0 12px 30px -12px rgba(0,0,0,.18);
	padding: 8px; list-style: none; margin: 6px 0 0;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: .15s ease;
}
.rfa-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.rfa-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.rfa-header__signin {
	color: var(--rfa-heading, #1A2433);
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
	font-weight: 500; font-size: .98rem;
}

/* Mobile nav toggle */
.rfa-nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.rfa-nav__bars, .rfa-nav__bars::before, .rfa-nav__bars::after {
	display: block; width: 24px; height: 2px; background: var(--rfa-heading, #1A2433);
	position: relative; transition: .2s;
}
.rfa-nav__bars::before, .rfa-nav__bars::after { content: ''; position: absolute; left: 0; }
.rfa-nav__bars::before { top: -7px; }
.rfa-nav__bars::after { top: 7px; }

/* ---------- Hero ---------- */
.rfa-hero {
	background: linear-gradient(180deg, #f7f9fb 0%, #fff 100%);
	text-align: center;
	padding: 92px 0 96px;
}
.rfa-hero__inner { max-width: 800px; margin: 0 auto; }
.rfa-hero__title {
	font-size: clamp(2.1rem, 5.2vw, 3.4rem);
	margin-bottom: .5em;
}
/* the green underline accent under the last words, Prerender-style */
.rfa-hero__title { position: relative; }
.rfa-hero__subtitle { font-size: 1.12rem; max-width: 620px; margin: 0 auto 1.8em; }
.rfa-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.rfa-hero__note { margin-top: 18px; font-size: .9rem; color: #8a96a3; }

/* ---------- Logos ---------- */
.rfa-logos { padding: 64px 0; }
.rfa-logos__title {
	text-align: center; font-size: 1.5rem; margin-bottom: 1.8em;
	color: var(--rfa-heading, #1A2433);
}
.rfa-logos__grid {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 22px 54px;
	justify-content: center; align-items: center;
}
.rfa-logos__item {
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
	font-weight: 700; font-size: 1.3rem; color: #b3bcc6;
	letter-spacing: .01em; transition: color .15s;
}
.rfa-logos__item:hover { color: #8893a0; }

/* ---------- Stats ---------- */
.rfa-stats { background: #f7f9fb; }
.rfa-stats__grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
	text-align: center;
}
.rfa-stat__value {
	display: block;
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
	font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.6rem);
	color: var(--rfa-accent, #1FBA52); line-height: 1;
}
.rfa-stat__label { display: block; margin-top: 10px; font-weight: 500; color: var(--rfa-heading, #1A2433); }

/* ---------- Features ---------- */
.rfa-features__grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.rfa-feature {
	background: #f8fafb; border: 1px solid #eef1f4; border-radius: 16px;
	padding: 32px 30px; transition: transform .15s ease, box-shadow .15s ease;
}
.rfa-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(0,0,0,.2); }
.rfa-feature__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 50px; height: 50px; border-radius: 12px;
	background: rgba(31,186,82,.12); font-size: 1.5rem; margin-bottom: 16px;
}
.rfa-feature__title { font-size: 1.25rem; margin-bottom: .4em; }
.rfa-feature__desc { margin: 0; font-size: 1rem; }

/* ---------- Testimonials ---------- */
.rfa-testimonials { background: #f7f9fb; }
.rfa-testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rfa-quote {
	background: #ecf9f0; border-radius: 16px; padding: 30px 28px; margin: 0;
	position: relative;
}
.rfa-quote__mark {
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
	font-size: 3rem; line-height: .6; color: var(--rfa-accent, #1FBA52);
	display: block; margin-bottom: 12px; font-weight: 700;
}
.rfa-quote__text { margin: 0 0 18px; font-size: 1rem; color: var(--rfa-heading, #1A2433); }
.rfa-quote__author strong { display: block; color: var(--rfa-heading, #1A2433); font-weight: 700; }
.rfa-quote__author span { font-size: .88rem; color: #8a96a3; }

/* ---------- FAQ ---------- */
.rfa-faq__inner { max-width: 760px; }
.rfa-faq__list { margin-top: 2em; }
.rfa-faq__item {
	border-bottom: 1px solid #e7ebef; padding: 6px 0;
}
.rfa-faq__q {
	cursor: pointer; list-style: none;
	font-family: var(--rfa-font-heading, 'Poppins', sans-serif);
	font-weight: 600; font-size: 1.1rem; color: var(--rfa-heading, #1A2433);
	padding: 18px 40px 18px 0; position: relative;
}
.rfa-faq__q::-webkit-details-marker { display: none; }
.rfa-faq__q::after {
	content: '+'; position: absolute; right: 4px; top: 16px;
	font-size: 1.5rem; color: var(--rfa-accent, #1FBA52); transition: transform .2s;
}
.rfa-faq__item[open] .rfa-faq__q::after { content: '–'; }
.rfa-faq__a { padding: 0 0 18px; }
.rfa-faq__a p { margin: 0; }

/* ---------- Final CTA ---------- */
.rfa-cta { background: #f7f9fb; }
.rfa-cta__inner {
	text-align: center; background: linear-gradient(135deg, #ecf9f0, #f7f9fb);
	border: 1px solid #e1efe6; border-radius: 22px; padding: 64px 30px;
}
.rfa-cta__title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.rfa-cta__text { max-width: 560px; margin: 0 auto 1.8em; }

/* ---------- Footer ---------- */
.rfa-footer { background: #fff; border-top: 1px solid #eef1f4; padding: 54px 0 36px; }
.rfa-footer__menu {
	list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px;
	margin: 0 0 28px; padding: 0; justify-content: center;
}
.rfa-footer__menu a { color: var(--rfa-body, #52606D); font-weight: 500; font-size: .95rem; }
.rfa-footer__menu a:hover { color: var(--rfa-accent, #1FBA52); }
.rfa-footer__bottom {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; flex-wrap: wrap; border-top: 1px solid #eef1f4; padding-top: 26px;
}
.rfa-footer__copy { margin: 6px 0 0; font-size: .88rem; color: #8a96a3; }
.rfa-footer__social { display: flex; gap: 10px; }
.rfa-social {
	width: 38px; height: 38px; border-radius: 9px; border: 1px solid #e7ebef;
	display: inline-flex; align-items: center; justify-content: center;
	color: #8a96a3; font-weight: 700; font-size: .9rem;
}
.rfa-social:hover { color: var(--rfa-accent, #1FBA52); border-color: var(--rfa-accent, #1FBA52); text-decoration: none; }

/* ---------- Blog / prose ---------- */
.rfa-blog, .rfa-single { padding: 70px 0; }
.rfa-page-header { text-align: center; margin-bottom: 44px; }
.rfa-page-header__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.rfa-blog__layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
.rfa-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.rfa-card {
	border: 1px solid #eef1f4; border-radius: 16px; overflow: hidden;
	background: #fff; transition: box-shadow .15s, transform .15s;
}
.rfa-card:hover { box-shadow: 0 18px 44px -24px rgba(0,0,0,.25); transform: translateY(-2px); }
.rfa-card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.rfa-card__body { padding: 24px; }
.rfa-card__meta { font-size: .82rem; color: #8a96a3; margin-bottom: 10px; }
.rfa-card__title { font-size: 1.2rem; }
.rfa-card__title a { color: var(--rfa-heading, #1A2433); }
.rfa-card__title a:hover { color: var(--rfa-accent, #1FBA52); text-decoration: none; }
.rfa-card__more { font-weight: 600; font-family: var(--rfa-font-heading, 'Poppins', sans-serif); }

.rfa-prose { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.rfa-prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.rfa-prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.rfa-prose img { border-radius: 12px; margin: 1.4em 0; }
.rfa-prose blockquote {
	border-left: 4px solid var(--rfa-accent, #1FBA52);
	margin: 1.4em 0; padding: .4em 0 .4em 1.2em; color: var(--rfa-heading, #1A2433);
}
.rfa-prose code { background: #f1f4f7; padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.rfa-prose pre { background: #1a2433; color: #e7ebef; padding: 20px; border-radius: 12px; overflow: auto; }

.rfa-article__header { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.rfa-article__title { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.rfa-article__media { margin: 0 0 36px; }
.rfa-article__media img { width: 100%; border-radius: 16px; }
.rfa-tags { max-width: 760px; margin: 36px auto 0; }
.rfa-tags a { display: inline-block; background: #f1f4f7; padding: 5px 12px; border-radius: 999px; font-size: .82rem; margin: 0 6px 6px 0; color: var(--rfa-body, #52606D); }
.rfa-postnav { max-width: 760px; margin: 50px auto 0; display: flex; justify-content: space-between; gap: 20px; }

/* Pagination */
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers, .nav-links a, .nav-links span {
	padding: 9px 15px; border-radius: 9px; border: 1px solid #e7ebef;
	color: var(--rfa-heading, #1A2433); font-weight: 600;
}
.pagination .current { background: var(--rfa-accent, #1FBA52); color: #fff; border-color: var(--rfa-accent, #1FBA52); }

/* Sidebar */
.rfa-sidebar .widget { margin-bottom: 32px; }
.widget-title { font-size: 1.1rem; margin-bottom: .8em; }
.rfa-search { display: flex; gap: 8px; max-width: 420px; margin: 0 auto 16px; }
.rfa-search__field { flex: 1; padding: 11px 14px; border: 1px solid #d7dde4; border-radius: 9px; font: inherit; }

/* 404 */
.rfa-404 { text-align: center; padding: 90px 0; }
.rfa-404__emoji { font-size: 3rem; }
.rfa-404__code { font-size: clamp(3.5rem, 12vw, 6rem); margin: .1em 0; color: var(--rfa-accent, #1FBA52); }
.rfa-404__text { max-width: 440px; margin: 0 auto 1.6em; }
.rfa-404 .rfa-search { margin-bottom: 24px; }

/* Page content section on front page */
.rfa-page-content { padding-top: 0; }

/* Full-width canvas template (page builders) */
.rfa-canvas { padding: 0; }

/* WooCommerce container + light brand styling */
.rfa-woo { padding: 60px 0; }
.woocommerce a.button, .woocommerce button.button, .woocommerce .button,
.woocommerce #respond input#submit, .woocommerce-page .button {
	background: var(--rfa-accent, #1FBA52) !important;
	color: #fff !important;
	border-radius: 8px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce .button:hover { background: var(--rfa-accent-dark, #159941) !important; }
.woocommerce span.onsale { background: var(--rfa-accent, #1FBA52); }
.woocommerce ul.products li.product .price { color: var(--rfa-heading, #1A2433); }

/* Comments */
.rfa-comments { max-width: 760px; margin: 56px auto 0; }
.rfa-comments__list { list-style: none; padding: 0; }
.rfa-comments__list ol { list-style: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.rfa-features__grid, .rfa-testimonials__grid, .rfa-stats__grid, .rfa-posts { grid-template-columns: 1fr; }
	.rfa-stats__grid { gap: 36px; }
}
@media (max-width: 820px) {
	.rfa-nav__toggle { display: block; order: 3; }
	.rfa-nav { order: 4; flex-basis: 100%; }
	.rfa-menu {
		flex-direction: column; align-items: stretch; gap: 0;
		max-height: 0; overflow: hidden; transition: max-height .25s ease;
	}
	body.rfa-nav-open .rfa-menu { max-height: 80vh; padding: 8px 0 16px; }
	.rfa-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; }
	.rfa-header__inner { flex-wrap: wrap; gap: 12px; }
	.rfa-header__actions { margin-left: auto; }
	.rfa-section { padding: 60px 0; }
}
@media (max-width: 520px) {
	body { font-size: 16px; }
	.rfa-header__signin { display: none; }
	.rfa-cta__inner { padding: 44px 22px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
