/**
* Theme Name: Chicago HB Drywall
* Description: Chicago HB Drywall theme (retheme of the Chicago HB Drywall theme).
* Version: 3.0.0
* Requires PHP: 8.3
*/

/* Tokens (colors, type scale, radii, widths): assets/css/hb-tokens.css. */

/* Without an overflow clip anything momentarily wider than the screen (fast resize, an
   entrance animation) makes mobile browsers widen the layout viewport and the
   whole page, header included, shifts sideways. Only this pair prevents it;
   no `hidden` fallback on body — with html hidden it would make body a scroll
   container and break the sticky header. */
html { overflow-x: hidden; }
body { overflow-x: clip; margin: 0; }


/* Self-hosted variable fonts: headings in Inter, body text in Manrope.
   The latin files are preloaded in <head> (functions.php). */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('assets/fonts/inter/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('assets/fonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('assets/fonts/manrope/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('assets/fonts/manrope/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Headings in Inter, body text in Manrope. */
:root {
    --hb-font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --hb-font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Form controls don't inherit the font by default. */
body,
button, input, select, textarea {
    font-family: var(--hb-font-body);
    font-weight: 500;
}
b, strong { font-weight: 800; }
h1, h2, h3, h4, h5, h6,
.hb-call-form-heading,
.hb-lead-form__title,
.hb-home-stat-number,
.hb-home-rating-value {
    font-family: var(--hb-font-heading);
}


/* ═══════════════════════════════════════════
   Base: the same on every template. Margins are left to the browser and the
   components; this only fixes what used to differ from page to page.
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
body {
    background: var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
p { line-height: 1.6; }
img, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { color: #fff; background: var(--primary); }

/* Headings: one scale and weight; components only add spacing, alignment
   or a color on dark backgrounds. */
h1, h2, h3, h4, h5, h6 { color: var(--accent); font-weight: 800; line-height: 1.2; }
h1 { font-size: var(--hb-h1); line-height: 1.15; }
h2 { font-size: var(--hb-h2); }
h3 { font-size: var(--hb-h3); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 700; }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.screen-reader-text:focus {
    top: 8px;
    left: 8px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 12px 20px;
    clip-path: none;
    background: var(--background);
    color: var(--accent);
    border-radius: var(--radius_sm);
    box-shadow: var(--shadow_hover);
}

/* ═══════════════════════════════════════════
   Buttons: .hb-btn plus a color (--dark, --ghost) and a size (--sm, --lg,
   --block). Editor buttons and the call-form button saved inside page
   content can't carry the class, so they share the rule.
   ═══════════════════════════════════════════ */
.hb-btn,
.hb-call-form-btn,
.hb-seo-content .wp-block-button__link,
.hb-cta-strip .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--radius_sm);
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.hb-btn:hover,
.hb-call-form-btn:hover,
.hb-seo-content .wp-block-button__link:hover,
.hb-cta-strip .wp-block-button__link:hover { background: var(--primary_hover); color: #fff; }
.hb-btn:disabled,
.hb-call-form-btn:disabled { opacity: .65; cursor: not-allowed; }
.hb-btn--dark { background: var(--dark); }
.hb-btn--dark:hover { background: var(--accent); }
.hb-btn--ghost { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.6); }
.hb-btn--ghost:hover { background: rgba(0,0,0,.55); }
.hb-btn--sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.hb-btn--lg { min-height: 56px; padding: 0 36px; font-size: 1.05rem; }
.hb-btn--block { width: 100%; }
/* Same height as the fields beside it. */
.hb-call-form-btn { width: 100%; min-height: 44px; padding: 0 20px; font-size: .9rem; }

/* ═══════════════════════════════════════════
   Service Page Template (single-fikco_services)
   ═══════════════════════════════════════════ */

/* Inline SVG icons (hb_icon_arrow_right()/hb_icon_phone_call() in functions.php). */
.hb-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Intro Hero */
.hb-intro {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}
/* WebP plugin may wrap <img> in <picture> — keep it as cover bg */
.hb-intro > picture {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
}
.hb-intro-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
/* When inside the plugin's <picture> wrapper, switch to fill-parent mode */
.hb-intro > picture .hb-intro-img {
    position: static;
    inset: auto;
}
.hb-intro-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1;
}
.hb-intro-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}
.hb-intro h1 {
    color: #fff;
    margin-bottom: 24px;
}
.hb-intro-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.9);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 500;
}
.hb-intro-sub p { margin: 0; line-height: inherit; }
.hb-intro-sub p + p { margin-top: .5em; }
.hb-intro-btns,
.hb-intro-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.hb-intro-trust { margin-top: 20px; }
/* Bottom curve shape */
.hb-intro-curve {
    position: absolute;
    bottom: -8px;
    left: 0;
    z-index: 3;
    line-height: 0;
}
.hb-intro-curve svg {
    width: 100%;
    height: 40px;
    display: block;
}


