/* Front-page landing system. Scoped to .home so internal templates stay untouched. */
:root {
  --balans-ink: #1f2937;
  --balans-muted: #5f6b78;
  --balans-green: #087a3c;
  --balans-green-dark: #075f31;
  --balans-green-soft: #eaf6ef;
  --balans-blue-soft: #eef5fb;
  --balans-line: #dfe6e2;
  --balans-surface: #ffffff;
  --balans-surface-alt: #f5f7f6;
  --balans-shadow: 0 18px 50px rgba(27, 43, 35, 0.1);
}

body.home {
  color: var(--balans-ink);
}

/* Hero */
body.home .carousel .page-header {
  min-height: clamp(570px, 72vh, 680px) !important;
  background-position: center 58% !important;
}

body.home .carousel .header-filter::before {
  background: linear-gradient(90deg, rgba(10, 20, 17, 0.88) 0%, rgba(10, 20, 17, 0.69) 48%, rgba(10, 20, 17, 0.2) 100%);
}

body.home .carousel .item .container {
  padding-top: 118px !important;
}

body.home .hestia-big-title-content {
  max-width: 850px;
  text-align: left;
}

body.home .hestia-big-title-content .hestia-title {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(40px, 5vw, 60px) !important;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body.home .hestia-big-title-content .sub-title {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

body.home .hestia-big-title-content .buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 30px;
}

body.home .hestia-big-title-content .buttons .btn {
  display: inline-flex;
  min-height: 54px;
  margin: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

body.home .hestia-big-title-content .buttons .btn-primary {
  background: var(--balans-green);
  border-color: var(--balans-green);
}

body.home .hestia-big-title-content .buttons .btn-primary:hover,
body.home .hestia-big-title-content .buttons .btn-primary:focus {
  background: var(--balans-green-dark);
  border-color: var(--balans-green-dark);
}

body.home .hestia-big-title-content .balansspb-hero-phone {
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(10, 20, 17, 0.34);
  color: #fff;
}

body.home .hestia-big-title-content .balansspb-hero-phone small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

body.home .hestia-big-title-content .balansspb-hero-phone:hover,
body.home .hestia-big-title-content .balansspb-hero-phone:focus {
  border-color: #fff;
  background: #fff;
  color: var(--balans-ink);
}

body.home .hestia-big-title-content .balansspb-hero-phone:hover small,
body.home .hestia-big-title-content .balansspb-hero-phone:focus small {
  color: var(--balans-muted);
}

/* Reset Hestia's nested About container for controlled full-width sections. */
body.home #about {
  padding: 0;
  background: var(--balans-surface);
}

body.home #about > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.home #about .hestia-about-content {
  margin: 0;
}

body.home #about .hestia-about-content > p:empty,
body.home #about .hestia-about-content > p:first-child {
  display: none;
}

