/*
Theme Name: 90 Leads Starter
Theme URI: https://90leads.com/
Author: 90 Leads
Author URI: https://90leads.com/
Description: The 90 Leads starting point for client websites. A fast block theme with brand colors and fonts set in one place, ready-made page sections, a Business Info settings page that drives schema, the footer and llms.txt, and built-in SEO and security basics.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 90leads-starter
Tags: block-theme, full-site-editing, business, one-column, custom-colors, editor-style
*/

/* ==========================================================================
   All brand colors, fonts and sizes live in theme.json (Appearance > Editor > Styles).
   This file only holds layout details theme.json can't express.
   ========================================================================== */

:root {
	--nl-radius-s: var(--wp--custom--radius--small, 10px);
	--nl-radius-m: var(--wp--custom--radius--medium, 18px);
	--nl-radius-l: var(--wp--custom--radius--large, 28px);
	--nl-shadow: var(--wp--custom--shadow--card);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; max-width: 100%; }
:target { scroll-margin-top: 96px; }
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }
.has-primary-background-color .wp-block-shortcode a, .has-primary-background-color a[href^="tel:"] { font-weight: 800; font-size: 1.15rem; text-decoration: none; }

/* ---------- Header ---------- */
.nl-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(8px); background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent); border-bottom: 1px solid var(--wp--preset--color--border); }
.admin-bar .nl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nl-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nl-header { top: 0; } }
.nl-header .wp-block-navigation__submenu-container { border-radius: var(--nl-radius-s); border: 1px solid var(--wp--preset--color--border) !important; box-shadow: var(--nl-shadow); padding: 6px 0; min-width: 240px !important; }
.nl-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 16px !important; }
.nl-header .nl-header-cta .wp-block-button__link { padding: .7em 1.3em; font-size: .95rem; }
@media (max-width: 781px) { .nl-header .nl-header-cta { display: none; } }

/* ---------- Text helpers ---------- */
.is-style-nl-eyebrow { display: block; width: fit-content; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem !important; font-weight: 800; color: var(--wp--preset--color--link); background: var(--wp--preset--color--tint); padding: .45em 1em; border-radius: 999px; margin-bottom: 0 !important; }
.has-primary-background-color .is-style-nl-eyebrow { background: rgba(255,255,255,.1); color: var(--wp--preset--color--accent); }
.nl-lead, .is-style-nl-lead { font-size: var(--wp--preset--font-size--large) !important; color: var(--wp--preset--color--muted); }
.has-primary-background-color .is-style-nl-lead, .has-primary-background-color .nl-lead { color: rgba(255,255,255,.82); }
mark.nl-highlight, h1 mark, h2 mark { background: linear-gradient(transparent 58%, var(--wp--preset--color--accent) 58%, var(--wp--preset--color--accent) 92%, transparent 92%) !important; color: inherit !important; padding: 0 .08em; }
.has-primary-background-color mark.nl-highlight { background: linear-gradient(transparent 58%, var(--wp--preset--color--secondary) 58%, var(--wp--preset--color--secondary) 92%, transparent 92%) !important; }
.nl-hero-note { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--wp--preset--color--muted); }
.nl-hero-note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--secondary); box-shadow: 0 0 0 4px var(--wp--preset--color--tint); flex: none; }

.is-style-nl-eyebrow.has-text-align-center { margin-left: auto !important; margin-right: auto !important; }
.is-layout-constrained > .is-style-nl-eyebrow:not(.has-text-align-center) { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; }
.nl-measure { max-width: 780px; }