/* Body layout */
.hb-body {
    display: flex;
    gap: 40px;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space_section) var(--gutter) 0;
    align-items: flex-start;
}
.hb-main { flex: 1 1 0; min-width: 0; }
.hb-sidebar { 
    width: 320px;
    flex-shrink: 0;
    position: static;
}

/* Page sections stack with one gap, --space_section: each section owns the
   space below it and nothing else adds to it. flow-root and the first/last
   child reset keep a heading's margin from leaking out of the section and
   widening the gap. Heroes are left out: the bridge form overlaps them. */
:is(.hb-main, .hb-home-wrap, .hb-faqs-wrap, .hb-contact-wrap) > section:not(.hb-intro) {
    display: flow-root;
    margin-top: 0;
    margin-bottom: var(--space_section);
}
:is(.hb-main, .hb-home-wrap, .hb-faqs-wrap, .hb-contact-wrap) > section:not(.hb-intro) > :first-child { margin-top: 0; }
:is(.hb-main, .hb-home-wrap, .hb-faqs-wrap, .hb-contact-wrap) > section:not(.hb-intro) > :last-child { margin-bottom: 0; }

/* About */
/* Page sections: one gap below each, set in the flow rule near .hb-body. */
.hb-about-title {
    text-align: center;
    margin-bottom: 24px;
}
.hb-about p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0;
}
.hb-about-inner {
    display: flex;
    align-items: stretch;
    gap: 32px;
}
.hb-about-text { flex: 1 1 0; min-width: 0; }
.hb-about-img {
    width: 380px;
    /* max-width: 40%; */
    height: 100%;
    min-height: 260px;
    flex-shrink: 0;
    border-radius: var(--radius_sm);
    object-fit: cover;
    display: block;
}

/* Why Choose Us */
.hb-why { margin-top: 40px; }
.hb-why-title {
    text-align: center;
    margin-bottom: 28px;
}
.hb-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}
.hb-why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.hb-why-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.hb-why-icon {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}
.hb-why-text {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--accent);
}

/* Gallery */

.hb-gallery-hero {
    position: relative;
    height: 320px;
    background: var(--dark) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--radius_lg);
    overflow: hidden;
    margin-bottom: 12px;
}
.hb-gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}
.hb-gallery-hero-inner {
    position: relative;
    z-index: 1;
    padding: 20px;
}
.hb-gallery-title {
    color: #fff;
    margin-bottom: 20px;
}
.hb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.hb-gallery-cell {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
}
.hb-gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.hb-gallery-cell:hover img { transform: scale(1.04); }

/* Service Details */
.hb-details-title {
    margin-bottom: 12px;
}
.hb-details-desc {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.hb-details-subtitle {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 24px;
}
.hb-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.hb-items-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}
.hb-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius_lg);
    padding: 28px 24px;
}
.hb-item-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--background_light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.hb-item-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.hb-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
.hb-item-desc,
.hb-item-desc p {
    font-size: .9rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}
.hb-details-desc, .hb-details-desc p { 
    color: var(--text); 
    font-size: 1rem; 
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Service item as link */
a.hb-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.hb-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow_hover);
    transform: translateY(-2px);
}
a.hb-item h3 { color: var(--accent); }