.home .balansspb-landing {
  width: 100%;
  color: var(--balans-ink);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.home .balansspb-landing *,
.home .balansspb-landing *::before,
.home .balansspb-landing *::after {
  box-sizing: border-box;
}

.home .balansspb-container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.home .balansspb-section {
  padding: 82px 0;
}

.home .balansspb-section--soft {
  background: var(--balans-surface-alt);
}

.home .balansspb-section--dark {
  background: #15231c;
  color: #fff;
}

.home .balansspb-eyebrow {
  margin: 0 0 12px;
  color: var(--balans-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home .balansspb-section--dark .balansspb-eyebrow {
  color: #7fd3a5;
}

.home .balansspb-section-title {
  max-width: 790px;
  margin: 0;
  color: var(--balans-ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.home .balansspb-section--dark .balansspb-section-title {
  color: #fff;
}

.home .balansspb-section-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--balans-muted);
  font-size: 18px;
  line-height: 1.65;
}

.home .balansspb-section--dark .balansspb-section-lead {
  color: rgba(255, 255, 255, 0.72);
}

/* Facts */
.home .balansspb-facts {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  padding: 0 0 42px;
}

.home .balansspb-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--balans-line);
  border-radius: 14px;
  background: var(--balans-surface);
  box-shadow: var(--balans-shadow);
}

.home .balansspb-fact {
  min-height: 168px;
  padding: 28px 25px;
  border-right: 1px solid var(--balans-line);
}

.home .balansspb-fact:last-child {
  border-right: 0;
}

.home .balansspb-fact-kicker {
  display: block;
  margin-bottom: 17px;
  color: var(--balans-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.home .balansspb-fact h2 {
  margin: 0 0 8px;
  color: var(--balans-ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
}

.home .balansspb-fact p {
  margin: 0;
  color: var(--balans-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Problem and brief */
.home .balansspb-diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 64px;
  align-items: start;
}

.home .balansspb-signs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.home .balansspb-signs li {
  position: relative;
  min-height: 82px;
  margin: 0;
  padding: 18px 18px 18px 48px;
  border: 1px solid var(--balans-line);
  border-radius: 10px;
  background: #fff;
  color: #34413a;
  line-height: 1.5;
}

.home .balansspb-signs li::before {
  position: absolute;
  top: 19px;
  left: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--balans-green-soft);
  color: var(--balans-green);
  content: "✓";
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.home .balansspb-brief {
  padding: 30px;
  border-radius: 14px;
  background: #15231c;
  color: #fff;
  box-shadow: var(--balans-shadow);
}

.home .balansspb-brief h3 {
  margin: 0 0 18px;
  color: #fff;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 24px;
  line-height: 1.3;
}

.home .balansspb-brief ul {
  margin: 0;
  padding-left: 20px;
}

.home .balansspb-brief li {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.home .balansspb-brief-note {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #91d8af;
  font-size: 14px;
  line-height: 1.55;
}

/* Services */
.home .balansspb-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.home .balansspb-service-card {
  display: flex;
  min-height: 255px;
  grid-column: span 2;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--balans-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 43, 35, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home .balansspb-service-card:nth-child(n + 4) {
  grid-column: span 3;
  min-height: 225px;
}

.home .balansspb-service-card:hover {
  transform: translateY(-4px);
  border-color: #bad9c7;
  box-shadow: 0 18px 38px rgba(27, 43, 35, 0.1);
}

.home .balansspb-card-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--balans-green-soft);
  color: var(--balans-green);
  font-size: 13px;
  font-weight: 700;
}

.home .balansspb-service-card h3 {
  margin: 0 0 11px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 22px;
  line-height: 1.3;
}

.home .balansspb-service-card h3 a {
  color: var(--balans-ink);
  box-shadow: none;
}

.home .balansspb-service-card h3 a:hover,
.home .balansspb-service-card h3 a:focus {
  color: var(--balans-green);
}

.home .balansspb-service-card p {
  margin: 0 0 20px;
  color: var(--balans-muted);
  line-height: 1.6;
}

.home .balansspb-card-link {
  margin-top: auto;
  color: var(--balans-green);
  font-weight: 700;
}

/* Equipment / objects */
.home .balansspb-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.home .balansspb-equipment-item {
  min-height: 150px;
  padding: 26px;
  background: #1c3026;
}

.home .balansspb-equipment-item span {
  display: block;
  margin-bottom: 18px;
  color: #78cfa0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home .balansspb-equipment-item h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 21px;
  line-height: 1.35;
}

.home .balansspb-equipment-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.home .balansspb-inline-cta {
  display: flex;
  margin-top: 30px;
  align-items: center;
  gap: 12px;
}

.home .balansspb-inline-cta a {
  color: #9be0b9;
  font-weight: 700;
  box-shadow: none;
}

.home .balansspb-inline-cta a:hover,
.home .balansspb-inline-cta a:focus {
  color: #fff;
}

/* Process */
.home .balansspb-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  counter-reset: balans-step;
}

.home .balansspb-step {
  position: relative;
  padding-top: 58px;
  counter-increment: balans-step;
}

.home .balansspb-step::before {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b7d7c4;
  border-radius: 50%;
  color: var(--balans-green);
  content: counter(balans-step, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
}

.home .balansspb-step:not(:last-child)::after {
  position: absolute;
  top: 20px;
  left: 54px;
  width: calc(100% - 42px);
  height: 1px;
  background: var(--balans-line);
  content: "";
}

.home .balansspb-step h3 {
  margin: 0 0 10px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 21px;
  line-height: 1.35;
}

.home .balansspb-step p {
  margin: 0;
  color: var(--balans-muted);
  line-height: 1.6;
}

/* FAQ */
.home .balansspb-faq-list {
  max-width: 900px;
  margin: 36px auto 0;
  border-top: 1px solid var(--balans-line);
}

.home .balansspb-faq-item {
  margin: 0;
  border-bottom: 1px solid var(--balans-line);
  background: transparent;
}

.home .balansspb-faq-item summary {
  position: relative;
  padding: 22px 52px 22px 0;
  color: var(--balans-ink);
  cursor: pointer;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.home .balansspb-faq-item summary::-webkit-details-marker {
  display: none;
}

.home .balansspb-faq-item summary::after {
  position: absolute;
  top: 18px;
  right: 0;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--balans-green-soft);
  color: var(--balans-green);
  content: "+";
  font: 500 22px/1 Arial, sans-serif;
}

.home .balansspb-faq-item[open] summary::after {
  content: "−";
}

.home .balansspb-faq-item p {
  max-width: 780px;
  margin: -4px 0 22px;
  color: var(--balans-muted);
  line-height: 1.65;
}

/* Form */
.home .balansspb-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 58px;
  padding: 52px;
  border-radius: 18px;
  background: #fff;
  color: var(--balans-ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.home .balansspb-contact-card .balansspb-eyebrow {
  color: var(--balans-green);
}

.home .balansspb-contact-card .balansspb-section-title {
  font-size: clamp(30px, 3vw, 42px);
}

.home .balansspb-contact-details {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--balans-line);
}

.home .balansspb-contact-details p {
  margin: 0 0 8px;
  color: var(--balans-muted);
}

.home .balansspb-contact-details a {
  color: var(--balans-ink);
  font-size: 21px;
  font-weight: 700;
  box-shadow: none;
}

.home .balansspb-contact-hint {
  margin: 18px 0 0;
  color: var(--balans-muted);
  font-size: 14px;
  line-height: 1.6;
}

.home .balansspb-form .wpforms-container {
  margin: 0;
}

.home .balansspb-form .wpforms-field {
  padding: 0 0 15px;
}

.home .balansspb-form .wpforms-field-label {
  margin-bottom: 7px;
  color: #34413a;
  font-size: 13px;
  font-weight: 700;
}

.home .balansspb-form input[type="text"],
.home .balansspb-form input[type="email"],
.home .balansspb-form input[type="tel"],
.home .balansspb-form textarea {
  width: 100%;
  max-width: none;
  border: 1px solid #cdd8d2;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.home .balansspb-form input[type="text"],
.home .balansspb-form input[type="email"],
.home .balansspb-form input[type="tel"] {
  min-height: 48px;
}

.home .balansspb-form textarea {
  min-height: 118px;
}

.home .balansspb-form button[type="submit"] {
  min-height: 50px;
  padding: 13px 25px;
  border-radius: 7px;
  background: var(--balans-green);
  box-shadow: none;
  font-weight: 700;
}

/* Native Hestia shop and works sections */
body.home #products,
body.home #blog {
  padding: 82px 0;
}

body.home #products .hestia-title,
body.home #blog .hestia-title {
  color: var(--balans-ink);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
}

body.home #products .description,
body.home #blog .description {
  color: var(--balans-muted);
  font-size: 17px;
}

body.home #products .card-product,
body.home #blog .card-blog {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 9px 30px rgba(27, 43, 35, 0.09);
}

body.home #products ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0 0;
}

body.home #products ul.products::before,
body.home #products ul.products::after {
  display: none;
}

