/* BossardHomes - supplemental styles (theme.json handles the core design tokens) */
:root { --bh-radius: 6px; --bh-shadow: 0 1px 2px rgba(23,32,43,.06), 0 8px 24px rgba(23,32,43,.06); }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1,h2,h3) { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--wp--preset--color--brick); outline-offset: 3px; }
[id] { scroll-margin-top: 96px; }

/* Header */
.bh-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--wp--preset--color--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .bh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bh-header { top: 0; position: relative; } }
.bh-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--wp--preset--color--ink); }
.bh-brand svg { width: 34px; height: 34px; flex: none; }
.bh-brand__name { font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.bh-brand__name em { font-style: normal; color: var(--wp--preset--color--brick); }
.bh-header .wp-block-navigation a { text-decoration: none; }
.bh-header .wp-block-navigation a:hover { color: var(--wp--preset--color--brick); }
.bh-header .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--line) !important; border-radius: var(--bh-radius); box-shadow: var(--bh-shadow); padding: .4rem 0; min-width: 260px !important; }
.bh-header .wp-block-navigation__submenu-container a { padding: .45rem 1rem !important; }
.bh-call .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) {
  .bh-header .bh-call .wp-block-button__link { font-size: 0 !important; padding: .55rem 1rem !important; line-height: 1.2; }
  .bh-header .bh-call .wp-block-button__link::before { content: "Call"; font-size: .875rem; }
}

/* Eyebrow + lead text */
.bh-eyebrow { font-size: .8rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bh-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; max-width: 38em; }

/* Hero */
.bh-hero h1 { max-width: 15ch; }
.bh-hero .wp-block-cover__inner-container > * { max-width: 760px; }
.bh-hero .is-style-outline .wp-block-button__link, .bh-on-dark .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.bh-hero .is-style-outline .wp-block-button__link:hover, .bh-on-dark .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.1); }
.bh-landing-hero h1 { max-width: 20ch; }

/* Trust strip */
.bh-trust { border-bottom: 1px solid var(--wp--preset--color--line); }
.bh-trust p { margin: 0; font-size: .92rem; color: var(--wp--preset--color--ink-soft); }
.bh-trust strong { display: block; color: var(--wp--preset--color--ink); font-weight: 600; }

/* Cards */
.bh-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--bh-radius); box-shadow: var(--bh-shadow); height: 100%; }
.bh-card h3 { font-size: 1.5rem; margin-top: 0; }
.bh-card .bh-num { font-family: var(--wp--preset--font-family--display); color: var(--wp--preset--color--brick); font-size: 1.1rem; margin: 0; }
.bh-card a.bh-more, a.bh-more { font-weight: 600; text-decoration: none; }
a.bh-more::after { content: " \2192"; }
.bh-tiles { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .bh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bh-tiles { grid-template-columns: 1fr; } }
.bh-tiles > * { margin: 0 !important; }
.bh-tile { display: block; padding: 1.1rem 1.25rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--bh-radius); text-decoration: none; color: var(--wp--preset--color--ink); transition: border-color .15s, transform .15s; }
.bh-tile:hover { border-color: var(--wp--preset--color--brick); transform: translateY(-2px); color: var(--wp--preset--color--ink); }
.bh-tile strong { display: block; font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: 1.2rem; margin-bottom: .2rem; }
.bh-tile span { font-size: .92rem; color: var(--wp--preset--color--ink-soft); }
.bh-pills { display: flex !important; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0 !important; }
.bh-pills li a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: var(--wp--preset--color--surface); text-decoration: none; color: var(--wp--preset--color--ink); font-size: .95rem; }
.bh-pills li a:hover { border-color: var(--wp--preset--color--brick); color: var(--wp--preset--color--brick); }

/* Steps */
.bh-steps { counter-reset: step; list-style: none; padding-left: 0 !important; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bh-steps.alignwide, .alignwide .bh-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .bh-steps.alignwide, .alignwide .bh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bh-steps, .bh-steps.alignwide, .alignwide .bh-steps { grid-template-columns: 1fr; } }
.bh-steps li { counter-increment: step; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--bh-radius); padding: 1.25rem; }
.bh-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--wp--preset--font-family--display); color: var(--wp--preset--color--brick); font-size: 1.6rem; line-height: 1; margin-bottom: .5rem; }