/* Pricing Table */
.hb-pricing-title {
    margin-bottom: 12px;
}
.hb-pricing-desc,
.hb-pricing-desc p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
}
.hb-pricing-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.hb-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .97rem;
}
.hb-pricing-table thead tr {
    background: var(--dark);
    color: #fff;
}
.hb-pricing-table thead th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
}
.hb-pricing-table tbody tr:nth-child(odd) {
    background: var(--background_light);
}
.hb-pricing-table tbody tr:nth-child(even) {
    background: #fff;
}
.hb-pricing-table tbody tr:hover {
    background: rgba(243,83,85,.06);
}
.hb-pricing-table tbody td {
    padding: 13px 20px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.hb-pricing-table tbody tr:last-child td { border-bottom: none; }
.hb-pricing-table tbody td:last-child {
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

/* SEO Content */
.hb-seo-content { margin-bottom: 10px; line-height: 1.7; }

.hb-seo-content h2 {
    margin: 48px 0 14px;
}
.hb-seo-content h2:first-child { margin-top: 0; }

.hb-seo-content h3 {
    margin: 32px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.hb-seo-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 22px 0 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hb-seo-content p {
    font-size: .97rem;
    color: var(--text);
    line-height: 1.8;
    margin: 0 0 16px;
}

.hb-seo-content ul,
.hb-seo-content ol {
    padding-left: 0;
    margin: 0 0 20px;
    list-style: none;
}
.hb-seo-content ul li,
.hb-seo-content ol li {
    font-size: .97rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
}
.hb-seo-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.hb-seo-content ol {
    counter-reset: hb-ol;
}
.hb-seo-content ol li {
    counter-increment: hb-ol;
    padding-left: 28px;
}
.hb-seo-content ol li::before {
    content: counter(hb-ol);
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hb-seo-content a:not(.hb-btn):not(.wp-block-button__link) {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(243,83,85,.35);
    transition: border-color .2s, color .2s;
}
.hb-seo-content a:not(.hb-btn):not(.wp-block-button__link):hover {
    color: var(--primary_hover);
    border-bottom-color: var(--primary);
}

.hb-seo-content table,
.hb-details-desc table,
.hb-pricing-desc table,
.hb-faq-body table,
.hb-about-text table,
.hb-item-desc table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 28px;
    font-size: .93rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
/* The dark fill sits on the cells, not on the row: the block editor emits its
   header row inside <tbody>, so a `thead tr` rule leaves white text on the
   light zebra stripe. */
.hb-seo-content table th,
.hb-details-desc table th,
.hb-pricing-desc table th,
.hb-faq-body table th,
.hb-about-text table th,
.hb-item-desc table th {
    text-align: left;
    padding: 13px 16px;
    font-weight: 800;
    background: var(--dark);
    color: #fff;
    border-bottom: none;
}
.hb-seo-content table tbody tr:nth-child(odd),
.hb-details-desc table tbody tr:nth-child(odd),
.hb-pricing-desc table tbody tr:nth-child(odd),
.hb-faq-body table tbody tr:nth-child(odd),
.hb-about-text table tbody tr:nth-child(odd),
.hb-item-desc table tbody tr:nth-child(odd) { background: var(--background_light); }
.hb-seo-content table tbody tr:nth-child(even),
.hb-details-desc table tbody tr:nth-child(even),
.hb-pricing-desc table tbody tr:nth-child(even),
.hb-faq-body table tbody tr:nth-child(even),
.hb-about-text table tbody tr:nth-child(even),
.hb-item-desc table tbody tr:nth-child(even) { background: #fff; }
.hb-seo-content table tbody tr:hover,
.hb-details-desc table tbody tr:hover,
.hb-pricing-desc table tbody tr:hover,
.hb-faq-body table tbody tr:hover,
.hb-about-text table tbody tr:hover,
.hb-item-desc table tbody tr:hover { background: rgba(243,83,85,.06); }
.hb-seo-content table td,
.hb-details-desc table td,
.hb-pricing-desc table td,
.hb-faq-body table td,
.hb-about-text table td,
.hb-item-desc table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.hb-seo-content table tbody tr:last-child td,
.hb-details-desc table tbody tr:last-child td,
.hb-pricing-desc table tbody tr:last-child td,
.hb-faq-body table tbody tr:last-child td,
.hb-about-text table tbody tr:last-child td,
.hb-item-desc table tbody tr:last-child td { border-bottom: none; }
.hb-seo-content table td:last-child,
.hb-details-desc table td:last-child,
.hb-pricing-desc table td:last-child,
.hb-faq-body table td:last-child,
.hb-about-text table td:last-child,
.hb-item-desc table td:last-child {
    font-weight: 700;
    color: var(--accent);
}

/* Editor tables can't get a scroll wrapper, so on phones the table itself
   becomes the scroll box instead of widening the page. */
@media (max-width: 600px) {
    .hb-seo-content table,
    .hb-details-desc table,
    .hb-pricing-desc table,
    .hb-faq-body table,
    .hb-about-text table,
    .hb-item-desc table {
        display: block;
        overflow-x: auto;
    }
}

/* FAQ */
.hb-faq-heading { margin-bottom: 12px; }
.hb-faq-subtitle { font-size: .95rem; color: var(--text); line-height: 1.7; margin-bottom: 24px; }

/* margin-top collapses with the heading/subtitle margin above, so the gap to
   the first item is the same with or without a subtitle. */
.hb-faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }

.hb-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.hb-faq-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.hb-faq-summary::-webkit-details-marker { display: none; }

.hb-faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
}
.hb-minus { display: none; }
.hb-faq-item[open] .hb-plus  { display: none; }
.hb-faq-item[open] .hb-minus { display: block; }

.hb-faq-q {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.4;
}
.hb-faq .hb-faq-q { margin: 0; font-family: inherit; font-size: 1rem; font-weight: 800; } /* the question can be an h3 */
.hb-faq-body {
    padding: 4px 20px 20px 66px;
    color: var(--text);
    font-size: .92rem;
    line-height: 1.75;
}
.hb-faq-body p { margin: 0 0 8px; }
.hb-faq-body p:last-child { margin-bottom: 0; }

/* Sidebar */
.hb-sidebar-services {
    background: var(--background_light);
    border-radius: var(--radius_sm);
    padding: 24px;
    margin-bottom: 24px;
}
.hb-sidebar-services h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.hb-sidebar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
    text-decoration: none;
    font-size: .9rem;
    transition: color .15s;
}
.hb-sidebar-link:last-child { border-bottom: none; }
.hb-sidebar-link:hover,
.hb-sidebar-link.current { color: var(--primary); font-weight: 700; }
.hb-sidebar-arrow { color: var(--dark); flex-shrink: 0; }
.hb-sidebar-arrow--current { color: var(--primary); }
.hb-sidebar-link:hover .hb-sidebar-arrow { color: var(--primary); }

/* Animations */
@keyframes hb-move-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hb-animate {
    animation: hb-move-up .6s ease both;
}
.hb-animate-delay-1 { animation-delay: .15s; }
.hb-animate-delay-2 { animation-delay: .3s; }

/* Responsive */
@media (max-width: 900px) {
    .hb-about-inner { flex-direction: column; }
    .hb-about-img { width: 100%; }
    .hb-body { flex-direction: column; align-items: stretch; }
    .hb-sidebar { width: 100%; }
    .hb-items-grid { grid-template-columns: 1fr; }
    .hb-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hb-body { padding: var(--space_section) 16px 0; }
}

/* Desktop: compact hero, no curve */
@media (min-width: 901px) {
    .hb-intro { min-height: 44vh; }
    .hb-intro-sub { margin-bottom: 24px; }
    .hb-intro-curve { display: none; }
}

/* ── Sticky mobile CTA ── */
.hb-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 14px rgba(0,0,0,.18);
    gap: 10px;
    transform: translateY(110%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.hb-sticky-cta--visible {
    transform: translateY(0);
}
/* Two equal buttons across the bar. */
.hb-sticky-cta .hb-btn { flex: 1; padding: 0 8px; }
@media (max-width: 900px) {
    .hb-sticky-cta { display: flex; }

    /* Clear the sticky Book/Call bar (60px + safe area) — it otherwise sits
       on top of the back-to-top button in the same bottom-right corner. The
       The fixed controls share the same bottom offset. */
    body:has(.hb-sticky-cta) .progress-wrap {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── CTA Form block (after FAQ) ── */
.hb-cta-form {
    padding: var(--space_section) 24px;
    background: var(--background_light);
}
.hb-cta-form-card {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    border-radius: var(--radius_lg);
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0,0,0,.14);
}
/* Left — dark panel with optional bg photo */
.hb-cta-form-left {
    flex: 1 1 42%;
    position: relative;
    background: var(--dark) center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hb-cta-form-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,20,28,.88) 0%, rgba(10,20,28,.70) 100%);
}
.hb-cta-form-left-body {
    position: relative;
    z-index: 1;
    padding: 56px 44px;
    color: #fff;
}
.hb-cta-form-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 14px;
}
.hb-cta-form-title {
    color: #fff;
    margin-bottom: 18px;
}
.hb-cta-form-text {
    color: rgba(255,255,255,.75);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 32px;
}
/* Right — white form panel */
.hb-cta-form-right {
    flex: 1 1 58%;
    background: #fff;
    padding: 52px 48px;
}
.hb-cta-form-right-title {
    margin-bottom: 6px;
}
.hb-cta-form-right-sub {
    font-size: .9rem;
    color: var(--text_muted);
    margin-bottom: 24px;
}
@media (max-width: 900px) {
    .hb-cta-form-card { flex-direction: column; border-radius: var(--radius_lg); }
    .hb-cta-form-left-body { padding: 40px 32px; }
    .hb-cta-form-right { padding: 36px 32px; }
}
@media (max-width: 480px) {
    .hb-cta-form { padding: var(--space_section) 16px; }
    .hb-cta-form-left-body { padding: 32px 24px; }
    .hb-cta-form-right { padding: 28px 20px; }
}

/* ═══════════════════════════════════════════
   Bridge form — spans intro → about
   ═══════════════════════════════════════════ */

/* Full-bleed hero whatever the container, plus explicit z-index to create a
   stacking context. */
.hb-service-wrap .hb-intro {
    padding-bottom: 135px;
    z-index: 1;            /* creates stacking context so children can't bleed above bridge */
}

/* Pull the form card up, overlapping the last 80px of the intro */
.hb-bridge-form {
    position: relative;
    z-index: 10;           /* beats intro's z-index: 1 */
    max-width: var(--container);
    margin: -80px auto 0;
    padding: 0 20px;
}

/* No bridge form (services list, about, pricing, projects, careers): nothing
   overlaps the hero, so it ends level with its text. */
.hb-service-wrap:not(:has(.hb-bridge-form)) .hb-intro { padding-bottom: 80px; }

@media (max-width: 900px) {
    .hb-service-wrap .hb-intro { padding-bottom: 130px; }
    .hb-bridge-form { margin-top: -60px; }
}

@media (max-width: 480px) {
    .hb-service-wrap .hb-intro { padding-bottom: 100px; }
    .hb-bridge-form { margin-top: -40px; padding: 0 12px; }
}

/* ═══════════════════════════════════════════
   [hb_call_form] — "Let Us Call You" shortcode
   ═══════════════════════════════════════════ */

.hb-call-form-wrap {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px 30px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.hb-call-form {
  margin: 0;
  padding: 0;
}

.hb-call-form-heading {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 20px;
}

/* ── Service type row ── */
.hb-call-form-type-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hb-call-form-type-label {
    font-size: .875rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.hb-call-form-radios {
    display: flex;
    gap: 20px;
}

.hb-call-form-radio {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: .9rem;
    color: var(--text);
}

.hb-call-form-radio input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Fields row ── */
.hb-call-form-fields-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hb-call-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 130px;
    min-width: 100px;
}

.hb-call-form-field label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.hb-call-form-field input {
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius_sm);
    padding: 0 12px;
    font-size: .9rem;
    color: var(--accent);
    background: #fff;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}

.hb-call-form-field input:focus {
    outline: none;
    border-color: var(--primary);
}

.hb-call-form-field input::placeholder {
    color: var(--text_light);
}

/* Textarea (additional info) */
.hb-call-form-field--full {
    flex: 1 1 100%;
}

.hb-call-form-field textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius_sm);
    padding: 10px 12px;
    font-size: .9rem;
    color: var(--accent);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color .15s;
}

