/* Kitchen Cabinetry landing — page content only (header/footer unchanged). */

.akoma-kitchen-landing {
  --kc-cream: #f6f1e8;
  --kc-offwhite: #fbf8f2;
  --kc-beige: #e8dfd0;
  --kc-wood: #8b6b45;
  --kc-charcoal: #1c1a17;
  --kc-green: #3d5a4c;
  --kc-brass: #b89a62;
  --kc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(184, 154, 98, 0.08), transparent 60%),
    radial-gradient(900px 420px at 96% 18%, rgba(61, 90, 76, 0.06), transparent 58%),
    linear-gradient(180deg, var(--kc-offwhite) 0%, var(--kc-cream) 42%, #f3eee4 100%);
  color: var(--kc-charcoal);
}

/* Kitchen Cabinetry Showcase */
.akoma-kitchen-showcase {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 760px;
  padding: 64px 0 80px;
  overflow: visible;
  background-color: #f5f5f5;
  background-image: var(--akoma-showcase-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.akoma-kitchen-showcase__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(312deg, #ffffff17 0%, #ffffff45 21%, #ffffff1a 41%, #ffffffc4 61%, #ffffff57 81%, #fef9f905 100%), linear-gradient(261deg, #00000000 38%, #ffffff87 52%, #ffffff00 66%), var(--akoma-showcase-overlay);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.akoma-kitchen-showcase__inner {
  position: relative;
  z-index: 2;
}

.akoma-kitchen-showcase__main {
  min-width: 0;
}

.kitchen-hover-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.kitchen-hover-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.kitchen-hover-preview__default {
  opacity: 1;
}

.kitchen-hover-preview.is-replacing .kitchen-hover-preview__default {
  opacity: 0;
}

.kitchen-hover-preview img.active {
  opacity: 1;
}

.akoma-kitchen-showcase__copy {
  max-width: 620px;
  margin: 0 0 40px;
  color: #181c21e8;
}

.akoma-kitchen-showcase__eyebrow {
  margin: 0 0 12px;
  color: #c8a45d;
  font-family: Inter, Manrope, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.akoma-kitchen-showcase__copy h2 {
  margin: 0 0 16px;
  color: #013473e8;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.akoma-kitchen-showcase__lead {
  margin: 0;
  max-width: 520px;
  color: #02378694;
  font-family: Inter, Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.akoma-kitchen-showcase__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px 28px;
}

/* KitchenCategoryCard shell — card + floor reflection (reflection is out of flow) */
.kitchen-category-card-shell {
  --kc-card-h: 520px;
  --kc-reflection-h: calc(var(--kc-card-h) * 0.38);
  position: relative;
  display: block;
  width: 280px;
  height: var(--kc-card-h);
  flex: 0 0 280px;
  overflow: visible;
  z-index: 0;
}

/* Warm gold corner light on the floor (card bottom-right) */
.kitchen-category-card-shell::before {
  content: "";
  position: absolute;
  right: 8%;
  top: calc(var(--kc-card-h) - 5px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff8d6;
  box-shadow:
    0 0 8px #fff8d6,
    0 0 20px #d4af37,
    0 0 45px rgba(212, 175, 55, 0.7);
  pointer-events: none;
  z-index: 4;
  opacity: 0.82;
  transform: translateY(0);
  transition: opacity 500ms ease, box-shadow 500ms ease, transform 350ms var(--kc-ease);
}

/* Soft warm light spread on the floor/reflection */
.kitchen-category-card-shell::after {
  content: "";
  position: absolute;
  right: -2%;
  top: var(--kc-card-h);
  width: 78%;
  height: var(--kc-reflection-h);
  background: linear-gradient(
    155deg,
    transparent 20%,
    rgba(255, 235, 160, 0.22) 40%,
    rgba(212, 175, 55, 0.08) 65%,
    transparent 100%
  );
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 350ms var(--kc-ease);
}

/* KitchenCategoryCard */
.kitchen-category-card {
  --kc-gold: #c8a45d;
  position: relative;
  display: block;
  width: 100%;
  height: var(--kc-card-h);
  border-radius: 27px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  border: 3px solid var(--kc-gold);
  box-shadow: 0px 0px 2px 2px rgb(222 206 181), 7px 5px 8px 1px #0134739e;
  transform: translateY(0);
  transition: transform 350ms var(--kc-ease), box-shadow 350ms var(--kc-ease), border-color 350ms var(--kc-ease);
  z-index: 2;
}

.kitchen-category-card--outlined {
  overflow: visible;
  border: none;
  box-shadow: -1px -1px 0px 0px #ead9b9, -2px -2px 0px 0px #f7c25c, -3px -3px 2px 2px #bd8822ba, -3px -4px 0px 2px #f2a233c9, 1px 1px 0px 1px #e9a41e, 2px 2px 0px 1px #9b721f, 6px 6px 4px 1px #bb82138a, 5px 5px 0px 0px #bb8213bd, 0px 20px 17px 0px #4c330000;
}

.kitchen-category-card--outlined:hover,
.kitchen-category-card--outlined:focus-visible {
  border: none;
  box-shadow: -1px -1px 0px 0px #ead9b9, -2px -2px 0px 0px #f7c25c, -3px -3px 2px 2px #bd8822ba, -3px -4px 0px 2px #f2a233c9, 1px 1px 0px 1px #e9a41e, 2px 2px 0px 1px #9b721f, 6px 6px 4px 1px #bb82138a, 5px 5px 0px 0px #bb8213bd, 0px 20px 17px 0px #4c330000;
}

.kitchen-category-card--outlined .kitchen-category-card__media,
.kitchen-category-card--outlined .kitchen-category-card__overlay {
  border-radius: inherit;
}

.kitchen-category-card__outline {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  overflow: visible;
}

.kitchen-category-card__outline img {
  display: block;
  position: absolute;
  top: -5px;
  left: -6px;
  width: calc(100% + 11px);
  height: calc(100% + 10px);
  max-width: none;
  object-fit: fill;
  object-position: center;
}

.kitchen-category-card__reflection {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: var(--kc-reflection-h);
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 13;
  opacity: 0.44;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 350ms var(--kc-ease);
}

.kitchen-category-card__reflection img {
  position: absolute;
  left: 0;
  bottom: 92%;
  width: 100%;
  height: var(--kc-card-h);
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  transform: scaleY(-1);
  border-bottom-width: 2px;
  border-bottom-right-radius: 30px;
  border-bottom-left-radius: 30px;
  transform-origin: center bottom;
  filter: blur(2px) saturate(3.8) brightness(0.68);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 0%) 90%, #000000 100%);
}

.kitchen-category-card-shell:hover .kitchen-category-card:not(.kitchen-category-card--outlined),
.kitchen-category-card-shell:focus-within .kitchen-category-card:not(.kitchen-category-card--outlined) {
  transform: translateY(-8px);
  border-color: #e0c27a;
  box-shadow: 0px 0px 0px 2px rgb(222 206 181 / 78%), 8px 8px 4px 0px #013473;
}

.kitchen-category-card-shell:hover .kitchen-category-card--outlined,
.kitchen-category-card-shell:focus-within .kitchen-category-card--outlined {
  transform: translateY(-8px);
}

.kitchen-category-card-shell:hover .kitchen-category-card--outlined .kitchen-category-card__outline img,
.kitchen-category-card-shell:focus-within .kitchen-category-card--outlined .kitchen-category-card__outline img {
  filter: brightness(1.08);
}

.kitchen-category-card-shell:hover .kitchen-category-card__reflection,
.kitchen-category-card-shell:focus-within .kitchen-category-card__reflection {
  opacity: 0.48;
  transform: translateY(-8px);
}

.kitchen-category-card-shell:hover::before,
.kitchen-category-card-shell:focus-within::before {
  opacity: 1;
  transform: translateY(-8px);
  box-shadow:
    0 0 10px #fff8d6,
    0 0 26px #d4af37,
    0 0 52px rgba(212, 175, 55, 0.85);
}

.kitchen-category-card-shell:hover::after,
.kitchen-category-card-shell:focus-within::after {
  opacity: 0.92;
  transform: translateY(-8px);
}

.kitchen-category-card:focus-visible {
  outline: 2px solid var(--kc-gold);
  outline-offset: 3px;
}

.kitchen-category-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.kitchen-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 350ms var(--kc-ease);
}

.kitchen-category-card:hover .kitchen-category-card__media img,
.kitchen-category-card:focus-visible .kitchen-category-card__media img {
  transform: scale(1.05);
}

.kitchen-category-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(28, 26, 23, 0) 0%,
    rgba(28, 26, 23, 0.18) 42%,
    rgba(28, 26, 23, 0.78) 78%,
    rgba(18, 16, 14, 0.92) 100%
  );
  transition: background 350ms var(--kc-ease);
}

