/*
Theme Name: Home Inspector
Theme URI: https://demo.altimaweb.com
Description: A polished block theme for home inspection companies. Four built-in looks, each with its own layout and style (Classic Navy, Heritage Green, Coastal Teal and red, white & blue Americana), chosen in Appearance → Editor → Styles, a photo-led homepage with services and starting prices, inspection packages, a sample report preview, reviews, FAQ and booking, plus an Inspector Portal button in the header and footer. Every section is editable in the Site Editor.
Author: Altima Web
Author URI: https://altimaweb.com
Version: 2.1.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: home-inspector
Tags: block-theme, full-site-editing, block-styles, style-variations, business, one-column, custom-colors, editor-style, wide-blocks
*/

/* ===================== Base ===================== */
html { scroll-behavior: smooth; }
:where(#services, #why, #process, #report, #pricing, #reviews, #faq, #book) { scroll-margin-top: 96px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1; }
.wp-site-blocks > * + * { margin-block-start: 0; }
img { height: auto; }
.wp-element-button, .wp-block-button__link { transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 2px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }

/* Sections */
.hi-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.hi-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--wp--preset--font-family--inter); font-size: .8rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent-dark); margin: 0; }
.hi-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.has-text-align-center.hi-eyebrow { justify-content: center; }
.hi-on-dark .hi-eyebrow, .hi-eyebrow.is-light { color: var(--wp--preset--color--highlight); }
.hi-lede { font-size: var(--wp--preset--font-size--large) !important; color: var(--wp--preset--color--muted); line-height: 1.6; }
.hi-on-dark h1, .hi-on-dark h2, .hi-on-dark h3 { color: #fff; }
.hi-on-dark p, .hi-on-dark li { color: var(--wp--preset--color--primary-text); }
.hi-mark { color: var(--wp--preset--color--accent); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--wp--preset--color--accent) 22%, transparent) 62%); padding: 0 .08em; }

/* Images */
.hi-img img, .hi-img { border-radius: var(--wp--custom--radius--image); }
.hi-img img { display: block; width: 100%; object-fit: cover; box-shadow: 0 30px 60px -20px rgba(9,27,45,.35); }