.hb-call-form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.hb-call-form-field textarea::placeholder {
    color: var(--text_light);
}

/* Required asterisk */
.hb-call-form-req {
    color: var(--primary);
}

/* Required field left unfilled at submit */
.hb-call-form-field.hb-call-form-invalid input,
.hb-call-form-field.hb-call-form-invalid textarea {
    border-color: var(--primary);
    background: #fdf0f0;
}

.hb-call-form-type-row.hb-call-form-invalid .hb-call-form-type-label {
    color: var(--primary);
}

.hb-call-form-type-row.hb-call-form-invalid .hb-call-form-radios {
    outline: 1.5px solid var(--primary);
    outline-offset: 6px;
    border-radius: var(--radius_sm);
}

/* Submit button cell */
.hb-call-form-field--btn {
    flex: 0 0 auto;
    min-width: 150px;
}

/* ── SMS consent ── */
.hb-call-form-sms-row {
    margin-bottom: 10px;
}

.hb-call-form-sms-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.hb-call-form-sms-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.hb-call-form-sms-fine,
.hb-call-form-disclaimer {
    font-size: .75rem;
    color: var(--text_light);
    line-height: 1.5;
    margin: 0;
}

.hb-call-form-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hb-call-form-sms-fine {
    padding-left: 25px;
    margin-bottom: 8px;
}

