/* ============================================================
   WARDROBES PILLAR — Luxury Storage Systems Hub
   Poliform / Rimadesio / Molteni&C aesthetic
   ============================================================ */

@import url('../kitchen-cabinets/kitchen-cabinets.css');

:root {
  --wd-walnut: #3A2A1E;
  --wd-taupe: #A8998B;
  --wd-stone: #E8E4DF;
  --wd-bronze: #B8A88A;
  --wd-ink: #1A1410;
  --wd-bg-light: #F2EFEB;
  --wd-bg-white: #FAF9F7;
  --wd-text-dark: #2A2018;
  --wd-text-medium: #6B5E52;
  --wd-font-display: 'Playfair Display', Georgia, serif;
  --wd-font-body: 'Inter', system-ui, sans-serif;
  --wd-ease: cubic-bezier(0.16, 1, 0.3, 1);

  --color-accent: var(--wd-bronze);
  --color-accent-hover: #9A8A72;
  --color-copper: var(--wd-bronze);
  --color-surface-dark: var(--wd-ink);
  --font-display: var(--wd-font-display);
}

html { scroll-padding-top: 88px; }

body.page-wardrobes {
  font-family: var(--wd-font-body);
}

.page-wardrobes .hero-title,
.page-wardrobes .section-title,
.page-wardrobes .cta-title,
.page-wardrobes .kc-collection-card__title,
.page-wardrobes .kc-cap-title,
.page-wardrobes .kc-project-title,
.page-wardrobes .kc-faq-list summary {
  font-family: var(--wd-font-display);
}

/* ----- Hero (100vh) ----- */
.wd-hero {
  min-height: 100vh;
  min-height: 100dvh;
}
.wd-hero .hero-bg img {
  object-position: center 40%;
}
.wd-hero .hero-eyebrow,
.wd-hero .breadcrumb a:hover {
  color: var(--wd-bronze);
}
.wd-hero .trust-item svg {
  color: var(--wd-bronze);
}

/* ----- Section rhythm ----- */
.wd-section {
  padding: clamp(72px, 10vw, 100px) 0;
}
.wd-section--light {
  background: var(--wd-bg-light);
}
.wd-section--white {
  background: var(--wd-bg-white);
}

.wd-eyebrow-accent::before {
  background: var(--wd-bronze);
}

/* ----- Why custom (split) ----- */
.wd-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .wd-why-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 80px);
  }
}

.wd-why-copy .section-intro {
  margin-top: var(--space-5);
  max-width: 52ch;
}

.wd-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.wd-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-slow);
}
.wd-highlight:hover {
  border-color: rgba(184, 168, 138, 0.45);
  box-shadow: var(--shadow-sm);
}
.wd-highlight__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wd-bronze);
  background: rgba(58, 42, 30, 0.06);
  border-radius: var(--radius-sm);
}
.wd-highlight h3 {
  font-family: var(--wd-font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: var(--wd-text-dark);
}
.wd-highlight p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
}

.wd-why-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--color-divider);
}
.wd-why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--wd-ease);
}
.wd-why-visual:hover img {
  transform: scale(1.03);
}

/* ----- Collections (4-card grid) ----- */
.wd-collections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 700px) {
  .wd-collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.wd-collections-grid .kc-collection-card {
  min-height: 400px;
}
.wd-collections-grid .kc-collection-card__link {
  color: var(--wd-bronze);
}

/* ----- Materials (full-width cinematic) ----- */
.wd-materials-band {
  position: relative;
  overflow: hidden;
  background: var(--wd-ink);
}
.wd-materials-band__img {
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) {
  .wd-materials-band__img {
    max-height: 560px;
  }
}
.wd-materials-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 20, 16, 0.35) 0%,
    rgba(26, 20, 16, 0.72) 55%,
    rgba(26, 20, 16, 0.92) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: clamp(var(--space-8), 6vw, var(--space-16));
}
.wd-materials-inner {
  width: 100%;
  max-width: var(--container-wide, 1280px);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 900px) {
  .wd-materials-inner {
    padding-inline: var(--space-10);
  }
}

.wd-materials-band .section-title {
  color: #fff;
  margin-bottom: var(--space-4);
}
.wd-materials-band .section-intro {
  color: rgba(232, 228, 223, 0.78);
  max-width: 56ch;
  margin-bottom: var(--space-8);
}

.wd-material-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.wd-material-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--wd-stone);
  text-decoration: none;
  border: 1px solid rgba(232, 228, 223, 0.25);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
}
.wd-material-chip:hover {
  background: rgba(184, 168, 138, 0.2);
  border-color: var(--wd-bronze);
  color: #fff;
}
.wd-material-chip--static {
  cursor: default;
  pointer-events: none;
}
.wd-material-links {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
}
.wd-material-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--wd-bronze);
  text-decoration: none;
}
.wd-material-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ----- Organization (split) ----- */
.wd-org-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .wd-org-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(48px, 6vw, 72px);
  }
}

