/* Velocity Weave — home page + responsive */

.vw-home {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow-x: hidden;
}

.vw-home-main {
  margin: 0;
}

.vw-home-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem var(--page-pad-x) 0;
}

/* Avoid horizontal scroll from full-bleed blocks on mobile */
.vw-home-content .wp-block-cover,
.vw-home-content .wp-block-image.alignfull,
.vw-home-content .alignfull {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 992px) {
  .vw-home-content .wp-block-cover,
  .vw-home-content .wp-block-image.alignfull,
  .vw-home-content .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
  }
}

.vw-home-content img,
.vw-home-content video {
  max-width: 100%;
  height: auto;
}

.vw-home-bottom {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.vw-demo-hero {
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
  background: #1d1f21;
}

.vw-demo-hero-link {
  display: block;
  line-height: 0;
}

.vw-demo-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(48vw, 420px);
  object-fit: cover;
  object-position: center;
}

.vw-demo-note {
  margin: -0.35rem 0 1rem;
  font-size: 0.8125rem;
  color: #888;
}

@media (min-width: 992px) {
  .vw-demo-hero {
    margin-bottom: 1.5rem;
  }

  .vw-demo-hero img {
    max-height: 420px;
  }
}


.vw-module-section {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
  margin-bottom: 2.5rem;
  box-sizing: border-box;
}

.vw-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #ebebeb;
}

.vw-module-title {
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  font-weight: 700;
  color: #1d1f21;
  margin: 0;
  letter-spacing: -0.02em;
  min-width: 0;
}

.vw-view-all {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1d1f21;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.vw-view-all:hover {
  color: #29bb9d;
}

.vw-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vw-product-grid > li,
.vw-product-grid .vw-product-card-wrap {
  list-style: none;
  margin: 0;
  min-width: 0;
}

.vw-why-choose {
  margin: 2rem 0;
  padding: 1.75rem 0;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}

.vw-section-title {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  color: #1d1f21;
  margin: 0 0 1.5rem;
}

.vw-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.vw-trust-card {
  text-align: center;
  padding: 0.75rem 0.35rem;
}

.vw-trust-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d1f21;
  margin: 0 0 0.6rem;
}

.vw-trust-card p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

.vw-faq {
  margin: 2rem auto;
  max-width: 860px;
}

.vw-faq-item {
  border: 1px solid #ebebeb;
  margin-bottom: -1px;
}

.vw-faq-question {
  margin: 0;
}

.vw-faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: #1d1f21;
  background: #ffffff;
  border: none;
  box-shadow: none;
  padding: 1rem 1rem;
  min-height: 52px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vw-faq-button:not(.collapsed) {
  background: #f8f8f8;
}

.vw-faq-icon {
  flex-shrink: 0;
}

.vw-faq-icon::before {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: #888;
}

.vw-faq-button:not(.collapsed) .vw-faq-icon::before {
  content: '−';
}

.vw-faq-body {
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.7;
  padding: 0 1rem 1.15rem;
}

/* Phone */
@media (max-width: 575.98px) {
  .vw-module-section {
    margin-bottom: 1.75rem;
  }

  .vw-module-header {
    margin-bottom: 0.65rem;
    padding-bottom: 0.4rem;
  }

  .vw-product-grid {
    gap: 0.6rem;
  }

  .vw-why-choose {
    margin: 1.5rem 0;
    padding: 1.25rem 0;
  }

  .vw-trust-grid {
    gap: 1rem;
  }

  .vw-faq-button {
    font-size: 0.875rem;
    padding: 0.9rem 0.85rem;
  }
}

/* Large phone / small tablet portrait */
@media (min-width: 576px) {
  .vw-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .vw-product-grid {
    gap: 1rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .vw-home-content {
    padding-top: 1.25rem;
  }

  .vw-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .vw-module-section {
    margin-bottom: 2.25rem;
  }

  .vw-why-choose {
    margin: 2.5rem 0;
    padding: 2rem 0;
  }

  .vw-faq-button {
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
  }

  .vw-faq-body {
    font-size: 0.9rem;
    padding: 0 1.25rem 1.25rem;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .vw-home-content {
    padding-top: 1.5rem;
  }

  .vw-module-section {
    margin-bottom: 3rem;
  }

  .vw-module-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .vw-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .vw-trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vw-why-choose {
    margin: 3rem 0;
    padding: 2.5rem 0;
  }

  .vw-section-title {
    margin-bottom: 2rem;
  }

  .vw-faq {
    margin: 3rem auto 2rem;
  }

  .vw-faq-button {
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
  }

  .vw-faq-body {
    font-size: 0.9rem;
    padding: 0 1.25rem 1.25rem;
  }
}