.hb-call-form-disclaimer {
    margin-top: 8px;
}

.hb-call-form-disclaimer a,
.hb-call-form-sms-fine a {
    color: var(--primary);
    text-decoration: underline;
}

/* ── Status messages ── */
.hb-call-form-status {
    font-size: .875rem;
    font-weight: 700;
    margin-top: 0;
    display: none;
}

.hb-call-form-status--ok,
.hb-call-form-status--err {
    display: block;
    margin-top: 10px;
}

.hb-call-form-status--ok  { color: var(--success); }
.hb-call-form-status--err { color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hb-call-form-wrap { padding: 28px 24px 22px; }

    .hb-call-form-fields-row { gap: 10px; }

    .hb-call-form-field {
        flex: 1 1 calc(50% - 10px);
    }

    .hb-call-form-field--btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .hb-call-form-wrap { padding: 24px 18px 18px; }
}

@media (max-width: 360px) {
    .hb-call-form-field {
        flex: 1 1 100%;
    }
}

/* ═══════════════════════════════════════════ */

/* Hide reCAPTCHA v3 floating badge */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* ── Native breadcrumbs (replaces the old Elementor breadcrumb templates) ── */
.hb-breadcrumbs {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 20px;
}
.hb-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .85rem;
}
.hb-breadcrumbs a {
    color: var(--text_light);
    text-decoration: none;
}
.hb-breadcrumbs a:hover {
    color: var(--primary);
}
.hb-breadcrumbs [aria-current="page"] {
    color: var(--text);
    font-weight: 700;
}
.hb-breadcrumbs__sep {
    color: var(--border);
}

/* Hero variant — pinned to the top-left corner of the intro photo,
   independent of the centered heading/buttons below it. */
.hb-intro-breadcrumbs {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    padding: 0;
    margin: 0;
    max-width: none;
}
.hb-intro-breadcrumbs ol {
    justify-content: flex-start;
    font-size: .8rem;
}
.hb-intro-breadcrumbs a {
    color: rgba(255,255,255,.75);
}
.hb-intro-breadcrumbs a:hover {
    color: #fff;
}
.hb-intro-breadcrumbs [aria-current="page"] {
    color: #fff;
}
.hb-intro-breadcrumbs .hb-breadcrumbs__sep {
    color: rgba(255,255,255,.4);
}

/* ── Back-to-top button (site-wide, inc/hb-theme-setup.php) ── */
.progress-wrap {
    position: fixed;
    right: 2rem;
    bottom: 1rem;
    height: 60px;
    width: 60px;
    cursor: pointer;
    display: block;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
}
@media (max-width: 900px) {
    .progress-wrap {
        bottom: 1rem;
        right: 0.5rem;
    }
}
.progress-wrap .svg-content {
    width: 100%;
    height: 100%;
}
.progress-wrap .svg-content path {
    fill: none;
}
.progress-wrap svg.progress-circle path {
    stroke: var(--primary);
    stroke-width: 4;
    transition: all 200ms linear;
}
.progress-wrap .icon-arrow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.progress-wrap .icon-arrow svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}
.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   Contact Page Template (page-contact.php)
   Reuses .hb-intro / .hb-btn / .hb-bridge-form /
   .hb-details / .hb-items-grid from the Service
   Page block above — only new patterns get CSS
   here.
   ═══════════════════════════════════════════ */

