/* Components: Home Build reusable section, card, CTA, and collection systems */

.editor-styles-wrapper {
     --kd-content-max: 1200px;
}

.kd-section {
  position: relative;
  max-width: var(--kd-content-max);
  margin: 0 auto 44px;
  padding: 0;
  background: transparent;
}

.kd-section > * {
  position: relative;
  z-index: 1;
}

.kd-home-build p,
.kd-home-build h1,
.kd-home-build h2,
.kd-home-build h3,
.kd-home-build blockquote,
.kd-home-build figure {
  margin-top: 0;
}

.kd-home-build p:last-child,
.kd-home-build h1:last-child,
.kd-home-build h2:last-child,
.kd-home-build h3:last-child,
.kd-home-build blockquote:last-child,
.kd-home-build figure:last-child {
  margin-bottom: 0;
}

.kd-home-build a {
  color: inherit;
  text-decoration: none;
}

.kd-home-build p,
.kd-home-build li,
.kd-home-build a,
.kd-home-build span,
.kd-home-build strong {
  font-family: "Cormorant Garamond", serif;
}

.kd-eyebrow {
  margin: 0 0 10px;
  color: var(--kd-rose-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kd-heading {
  margin: 0 auto 24px;
  text-align: center;
}

.kd-heading h2 {
  margin: 0 0 10px;
  color: var(--kd-ink);
  font-family: "Lobster", cursive;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.98;
}

.kd-heading p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--kd-muted);
  font-size: 17px;
  line-height: 1.45;
}

.kd-reassurance {
  margin-top: 14px;
  color: var(--kd-ink);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

.kd-style-grid,
.kd-route-grid,
.kd-collection-grid,
.kd-review-grid,
.kd-story-grid {
  display: grid;
  gap: 18px;
}

.kd-style-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kd-route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kd-collection-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kd-review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kd-story-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kd-style-card,
.kd-route-card,
.kd-collection-card,
.kd-story-card,
.kd-quote-card {
  margin: 0;
}

.kd-style-card,
.kd-route-card,
.kd-collection-card,
.kd-story-card {
  display: block;
  padding: 12px 12px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(110, 78, 52, 0.12);
}

.kd-style-card {
  border: 1px solid #f0e4df;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kd-style-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.kd-style-card::after {
  content: "";
  display: block;
  clear: both;
}

.dress_Style,
.kd-style-card img {
  float: right;
  width: 150px;
  height: auto;
  margin-left: 3px;
  margin-bottom: 10px;
  opacity: 0.95;
}

.kd-style-card h3,
.kd-route-card h3,
.kd-collection-card h3 {
  margin: 0 0 8px;
  color: var(--kd-ink);
  font-family: "Abril Fatface", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 0.96;
}

.style-hook {
  margin: 0 0 10px;
  color: var(--kd-ink);
  font-size: 18px;
  font-style: italic;
  line-height: 1.3;
}

.kd-style-card p,
.kd-route-card p,
.kd-collection-card p,
.kd-collection-card span {
  color: var(--kd-muted);
  font-size: 16px;
  line-height: 1.42;
}

.style-cta,
.route-cta,
.collection-cta {
  display: inline-block;
  margin-top: 12px;
  color: var(--kd-rose);
  font-size: 22px;
  font-weight: 600;
}

.kd-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 24px;
    align-items: stretch;
    grid-auto-flow: row;
    justify-content: space-evenly;
}

.kd-intro-copy {
  padding: 26px 28px;
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.76);
  box-shadow: 0 10px 22px rgba(110, 78, 52, 0.08);
}

.kd-intro-copy p {
  color: var(--kd-ink);
  font-size: 18px;
  line-height: 1.4;
}

.kd-route-card {
  position: relative;
  transition: transform 0.2s ease;
}

.kd-route-card:hover {
  transform: translateY(-4px);
}

.kd-collection-card {
  color: inherit;
  transition: transform 0.2s ease;
}

.kd-collection-card:hover {
  transform: translateY(-4px);
}

.kd-collection-card img,
.kd-story-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.92;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 14px 28px rgba(110, 78, 52, 0.12);
}

.kd-collection-card .kd-copy {
  padding: 16px 8px 0;
}

.kd-collection-card .kd-meta {
  margin-bottom: 8px;
  color: var(--kd-rose-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kd-quote-card {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid #f0e4df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kd-quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.kd-quote-card::before {
  content: "★★★★★";
  display: block;
  margin-bottom: 10px;
  color: #d4a373;
  font-size: 12px;
  letter-spacing: 2px;
}

.kd-quote-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: #d45c7a;
  border-top-left-radius: 12px;
}

.kd-quote-card:nth-child(2n) {
  transform: rotate(-0.3deg);
}

.kd-quote-card:nth-child(3n) {
  transform: rotate(0.3deg);
}

.kd-quote-card:nth-child(2n):hover,
.kd-quote-card:nth-child(3n):hover {
  transform: translateY(-4px) rotate(0deg);
}

.kd-quote-card:nth-child(2) {
  transform: scale(1.04);
  border-color: #e8d6cf;
}

.kd-quote-card p {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--kd-ink);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
}

.kd-quote-card p::before {
  content: "“";
  position: absolute;
  top: -4px;
  left: 0;
  color: #d45c7a;
  font-size: 26px;
  opacity: 0.6;
}

.kd-quote-card cite {
  display: block;
  margin-top: 12px;
  color: #555;
  font-size: 13px;
  font-style: normal;
  opacity: 0.75;
}

.kd-review-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: center;
  margin: 15px 0 25px;
  text-align: center;
}

.kd-review-cta,
.kd-stories-cta {
  margin-top: 25px;
  text-align: center;
  color:white;
}

.kd-review-cta .kd-button,
.kd-stories-cta .kd-button {
  display: inline-flex;
}

.kd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 1.55em;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--kd-rose), var(--kd-rose-dark));
  color: #fffdf8;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 26px rgba(170, 44, 89, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.kd-button:visited,
.kd-button:hover,
.kd-button:focus,
.kd-button:active {
  color: #fffdf8;
  text-decoration: none;
}

.kd-button:hover,
.kd-button:focus-visible {
  font-weight: 800;
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(1.02);
  box-shadow: 0 16px 30px rgba(170, 44, 89, 0.24);
}

.kd-button:focus-visible {
  outline: 2px solid rgba(255, 253, 248, 0.92);
  outline-offset: 2px;
}

.kd-story-card {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kd-story-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.kd-story-card:nth-child(even) {
  transform: rotate(0.6deg);
}

.kd-story-card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.kd-story-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 40px;
  height: 10px;
  border-radius: 2px;
  background: #f3e7e2;
  opacity: 0.7;
  transform: translateX(-50%) rotate(-2deg);
}

.kd-story-card figcaption {
  margin-top: 10px;
  color: #444;
  font-family: "Caveat", cursive;
  font-size: 25px;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 600px) {
  .dress_Style,
  .kd-style-card img {
    float: none;
    display: block;
    margin: 0 auto 12px;
  }
}