.wd-org-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--color-divider);
  order: -1;
}
@media (min-width: 900px) {
  .wd-org-visual { order: 0; }
}
.wd-org-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-org-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (min-width: 600px) {
  .wd-org-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wd-org-feature {
  padding: var(--space-5);
  border: 1px solid var(--color-divider);
  background: var(--color-surface-2);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.wd-org-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.wd-org-feature span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-taupe);
}
.wd-org-feature h3 {
  font-family: var(--wd-font-display);
  font-size: var(--text-base);
  font-weight: 400;
  margin: var(--space-2) 0 var(--space-2);
  color: var(--wd-text-dark);
}
.wd-org-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: none;
}

/* ----- Manufacturing ----- */
.wd-mfg-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(80px, 12vw, 120px) 0;
}
.wd-mfg-section .kc-section-bg img {
  object-position: center 50%;
}
.wd-mfg-section .kc-section-bg::after {
  background: linear-gradient(
    180deg,
    rgba(26, 20, 16, 0.88) 0%,
    rgba(58, 42, 30, 0.9) 50%,
    rgba(26, 20, 16, 0.94) 100%
  );
}
.wd-mfg-section .eyebrow {
  color: rgba(232, 228, 223, 0.55);
}
.wd-mfg-section .eyebrow::before {
  background: var(--wd-bronze);
}
.wd-mfg-section .section-title em {
  color: var(--wd-bronze);
  font-style: italic;
}
.wd-mfg-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
  counter-reset: wd-step;
}
@media (min-width: 600px) {
  .wd-mfg-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .wd-mfg-steps { grid-template-columns: repeat(3, 1fr); }
}

.wd-mfg-step {
  counter-increment: wd-step;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 228, 223, 0.12);
  padding: var(--space-7);
  backdrop-filter: blur(6px);
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
}
.wd-mfg-step:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(184, 168, 138, 0.35);
}
.wd-mfg-step::before {
  content: counter(wd-step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--wd-bronze);
  margin-bottom: var(--space-4);
}
.wd-mfg-step h3 {
  font-family: var(--wd-font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--space-3);
}
.wd-mfg-step p {
  font-size: var(--text-sm);
  color: rgba(232, 228, 223, 0.68);
  line-height: 1.6;
  max-width: none;
}

/* ----- Projects ----- */
.wd-projects-wrap {
  position: relative;
  border: 1px solid var(--color-divider);
  overflow: hidden;
  background: var(--wd-ink);
}
.wd-projects-wrap .kc-projects-bg::after {
  background: linear-gradient(
    180deg,
    rgba(242, 239, 235, 0.96) 0%,
    rgba(232, 228, 223, 0.9) 100%
  );
}
.wd-projects-wrap .section-title em {
  color: var(--wd-walnut);
  font-style: italic;
}

/* ----- FAQ accent ----- */
.page-wardrobes .kc-faq-list summary::after {
  color: var(--wd-bronze);
}
.page-wardrobes .kc-faq-list details[open] summary {
  color: var(--wd-walnut);
}

/* ----- CTA (700px) ----- */
.wd-cta-section {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  color: #fff;
}
.wd-cta-section .kc-section-bg img {
  object-position: center 45%;
}
.wd-cta-section .kc-section-bg::after {
  background: linear-gradient(
    135deg,
    rgba(26, 20, 16, 0.9) 0%,
    rgba(58, 42, 30, 0.82) 50%,
    rgba(26, 20, 16, 0.92) 100%
  );
}
.wd-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding: var(--space-16) var(--space-6);
}
.wd-cta-inner .eyebrow {
  color: rgba(232, 228, 223, 0.6);
  justify-content: center;
}
.wd-cta-inner .eyebrow::before {
  background: var(--wd-bronze);
}
.wd-cta-title {
  font-family: var(--wd-font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  margin-top: var(--space-5);
}
.wd-cta-title em {
  font-style: italic;
  color: var(--wd-bronze);
}
.wd-cta-text {
  margin-top: var(--space-6);
  font-size: var(--text-base);
  color: rgba(232, 228, 223, 0.78);
  line-height: 1.7;
  max-width: 52ch;
  margin-inline: auto;
}
.wd-cta-actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ----- Mobile CTA ----- */
.wd-mobile-cta .btn-primary {
  background: var(--wd-walnut);
  border-color: var(--wd-walnut);
}
.wd-mobile-cta .btn-secondary {
  color: var(--wd-walnut);
}

@media (max-width: 767px) {
  .wd-collections-grid .kc-collection-card {
    min-height: 340px;
  }
  .wd-materials-band__img {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
  .wd-cta-section {
    min-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wd-why-visual img,
  .wd-collections-grid .kc-collection-card__bg img {
    transition: none;
  }
}