/* Extra bottom padding so the bridge form card overlaps cleanly
   without covering the H1/subtitle/buttons — same as .hb-service-wrap. */
.hb-contact-wrap .hb-intro {
    padding-bottom: 135px;
    z-index: 1;
}

/* .hb-details normally gets its width from .hb-body/.hb-main — this page
   has no such wrapper, so give it the same constraint the homepage uses. */
.hb-contact-wrap .hb-details {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding: var(--space_section) var(--gutter) 0;
}

@media (max-width: 900px) {
    .hb-contact-wrap .hb-intro { padding-bottom: 130px; }
}

@media (max-width: 480px) {
    .hb-contact-wrap .hb-intro { padding-bottom: 100px; }
}

/* ═══════════════════════════════════════════
   Homepage Template (front-page.php)
   Reuses .hb-intro / .hb-btn / .hb-items-grid /
   .hb-why-grid / .hb-gallery-grid / .hb-cta-form
   from the Service Page block above wherever the
   shape is identical — only new patterns get CSS
   here.
   ═══════════════════════════════════════════ */

/* .hb-details, .hb-seo-content, .hb-faq and .hb-pricing normally get their
   width from the service page's .hb-body/.hb-main wrapper — the homepage has
   no such wrapper, so give them the same constraint .hb-home-section uses. */
.hb-home-wrap .hb-details,
.hb-home-wrap .hb-seo-content,
.hb-home-wrap .hb-faq,
.hb-home-wrap .hb-pricing {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--gutter);
}

.hb-home-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    text-align: center;
}

/* Trust strip — the licensed/insured/guarantee bar US home-service brands
   lead with; reuses the same red-circle-checkmark language as Why Choose Us. */
.hb-home-trust {
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 40px;
}
.hb-home-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    font-weight: 800;
    color: var(--accent);
}
.hb-home-trust-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
}
@media (max-width: 600px) {
    .hb-home-trust { gap: 16px 28px; padding-top: 20px; }
    .hb-home-trust-item { font-size: .85rem; }
}

.hb-section-heading {
    margin: 0 0 32px;
}

/* Services grid reuses .hb-details / .hb-item / .hb-item-icon-wrap verbatim
   from the service-page "Service Details" grid — only the icon color differs
   (photo icons there, hand-drawn category SVGs here). */
.hb-home-services .hb-item-icon-wrap { color: var(--primary); }

/* Icon + title sit on one row (icon is optional per-item, no default fallback). */
.hb-home-services .hb-item-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}
.hb-home-services .hb-item-head .hb-item-icon-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    flex-shrink: 0;
}
.hb-home-services .hb-item-head .hb-item-icon { width: 32px; height: 32px; }
.hb-home-services .hb-item-head h3 { margin-bottom: 0; }

/* Shorter hero than the service-page default. */
.hb-home-hero {
    min-height: 44vh;
    padding: 48px 24px;
    margin-bottom: var(--space_section);
}

/* Hero backdrop: a soft-focus Chicago marina photo (.hb-intro-img, full-bleed)
   under a single flat gray overlay — no color accent, just enough darkening
   for the left-side copy to stay legible. */
.hb-home-hero .hb-intro-overlay {
    /* Single linear gradient, neutral gray/black only (no hue), darkest on
       the left behind the copy and fading to transparent on the right where
       the call-form card sits (the card supplies its own white background,
       so the overlay underneath it barely shows). */
    background-image: linear-gradient(70deg,
        #101214 0%,
        #101214 15%,
        rgba(16,18,20,.6) 42%,
        rgba(16,18,20,0) 68%);
}

/* Hero — two-column row: copy + CTAs on the left, the "Let Us Call You" form
   on the right (replaces the old cut-out portrait). Heading+CTA and the form
   are the only two things here now — no third element competing for focus,
   and no scroll-triggered reveal to fight over: the form is simply visible. */