/* ===================== Demo look switcher ===================== */
.hi-switcher { background: #0b0f14; color: #e8edf2; font: 600 13px/1.2 var(--wp--preset--font-family--inter); position: relative; z-index: 60; }
.hi-switcher__inner { max-width: 1200px; margin: 0 auto; padding: 8px var(--wp--preset--spacing--30); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hi-switcher__label { opacity: .7; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.hi-switcher__options { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.hi-switcher__btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: inherit; font: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.hi-switcher__btn:hover { background: rgba(255,255,255,.1); }
.hi-switcher__btn[aria-pressed="true"] { background: #fff; color: #0b0f14; border-color: #fff; }
.hi-switcher__swatch { display: inline-flex; }
.hi-switcher__swatch i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #0b0f14; margin-left: -5px; }
.hi-switcher__swatch i:first-child { margin-left: 0; }
.hi-switcher__btn[aria-pressed="true"] .hi-switcher__swatch i { border-color: #fff; }
.hi-switcher__cta { color: #fff; text-decoration: none; margin-left: auto; padding: 6px 12px; border-radius: 999px; background: linear-gradient(90deg, #ff7a18, #ff4d6d); }
.hi-switcher__cta:hover { color: #fff; filter: brightness(1.08); }
@media (max-width: 900px) { .hi-switcher__cta { display: none; } .hi-switcher__label { display: none; } }
@media (max-width: 520px) { .hi-switcher__btn { padding: 5px 9px 5px 6px; font-size: 12px; } }

/* ===================== Top bar & header ===================== */
.hi-topbar p { margin: 0; }
.hi-topbar a { color: inherit; text-decoration: none; }
.hi-topbar a:hover { color: var(--wp--preset--color--highlight); }
.hi-topbar svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; fill: var(--wp--preset--color--highlight); }
.hi-header { box-shadow: 0 1px 0 var(--wp--preset--color--line); backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, #fff 92%, transparent) !important; }
.wp-block-template-part:has(.hi-header) { position: sticky; top: -37px; z-index: 50; }
.admin-bar .wp-block-template-part:has(.hi-header) { top: -5px; }
@media (max-width: 781px) { .wp-block-template-part:has(.hi-header) { position: relative; top: 0; } }
.hi-brand { flex-wrap: nowrap !important; }
.hi-brand svg { width: 44px; height: 44px; flex: none; display: block; }
.hi-brand svg .hi-logo-bg { fill: var(--wp--preset--color--primary); }
.hi-brand svg .hi-logo-accent { stroke: var(--wp--preset--color--accent); }
.hi-brand svg .hi-logo-check { stroke: var(--wp--preset--color--primary); }
.hi-brand-name { font-family: var(--wp--custom--font--heading) !important; font-weight: var(--wp--custom--font--heading-weight) !important; letter-spacing: -.01em; margin: 0; }
.hi-brand-name a { text-decoration: none; color: var(--wp--preset--color--primary); }
.hi-brand-sub { font-size: .68rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-dark); white-space: nowrap; margin: 0; }
.hi-header .wp-block-navigation a { color: var(--wp--preset--color--ink); }
.hi-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-dark); }
.hi-header .wp-block-button__link, .hi-header .wp-block-navigation-item__content { white-space: nowrap; }
.hi-header-phone a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--wp--preset--color--primary); text-decoration: none; white-space: nowrap; }
.hi-header-phone svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--wp--preset--color--accent-soft); fill: var(--wp--preset--color--accent-dark); box-sizing: border-box; }
.hi-header-phone small { display: block; font-weight: 600; font-size: .7rem; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: .08em; line-height: 1; }
.hi-portal-btn .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; }
.hi-portal-btn .wp-block-button__link::before {
  content: ""; width: 15px; height: 15px; 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='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V11a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 5a3 3 0 1 1 6 0v3H9V6zm3 7a2 2 0 0 1 1 3.73V19h-2v-2.27A2 2 0 0 1 12 13z'/%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='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V11a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 5a3 3 0 1 1 6 0v3H9V6zm3 7a2 2 0 0 1 1 3.73V19h-2v-2.27A2 2 0 0 1 12 13z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hi-header .hi-portal-btn .wp-block-button__link { background: transparent; color: var(--wp--preset--color--primary); border: 2px solid var(--wp--preset--color--line); }
.hi-header .hi-portal-btn .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary); color: #fff; }
/* Collapse the menu into its hamburger before it wraps (core only does this below 600px). */
@media (max-width: 1280px) {
  .hi-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .hi-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.hi-header .wp-block-navigation__container { flex-wrap: nowrap; }
@media (max-width: 1599px) { .hi-header-phone { display: none; } }
@media (max-width: 781px) { .hi-topbar .hi-hide-sm { display: none; } }
@media (max-width: 600px) {
  .hi-topbar .hi-hide-xs { display: none; }
  .hi-header .hi-book-btn, .hi-brand-sub { display: none; }
  .hi-header { padding-left: 14px !important; padding-right: 14px !important; }
  .hi-header .hi-header-actions { gap: 8px !important; }
  .hi-header .wp-block-button__link { padding: 9px 12px !important; font-size: .86rem !important; }
  .hi-brand svg { width: 36px; height: 36px; }
  .hi-header .hi-brand-name { font-size: 1rem !important; }
}

/* ===================== Hero ===================== */
.hi-hero { position: relative; overflow: hidden; background:
  radial-gradient(1100px 500px at 85% -10%, color-mix(in srgb, var(--wp--preset--color--accent) 14%, transparent), transparent 60%),
  radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--wp--preset--color--primary) 9%, transparent) 1px, transparent 0) 0 0/22px 22px,
  var(--wp--preset--color--surface) !important; }
