/*
Theme Name: LRS Site
Theme URI: https://launchreadysites.com/
Author: LaunchReadySites
Description: Block theme used by LaunchReadySites niche kits. Colours and texts are set per site at install time.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: lrs-site
*/

:root {
	--s-primary: var(--wp--preset--color--primary);
	--s-accent: var(--wp--preset--color--accent);
	--s-ink: var(--wp--preset--color--ink);
	--s-muted: var(--wp--preset--color--muted);
	--s-surface: var(--wp--preset--color--surface);
	--s-radius: 10px;
	--s-shadow: 0 1px 2px rgba(20, 22, 28, .06), 0 8px 24px rgba(20, 22, 28, .07);
	--s-gap: clamp(4rem, 8vw, 6.5rem);
}

body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* Full-bleed sections inside the constrained post content. */
.site-main .wp-block-post-content > .alignfull { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; max-width: 100vw !important; width: 100vw; }
.site-main { padding: 0 !important; }
.site-main > .wp-block-post-content > * { margin-block-start: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }

/* ---------- Top bar and header ---------- */
.site-topbar { background: var(--s-accent); color: var(--s-ink); font-size: .88rem; padding-block: .55rem; text-align: center; }
.site-topbar p { margin: 0; }
.site-topbar a { color: var(--s-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-left: .35rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid rgba(20, 22, 28, .08); padding-block: 1rem; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { gap: 1.5rem; align-items: center; }
.site-brand, .site-brand a { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--s-ink) !important; text-decoration: none; margin: 0; }
.site-nav { margin-left: auto; font-weight: 500; font-size: .97rem; }
.site-nav a { color: var(--s-ink); text-decoration: none; }
.site-nav a:hover { color: var(--s-primary); text-decoration: underline; text-decoration-color: var(--s-accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-header__cta .wp-block-button__link { background: var(--s-primary); color: #fff; white-space: nowrap; display: inline-flex; align-items: center; gap: .55rem; }
.site-header__cta .wp-block-button__link::before, .is-call-icon .wp-block-button__link::before {
	content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem 1.5rem; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20, 22, 28, .18); }
.is-style-outline .wp-block-button__link, .is-ghost .wp-block-button__link { background: transparent; color: currentColor; border: 2px solid currentColor; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-gap); margin: 0 !important; }
.section.is-surface { background: var(--s-surface); }
.section.is-primary { background: var(--s-primary); color: #fff; }
.section.is-primary h2, .section.is-primary h3 { color: #fff; }
.section.is-accent { background: var(--s-accent); color: var(--s-ink); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem !important; font-weight: 700; color: var(--s-muted); margin-bottom: .6rem !important; display: flex; align-items: center; gap: .55rem; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--s-accent); display: inline-block; }
.is-primary .eyebrow { color: rgba(255, 255, 255, .75); }
.lead { font-size: 1.15rem; color: var(--s-muted); max-width: 62ch; }
.is-primary .lead { color: rgba(255, 255, 255, .82); }

/* ---------- Hero ---------- */
.hero { background: var(--s-primary); color: #fff; padding-block: clamp(4rem, 9vw, 7rem); margin: 0 !important; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.6px, transparent 1.6px); background-size: 18px 18px; pointer-events: none; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 mark { background: none; color: var(--s-accent); }
.hero .lead { color: rgba(255, 255, 255, .85); }
.hero .wp-block-columns { align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero .is-style-outline .wp-block-button__link { color: #fff; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-weight: 600; font-size: .95rem; }
.checks li { display: flex; align-items: center; gap: .5rem; }
.checks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--s-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161C' 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 / 12px no-repeat; flex: none; }
.hero__visual { position: relative; }
.hero__visual::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--s-accent); border-radius: var(--s-radius); }
.hero__visual > * { position: relative; }

/* ---------- Photo placeholders (replaced by the client's photos) ---------- */
.ph { position: relative; border-radius: var(--s-radius); min-height: 320px; display: flex; align-items: flex-end; padding: 1.1rem !important; color: var(--s-muted); font-size: .85rem; font-weight: 600;
	background: repeating-linear-gradient(135deg, #E7E9EF 0 14px, #EEF0F4 14px 28px); border: 1px solid rgba(20, 22, 28, .06); }
.ph p { margin: 0; background: #fff; padding: .35rem .65rem; border-radius: 5px; }
.ph.is-tall { min-height: 440px; }
.ph.is-short { min-height: 220px; }

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--s-radius); display: block; }
.photo.is-tall img { height: 480px; }
.card.has-media { padding-top: 0 !important; overflow: hidden; }
.card.has-media .card__media { margin: 0 -2rem 1.4rem !important; }
.card.has-media .card__media img { height: 210px; border-radius: 0; }
.card.has-media .icon { margin-top: -3.1rem; position: relative; box-shadow: 0 0 0 5px #fff; }
@media (max-width: 781px) { .photo img, .photo.is-tall img { height: 300px; } }

/* ---------- Cards ---------- */
.cards { gap: 1.5rem !important; }
.card { background: #fff; border-radius: var(--s-radius); padding: 2rem !important; box-shadow: var(--s-shadow); border-top: 4px solid var(--s-accent); height: 100%; transition: transform .2s ease; }
.card:hover { transform: translateY(-4px); }
.card h3 { margin-top: 1.1rem; margin-bottom: .5rem; font-size: 1.3rem; }
.card p { color: var(--s-muted); margin: 0; }
.card .card__link { margin-top: 1rem !important; font-weight: 700; }
.card .card__link a { text-decoration: none; }
.card .card__link a::after { content: " →"; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--s-primary); display: grid; place-items: center; }
.icon::before { content: ""; width: 26px; height: 26px; background: var(--s-accent); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.icon.i-wrench { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0 5 5L21 13l-8 8a2.8 2.8 0 0 1-4-4l8-8-1.3-1.3a4 4 0 0 0-5-5l3 3-2 2-3-3a4 4 0 0 0 5 5'/%3E%3C/svg%3E"); }
.icon.i-tool { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='12' rx='2'/%3E%3Cpath d='M8 8V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v3M3 13h18'/%3E%3C/svg%3E"); }
.icon.i-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.icon.i-clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.icon.i-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.icon.i-quote { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; gap: 1.5rem !important; }
.step { counter-increment: step; padding-top: 1rem !important; border-top: 2px solid rgba(255, 255, 255, .25); }
.step::before { content: "0" counter(step); display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--s-accent); margin-bottom: .8rem; }
.step h3 { margin: 0 0 .4rem; font-size: 1.25rem; }
.step p { margin: 0; opacity: .85; }

/* ---------- Split, list, areas ---------- */
.split { align-items: center; gap: clamp(2rem, 5vw, 4.5rem) !important; }
.ticks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ticks li { padding-left: 2rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--s-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161C' 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 / 12px no-repeat; }
.areas { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.areas li { background: #fff; border: 1px solid rgba(20, 22, 28, .1); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: .93rem; }

/* ---------- Before / after ---------- */
.ba { gap: 1rem !important; }
.ba .ph { min-height: 260px; }
.ba .ph::before { content: attr(data-label); position: absolute; top: 1rem; left: 1rem; background: var(--s-ink); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 4px; }
.ba .ph.is-after::before { background: var(--s-accent); color: var(--s-ink); }

/* ---------- Reviews (real reviews only) ---------- */
.review-slot { border: 2px dashed rgba(20, 22, 28, .18); border-radius: var(--s-radius); padding: 1.8rem !important; background: #fff; height: 100%; }
.review-slot p { color: var(--s-muted); margin: 0; }
.review-slot .stars { color: var(--s-accent); letter-spacing: .15em; font-size: 1.1rem; margin-bottom: .7rem !important; -webkit-text-stroke: 1px var(--s-ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--s-accent); padding-block: clamp(3rem, 6vw, 4.5rem); margin: 0 !important; }
.cta-band h2 { margin: 0; }
.cta-band .wp-block-columns { align-items: center; }
.cta-band .wp-block-button__link { background: var(--s-ink); color: #fff; }

/* ---------- Quote form ---------- */
.quote-box { background: #fff; border-radius: var(--s-radius); box-shadow: var(--s-shadow); padding: clamp(1.5rem, 4vw, 2.5rem) !important; color: var(--s-ink); }
.quote-box h2, .quote-box h3 { color: var(--s-ink) !important; }
div.wpforms-container-full .wpforms-form input[type=text], div.wpforms-container-full .wpforms-form input[type=email], div.wpforms-container-full .wpforms-form input[type=tel],
div.wpforms-container-full .wpforms-form select, div.wpforms-container-full .wpforms-form textarea { border-radius: 6px !important; border-color: rgba(20, 22, 28, .2) !important; max-width: 100% !important; }
div.wpforms-container-full .wpforms-form button[type=submit] { background: var(--s-primary) !important; color: #fff !important; border-radius: 6px !important; font-weight: 700 !important; padding: .85rem 1.6rem !important; height: auto !important; }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--s-radius); overflow: hidden; line-height: 0; }
.map-frame iframe { width: 100%; height: 380px; border: 0; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--s-surface); padding-block: clamp(3rem, 6vw, 4.5rem); margin: 0 !important; border-bottom: 4px solid var(--s-accent); }
.page-hero h1 { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--s-ink); color: rgba(255, 255, 255, .78); padding-block: 4rem 2rem; font-size: .95rem; }
.site-footer .site-brand, .site-footer .site-brand a { color: #fff !important; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #fff; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.5rem; margin-top: 2.5rem !important; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.site-header__inner { gap: .75rem; }
	.site-brand, .site-brand a { font-size: 1.08rem; white-space: nowrap; }
	.site-header__cta .wp-block-button__link { font-size: .82rem; padding: .6rem .8rem; gap: .4rem; }
	.site-topbar strong { display: none; }
}
@media (max-width: 781px) {
	.hero__visual::before { inset: 14px -10px -14px 10px; }
	.ph.is-tall { min-height: 300px; }
	.hero h1 { max-width: none; }
}