/* ---------- Dark sections ---------- */
.has-primary-background-color { color: rgba(255,255,255,.88); }
.has-primary-background-color :where(h1,h2,h3,h4,h5,h6) { color: #fff; }
.has-primary-background-color a:where(:not(.wp-block-button__link)) { color: #fff; }

/* ---------- Cards ---------- */
.is-style-nl-card { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: var(--nl-radius-m); box-shadow: var(--nl-shadow); padding: clamp(22px, 3vw, 32px) !important; height: 100%; }
.is-style-nl-card > * + * { margin-block-start: .75rem; }
.is-style-nl-card h3 { font-size: 1.25rem; }
.is-style-nl-card p { color: var(--wp--preset--color--muted); }
.is-style-nl-card a.nl-card-link, .nl-card-link a { font-weight: 700; text-decoration: none; }
.has-primary-background-color .is-style-nl-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.has-primary-background-color .is-style-nl-card p { color: rgba(255,255,255,.8); }
.wp-block-columns.nl-equal > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.nl-equal > .wp-block-column > .is-style-nl-card { flex: 1; }

.is-style-nl-icon img, .nl-icon img { width: 52px !important; height: 52px !important; padding: 12px; border-radius: 14px; background: var(--wp--preset--color--tint); }

/* Step numbers */
.nl-step-number { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); font-weight: 800; margin: 0 !important; }

/* ---------- Images ---------- */
.is-style-nl-rounded img { border-radius: var(--nl-radius-l); }
.is-style-nl-portrait img { border-radius: var(--nl-radius-l); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.is-style-nl-circle img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Lists ---------- */
.is-style-nl-checklist { list-style: none; padding-left: 0 !important; }
.is-style-nl-checklist li { position: relative; padding-left: 2em; margin: .55em 0; }
.is-style-nl-checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--wp--preset--color--secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* ---------- FAQ ---------- */
.is-style-nl-faq { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: var(--nl-radius-m); padding: 18px 22px; margin-block-end: 12px !important; }
.is-style-nl-faq + .is-style-nl-faq { margin-block-start: 0 !important; }
.has-surface-background-color .is-style-nl-faq, .has-tint-background-color .is-style-nl-faq { border-color: transparent; }
.is-style-nl-faq summary { font-weight: 700; color: var(--wp--preset--color--primary); cursor: pointer; list-style: none; position: relative; padding-right: 2em; }
.is-style-nl-faq summary::-webkit-details-marker { display: none; }
.is-style-nl-faq summary::after { content: "+"; position: absolute; right: 0; top: -.15em; font-size: 1.5em; font-weight: 400; color: var(--wp--preset--color--link); transition: transform .2s; }
.is-style-nl-faq[open] summary::after { transform: rotate(45deg); }
.is-style-nl-faq[open] summary { margin-bottom: 10px; }
.is-style-nl-faq p { color: var(--wp--preset--color--muted); margin: 0; }
.single-post .is-style-nl-faq { background: var(--wp--preset--color--surface); border-color: transparent; }

/* ---------- Callouts (key takeaways, article CTA) ---------- */
.is-style-nl-takeaways { background: var(--wp--preset--color--tint); border-left: 6px solid var(--wp--preset--color--secondary); border-radius: var(--nl-radius-m); padding: 22px 26px !important; }
.is-style-nl-takeaways > :first-child { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 800; color: var(--wp--preset--color--link); margin: 0; }
.is-style-nl-takeaways ul { margin: .5rem 0 0; padding-left: 1.2em; }
.is-style-nl-takeaways li { margin: .35em 0; }
.is-style-nl-callout { background: var(--wp--preset--color--tint); border-radius: var(--nl-radius-m); padding: 22px 26px !important; }
.is-style-nl-callout p { margin: 0; }
.is-style-nl-callout a { font-weight: 700; }

/* ---------- Tables ---------- */
.is-style-nl-table { overflow-x: auto; }
.is-style-nl-table table { border-collapse: collapse; width: 100%; border-radius: 14px; overflow: hidden; }
.is-style-nl-table th { background: var(--wp--preset--color--primary); color: #fff; text-align: left; padding: 12px 14px; border: 0 !important; }
.is-style-nl-table td { padding: 12px 14px; border: 0 !important; border-bottom: 1px solid var(--wp--preset--color--border) !important; vertical-align: top; }
.is-style-nl-table tbody tr:nth-child(even) td { background: var(--wp--preset--color--surface); }

/* ---------- Testimonials ---------- */
.nl-quote { font-size: 1.05rem; color: var(--wp--preset--color--body) !important; }
.is-style-nl-card p.nl-quote-name, .nl-quote-name { font-weight: 800; color: var(--wp--preset--color--primary); margin-bottom: 0 !important; }
.nl-quote-role { font-size: .9rem; color: var(--wp--preset--color--muted) !important; margin-top: 0 !important; }
.is-style-nl-card p.nl-stars, .nl-stars { color: var(--wp--preset--color--accent); letter-spacing: .15em; font-size: 1.1rem; margin: 0 !important; }

/* ---------- Stats ---------- */
.nl-stat-number { font-size: clamp(2.2rem, 5vw, 3rem) !important; font-weight: 800; line-height: 1; color: var(--wp--preset--color--accent); margin-bottom: .3rem !important; }

/* ---------- Wave divider ---------- */
.nl-wave { display: block; width: 100%; height: clamp(30px, 5vw, 70px); margin: 0 !important; }

/* ---------- Articles ---------- */
.nl-post-card { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: var(--nl-radius-m); overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: var(--nl-shadow); transition: transform .2s, box-shadow .2s; }
.nl-post-card:hover { transform: translateY(-3px); }
.nl-post-card .wp-block-post-featured-image { margin: 0; }
.nl-post-card .wp-block-post-featured-image img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; }
.nl-post-card .nl-post-card-body { padding: 20px 22px 24px; }
.nl-post-card .wp-block-post-title { font-size: 1.2rem; }
.nl-post-card .wp-block-post-terms a { text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 800; }
.nl-post-card .wp-block-post-title a:hover { text-decoration: underline; }
.nl-post-card .wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--muted); font-size: .95rem; }
.wp-block-post-template.is-flex-container > li, .wp-block-post-template.is-layout-grid > li { display: flex; }
.single-post .wp-block-post-featured-image img { border-radius: var(--nl-radius-m); }
.single-post .wp-block-post-content h2 { margin-top: 1.8em; }
.single-post .wp-block-post-content :where(ul, ol) li { margin: .3em 0; }
.nl-post-meta { color: var(--wp--preset--color--muted); font-size: .9rem; }
.nl-post-meta a { color: inherit; }