.hi-hero h1 { text-wrap: balance; }
.hi-rating-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 14px rgba(16,24,40,.06); font-size: .88rem; font-weight: 600; color: var(--wp--preset--color--ink); margin: 0; }
.hi-rating-pill .hi-avatars { display: inline-flex; }
.hi-rating-pill .hi-avatars span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-size: .68rem; font-weight: 800; color: #fff; background: var(--wp--preset--color--primary); }
.hi-rating-pill .hi-avatars span:first-child { margin-left: 0; background: var(--wp--preset--color--accent); }
.hi-rating-pill .hi-avatars span:nth-child(3) { background: var(--wp--preset--color--success); }
.hi-stars { color: var(--wp--preset--color--highlight); letter-spacing: 1px; }
.hi-checks { list-style: none; padding: 0 !important; margin: 10px 0 0 !important; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .95rem; color: var(--wp--preset--color--ink); }
.hi-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hi-checks svg { width: 20px; height: 20px; fill: var(--wp--preset--color--success); flex: none; }
.hi-hero-visual { position: relative; }
.hi-hero-visual .hi-hero-photo { border-radius: var(--wp--custom--radius--image); overflow: hidden; aspect-ratio: 4/4.4; box-shadow: 0 40px 80px -30px rgba(9,27,45,.45); }
.hi-hero-visual .hi-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hi-float { position: absolute; background: #fff; border-radius: calc(var(--wp--custom--radius--card) * .8 + 4px); box-shadow: 0 20px 50px -12px rgba(9,27,45,.35); padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: .9rem; line-height: 1.3; color: var(--wp--preset--color--ink); animation: hi-bob 6s ease-in-out infinite; }
.hi-float b { display: block; color: var(--wp--preset--color--primary); font-size: .95rem; }
.hi-float small { color: var(--wp--preset--color--muted); }
.hi-float .hi-float-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--wp--preset--color--accent-soft); }
.hi-float .hi-float-icon svg { width: 22px; height: 22px; fill: var(--wp--preset--color--accent-dark); }
.hi-float.is-report { left: -28px; bottom: 34px; }
.hi-float.is-report .hi-float-icon { background: #e3f5ea; }
.hi-float.is-report .hi-float-icon svg { fill: #1f8a4c; }
.hi-float.is-badge { right: -18px; top: 30px; animation-delay: -3s; flex-direction: column; align-items: flex-start; gap: 2px; }
.hi-float.is-badge strong { font-family: var(--wp--custom--font--heading); font-size: 1.9rem; line-height: 1; color: var(--wp--preset--color--primary); }
@keyframes hi-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hi-float { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 781px) {
  .hi-float.is-report { left: 10px; bottom: 14px; }
  .hi-float.is-badge { right: 10px; top: 14px; }
  .hi-hero-visual .hi-hero-photo { aspect-ratio: 4/3.4; }
}

/* ===================== Credentials strip ===================== */
.hi-creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; list-style: none; padding: 0 !important; margin: 0; }
.hi-creds li { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--wp--preset--color--primary); font-size: .95rem; }
.hi-creds svg { width: 26px; height: 26px; fill: var(--wp--preset--color--accent); flex: none; }

/* ===================== Cards ===================== */
.hi-card { height: 100%; box-sizing: border-box; border-radius: var(--wp--custom--radius--card) !important; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hi-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px rgba(9,27,45,.22); border-color: color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent) !important; }
.hi-icon { width: 56px; height: 56px; border-radius: calc(var(--wp--custom--radius--card) * .6 + 4px); display: grid; place-items: center; background: var(--wp--preset--color--accent-soft); }
.hi-icon svg { width: 28px; height: 28px; fill: var(--wp--preset--color--accent-dark); }
.hi-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; margin-top: auto !important; border-top: 1px dashed var(--wp--preset--color--line); }
.hi-card-foot .hi-price { font-size: .88rem; color: var(--wp--preset--color--muted); }
.hi-card-foot .hi-price b { font-family: var(--wp--custom--font--heading); font-size: 1.3rem; color: var(--wp--preset--color--primary); }
.hi-card-foot a { font-weight: 700; color: var(--wp--preset--color--accent-dark); text-decoration: none; white-space: nowrap; }
.hi-card-foot a:hover { text-decoration: underline; }
.hi-service { display: flex; flex-direction: column; }
.wp-block-columns.hi-grid > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.hi-grid > .wp-block-column > .hi-card { flex: 1; }

/* ===================== Why us ===================== */
.hi-why-visual { position: relative; }
.hi-why-visual .hi-stat-card { position: absolute; right: -20px; bottom: -28px; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); padding: 22px 26px; border-radius: var(--wp--custom--radius--card); box-shadow: 0 24px 50px -16px rgba(9,27,45,.4); }
.hi-why-visual .hi-stat-card strong { display: block; font-family: var(--wp--custom--font--heading); font-size: 2.6rem; line-height: 1; }
.hi-why-visual .hi-stat-card span { font-weight: 600; font-size: .9rem; opacity: .9; }
@media (max-width: 781px) { .hi-why-visual .hi-stat-card { right: 12px; bottom: 12px; padding: 16px 18px; } .hi-why-visual .hi-stat-card strong { font-size: 2rem; } }
.hi-feature { display: flex; gap: 16px; align-items: flex-start; }
.hi-feature .hi-icon { width: 48px; height: 48px; flex: none; }
.hi-feature .hi-icon svg { width: 24px; height: 24px; }
.hi-feature h3 { margin: 0 0 4px; font-size: 1.1rem; }
.hi-feature p { margin: 0; color: var(--wp--preset--color--muted); }
.hi-features { display: grid; gap: 22px; }