body.home #products ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 24px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(27, 43, 35, 0.09);
}

body.home #products ul.products li.product a {
  box-shadow: none;
}

body.home #products ul.products li.product img {
  width: 100%;
  margin: 0 0 20px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

body.home #products ul.products .woocommerce-loop-product__title,
body.home #products ul.products .price,
body.home #products ul.products .button {
  margin-right: 22px;
  margin-left: 22px;
}

body.home #products ul.products .woocommerce-loop-product__title {
  color: var(--balans-ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 18px;
  line-height: 1.4;
}

body.home #products ul.products .price {
  color: var(--balans-green);
  font-weight: 700;
}

body.home #products ul.products .button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 6px;
  background: var(--balans-green);
  color: #fff;
}

body.home #products .card-image,
body.home #blog .card-image {
  border-radius: 12px 12px 0 0;
}

body.home #products .card-title,
body.home #blog .card-title {
  line-height: 1.35;
}

body.home #products .card-description p,
body.home #blog .card-description p {
  color: #595959 !important;
}

body.home #blog .card-blog .content {
  margin-top: 0 !important;
}

body.home #blog .category a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 0;
}

body.home #blog .card-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.home #ribbon {
  display: none !important;
}

.home .balansspb-section-cta {
  margin-top: 36px;
  text-align: center;
}