.hb-home-hero-row {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.hb-home-hero-left {
    text-align: left;
    margin: 0;
    max-width: 520px;
    flex: 1 1 380px;
}
.hb-home-hero-left .hb-intro-btns,
.hb-home-hero-left .hb-intro-trust {
    justify-content: flex-start;
}
.hb-home-hero-right {
    flex: 1 1 420px;
    max-width: 460px;
    width: 100%;
}

@media (max-width: 900px) {
    .hb-home-hero-row { flex-direction: column; align-items: stretch; }
    .hb-home-hero-left { text-align: center; max-width: 100%; }
    .hb-home-hero-left h1 { margin-top: 20px; }
    .hb-home-hero-left .hb-intro-btns,
    .hb-home-hero-left .hb-intro-trust { justify-content: center; }
    .hb-home-hero-right { max-width: 100%; margin-top: 8px; }
}

.hb-home-services-note {
    text-align: center;
    margin-top: 32px;
    color: var(--text);
    font-size: 1rem;
}
.hb-home-services-note a { color: var(--primary); font-weight: 800; text-decoration: none; }
.hb-home-services-note a:hover { text-decoration: underline; }

/* About — two-column (photo + text), left-aligned copy */
.hb-home-about { text-align: left; }
.hb-about-title--left { text-align: left; }
.hb-home-about .hb-about-text p { margin-bottom: 14px; }
.hb-home-about .hb-about-text p:last-of-type { margin-bottom: 24px; }
.hb-home-about-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.hb-home-about-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent) !important;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
}
.hb-home-about-phone:hover { color: var(--primary) !important; }

/* Why / Stats — full-bleed background photo with dark overlay */
.hb-home-why {
    position: relative;
    max-width: 100%;
    padding: var(--space_section) var(--gutter);
    overflow: hidden;
    color: #fff;
}
.hb-home-why-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hb-home-why-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,.72);
    z-index: 1;
}
.hb-home-why-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
}
.hb-home-why .hb-section-heading { color: #fff; }
.hb-home-why .hb-why-text { color: #fff; }

.hb-home-why-grid { grid-template-columns: repeat(3, 1fr); text-align: left; margin-bottom: 40px; }
.hb-home-why-desc { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.6; margin: 6px 0 0; font-weight: 500; }

.hb-home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.25);
}
.hb-home-stat-number {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hb-home-stat-suffix { font-size: .5em; vertical-align: super; }
.hb-home-stat-label { margin-top: 8px; font-size: .95rem; color: rgba(255,255,255,.8); }

.hb-home-gallery-heading { margin-bottom: 20px; }
.hb-home-gallery-cta { margin-top: 24px; }
.hb-home-gallery-cta--top { margin: 0 0 32px; }

.hb-home-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hb-home-rating-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.hb-home-rating-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hb-star-row { display: inline-flex; gap: 2px; color: #f5a623; }
.hb-icon-star { width: 16px; height: 16px; }
.hb-home-rating-count { color: var(--text); font-size: .85rem; }

.hb-home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
    margin-bottom: 32px;
}
/* min-width: 0 overrides the grid item's default automatic minimum size,
   which otherwise tracks the lazy-loaded post thumbnail's intrinsic/srcset
   width and forces the 1fr column (and the page) wider than the viewport
   once the image loads — the classic CSS Grid + <img> overflow trap. */
.hb-home-blog-card { display: block; color: inherit; text-decoration: none; min-width: 0; }
.hb-home-blog-img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; display: block; }
.hb-home-blog-title { font-size: 1.2rem; margin: 0 0 8px; }
.hb-home-blog-card:hover .hb-home-blog-title { color: var(--primary); }
.hb-home-blog-excerpt { font-size: .9rem; color: var(--text); line-height: 1.6; margin: 0; }
.hb-home-blog-cta { margin-top: 8px; }

.hb-subservices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.hb-subservice-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.hb-subservice-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow_hover);
    transform: translateY(-2px);
    color: var(--primary);
}

@media (max-width: 900px) {
    .hb-items-grid--3col { grid-template-columns: 1fr; }
    .hb-home-why-grid { grid-template-columns: 1fr; }
    .hb-home-stats { grid-template-columns: 1fr; gap: 20px; }
    .hb-home-blog-grid { grid-template-columns: 1fr; }
    .hb-subservices-grid { grid-template-columns: repeat(2, 1fr); }
    /* Form is stacked below the copy here, not beside it — the left→right
       split gradient no longer makes sense, so go uniform flat gray. */
    .hb-home-hero .hb-intro-overlay { background: rgba(16,18,20,.78); }
    .hb-home-about .hb-about-inner { flex-direction: column; }
    .hb-home-about .hb-about-img { width: 100%; }
}
@media (max-width: 600px) {
    .hb-home-section { padding: 0 16px; }
    .hb-home-why { padding: var(--space_section) 16px; }
    .hb-subservices-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   Careers Page (page-careers.php)
   ═══════════════════════════════════════════ */
/* The hero photo (hero-bg-chicago.webp) is an unrelated marina/boat scene.
   The default .hb-intro-overlay (55% flat black) leaves it clearly readable
   behind the headline, which undercuts a hiring page's credibility. Darken
   it further so the photo reads as atmosphere, not as a literal boat dock —
   same fix already applied to .hb-home-hero. */
.hb-careers-wrap .hb-intro-overlay {
    background: rgba(10,11,12,.72);
}
.hb-careers-body .hb-why + .hb-why { margin-top: var(--space_block); }
.hb-careers-callout {
    background: var(--background_light);
    border-radius: var(--radius_lg);
    padding: 40px;
    text-align: center;
}
.hb-careers-callout h2 { margin-top: 0; }
.hb-careers-callout p:not(.hb-careers-callout-cta) { max-width: 640px; margin-left: auto; margin-right: auto; }
.hb-careers-callout-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 8px 0 0 !important;
}
.hb-careers-callout-email { color: var(--text); font-size: .95rem; }
.hb-careers-callout-email a { color: var(--primary); font-weight: 700; text-decoration: none; }
.hb-careers-callout-email a:hover { text-decoration: underline; }
.hb-careers-cta-right { display: flex; flex-direction: column; align-items: flex-start; }
.hb-careers-apply-btn { margin-top: 8px; }
@media (max-width: 600px) {
    .hb-careers-callout { padding: 28px 20px; }
}

