/* Desktop manual widths override Auto; tablet/mobile retain their own layout. */
/* Component defaults must not override the light colours requested by dark sections. */
.section-heading.text-white { color: #fff; }
.section-copy.text-slate-200 { color: #e2e8f0; }
.eyebrow.text-red-300 { color: #fca5a5; }
.eyebrow.text-red-200 { color: #fecaca; }
/* Keep hero text readable even over the brightest parts of a photograph. */
.hero-shell::after { position: absolute; inset: 0; content: ''; background: rgba(0,0,0,.4); pointer-events: none; }
.hero-shell .text-white\/70 { color: rgba(255,255,255,.9); }
.single .hero-shell .text-red-300 { color: #ffe4e6; }
.hh-card-grid { display: flex; flex-wrap: wrap; gap: var(--hh-gap, 1.5rem); align-items: stretch; }
.hh-card-grid > * { flex: 0 0 auto; width: 100%; min-width: 0; height: auto; }
@media (min-width: 640px) {
  .hh-card-grid:not(.hh-grid-md) > * { width: calc((100% - (var(--hh-tablet-columns, 2) - 1) * var(--hh-gap, 1.5rem)) / var(--hh-tablet-columns, 2)); }
}
@media (min-width: 768px) {
  .hh-card-grid.hh-grid-md > * { width: calc((100% - (var(--hh-tablet-columns, 2) - 1) * var(--hh-gap, 2rem)) / var(--hh-tablet-columns, 2)); }
}
@media (min-width: 1024px) {
  .hh-card-grid > *, .hh-card-grid.hh-grid-md > *, .hh-card-grid:not(.hh-grid-md) > * { width: var(--hh-card-width, var(--hh-auto-width, calc((100% - (var(--hh-columns, 3) - 1) * var(--hh-gap, 1.5rem)) / var(--hh-columns, 3)))); }
}
@media (max-width: 639px) {
  header .btn-cta-compact { display: inline-flex; min-height: 2.75rem; }
  header .btn-primary-red.hidden { display: none; }
}
.hh-mobile-submenu { padding-left: .75rem; }
.hh-mobile-submenu .mobile-link { font-size: .9375rem; }
.hh-footer-submenu { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; }
.hh-logo-empty { display: block; max-width: 14rem; line-height: 1.2; }
.admin-bar header.sticky { top: 32px; }
.admin-bar .mobile-nav { top: 96px; }
@media (min-width: 768px) { .admin-bar .mobile-nav { top: 160px; } }
@media (max-width: 782px) { .admin-bar header.sticky { top: 46px; } .admin-bar .mobile-nav { top: 110px; } }
@media (min-width: 768px) and (max-width: 782px) { .admin-bar .mobile-nav { top: 174px; } }

/* Plugin-generated fields use the source form's dark and light treatments. */
.hh-form-dark, .hero-form { --hh-form-ink: #fff; --hh-form-muted: #cbd5e1; --hh-form-bg: rgba(255,255,255,.08); --hh-form-border: rgba(255,255,255,.2); --hh-form-focus: #fff; }
.hh-form-light, .contact-form, .hh-careers-form { --hh-form-ink: var(--ink); --hh-form-muted: var(--ink-muted); --hh-form-bg: #fff; --hh-form-border: #cbd5e1; --hh-form-focus: var(--brand-blue); }
/* Grid items and plugin fieldsets must shrink below their intrinsic content width. */
main .grid > *, .hero-form-wrap, .contact-form .fluentform { min-width: 0; }
.page-template-template-contact-us .site-container.grid > * { overflow-wrap: anywhere; }
:is(.hero-form,.contact-form,.hh-careers-form) .fluentform fieldset { min-inline-size: 0 !important; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform { color: var(--hh-form-ink); font-family: inherit; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform .ff-el-group { margin-bottom: .5rem; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform .ff-el-input--label { margin-bottom: 0; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform .ff_submit_btn_wrapper { margin-bottom: 0; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform .ff-el-input--label label { display: block; margin-bottom: .25rem; color: var(--hh-form-ink); font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform .ff-el-form-control { width: 100%; min-height: 3rem; padding: .625rem .75rem; border: 1px solid var(--hh-form-border); border-radius: .5rem; color: var(--hh-form-ink); background: var(--hh-form-bg); font-family: inherit; font-size: 1rem; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform .ff-el-form-control::placeholder { color: var(--hh-form-muted); opacity: 1; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform select option { background: #fff; color: var(--ink); }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform textarea.ff-el-form-control { min-height: 5.75rem; resize: vertical; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform .ff-el-form-control:focus { outline: 2px solid var(--hh-form-focus); outline-offset: 2px; border-color: var(--hh-form-focus); box-shadow: none; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform .ff-btn-submit { display: inline-flex; width: 100%; min-height: 3rem; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.5rem; border: none; border-radius: .375rem; color: #fff; background: var(--brand-red); font-size: 1rem; font-weight: 700; letter-spacing: .02em; cursor: pointer; box-shadow: 0 10px 18px -10px rgba(185,28,28,.38); }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform .ff-btn-submit:hover { background: #a01717; }
:is(.hh-form-dark,.hh-form-light,.hero-form,.contact-form,.hh-careers-form) .fluentform .ff-el-is-error .ff-el-form-control { border-color: #ef4444; }
.hh-form-dark .fluentform .error, .hero-form .fluentform .error, .hh-form-dark .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label:after, .hero-form .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label:after { color: #fecaca; }
.hh-form-light .fluentform .error, .contact-form .fluentform .error, .hh-careers-form .fluentform .error { color: #b91c1c; }
.fluentform .ff-message-success { color: var(--ink); background: #f0fdf4; }
.hh-form-unavailable { margin-block: .75rem; line-height: 1.6; }
/* Preserve the source split hero on desktop; give tablet copy and forms a full row. */
@media (min-width: 1200px) {
  .home .hero-shell > .site-container { padding-top: 3rem; }
}
@media (max-width: 1199px) {
  .hero-shell .grid:has(> .hero-form-wrap) { grid-template-columns: minmax(0, 1fr); max-width: 44rem; margin-inline: auto; gap: 2rem; }
  .hero-shell .grid:has(> .hero-form-wrap) > * { top: auto; }
  .hero-shell .site-container:has(.hero-form-wrap) { min-height: 0; padding-block: 3.5rem; }
  .hero-form-wrap { max-width: 36rem; margin-inline: auto; }
  .hero-shell .grid:has(> .hero-form-wrap) :is(h1:not(.trust-pill),h2) { font-size: clamp(2.25rem, 5.5vw, 3.25rem); line-height: 1.1; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .section-pad { padding-block: 4rem; }
  .section-heading { font-size: clamp(2rem, 4vw, 2.5rem); }
}
@media (max-width: 1023px) {
  .section-pad > .site-container.grid { grid-template-columns: minmax(0, 1fr); }
  .home #services > .site-container > .grid { grid-template-columns: minmax(0, 1fr); }
  .home #services .stack-title, .home #services .stack-card { position: static; }
  .home #services .service-card > .grid { grid-template-columns: minmax(0, 1fr) minmax(8rem, 35%); }
  .financing-panel { grid-template-columns: auto minmax(0, 1fr); }
  .financing-button { grid-column: 1 / -1; justify-self: stretch; white-space: normal; }
  .project-gallery-grid { height: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 22rem; grid-template-areas: "content content" "carousel-left carousel-right"; }
  .project-gallery-content { padding: 0; }
}
.project-gallery-content { padding-block: 3rem; }
@media (min-width: 1024px) {
  .project-gallery-grid { height: max(65vh, 40rem); }
  .project-gallery-content { padding-block: 4rem; }
}
@media (max-width: 639px) {
  header > .site-container { gap: .5rem; }
  header > .site-container > .flex { gap: .5rem; }
  header .btn-cta-compact { max-width: 7rem; min-height: 2.75rem; padding: .375rem .625rem; font-size: .75rem; line-height: 1.2; text-align: center; }
  header .btn-cta-compact i { display: none; }
  header .shrink-0 img { max-width: 7.25rem; height: auto; max-height: 2.75rem; }
  .financing-panel { grid-template-columns: minmax(0, 1fr); }
  .home #services .service-card > .grid { grid-template-columns: minmax(0, 1fr) 7.5rem; }
}
@media (max-width: 360px) {
  header .shrink-0 img { max-width: 6rem; }
  .home #services .service-card > .grid { grid-template-columns: minmax(0, 1fr); }
  .home #services .service-card-image { height: 12rem; }
}
/* Legacy builder toolbar labels otherwise spill over the tablet header. */
@media (max-width: 1100px) {
  #wpadminbar li:is(#wp-admin-bar-vc_inline-admin-bar-link,#wp-admin-bar-customize,#wp-admin-bar-edit,#wp-admin-bar-wpseo-menu) { display: none !important; }
}
.hh-native-content { overflow-wrap: anywhere; line-height: 1.8; }
.hh-native-content > * + * { margin-top: 1.5rem; }
.hh-native-content h2, .hh-native-content h3 { font-weight: 800; line-height: 1.3; }
.hh-native-content h2 { font-size: 1.875rem; }
.hh-native-content h3 { font-size: 1.5rem; }
.hh-native-content a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.hh-native-content ul { list-style: disc; padding-left: 1.5rem; }
.hh-native-content ol { list-style: decimal; padding-left: 1.5rem; }
.hh-native-content img { max-width: 100%; height: auto; }
.hh-native-content blockquote { border-left: 3px solid var(--brand-red); padding-left: 1.5rem; }
.hh-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.hh-pagination .page-numbers { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; padding: .5rem; border: 1px solid #cbd5e1; border-radius: .375rem; background: #fff; color: var(--brand-blue); font-weight: 700; }
.hh-pagination .current { color: #fff; background: var(--brand-blue); }