.kitchen-category-card:hover .kitchen-category-card__overlay,
.kitchen-category-card:focus-visible .kitchen-category-card__overlay {
  background: linear-gradient(180deg, #01132914 0%, #0f172a40 42%, #0f172ad4 78%, #0f172a 100%);
}

.kitchen-category-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 22px 32px;
}

.kitchen-category-card__icon {
  position: absolute;
  left: 50%;
  bottom: 160px;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--kc-gold);
  border-radius: 999px;
  color: var(--kc-gold);
  background: transparent;
  transform: translateX(-50%);
  transition: transform 350ms var(--kc-ease), border-color 350ms var(--kc-ease), color 350ms var(--kc-ease);
}

.kitchen-category-card__icon svg {
  width: 28px;
  height: 28px;
}

.kitchen-category-card__icon--image {
  width: 96px;
  height: 96px;
  bottom: 148px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.kitchen-category-card__icon--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.kitchen-category-card:hover .kitchen-category-card__icon,
.kitchen-category-card:focus-visible .kitchen-category-card__icon {
  transform: translateX(-50%) translateY(-3px);
  border-color: #e0c27a;
  color: #fff;
}

.kitchen-category-card:hover .kitchen-category-card__icon--image,
.kitchen-category-card:focus-visible .kitchen-category-card__icon--image {
  border-color: transparent;
}

.kitchen-category-card__title {
  display: block;
  margin: 0 0 10px;
  color: #fff;
  font-family: Inter, Manrope, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

.kitchen-category-card__desc {
  display: block;
  max-width: 220px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-family: Inter, Manrope, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.kitchen-category-card__accent {
  display: block;
  width: 35px;
  height: 2px;
  margin: 18px auto 10px;
  background: #c8a45d;
  transition: background 350ms var(--kc-ease), width 350ms var(--kc-ease);
}

.kitchen-category-card:hover .kitchen-category-card__accent,
.kitchen-category-card:focus-visible .kitchen-category-card__accent {
  width: 48px;
  background: #e0c27a;
}

.kitchen-category-card__explore {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f4e4bf;
  font-family: Inter, Manrope, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 350ms var(--kc-ease), transform 350ms var(--kc-ease);
}

.kitchen-category-card__explore svg {
  width: 14px;
  height: 14px;
}

.kitchen-category-card:hover .kitchen-category-card__explore,
.kitchen-category-card:focus-visible .kitchen-category-card__explore {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.akoma-kitchen-story {
  padding: 28px 0 88px;
}

.akoma-kitchen-story__intro {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}

.akoma-kitchen-story__intro h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #013473e8;
}

.akoma-kitchen-story__intro p {
  margin: 0 auto;
  max-width: 560px;
  color: #02378694;
  font-size: 16px;
  line-height: 1.7;
}

.akoma-kitchen-story__mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  grid-template-rows: 220px 220px;
  gap: 16px;
}

.akoma-kitchen-story__tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(139, 107, 69, 0.14);
  background: var(--kc-beige);
}

.akoma-kitchen-story__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.akoma-kitchen-story__tile figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.48);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.akoma-kitchen-story__tile--1 {
  grid-row: 1 / span 2;
}

