/* Final homepage content and footer refinements. */

/* Place the restored new-products listing directly after the brand story. */
.page-home .dekid-new-products {
  order: 6 !important;
}

/* A calmer brand-story card than the former solid navy panel. */
#custom-text {
  position: relative;
  overflow: hidden;
  margin: 6px 0 62px;
  padding: 38px clamp(26px, 6vw, 76px);
  border: 1px solid rgba(44, 145, 132, 0.14);
  border-radius: var(--dekid-radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, #f0faf7 100%);
  box-shadow: 0 12px 34px rgba(23, 52, 95, 0.06);
  text-align: center;
}

#custom-text::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 72px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: #2c9184;
  content: "";
  transform: translateX(-50%);
}

#custom-text h2,
#custom-text p {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  color: var(--dekid-ink);
}

#custom-text h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
}

#custom-text p {
  margin-bottom: 8px;
  color: #5e6e82;
  font-size: 0.98rem;
  line-height: 1.65;
}

#custom-text p:last-child {
  margin-bottom: 0;
}

#custom-text strong,
#custom-text strong.dark {
  color: var(--dekid-navy);
}

/* Newsletter: a quiet, integrated panel instead of a stark white rectangle. */
#footer > .container:first-child {
  padding-top: 34px;
  padding-bottom: 0;
}

#footer > .container:first-child > .row {
  display: flex;
  justify-content: center;
  margin-right: 0;
  margin-left: 0;
}

#footer .block_newsletter {
  float: none;
  width: min(100%, 920px);
  max-width: 920px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: none;
}

#footer .block-social:not(:has(li)) {
  display: none;
}

#footer .block_newsletter > .row {
  display: flex;
  align-items: center;
  margin: 0;
}

#footer .block_newsletter #block-newsletter-label {
  padding-right: 26px;
  padding-left: 0;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

#footer .block_newsletter form .row,
#footer .block_newsletter form .col-xs-12 {
  margin: 0;
  padding: 0;
}

#footer .block_newsletter form input[type="email"] {
  height: 46px;
  padding: 0 18px;
  color: var(--dekid-ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px 0 0 13px;
  background: rgba(255, 255, 255, 0.96);
}

#footer .block_newsletter form input[type="email"]:focus {
  border-color: var(--dekid-mint);
  box-shadow: 0 0 0 3px rgba(123, 207, 190, 0.18);
  outline: 0;
}

#footer .block_newsletter form input[type="submit"] {
  height: 46px;
  padding: 0 20px;
  border-radius: 0 13px 13px 0;
  font-size: 0.76rem;
  letter-spacing: 0.025em;
}

#footer .block_newsletter form p {
  padding-top: 9px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  line-height: 1.5;
}

#footer .footer-container {
  margin-top: 0;
  padding-top: 38px;
}

@media (max-width: 767px) {
  #custom-text {
    margin-bottom: 48px;
    padding: 30px 20px;
  }

  #custom-text h2 {
    font-size: 1.35rem;
  }

  #footer > .container:first-child {
    padding-top: 26px;
  }

  #footer .block_newsletter {
    width: 100%;
    padding: 20px 18px;
    border-radius: 17px;
  }

  #footer .block_newsletter > .row {
    display: block;
  }

  #footer .block_newsletter #block-newsletter-label {
    padding: 0;
    margin-bottom: 14px;
    text-align: center;
  }
}