/* Breadcrumbs */
.nl-breadcrumbs { font-size: .875rem; color: var(--wp--preset--color--muted); }
.nl-breadcrumbs a { color: var(--wp--preset--color--link); text-decoration: none; font-weight: 600; }
.nl-breadcrumbs a:hover { text-decoration: underline; }
.nl-breadcrumbs .sep { margin: 0 .5em; opacity: .6; }

/* Related posts */
.nl-related { background: var(--wp--preset--color--surface); }
.nl-related h2 { margin-bottom: 28px; }
.nl-related-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; padding: 0; margin: 0; }
.nl-related-grid a { text-decoration: none; color: inherit; display: block; height: 100%; }
.nl-related-grid img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; display: block; }
.nl-related-grid h3 { font-size: 1.1rem; margin: 0 !important; padding: 16px 20px 6px; }
.nl-related-grid .nl-related-cat { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--link); padding: 16px 20px 0; display: block; }
.nl-related-grid .nl-related-cat + h3 { padding-top: 4px; }
.nl-related-grid li { padding-bottom: 18px; }
.nl-related-grid br, .nl-related-grid p:empty { display: none; }

/* Pagination */
.wp-block-query-pagination { gap: 8px; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 50%; text-decoration: none; }
.wp-block-query-pagination-numbers .current { background: var(--wp--preset--color--primary); color: #fff; }

/* ---------- Footer ---------- */
.nl-footer { font-size: .95rem; }
.nl-footer h2, .nl-footer h3, .nl-footer .nl-footer-title { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--accent) !important; margin-bottom: 1rem; }
.nl-footer .nl-footer-brand { font-weight: 800; font-size: 1.3rem !important; text-transform: none !important; letter-spacing: -.02em !important; color: #fff !important; }
.nl-footer ul.nl-links { list-style: none; padding: 0; margin: 0; }
.nl-footer ul.nl-links li { margin: 0 0 .55em; }
.nl-footer a { color: rgba(255,255,255,.85) !important; text-decoration: none; }
.nl-footer a:hover { color: #fff !important; text-decoration: underline; }
.nl-footer .nl-contact a { font-weight: 700; color: #fff !important; }
.nl-footer .nl-footer-cta a { color: var(--wp--preset--color--accent) !important; font-weight: 800; }
.nl-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.65); }
.nl-footer-bottom a { color: rgba(255,255,255,.8) !important; }
.nl-footer-bottom p { margin: 0; }

/* ---------- Forms (Fluent Forms and core inputs) ---------- */
.nl-form-card { background: var(--wp--preset--color--base); border-radius: var(--nl-radius-l); padding: clamp(22px, 4vw, 40px) !important; box-shadow: var(--nl-shadow); color: var(--wp--preset--color--body); }
.nl-form-card a:where(:not(.wp-block-button__link)) { color: var(--wp--preset--color--link) !important; }
.nl-form-card :where(h2, h3) { color: var(--wp--preset--color--primary) !important; }
.fluentform .ff-el-form-control, .nl-form-card input:not([type=submit]):not([type=checkbox]):not([type=radio]), .nl-form-card textarea, .nl-form-card select { border: 1px solid var(--wp--preset--color--border) !important; border-radius: 12px !important; padding: 12px 14px !important; font: inherit !important; background: var(--wp--preset--color--surface) !important; }
.fluentform .ff-el-form-control:focus { border-color: var(--wp--preset--color--secondary) !important; box-shadow: 0 0 0 3px var(--wp--preset--color--tint) !important; background: #fff !important; }
.fluentform .ff-el-input--label label { font-weight: 700; color: var(--wp--preset--color--primary); }
.fluentform .ff-btn-submit { background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--on-accent) !important; border-radius: 999px !important; font-weight: 800 !important; padding: 14px 28px !important; border: 0 !important; width: 100%; font-size: 1rem !important; }
.fluentform .ff-btn-submit:hover { background: var(--wp--preset--color--primary) !important; color: #fff !important; }
.nl-form-placeholder { border: 2px dashed var(--wp--preset--color--border); border-radius: var(--nl-radius-m); padding: 28px; text-align: center; color: var(--wp--preset--color--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.nl-hero .wp-block-columns { gap: 32px; }
	.nl-hide-mobile { display: none !important; }
}
