body {
  background-color: var(--page-bg, #eff5ef);
  color: var(--body-text, #333333);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}

.container {
  max-width: 400px;
  margin: 50px auto;
  background-color: var(--card-bg, #f9f8f3);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(90, 107, 90, 0.16);
}

.home-hero-card {
  box-sizing: border-box;
  width: min(var(--container-width, 520px), calc(100% - 28px));
  max-width: 1200px;
  margin: 30px auto 0;
  padding: var(--container-padding, 30px);
}

.logo {
  width: 100px;
  margin-bottom: 15px;
  border-radius: 20px;
}

h1 {
  font-size: 22px;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.subtext {
  font-size: 18px;
  margin-bottom: 25px;
  color: #606b60;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--link-bg, #5a6b5a);
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s, transform 0.2s;
}

.link[hidden] {
  display: none;
}

.link:hover {
  background-color: #3e4e3e;
  transform: scale(1.03);
}

.link i {
  margin-right: 10px;
  font-size: 20px;
}

footer {
  font-size: 12px;
  color: #606b60;
  margin-top: 20px;
}

.home-sections {
  display: grid;
  gap: var(--section-gap, 16px);
  margin-top: 0;
  text-align: left;
}

.home-content {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 30px;
}

.home-section {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--section-bg, #f9f8f3);
  color: var(--section-text, #333);
  opacity: var(--section-opacity, 1);
}

.home-section.layout-right {
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
}

.home-section.layout-right .home-section-image {
  order: 2;
}

.home-section.layout-right .home-section-copy {
  order: 1;
}

.home-section.layout-stacked,
.home-section.layout-centered {
  grid-template-columns: 1fr;
}

.home-section.layout-centered {
  text-align: center;
}

.home-section-image img,
.home-section-image video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.home-section-image video {
  background: #111;
}

.client-reviews {
  box-sizing: border-box;
  max-width: min(520px, calc(100% - 28px));
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--corner-radius, 20px);
  background: var(--card-bg, #fff);
  color: var(--body-text, #222);
}

dialog.client-reviews {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: 85vh;
  margin: auto;
  border: 1px solid var(--brand, #5a6b5a);
  text-align: left;
  overflow-y: auto;
}

.client-reviews::backdrop {
  background: rgb(0 0 0 / 55%);
}

.reviews-dialog-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.reviews-dialog-close button,
#retryClientReviews {
  padding: 9px 14px;
  border: 1px solid var(--brand, #5a6b5a);
  border-radius: 10px;
  background: var(--card-bg, #fff);
  color: var(--body-text, #222);
  font: inherit;
  cursor: pointer;
}

.home-trust-card {
  box-sizing: border-box;
  width: min(520px, calc(100% - 28px));
  max-width: min(520px, calc(100% - 28px));
  margin: 24px auto;
  line-height: 1.6;
}

.home-trust-card h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.home-trust-card p { margin: 0; }

.client-reviews h2 {
  margin: 0 0 6px;
  color: var(--brand, #5a6b5a);
}

.client-reviews > p {
  margin: 0 0 16px;
}

.client-reviews-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
  color: #555;
}

.client-reviews-score {
  color: var(--body-text, #222);
  font-size: 1.35rem;
}

.client-reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.client-review {
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  color: #222;
}

.client-review-rating {
  color: var(--brand, #5a6b5a);
  letter-spacing: .12em;
}

.client-review-recommendation {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(138, 155, 136, .16);
  color: var(--brand, #5a6b5a);
  font-size: .9rem;
  font-weight: 700;
}

.client-review p {
  margin: 8px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.client-review small {
  color: #666;
}

.client-review-response {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--secondary, #8a9b88);
  border-radius: 0 8px 8px 0;
  background: rgba(138, 155, 136, .12);
}

.client-review-response p {
  margin-bottom: 0;
}

.home-section-copy h2 {
  font-size: var(--heading-size, 32px);
  margin-top: 0;
}

@keyframes home-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes home-slide-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; } }
@keyframes home-zoom-in { from { opacity: 0; scale: .8; } to { opacity: 1; } }
@keyframes home-flip-in { from { opacity: 0; rotate: -8deg; scale: .85; } to { opacity: 1; } }
@keyframes home-bounce-in { 0% { opacity: 0; translate: 0 18px; scale: .92; } 65% { opacity: 1; translate: 0 -4px; } 100% { translate: 0 0; scale: 1; } }
[data-builder-effect="fade"] { animation: home-fade-in .55s ease both; }
[data-builder-effect="slide"] { animation: home-slide-in .55s ease both; }
[data-builder-effect="zoom"] { animation: home-zoom-in .55s ease both; }
[data-builder-effect="flip"] { animation: home-flip-in .55s ease both; }
[data-builder-effect="bounce"] { animation: home-bounce-in .65s ease both; }

.home-section-copy p {
  font-size: var(--body-size, 18px);
  line-height: 1.5;
}

.section-button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--brand, #5a6b5a);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 24px);
    padding: 20px;
  }

  .home-content {
    width: calc(100% - 24px);
  }

  .home-section,
  .home-section.layout-right {
    grid-template-columns: 1fr;
  }

  .home-section-copy,
  .home-section-image {
    width: 100% !important;
    max-width: 100%;
  }

  .home-section.layout-right .home-section-image,
  .home-section.layout-right .home-section-copy {
    order: initial;
  }
}