/* ===================== Stats band ===================== */
.hi-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.hi-stats strong { display: block; font-family: var(--wp--custom--font--heading); font-weight: var(--wp--custom--font--heading-weight); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: #fff; }
.hi-stats span { display: block; margin-top: 8px; color: var(--wp--preset--color--primary-text); font-weight: 500; }
@media (max-width: 700px) { .hi-stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* ===================== Process ===================== */
.hi-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; list-style: none; padding: 0 !important; margin: 0; }
.hi-steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; border-top: 2px dashed color-mix(in srgb, var(--wp--preset--color--accent) 40%, transparent); }
.hi-steps li { position: relative; text-align: center; }
.hi-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); font-family: var(--wp--custom--font--heading); font-weight: 800; font-size: 1.3rem; box-shadow: 0 0 0 8px var(--wp--preset--color--surface); position: relative; }
.hi-steps h3 { margin: 0 0 6px; font-size: 1.12rem; }
.hi-steps p { margin: 0; color: var(--wp--preset--color--muted); font-size: .97rem; }
@media (max-width: 900px) { .hi-steps { grid-template-columns: 1fr 1fr; } .hi-steps::before { display: none; } }
@media (max-width: 520px) { .hi-steps { grid-template-columns: 1fr; } }

/* ===================== Sample report ===================== */
.hi-report-section { background: linear-gradient(160deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-deep) 100%) !important; position: relative; overflow: hidden; }
.hi-report-section::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent), transparent 70%); pointer-events: none; }
.hi-device { background: #fff; border-radius: calc(var(--wp--custom--radius--card) + 6px); padding: 10px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.55); position: relative; z-index: 1; }
.hi-device-bar { display: flex; gap: 6px; padding: 6px 8px 12px; }
.hi-device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e7ec; }
.hi-device-inner { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--card); padding: 20px 22px; color: var(--wp--preset--color--ink); font-size: .92rem; }
.hi-report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px solid var(--wp--preset--color--primary); }
.hi-report-head b { color: var(--wp--preset--color--primary); font-family: var(--wp--custom--font--heading); font-size: 1.05rem; }
.hi-report-head small { display: block; color: var(--wp--preset--color--muted); }
.hi-report-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.hi-report-score div { border-radius: 10px; padding: 10px; text-align: center; font-size: .78rem; font-weight: 600; }
.hi-report-score div b { display: block; font-size: 1.35rem; font-family: var(--wp--custom--font--heading); }
.hi-report-score .ok { background: #e3f5ea; color: #17643a; }
.hi-report-score .warn { background: #fff1dc; color: #8a4b00; }
.hi-report-score .bad { background: #fde4e4; color: #9b1c1c; }
.hi-report-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--wp--preset--color--line); }
.hi-report-row:last-child { border-bottom: 0; }
.hi-report-row span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.hi-report-row .thumb { width: 34px; height: 34px; border-radius: 8px; background-size: cover; background-position: center; flex: none; }
.hi-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.hi-badge.ok { background: #e3f5ea; color: #17643a; }
.hi-badge.warn { background: #fff1dc; color: #8a4b00; }
.hi-badge.bad { background: #fde4e4; color: #9b1c1c; }
.hi-tick-list { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.hi-tick-list li { position: relative; padding-left: 30px; }
.hi-tick-list li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat; }
@media (max-width: 520px) { .hi-tick-list { grid-template-columns: 1fr; } }

/* ===================== Gallery ===================== */
.hi-mosaic { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 250px 250px; gap: 16px; }
.hi-mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--wp--custom--radius--image); }
.hi-mosaic figure:first-child { grid-row: span 2; }
.hi-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hi-mosaic figure:hover img { transform: scale(1.04); }
.hi-mosaic figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); color: var(--wp--preset--color--primary); font-weight: 700; font-size: .85rem; padding: 7px 12px; border-radius: 999px; }
@media (max-width: 700px) { .hi-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 180px; min-height: 0; } .hi-mosaic figure:first-child { grid-column: span 2; grid-row: auto; } }

