/* Layout & alignment fixes for the static HireAndBuild mirror */

:root {
  --hb-site-max: 1250px;
  --hb-content-max: 1200px;
  --hb-gutter: clamp(16px, 4vw, 44px);
}

/* Hide WordPress skip / screen-reader text (theme CSS was deferred) */
.skip-link,
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 100000 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  white-space: normal !important;
  background: #fff !important;
  color: #111 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18) !important;
  text-decoration: none !important;
}

/* FAQ toggle titles converted to buttons */
button.elementor-toggle-title {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 !important;
  overflow-x: clip;
}

#site-content,
#page,
#main {
  width: 100%;
  max-width: 100%;
}

/* ── Header: full-width bar, centered inner content ── */
#hb-head {
  width: 100%;
}

#hb-head .hb-strip,
#hb-head .hb-bar {
  width: 100%;
}

#hb-head .hb-inner {
  max-width: var(--hb-site-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(16px, 3vw, 28px) !important;
  padding-right: clamp(16px, 3vw, 28px) !important;
}

#hb-head .hb-menu {
  flex: 1;
  justify-content: center;
}

/* ── Footer: full-width bands, centered grid ── */
#hb-foot {
  width: 100%;
}

#hb-foot .hb-band-in,
#hb-foot .hb-main,
#hb-foot .hb-grid,
#hb-foot .hb-bottom-in {
  max-width: var(--hb-site-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--hb-gutter) !important;
  padding-right: var(--hb-gutter) !important;
}

#hb-foot .hb-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 991px) {
  #hb-foot .hb-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  #hb-foot .hb-grid {
    grid-template-columns: 1fr;
  }
}