@media (max-width: 1100px) {
  .akoma-kitchen-showcase {
    min-height: 0;
    padding: 48px 0 64px;
  }

  .akoma-kitchen-showcase__cards {
    justify-content: center;
  }

  .akoma-kitchen-story__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
  }

  .akoma-kitchen-story__tile--1 {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .akoma-kitchen-showcase {
    padding: 36px 0 48px;
  }

  .akoma-kitchen-showcase__copy {
    margin-bottom: 28px;
    text-align: left;
  }

  .akoma-kitchen-showcase__cards {
    flex-direction: column;
    align-items: center;
  }

  .kitchen-category-card-shell {
    --kc-reflection-h: calc(var(--kc-card-h) * 0.3);
  }

  .akoma-kitchen-story {
    padding: 12px 0 64px;
  }

  .akoma-kitchen-story__mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .akoma-kitchen-story__tile {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kitchen-category-card,
  .kitchen-category-card__media img,
  .kitchen-category-card__icon,
  .kitchen-category-card__explore,
  .kitchen-category-card__accent,
  .kitchen-category-card__reflection,
  .kitchen-category-card-shell::before,
  .kitchen-category-card-shell::after {
    transition: none;
  }

  .kitchen-category-card-shell:hover .kitchen-category-card,
  .kitchen-category-card-shell:focus-within .kitchen-category-card {
    transform: none;
  }

  .kitchen-category-card-shell:hover .kitchen-category-card__reflection,
  .kitchen-category-card-shell:focus-within .kitchen-category-card__reflection {
    opacity: 0.44;
    transform: none;
  }

  .kitchen-category-card-shell:hover::before,
  .kitchen-category-card-shell:focus-within::before,
  .kitchen-category-card-shell:hover::after,
  .kitchen-category-card-shell:focus-within::after {
    transform: none;
  }

  .kitchen-category-card:hover .kitchen-category-card__media img,
  .kitchen-category-card:focus-visible .kitchen-category-card__media img {
    transform: none;
  }

  .kitchen-hover-preview img,
  .kitchen-hover-preview img.active {
    transition: none;
  }
}