/* ===================== Pricing ===================== */
.hi-plan { position: relative; display: flex; flex-direction: column; }
.hi-plan .hi-plan-price { font-family: var(--wp--custom--font--heading); font-weight: var(--wp--custom--font--heading-weight); font-size: 2.8rem; line-height: 1; color: var(--wp--preset--color--primary); margin: 0; }
.hi-plan .hi-plan-price small { font-family: var(--wp--preset--font-family--inter); font-size: .9rem; font-weight: 600; color: var(--wp--preset--color--muted); }
.hi-plan ul { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 10px; }
.hi-plan li { position: relative; padding-left: 28px; }
.hi-plan li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--wp--preset--color--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat; }
.hi-plan .wp-block-buttons { margin-top: auto !important; padding-top: 8px; }
.hi-plan.is-featured { background: var(--wp--preset--color--primary) !important; border-color: var(--wp--preset--color--primary) !important; transform: scale(1.03); box-shadow: 0 30px 60px -20px rgba(9,27,45,.45); }
.hi-plan.is-featured:hover { transform: scale(1.03) translateY(-4px); }
.hi-plan.is-featured h3, .hi-plan.is-featured .hi-plan-price { color: #fff; }
.hi-plan.is-featured p, .hi-plan.is-featured li, .hi-plan.is-featured .hi-plan-price small { color: var(--wp--preset--color--primary-text); }
.hi-plan .hi-ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 6px 14px; border-radius: 999px; white-space: nowrap; margin: 0; }
@media (max-width: 781px) { .hi-plan.is-featured { transform: none; } .hi-plan.is-featured:hover { transform: translateY(-4px); } }

/* ===================== Reviews ===================== */
.hi-review { display: flex; flex-direction: column; }
.hi-review .hi-quote-mark { font-family: Georgia, serif; font-size: 4rem; line-height: .6; color: var(--wp--preset--color--accent); opacity: .35; margin: 0; height: 28px; }
.hi-review-who { display: flex; align-items: center; gap: 12px; margin-top: auto !important; }
.hi-review-who .hi-initials { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--wp--preset--color--primary); flex: none; }
.hi-review-who b { display: block; color: var(--wp--preset--color--primary); }
.hi-review-who small { color: var(--wp--preset--color--muted); }
.hi-review-score { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hi-review-score strong { font-family: var(--wp--custom--font--heading); font-size: 2.4rem; color: var(--wp--preset--color--primary); line-height: 1; }
.hi-review-score .hi-stars { font-size: 1.3rem; }

/* ===================== FAQ ===================== */
.hi-faq .wp-block-details { transition: box-shadow .2s ease, border-color .2s ease; }
.hi-faq .wp-block-details + .wp-block-details { margin-top: 12px; }
.hi-faq .wp-block-details[open] { box-shadow: 0 14px 34px -14px rgba(9,27,45,.2); border-color: color-mix(in srgb, var(--wp--preset--color--accent) 40%, transparent) !important; }
.hi-faq summary { font-weight: 700; color: var(--wp--preset--color--primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem; }
.hi-faq summary::-webkit-details-marker { display: none; }
.hi-faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--accent-dark); font-size: 1.3rem; font-weight: 600; transition: transform .2s ease; }
.hi-faq details[open] summary::after { transform: rotate(45deg); }
.hi-faq details p { color: var(--wp--preset--color--muted); margin-top: 10px; }

/* ===================== Areas & CTA ===================== */
.hi-areas { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hi-areas li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); font-weight: 600; font-size: .93rem; color: var(--wp--preset--color--primary); display: inline-flex; align-items: center; gap: 6px; }
.hi-areas li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--accent); }
.hi-cta { border-radius: calc(var(--wp--custom--radius--card) + 8px) !important; overflow: hidden; }
.hi-cta .wp-block-cover__inner-container { width: 100%; }

/* ===================== Footer ===================== */
.hi-footer a { color: inherit; text-decoration: none; }
.hi-footer a:hover { color: var(--wp--preset--color--highlight); }
.hi-footer ul { list-style: none; padding: 0 !important; margin: 0; }
.hi-footer li { padding: 5px 0; }
.hi-footer .hi-brand-name a { color: #fff; }
.hi-footer h4 { font-family: var(--wp--preset--font-family--inter) !important; }
.hi-social { display: flex; gap: 10px; list-style: none; padding: 0 !important; margin: 0; }
.hi-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s; }
.hi-social a:hover { background: var(--wp--preset--color--accent); }
.hi-social svg { width: 18px; height: 18px; fill: #fff; }

/* ===================== Posts and pages ===================== */
.hi-page-head { background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-deep) 100%); }
.hi-page-head h1, .hi-page-head .wp-block-post-title, .hi-page-head .wp-block-query-title { color: #fff; }
.hi-post-card .wp-block-post-featured-image img { border-radius: calc(var(--wp--custom--radius--card) * .6); aspect-ratio: 16/10; object-fit: cover; }
.hi-post-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--primary); }
.hi-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-dark); }
.wp-block-post-content > * + * { margin-block-start: 1.2em; }
.wp-block-post-content img { border-radius: calc(var(--wp--custom--radius--card) * .6); }
.wp-block-query-pagination a { text-decoration: none; font-weight: 700; }
.wp-block-search__input { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--button); padding: 10px 16px; }
