/* ==========================================================================
   Inner pages, forms, prose
   ========================================================================== */

/* ---------- page hero ---------- */
.phero {
	padding: 52px 0 40px;
	background:
		radial-gradient(700px 260px at 90% -20%, rgba(0, 107, 58, 0.09), transparent 70%),
		linear-gradient(180deg, var(--tint), #f9fbfa);
	border-bottom: 1px solid var(--line);
	margin-bottom: 44px;
}
.phero h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.038em; margin-bottom: 14px; max-width: 880px; }
.phero .lead { max-width: 660px; margin: 0; }
.phero--compact { padding: 36px 0 28px; margin-bottom: 36px; }
.phero--compact h1 { font-size: clamp(30px, 3.4vw, 42px); margin: 0; }
.phero--shop { margin-bottom: 40px; }
@media (max-width: 640px) { .phero { padding: 34px 0 28px; margin-bottom: 28px; } }

/* ---------- service / form pages ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: start; }
.svc__side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.svc__main > .prose:first-child { margin-top: 0; }
@media (max-width: 960px) {
	.svc { grid-template-columns: 1fr; gap: 40px; }
	.svc__side { position: static; }
}

.form-card {
	padding: 34px; background: #fff;
	border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-card__note { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .form-card { padding: 24px 18px; border-radius: 18px; } }

.info-card { padding: 30px; background: var(--tint); border: 1px solid var(--line); border-radius: 20px; }
.info-card h2 { font-size: 20px; margin-bottom: 20px; }
.info-list { list-style: none; display: grid; gap: 18px; margin-bottom: 24px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink); font-weight: 500; line-height: 1.5; }
.info-list li > .icon { flex: none; width: 40px; height: 40px; padding: 10px; background: #fff; color: var(--brand); border-radius: 12px; border: 1px solid var(--line); }
.info-list small { display: block; margin-bottom: 1px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.info-list a { color: var(--ink); font-weight: 600; }
.info-list a:hover { color: var(--brand); }

.callout {
	display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding: 20px 24px;
	background: var(--dark); color: #fff; border-radius: 18px;
	transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.callout:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.callout__ico { display: grid; place-items: center; width: 52px; height: 52px; background: var(--brand); border-radius: 14px; }
.callout__ico .icon { width: 26px; height: 26px; }
.callout small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.callout strong { font-family: var(--font-head); font-size: 26px; letter-spacing: -0.02em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row--center { justify-content: center; }

/* ---------- forms ---------- */
.rsc-form { position: relative; }
.rsc-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.rsc-form__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 22px; }
.rsc-field { grid-column: span 6; min-width: 0; }
.rsc-field--half { grid-column: span 3; }
.rsc-field--third { grid-column: span 2; }
.rsc-field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.rsc-req { color: var(--danger); }
.rsc-field input[type="text"],
.rsc-field input[type="email"],
.rsc-field input[type="tel"],
.rsc-field select,
.rsc-field textarea,
.input, .woo-page input[type="text"], .woo-page input[type="email"], .woo-page input[type="tel"], .woo-page input[type="password"], .woo-page input[type="number"], .woo-page select, .woo-page textarea {
	width: 100%; height: 50px; padding: 0 16px;
	background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px;
	font-size: 15px; color: var(--ink);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.rsc-field textarea, .woo-page textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.rsc-field select, .woo-page select {
	appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235f7066' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.rsc-field input:hover, .rsc-field select:hover, .rsc-field textarea:hover { border-color: var(--brand); }
.rsc-field input:focus, .rsc-field select:focus, .rsc-field textarea:focus,
.woo-page input:focus, .woo-page select:focus, .woo-page textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 107, 58, 0.12); }
.rsc-field.has-error input, .rsc-field.has-error select, .rsc-field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.1); }
.rsc-field__err { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--danger); }
.rsc-check { display: flex !important; align-items: flex-start; gap: 11px; font-weight: 500 !important; color: var(--text) !important; cursor: pointer; line-height: 1.45; }
.rsc-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.rsc-form__submit { width: 100%; }
.rsc-form__msg { margin: 16px 0 0; padding: 0; font-size: 15px; font-weight: 600; }
.rsc-form__msg.is-ok { padding: 14px 18px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); border-radius: 12px; }
.rsc-form__msg.is-err { padding: 14px 18px; background: #fdecea; color: var(--danger); border-radius: 12px; }
.rsc-form.is-done .rsc-form__grid, .rsc-form.is-done .rsc-form__submit { display: none; }
@media (max-width: 560px) {
	.rsc-field--half, .rsc-field--third { grid-column: span 6; }
	.rsc-field--third { grid-column: span 3; }
	.rsc-field--third:last-of-type { grid-column: span 6; }
}

/* ---------- prose ---------- */
.prose { color: var(--text); font-size: 17px; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 28px; margin: 1.7em 0 0.55em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 0.5em; }
.prose p { margin-bottom: 1.1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 32px; }
.prose ul li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--brand) 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.prose ol { counter-reset: step; }
.prose ol li { position: relative; padding-left: 46px; counter-increment: step; }
.prose ol li::before {
	content: counter(step); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; display: grid; place-items: center;
	background: var(--brand-50); color: var(--brand); border-radius: 50%; font-family: var(--font-head); font-weight: 800; font-size: 14px;
}
.prose img { border-radius: 16px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font-size: 19px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose__fig { margin: 0 0 32px; }

/* ---------- blog / search / 404 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.post-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 24px; }
.post-card time { font-size: 13px; color: var(--muted); }
.post-card h2 { font-size: 21px; margin: 6px 0 10px; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--brand); }
.search-results { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.search-results a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); }
.search-results a:hover { border-color: var(--brand); color: var(--brand); }
.notfound { text-align: center; }
.notfound__code { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(90px, 18vw, 180px); line-height: 1; letter-spacing: -0.06em; background: linear-gradient(135deg, var(--brand), #3fb27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- modal (ask a question) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 24, 17, 0.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.2s; }
.modal__panel {
	position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
	padding: 34px; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
	opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.2s, transform 0.25s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--tint); border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; transition: background 0.15s; }
.modal__close:hover { background: var(--brand-50); color: var(--brand); }
.modal__close .icon { width: 18px; height: 18px; }
.modal__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.modal__eyebrow .icon { width: 16px; height: 16px; }
.modal__panel h2 { font-size: 26px; margin: 8px 0 18px; }
.modal__product { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 12px 14px; background: var(--tint); border: 1px solid var(--line); border-radius: 14px; }
.modal__product img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: #fff; }
.modal__product small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.modal__product strong { display: block; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.modal .rsc-field textarea { min-height: 110px; }
body.modal-open { overflow: hidden; }
@media (max-width: 520px) { .modal__panel { padding: 26px 18px; border-radius: 18px; } }

/* ---------- service pages: balanced layout ---------- */
.svc { gap: 56px; align-items: start; }
.svc__main { display: grid; gap: 28px; min-width: 0; }
.svc__main > * { margin: 0; }
.svc__main .callout { margin-bottom: 0; }
.svc__main .prose { padding: 34px 36px; background: #fff; border: 1px solid var(--line); border-radius: 22px; font-size: 16.5px; line-height: 1.7; }
.svc__main .prose h2 { font-size: 22px; margin: 0 0 14px; }
.svc__main .prose h2:not(:first-child) { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.svc__main .prose > :last-child { margin-bottom: 0; }
.svc__main .prose:empty { display: none; }
.svc__side { gap: 0; }

.perks { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; }
.perks li { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--tint); border: 1px solid var(--line); border-radius: 18px; }
.perks .icon { width: 42px; height: 42px; padding: 10px; background: #fff; color: var(--brand); border: 1px solid var(--line); border-radius: 12px; }
.perks strong { display: block; font-family: var(--font-head); font-size: 15.5px; color: var(--ink); line-height: 1.25; }
.perks small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.4; }

.callout--light { background: var(--tint); color: var(--ink); border: 1px solid var(--line); padding: 16px 22px; }
.callout--light:hover { color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.callout--light small { color: var(--muted); }
.callout--light strong { font-size: 24px; flex: 1; }
.callout--light > .icon { width: 22px; height: 22px; color: var(--brand); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile { position: relative; display: block; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s var(--ease); }
a.tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tile > .icon { width: 40px; height: 40px; padding: 10px; margin-bottom: 14px; background: var(--brand-50); color: var(--brand); border-radius: 12px; }
.tile small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tile strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.tile__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--brand); }
.tile__link .icon { width: 14px; height: 14px; }

@media (max-width: 960px) { .svc__main { order: 2; } .svc__side { order: 1; } }
@media (max-width: 640px) {
	.perks { grid-template-columns: 1fr; }
	.perks li { flex-direction: row; align-items: center; }
	.tiles { grid-template-columns: 1fr; }
	.svc__main .prose { padding: 26px 22px; }
}

.svc-info { margin-top: 28px; }
.tiles--row { grid-template-columns: repeat(4, 1fr); }
.tile strong a { color: var(--ink); }
.tile strong a:hover { color: var(--brand); }
.svc__main .prose p:empty { display: none; }
@media (max-width: 1040px) { .tiles--row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tiles--row { grid-template-columns: 1fr; } }
.svc__main .prose p:has(> br:only-child) { display: none; }
@media (min-width: 961px) {
	.svc { align-items: stretch; }
	.svc__side { position: static; }
	.svc__side .form-card { height: 100%; }
	.svc__main:has(.perks) { grid-template-rows: 1fr auto; }
}
.svc__main .prose p { margin-bottom: 0.7em; }

/* ---------- clean pass: dark contact card + hover on every box ---------- */
.svc__main .prose { padding: 32px 34px; }
.dcard { padding: 30px 32px; background: linear-gradient(160deg, #0f2a1d, #08170f); color: #fff; border-radius: 22px; position: relative; overflow: hidden; }
.dcard::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 107, 58, 0.55), transparent 70%); pointer-events: none; }
.dcard__eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.dcard__phone { display: inline-flex; align-items: center; gap: 12px; margin: 8px 0 20px; font-family: var(--font-head); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.dcard__phone:hover { color: #fff; opacity: 0.9; }
.dcard__phone .icon { width: 28px; height: 28px; padding: 6px; background: var(--brand); border-radius: 9px; }
.dcard__list { list-style: none; display: grid; gap: 12px; padding: 18px 0 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.dcard__list li { display: flex; gap: 12px; align-items: flex-start; }
.dcard__list .icon { flex: none; width: 17px; height: 17px; margin-top: 3px; color: #5fd49a; }
.dcard__list a { color: #fff; }
.dcard__list a:hover { text-decoration: underline; }

/* hover lift on every card-like box, linked or not */
.svc__main .prose, .form-card, .info-card, .tile, .callout, .dcard, .modal__product,
.review, .trust li, .soldbox, .why__item, .post-card {
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.svc__main .prose:hover, .form-card:hover, .info-card:hover, .tile:hover, .dcard:hover,
.review:hover, .trust li:hover, .soldbox:hover, .post-card:hover {
	transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong);
}
.tile:hover, a.tile:hover { border-color: var(--brand); }
.why__item:hover { transform: translateY(-4px); }
.why__item:hover .why__ico { background: var(--brand); color: #fff; }
.why__ico { transition: background 0.25s, color 0.25s; }
@media (prefers-reduced-motion: reduce) {
	.svc__main .prose:hover, .form-card:hover, .info-card:hover, .tile:hover, .dcard:hover, .review:hover, .trust li:hover, .soldbox:hover, .post-card:hover, .why__item:hover { transform: none; }
}
@media (min-width: 961px) { .svc__main:has(.dcard) { grid-template-rows: 1fr auto; } }
.svc__main .prose:not(:has(h2, ul, ol)) { padding: 22px 30px; } .svc__main .prose:not(:has(h2, ul, ol)) p:last-of-type { margin-bottom: 0; }
.callout__ico, .callout--light .callout__ico { color: #fff; }

.ghl-embed { margin: 0 -4px; }
.ghl-embed iframe { display: block; width: 100%; border: 0; }

.crumbs--rm { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs--rm p { margin: 0; }
.crumbs--rm a { color: var(--muted); }
.crumbs--rm a:hover { color: var(--brand); }

/* ---------- GoHighLevel form: loading placeholder ---------- */
.ghl-embed { position: relative; }
.ghl-embed iframe { position: relative; z-index: 1; transition: opacity .35s var(--ease); }
.ghl-embed.is-loading iframe { opacity: 0; }
.ghl-loader { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; gap: 14px; padding: 4px 6px; background: #fff; pointer-events: none; }
.ghl-embed.is-loading .ghl-loader { display: flex; animation: ghl-hide 0s linear 14s forwards; }
.ghl-loader__label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ghl-loader__spin { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--brand-100); border-top-color: var(--brand); animation: ghl-spin .8s linear infinite; }
.ghl-skel { display: block; height: 46px; border-radius: 10px; background: linear-gradient(90deg, #eef2ef 25%, #f8faf8 50%, #eef2ef 75%); background-size: 200% 100%; animation: ghl-shimmer 1.4s ease-in-out infinite; }
.ghl-skel--s { height: 12px; width: 32%; border-radius: 6px; margin-top: 4px; }
.ghl-skel--btn { height: 52px; margin-top: 10px; background: linear-gradient(90deg, var(--brand-100) 25%, var(--brand-50) 50%, var(--brand-100) 75%); background-size: 200% 100%; }
@keyframes ghl-spin { to { transform: rotate(360deg); } }
@keyframes ghl-shimmer { to { background-position: -200% 0; } }
@keyframes ghl-hide { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .ghl-loader__spin, .ghl-skel { animation: none; } }
.phero--flush { margin-bottom: 0; }