.home .balansspb-outline-button {
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid var(--balans-green);
  border-radius: 7px;
  background: transparent;
  color: var(--balans-green);
  box-shadow: none;
  font-weight: 700;
}

.home .balansspb-outline-button:hover,
.home .balansspb-outline-button:focus {
  background: var(--balans-green);
  color: #fff;
}

@media (max-width: 991px) {
  .home .balansspb-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .balansspb-fact:nth-child(2) {
    border-right: 0;
  }

  .home .balansspb-fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--balans-line);
  }

  .home .balansspb-diagnostic-grid,
  .home .balansspb-contact-card {
    grid-template-columns: 1fr;
  }

  .home .balansspb-brief {
    max-width: none;
  }

  .home .balansspb-service-card,
  .home .balansspb-service-card:nth-child(n + 4) {
    min-height: 230px;
    grid-column: span 3;
  }

  .home .balansspb-equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .balansspb-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home #products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .balansspb-step:nth-child(2)::after,
  .home .balansspb-step:last-child::after {
    display: none;
  }
}

@media (max-width: 767px) {
  body.home .carousel .page-header {
    min-height: 650px !important;
    background-position: 62% center !important;
  }

  body.home .carousel .header-filter::before {
    background: linear-gradient(90deg, rgba(9, 18, 15, 0.9) 0%, rgba(9, 18, 15, 0.72) 100%);
  }

  body.home .carousel .item .container {
    padding-top: 118px !important;
  }

  body.home .hestia-big-title-content .hestia-title {
    max-width: 520px;
    font-size: clamp(32px, 9vw, 38px) !important;
    line-height: 1.1;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  body.home .hestia-big-title-content .sub-title {
    max-width: 540px;
    font-size: 18px;
    line-height: 1.5;
  }

  body.home .hestia-big-title-content .buttons {
    align-items: stretch;
    flex-direction: column;
  }

  body.home .hestia-big-title-content .buttons .btn {
    width: min(100%, 330px);
  }

  .home .balansspb-container {
    width: min(100% - 28px, 1160px);
  }

  .home .balansspb-section {
    padding: 60px 0;
  }

  .home .balansspb-facts {
    margin-top: -26px;
    padding-bottom: 24px;
  }

  .home .balansspb-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .balansspb-signs,
  .home .balansspb-card-grid,
  .home .balansspb-process {
    grid-template-columns: 1fr;
  }

  .home .balansspb-equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .balansspb-fact {
    min-height: auto;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--balans-line);
  }

  .home .balansspb-fact:last-child {
    border-bottom: 0;
  }

  .home .balansspb-fact-kicker {
    margin-bottom: 10px;
  }

  .home .balansspb-fact h2 {
    font-size: 17px;
  }

  .home .balansspb-fact p {
    font-size: 13px;
  }

  .home .balansspb-diagnostic-grid {
    gap: 32px;
  }

  .home .balansspb-signs {
    gap: 10px;
  }

  .home .balansspb-signs li {
    min-height: auto;
  }

  .home .balansspb-service-card,
  .home .balansspb-service-card:nth-child(n + 4) {
    min-height: auto;
    grid-column: auto;
  }

  .home .balansspb-equipment-item {
    min-height: auto;
    padding: 18px 16px;
  }

  .home .balansspb-equipment-item h3 {
    font-size: 17px;
  }

  .home .balansspb-equipment-item p {
    font-size: 13px;
  }

  .home .balansspb-step {
    padding: 8px 0 8px 60px;
  }

  .home .balansspb-step::before {
    top: 4px;
  }

  .home .balansspb-step::after {
    display: none;
  }

  .home .balansspb-contact-card {
    gap: 34px;
    padding: 28px 22px;
  }

  body.home #products,
  body.home #blog {
    padding: 60px 0;
  }

  body.home #products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.home #products ul.products li.product {
    padding-bottom: 16px;
  }

  body.home #products ul.products .card-product .content {
    padding: 14px 12px;
  }

  body.home #products ul.products .woocommerce-loop-product__title,
  body.home #products ul.products .price,
  body.home #products ul.products .button {
    margin-right: 12px;
    margin-left: 12px;
  }

  body.home #products ul.products .woocommerce-loop-product__title {
    font-size: 15px;
  }

  body.home #blog .card-image {
    height: 200px;
    overflow: hidden;
  }

  body.home #blog .card-image a {
    display: block;
    height: 100%;
  }

  body.home #blog .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.home #blog .card-blog .content {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .balansspb-service-card {
    transition: none;
  }
}