#hb-foot .hb-bottom-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── Main content area ── */
body.elementor-clear-template #main > .wf-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.wf-container-main,
#content.content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Elementor stretched / full-width sections span viewport */
.elementor-section.elementor-section-stretched,
.elementor-section.elementor-section-full_width {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Boxed Elementor containers — centered column */
.elementor-section-boxed > .elementor-container,
.elementor-container.elementor-column-gap-default,
.elementor-container.elementor-column-gap-no {
  max-width: var(--hb-content-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--hb-gutter) !important;
  padding-right: var(--hb-gutter) !important;
}

/* Blog page manages its own column padding via blog.css */
.elementor-2303 .elementor-container.elementor-column-gap-no {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.elementor-2303 .e-con-boxed > .e-con-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Elementor flex containers (modern layout) */
.e-con-boxed > .e-con-inner,
.e-con.e-parent:not(.e-con-full) > .e-con-inner {
  max-width: var(--hb-content-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--hb-gutter) !important;
  padding-right: var(--hb-gutter) !important;
}

/* Full-bleed sections keep 100% width; inner blocks center themselves */
.e-con-full.e-parent {
  width: 100% !important;
  max-width: 100% !important;
}

.e-con-full > .e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Custom HTML widget sections (hero, about, etc.) */
.elementor-widget-html .container,
.elementor-widget-html .hero-inner,
.elementor-widget-html .who-grid,
.elementor-widget-html [class*="hnb-"][class*="__inner"],
.elementor-widget-html [class*="hnb-"][class*="__grid"] {
  max-width: var(--hb-content-max);
  margin-left: auto;
  margin-right: auto;
}

.elementor-widget-html .hero,
.elementor-widget-html section[class*="hnb-"],
.elementor-widget-html section.hero,
.elementor-widget-html section.who {
  width: 100%;
}

/* Projects page custom section */
.elementor-widget-html .section {
  max-width: var(--hb-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--hb-gutter);
  padding-right: var(--hb-gutter);
}

.elementor-widget-html .section-header {
  text-align: center;
}

.elementor-widget-html .tabs-wrap {
  display: flex;
  justify-content: center;
}

.elementor-widget-html .cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.elementor-widget-html .cards-grid-ongoing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1024px) {
  .elementor-widget-html .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .elementor-widget-html .cards-grid-ongoing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .elementor-widget-html .cards-grid,
  .elementor-widget-html .cards-grid-ongoing {
    grid-template-columns: 1fr;
  }
}

/* ── Blog / portfolio grid (non-blog-page fallbacks) ── */
.portfolio-shortcode:not(.the7_elements-765a4d3) .dt-css-grid,
.elementor-widget-the7_elements:not(.the7_elements-765a4d3) .dt-css-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(20px, 3vw, 40px) !important;
  max-width: var(--hb-content-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 var(--hb-gutter) clamp(40px, 6vw, 70px) !important;
}

.portfolio-shortcode:not(.the7_elements-765a4d3) .wf-cell,
.elementor-widget-the7_elements:not(.the7_elements-765a4d3) .wf-cell {
  width: 100% !important;
  min-width: 0;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 0 !important;
}

@media (max-width: 1024px) {
  .portfolio-shortcode:not(.the7_elements-765a4d3) .dt-css-grid,
  .elementor-widget-the7_elements:not(.the7_elements-765a4d3) .dt-css-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .portfolio-shortcode:not(.the7_elements-765a4d3) .dt-css-grid,
  .elementor-widget-the7_elements:not(.the7_elements-765a4d3) .dt-css-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Blog page heading (generic) */
.elementor-2303 .elementor-heading-title,
.elementor-element-085b818 .elementor-heading-title {
  text-align: center;
}

/* ── FAQ / toggle sections (works without 1MB Elementor CSS) ── */
.elementor-toggle,
.elementor-widget-toggle .elementor-widget-container {
  max-width: var(--hb-content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.elementor-toggle-item {
  border-bottom: 1px solid #ececec;
}

.elementor-tab-title {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.elementor-tab-title .elementor-toggle-icon {
  flex-shrink: 0;
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e85d04;
}

.elementor-tab-title .elementor-toggle-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.elementor-tab-title .elementor-toggle-title {
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.elementor-tab-content {
  display: none;
  padding: 0 4px 18px 34px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.elementor-tab-content.elementor-active {
  display: block;
}

.elementor-tab-title .elementor-toggle-icon-opened {
  display: none;
}

.elementor-tab-title.elementor-active .elementor-toggle-icon-closed {
  display: none;
}

.elementor-tab-title.elementor-active .elementor-toggle-icon-opened {
  display: inline-flex;
}

.elementor-heading-title {
  font-family: Poppins, sans-serif;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.elementor-widget-heading {
  text-align: center;
  margin: 24px 0 8px;
}

.elementor-element-085b818 .e-con-inner,
.elementor-element-ed3a4ce .e-con-inner {
  max-width: var(--hb-content-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ── Images & media ── */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.post-thumbnail img,
.elementor-widget-image img {
  width: 100%;
  object-fit: cover;
}

/* ── Text content readability ── */
.elementor-widget-text-editor,
.entry-content,
.elementor-widget-theme-post-content {
  max-width: var(--hb-content-max);
  margin-left: auto;
  margin-right: auto;
}

/* Single blog post content padding */
.single-post #content,
.type-post #content .elementor-widget-theme-post-content {
  padding-left: var(--hb-gutter);
  padding-right: var(--hb-gutter);
}

/* ── Projects grid ── */
.elementor-widget-the7_elements .classic-layout-list .post-thumbnail-wrap {
  overflow: hidden;
}

/* Prevent flex children from overflowing */
.elementor-widget-wrap,
.elementor-column,
.elementor-widget-container {
  min-width: 0;
}

/* Turnkey page — full-bleed hero */
.elementor-23488 .e-con-full > .e-con-inner,
.elementor-23488 .elementor-widget-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.elementor-23488 .hnb-hero {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Google Ads landing pages — full-bleed layout */
body.hb-lp-builders .page-title,
body.hb-lp-contractors .page-title {
  display: none !important;
}

.elementor-23291 .page-title,
.elementor-23167 .page-title,
body:has(.elementor-23291) .page-title,
body:has(.elementor-23167) .page-title {
  display: none !important;
}

.elementor-23291,
.elementor-23167,
body.hb-lp-builders #content,
body.hb-lp-contractors #content,
body.hb-lp-builders #main,
body.hb-lp-contractors #main {
  max-width: 100% !important;
  width: 100% !important;
}

.elementor-23291 .e-con-boxed > .e-con-inner,
.elementor-23167 .e-con-boxed > .e-con-inner,
.elementor-23291 .e-con-full > .e-con-inner,
.elementor-23167 .e-con-full > .e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.elementor-23291 .elementor-widget-container,
.elementor-23167 .elementor-widget-container,
.elementor-23291 .elementor-widget-html,
.elementor-23167 .elementor-widget-html,
.elementor-23291 .elementor-widget__width-initial,
.elementor-23167 .elementor-widget__width-initial {
  max-width: 100% !important;
  width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.elementor-23291 .hnb-hero,
.elementor-23167 .hnb-hero,
body.hb-lp-builders .hnb-hero,
body.hb-lp-contractors .hnb-hero {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: clamp(20px, 5vw, 80px) !important;
  padding-right: clamp(20px, 5vw, 80px) !important;
  box-sizing: border-box !important;
}

.elementor-23291 .hnb-st,
.elementor-23167 .hnb-st,
.elementor-23291 .hab-rs-section,
.elementor-23167 .hab-rs-section,
.elementor-23291 .hnb-pj,
.elementor-23167 .hnb-pj,
.elementor-23291 .wcb-wrap,
.elementor-23167 .wcb-wrap {
  width: 100% !important;
}

.elementor-23291 .wcb-track-wrap,
.elementor-23167 .wcb-track-wrap {
  overflow: hidden;
  width: 100%;
}

/* Why Choose Us / hab-rs — always visible (JS may animate in) */
.hab-rs-section .hab-rs-image-col,
.hab-rs-section .hab-rs-content-col {
  opacity: 1;
  transform: none;
}
