/* ==========================================================================
   Leadsfirmament theme
   Colors match the original leadsfirmament.com (rose-900 navbar, red buttons).
   ========================================================================== */
:root {
	--lf-brand: #881337;
	--lf-brand-dark: #4c0519;
	--lf-accent: #dc2626;
	--lf-accent-dark: #b91c1c;
	--lf-ink: #111827;
	--lf-text: #1f2937;
	--lf-muted: #4b5563;
	--lf-line: #e5e7eb;
	--lf-soft: #fff1f2;
	--lf-gray: #f9fafb;
	--lf-radius: 12px;
	--lf-max: 1140px;
	--lf-shadow: 0 10px 30px rgba(17, 24, 39, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--lf-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--lf-accent-dark); }
h1, h2, h3, h4 { color: var(--lf-ink); line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.lf-skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.lf-skip:focus { left: 8px; }
.lf-wrap { max-width: var(--lf-max); margin: 0 auto; padding: 0 20px; }
.lf-muted { color: var(--lf-muted); font-size: .9rem; }

/* Buttons ------------------------------------------------------------- */
.lf-btn,
.wp-block-button__link,
.lf-content .wp-element-button {
	display: inline-block;
	background: var(--lf-accent);
	color: #fff !important;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	padding: 13px 24px;
	border-radius: 8px;
	border: 2px solid var(--lf-accent);
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
	line-height: 1.3;
}
.lf-btn:hover,
.wp-block-button__link:hover { background: var(--lf-accent-dark); border-color: var(--lf-accent-dark); }
.is-style-outline .wp-block-button__link,
.lf-btn--ghost { background: transparent; color: var(--lf-accent) !important; }
.lf-band--dark .is-style-outline .wp-block-button__link { color: #fff !important; border-color: #fff; }
.is-style-outline .wp-block-button__link:hover,
.lf-btn--ghost:hover { background: var(--lf-accent); color: #fff !important; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }

/* Header -------------------------------------------------------------- */
.lf-header { background: var(--lf-brand); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.admin-bar .lf-header { top: 32px; }
.lf-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.lf-brand img, .lf-brand .custom-logo { max-height: 56px; width: auto; display: block; }
.lf-brand__text { color: #fff; font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -.01em; }
.lf-nav { display: flex; align-items: center; gap: 28px; }
.lf-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.lf-menu a { color: #fff; text-decoration: none; font-size: .97rem; }
.lf-menu a:hover, .lf-menu .current-menu-item > a { text-decoration: underline; text-underline-offset: 5px; }
.lf-menu li { position: relative; }
.lf-menu .sub-menu { display: none; position: absolute; top: 100%; left: -14px; background: #1f2937; list-style: none; margin: 0; padding: 8px 0; min-width: 230px; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.lf-menu li:hover > .sub-menu, .lf-menu li:focus-within > .sub-menu { display: block; }
.lf-menu .sub-menu a { display: block; padding: 9px 16px; }
.lf-header__cta { display: flex; align-items: center; gap: 16px; }
.lf-header__phone { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.lf-header .lf-btn { padding: 10px 18px; }
.lf-menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 6px; }

/* Page hero (for pages that show the title) -------------------------- */
.lf-page-hero { background: linear-gradient(135deg, var(--lf-brand-dark), var(--lf-brand)); color: #fff; padding: 56px 0 44px; }
.lf-page-hero h1 { color: #fff; margin: 0; }
.lf-page-hero__meta { opacity: .8; margin: 8px 0 0; }

/* Content layout ------------------------------------------------------ */
.lf-content { padding-bottom: 40px; }
.lf-content > *:not(.alignfull):not(.alignwide) { max-width: 820px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.lf-content > .alignwide { max-width: var(--lf-max); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.lf-content > .alignfull { max-width: none; margin-left: 0; margin-right: 0; }
.lf-page:not(.has-hero) .lf-content > :first-child:not(.alignfull) { margin-top: 40px; }

/* Full-width bands (Group block, align full, class "lf-band") */
.lf-band { padding: 72px 0; }
.lf-band > *,
.lf-band > .wp-block-group__inner-container > * { max-width: var(--lf-max); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.lf-band > .wp-block-group__inner-container { max-width: none; padding: 0; }
.lf-band > :first-child, .lf-band > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.lf-band--soft { background: var(--lf-soft); }
.lf-band--gray { background: var(--lf-gray); }
.lf-band--dark { background: linear-gradient(135deg, var(--lf-brand-dark), var(--lf-brand)); color: #fff; }
.lf-band--dark h1, .lf-band--dark h2, .lf-band--dark h3 { color: #fff; }
.lf-band--dark a:not(.wp-block-button__link) { color: #fff; }
.lf-band--dark .lf-form a { color: var(--lf-accent-dark); }
.lf-eyebrow + h1, .lf-eyebrow + h2, .lf-eyebrow + h3 { margin-top: 0; }
.lf-center { text-align: center; }
.lf-center .wp-block-buttons { justify-content: center; }
.lf-narrow { max-width: 760px !important; }

/* Hero band */
.lf-hero { padding: 72px 0 80px; }
.lf-hero h1 { margin-top: 0; }
.lf-hero .wp-block-columns { align-items: center; }
.lf-lead { font-size: 1.2rem; opacity: .95; }
.lf-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--lf-accent); margin-bottom: .6em; }
.lf-band--dark .lf-eyebrow { color: #fecdd3; }

/* Columns */
.wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; margin: 1.5em auto; }
@media (min-width: 782px) { .wp-block-columns { flex-wrap: nowrap !important; } .wp-block-column[style*="flex-basis"] { flex-grow: 0; } }
.lf-hero .wp-block-columns { gap: 48px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .wp-block-columns { flex-direction: column; } .wp-block-column { flex-basis: 100% !important; } }

/* Cards */
.lf-cards .wp-block-column,
.lf-card { background: #fff; border: 1px solid var(--lf-line); border-radius: var(--lf-radius); padding: 26px; box-shadow: var(--lf-shadow); }
.lf-cards h3 { margin-top: 0; }
.lf-cards p:last-child { margin-bottom: 0; }
.lf-cards .wp-block-column::before { font-family: "Font Awesome 7 Free"; font-weight: 900; font-size: 1.5rem; color: var(--lf-accent); display: block; margin-bottom: 10px; content: "\f058"; }
.lf-ico-phone::before { content: "\f095" !important; }
.lf-ico-search::before { content: "\f002" !important; }
.lf-ico-home::before { content: "\f015" !important; }
.lf-ico-users::before { content: "\f0c0" !important; }
.lf-ico-chart::before { content: "\f201" !important; }
.lf-ico-clock::before { content: "\f017" !important; }
.lf-ico-shield::before { content: "\f3ed" !important; }
.lf-ico-list::before { content: "\f03a" !important; }
.lf-ico-target::before { content: "\f140" !important; }
.lf-ico-box::before { content: "\f466" !important; }

/* Steps */
.lf-steps { counter-reset: lfstep; }
.lf-steps .wp-block-column { position: relative; padding-top: 56px; }
.lf-steps .wp-block-column::before { counter-increment: lfstep; content: counter(lfstep) !important; font-family: inherit !important; position: absolute; top: 18px; left: 26px; width: 30px; height: 30px; border-radius: 50%; background: var(--lf-accent); color: #fff !important; font-size: .95rem !important; font-weight: 800; display: flex !important; align-items: center; justify-content: center; }

/* Check lists */
ul.lf-checks { list-style: none; padding-left: 0 !important; }
ul.lf-checks li { position: relative; padding-left: 30px; margin: 8px 0; }
ul.lf-checks li::before { content: "\2713"; font-weight: 900; position: absolute; left: 2px; top: 0; color: #16a34a; }
.lf-band--dark ul.lf-checks li::before { color: #fecdd3; }

/* Stats */
.lf-stats .wp-block-column { text-align: center; }
.lf-stat { font-size: 2.2rem; font-weight: 800; color: var(--lf-accent); margin: 0; line-height: 1.1; }
.lf-band--dark .lf-stat { color: #fff; }

/* Key takeaways / callouts */
.lf-callout { background: var(--lf-soft); border-left: 5px solid var(--lf-accent); border-radius: var(--lf-radius); padding: 20px 24px !important; }
.lf-callout h2, .lf-callout h3 { margin-top: 0; font-size: 1.2rem; }
.lf-callout ul { margin-bottom: 0; }

/* Comparison table */
.lf-table-wrap { overflow-x: auto; border: 1px solid var(--lf-line); border-radius: var(--lf-radius); margin: 1em auto 1.5em; padding: 0 !important; }
.lf-table-wrap table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .94rem; }
.lf-table-wrap th, .lf-table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--lf-line); }
.lf-table-wrap thead th { background: #1f2937; color: #fff; font-weight: 600; }
.lf-table-wrap tbody tr:nth-child(even) { background: var(--lf-gray); }
.lf-table-wrap tr.lf-ours { background: var(--lf-soft) !important; }
.lf-table-wrap tr.lf-ours td:first-child { font-weight: 700; color: var(--lf-brand); }
.lf-tag { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--lf-accent); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* Tool / option boxes */
.lf-option { border: 1px solid var(--lf-line); border-radius: var(--lf-radius); padding: 22px 24px !important; margin: 18px auto !important; }
.lf-option h3 { margin-top: 0; }
.lf-option--ours { border: 2px solid var(--lf-accent); background: linear-gradient(180deg, #fff, #fff7f7); }

/* FAQ (Details block) */
.wp-block-details { border: 1px solid var(--lf-line); border-radius: var(--lf-radius); padding: 14px 18px !important; margin: 10px auto !important; background: #fff; }
.wp-block-details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--lf-accent); }
.wp-block-details[open] summary::after { content: "\2013"; }
.wp-block-details > :not(summary) { margin: 10px 0 0; }

/* Lead form ----------------------------------------------------------- */
.lf-form { background: #fff; color: var(--lf-text); border-radius: var(--lf-radius); padding: 26px; box-shadow: 0 18px 40px rgba(17,24,39,.18); border: 1px solid var(--lf-line); }
.lf-form h3 { margin: 0 0 4px; font-size: 1.35rem; color: var(--lf-brand-dark); }
.lf-form__intro { color: var(--lf-muted); font-size: .95rem; margin-bottom: 12px; }
.lf-form label { display: block; font-size: .87rem; font-weight: 600; margin: 10px 0 4px; color: var(--lf-ink); }
.lf-form input[type=text], .lf-form input[type=email], .lf-form input[type=tel], .lf-form select, .lf-form textarea {
	width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: .97rem; background: #fff; color: var(--lf-ink);
}
.lf-form input:focus, .lf-form select:focus, .lf-form textarea:focus { outline: 2px solid #fecdd3; border-color: var(--lf-accent); }
.lf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.lf-form__consent { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--lf-muted); margin: 12px 0; }
.lf-form__consent input { margin-top: 4px; }
.lf-form__consent label { margin: 0; font-weight: 400; font-size: .82rem; color: var(--lf-muted); }
.lf-form .lf-btn { width: 100%; margin-top: 4px; font-size: 1.05rem; }
.lf-form__hp { position: absolute !important; left: -9999px !important; }
.lf-form__error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
.lf-form__trust { list-style: none; padding: 0; margin: 12px 0 0; font-size: .85rem; color: var(--lf-muted); }
.lf-form__trust li::before { content: "\2713"; font-weight: 900; color: #16a34a; margin-right: 6px; }
@media (max-width: 480px) { .lf-form__row { grid-template-columns: 1fr; } }

/* Contact details shortcode */
.lf-contact-list { list-style: none; padding: 0; }
.lf-contact-list li { margin: 10px 0; }
.lf-contact-list i { color: var(--lf-accent); width: 24px; }

/* Blog list */
.lf-posts { padding: 40px 20px; }
.lf-post-card { border-bottom: 1px solid var(--lf-line); padding: 20px 0; }
.lf-post-card h2 { margin: 0 0 4px; font-size: 1.4rem; }
.lf-post-card h2 a { color: var(--lf-ink); text-decoration: none; }

/* Footer -------------------------------------------------------------- */
.lf-footer { background: #1f1115; color: #e5e7eb; padding: 56px 0 0; margin-top: 0; }
.lf-footer a { color: #e5e7eb; text-decoration: none; }
.lf-footer a:hover { color: #fff; text-decoration: underline; }
.lf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.lf-footer__brand { font-weight: 800; font-size: 1.3rem; color: #fff; margin: 0 0 6px; }
.lf-footer__tag { color: #9ca3af; font-size: .95rem; }
.lf-footer__head { font-weight: 700; color: #fff; margin: 0 0 10px; }
.lf-footer__links { list-style: none; padding: 0; margin: 0; }
.lf-footer__links li { margin: 8px 0; }
.lf-footer__links i { width: 20px; color: #fda4af; }
.lf-footer__social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); margin-right: 8px; }
.lf-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 18px; padding-bottom: 18px; font-size: .88rem; color: #9ca3af; }
.lf-footer__bottom p { margin: 0; }
.lf-footer__bottom a { margin-left: 16px; }

.lf-mobile-cta { display: none; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
	.lf-menu-toggle { display: block; }
	.lf-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--lf-brand); flex-direction: column; align-items: flex-start; padding: 16px 20px 22px; gap: 16px; }
	.lf-nav.is-open { display: flex; }
	.lf-menu { flex-direction: column; align-items: flex-start; gap: 12px; }
	.lf-menu .sub-menu { display: block; position: static; background: transparent; box-shadow: none; padding: 6px 0 0 14px; }
	.lf-header__cta { flex-direction: column; align-items: flex-start; }
	.lf-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	body { font-size: 16px; padding-bottom: 72px; }
	.lf-band { padding: 52px 0; }
	.lf-hero { padding: 44px 0 56px; }
	.lf-mobile-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff; border-top: 1px solid var(--lf-line); padding: 10px 12px; gap: 10px; }
	.lf-mobile-cta .lf-btn { flex: 1; text-align: center; padding: 12px 10px; }
	.admin-bar .lf-header { top: 0; }
}

/* Space between a full-width hero and the first narrow block after it */
.lf-content > .alignfull + :not(.alignfull) { margin-top: 48px; }

/* WhatsApp ------------------------------------------------------------ */
.lf-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff !important; text-decoration: none; font-weight: 700; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s; }
.lf-wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.lf-btn--wa { background: #25d366; border-color: #25d366; }
.lf-btn--wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
.fa-whatsapp { color: #25d366; }
.lf-btn--wa .fa-whatsapp { color: #fff; }
@media (max-width: 600px) {
	.lf-wa-float { bottom: 84px; right: 14px; padding: 13px; }
	.lf-wa-float__label { display: none; }
}