/* Tables */
.wp-block-table { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.wp-block-table table { min-width: 560px; }
.wp-block-table table { border-collapse: collapse; width: 100%; background: var(--wp--preset--color--surface); border-radius: var(--bh-radius); overflow: hidden; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: .8rem 1rem; text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); font-weight: 600; border-bottom: 0; }
.wp-block-table tbody tr td:first-child { font-weight: 600; }
.wp-block-table thead { border: 0; }

/* Details / FAQ */
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 2rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: -.15rem; font-size: 1.5rem; color: var(--wp--preset--color--brick); font-weight: 400; }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details > p { margin-top: .6rem; color: var(--wp--preset--color--ink-soft); }

/* Lists in content */
.entry-content ul li, .entry-content ol li { margin-bottom: .35rem; }
.bh-checks { list-style: none; padding-left: 0 !important; }
.bh-checks li { position: relative; padding-left: 1.75rem; }
.bh-checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--wp--preset--color--brick); border-bottom: 2px solid var(--wp--preset--color--brick); transform: rotate(-45deg); }

/* Disclosure block */
.bh-disclosure { font-size: .85rem !important; color: var(--wp--preset--color--ink-soft); border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.25rem; }

/* Lead form */
.bh-formwrap { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; box-shadow: var(--bh-shadow); }
.bh-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; }
@media (max-width: 640px) { .bh-form__grid { grid-template-columns: 1fr; } }
.bh-field { margin: 0 0 .6rem; }
.bh-field--wide { grid-column: 1 / -1; }
.bh-field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .3rem; }
.bh-field input, .bh-field select, .bh-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #BDB3A2; border-radius: 4px; background: #fff; color: var(--wp--preset--color--ink); }
.bh-field input:focus, .bh-field select:focus, .bh-field textarea:focus { outline: 2px solid var(--wp--preset--color--brick); outline-offset: 0; border-color: var(--wp--preset--color--brick); }
.bh-consent { font-size: .8rem; line-height: 1.5; color: var(--wp--preset--color--ink-soft); }
.bh-consent input { margin-right: .4rem; transform: translateY(2px); }
.bh-form__submit { background: var(--wp--preset--color--brick); color: #fff; border: 0; border-radius: 4px; padding: .95rem 1.6rem; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; width: 100%; }
.bh-form__submit:hover { background: var(--wp--preset--color--brick-dark); }
.bh-form__fine { font-size: .8rem; color: var(--wp--preset--color--ink-soft); text-align: center; margin: .5rem 0 0; }
.bh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bh-form-thanks, .bh-form-error { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1rem; }
.bh-form-thanks { background: #E6F0E4; border: 1px solid #9DBB95; }
.bh-form-error { background: #F8E5DF; border: 1px solid #D69A86; }

/* Footer */
.bh-footer a { color: var(--wp--preset--color--sand); text-decoration: none; }
.bh-footer a:hover { color: #fff; text-decoration: underline; }
.bh-footer h4 { margin-bottom: 1rem !important; color: #fff; font-size: .8rem !important; letter-spacing: .12em; text-transform: uppercase; }
.bh-footer ul { list-style: none; padding: 0 !important; margin: 0; }
.bh-footer li { margin-bottom: .45rem; font-size: .95rem; }
.bh-footer .bh-brand { color: #fff; }
.bh-footer .bh-fine { font-size: .8rem; color: #A9B1BC; line-height: 1.6; }

/* Images */
.bh-photo img { border-radius: var(--bh-radius); }

/* Blog cards */
.bh-postcard { border-bottom: 1px solid var(--wp--preset--color--line); padding-bottom: 1.5rem; }
.bh-postcard .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.bh-postcard .wp-block-post-title a:hover { color: var(--wp--preset--color--brick); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bh-tile { transition: none; } }

/* Hero alignment: keep cover content on the same 1200px grid as the page */
.bh-hero, .bh-landing-hero { padding-left: var(--wp--style--root--padding-left, 1.5rem) !important; padding-right: var(--wp--style--root--padding-right, 1.5rem) !important; }
.bh-hero > .wp-block-cover__inner-container, .bh-landing-hero > .wp-block-cover__inner-container { width: 100%; max-width: 1200px; margin-inline: auto; }
.bh-hero .alignwide, .bh-landing-hero .alignwide { margin-left: 0 !important; }
.wp-block-details + .wp-block-details { margin-top: 0; }
.bh-footer .bh-brand__name em { color: #E08A68; }
.bh-related { columns: 2; column-gap: 2rem; }
@media (max-width: 600px) { .bh-related { columns: 1; } }
.bh-form__grid .bh-field:first-child { grid-column: 1 / -1; }
html, body { overflow-x: clip; }