/* Text pasted from Google Docs carries inline font-weight: 400 on its spans. */
[style*="font-weight: 400"],
[style*="font-weight:400"] { font-weight: 500 !important; }

/* ═══════════════════════════════════════════
   FAQs Page (page-faqs.php)
   ═══════════════════════════════════════════ */
.hb-faqs-wrap { max-width: var(--container_narrow); margin: 0 auto; padding: 24px var(--gutter) 0; }
/* Same H1 treatment as the blog/post/author pages (hb-blog-critical.css). */
.hb-faqs-wrap .hb-faqs-intro {
    text-wrap: balance;
    text-align: center;
    margin: 0 0 40px;
}
.hb-faqs-wrap .hb-faqs-intro:has(+ .hb-faqs-lead) { margin-bottom: 16px; }
.hb-faqs-wrap .hb-faqs-lead { max-width: 780px; margin: 0 auto 40px; text-align: center; text-wrap: pretty; }

/* ═══════════════════════════════════════════
   CTA strip — a Group block with the "hb-cta-strip" class in page content
   (Pricing, Our Projects): title paragraph, text, Buttons (quote + phone).
   ═══════════════════════════════════════════ */
.hb-cta-strip { margin: var(--space_block) 0; padding: 32px; border-radius: var(--radius_lg); background: var(--dark); color: #fff; }
.hb-cta-strip p { color: rgba(255,255,255,.92); margin: 0 0 20px; max-width: 60ch; }
.hb-cta-strip .hb-cta-strip__title { color: #fff; font-size: var(--hb-h2); font-weight: 800; line-height: 1.2; margin: 0 0 10px; }
.hb-cta-strip .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0; }
.hb-cta-strip .is-style-outline .wp-block-button__link { background: none; padding: 0; }
.hb-cta-strip .is-style-outline .wp-block-button__link:hover { background: none; text-decoration: underline; }
@media (max-width: 600px) { .hb-cta-strip { padding: 24px 20px; } }

/* ═══════════════════════════════════════════
   Generic templates: singular.php (Privacy, Terms), index.php (search), 404.php
   ═══════════════════════════════════════════ */
.hb-page { max-width: var(--container_narrow); margin: 0 auto; padding: 0 var(--gutter) var(--space_section); }
.hb-page .hb-breadcrumbs { padding-left: 0; padding-right: 0; }
.hb-page-title { margin: 16px 0 28px; }
.hb-page-title span { color: var(--primary); }
.hb-results { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--border); }
.hb-result { padding: 22px 0; border-bottom: 1px solid var(--border); }
.hb-result-title { margin: 0 0 6px; }
.hb-result-title a { color: var(--accent); text-decoration: none; }
.hb-result-title a:hover { color: var(--primary); }
.hb-result-excerpt, .hb-results-empty, .hb-404 > p { color: var(--text); line-height: 1.7; margin: 0 0 16px; }
.hb-page .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hb-page .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--border); border-radius: var(--radius_sm); color: var(--accent); font-weight: 700; text-decoration: none; }
.hb-page .page-numbers.current, .hb-page a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.hb-page .search-form { display: flex; gap: 8px; max-width: 520px; }
.hb-page .search-form label { flex: 1; }
.hb-page .search-field { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius_sm); font-size: 1rem; }
.hb-page .search-submit { height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius_sm); background: var(--primary); color: #fff; font-weight: 800; cursor: pointer; }
.hb-page .search-submit:hover { background: var(--primary_hover); }
.hb-404 { text-align: center; padding-top: 40px; }
.hb-404 .hb-404-code { font-family: var(--hb-font-heading); font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 800; line-height: 1; color: var(--primary); margin: 0; }
.hb-404 .hb-page-title { margin-bottom: 16px; }
.hb-404 .hb-btn { margin: 8px 0 32px; }
.hb-404 .search-form { margin: 0 auto; }
.cd-404-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cd-404-services a { padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius_sm); color: var(--accent); font-weight: 700; text-decoration: none; }
.cd-404-services a:hover { border-color: var(--primary); color: var(--primary); }

.cd-header-nap { padding: .5rem 1rem; text-align: center; font-size: .75rem; overflow-wrap: anywhere; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .hb-animate { animation: none; }
}
