/* Homepage visual alignment with the approved Marble Castle concept. */
.home-hero {
  position: relative;
  max-width: 1720px;
  margin-inline: auto;
  background: #e9e3da;
}
.home-hero__shell {
  position: relative;
  min-height: clamp(700px, calc(100vh - 104px), 920px);
  overflow: hidden;
}

.home-hero__media {
  position: absolute;
  inset: 0;
}

.home-hero__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(247 244 239 / 2%) 30%, rgb(247 244 239 / 82%) 75%, rgb(247 244 239 / 96%) 100%);
  content: "";
  pointer-events: none;
}

.home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: clamp(700px, calc(100vh - 104px), 920px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 5rem;
}

.home-hero__content h1 {
  max-width: 8ch;
  margin-block-end: 1.25rem;
  font-size: clamp(4rem, 6.1vw, 5.8rem);
  line-height: 0.98;
}

.home-hero__lead {
  max-width: 36rem;
  margin-block-end: 0;
  color: #4f4c47;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.9;
}

.home-hero .mc-actions {
  margin-block-start: 2rem;
}

.home-hero .mc-button {
  min-width: 132px;
}

.promise-section {
  border-block-end: 1px solid var(--mc-border);
  background: var(--mc-white);
}

.promise-grid {
  display: grid;
  min-height: 86px;
  grid-template-columns: repeat(4, 1fr);
}

.promise-point {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem clamp(0.8rem, 2vw, 1.8rem);
}

.promise-point + .promise-point {
  border-inline-start: 1px solid var(--mc-border);
}

.promise-point__icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  color: #b28749;
}

.promise-point__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.25;
}

.promise-point h3,
.promise-point p {
  margin: 0;
}

.promise-point h3 {
  font-size: 0.88rem;
}

.promise-point p {
  color: var(--mc-text-secondary);
  font-size: 0.7rem;
  line-height: 1.55;
}

.family-section {
  background: var(--mc-white);
}

.family-section__header,
.featured-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-block-end: 2.5rem;
}

.family-section__header h2,
.featured-section__header h2 {
  margin: 0;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 250px);
  gap: 14px;
}

.family-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  color: var(--mc-white);
  text-decoration: none;
}

.family-card--1 {
  grid-column: span 2;
  grid-row: span 2;
}

.family-card__image,
.family-card__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.family-card__image {
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.family-card__shade {
  background: linear-gradient(0deg, rgb(0 0 0 / 62%) 0%, transparent 53%);
}

.family-card__overlay {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(0.75rem, 1.2vw, 1rem);
  padding: clamp(1rem, 1.5vw, 1.25rem);
  direction: rtl;
}

.family-card__content {
  display: grid;
  min-width: 0;
  align-content: end;
}

.family-card__content strong {
  min-width: 0;
  font-size: clamp(1.05rem, 0.88rem + 0.72vw, 1.55rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.family-card__content small {
  color: rgb(255 255 255 / 77%);
  font-size: 0.7rem;
}

.family-card__arrow {
  display: grid;
  width: clamp(34px, 3vw, 42px);
  height: clamp(34px, 3vw, 42px);
  flex: 0 0 auto;
  place-items: center;
  align-self: end;
  border-radius: 50%;
  background: var(--mc-white);
  color: var(--mc-black);
}

.family-card__arrow svg {
  width: 16px;
  height: 16px;
}

.family-card:hover .family-card__image,
.family-card:focus-visible .family-card__image {
  transform: scale(1.035);
}

.materials-section {
  background: var(--mc-surface);
}

.materials-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.materials-copy {
  position: sticky;
  top: calc(var(--mc-header-height) + 2rem);
}

.materials-copy h2 {
  max-width: 9ch;
}

.materials-copy__lead {
  max-width: 34rem;
  color: var(--mc-text-secondary);
  font-size: 1.05rem;
}

.materials-list {
  margin-block-start: 3rem;
  border-block-start: 1px solid var(--mc-border);
}

.material-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--mc-border);
}

.material-row__swatch {
  width: 44px;
  height: 44px;
  border: 1px solid rgb(25 25 24 / 12%);
  border-radius: 50%;
  background: var(--mc-marble);
}

.material-row__swatch--oak {
  background: var(--mc-oak);
}

.material-row__swatch--iron,
.material-row__swatch--black-steel {
  background: var(--mc-iron);
}

.material-row__swatch--steel {
  background: var(--mc-steel);
}

.material-row__swatch--gold-steel {
  background: var(--mc-champagne);
}

.material-row h3,
.material-row p {
  margin: 0;
}

.material-row h3 {
  font-size: 1rem;
}

.material-row p {
  color: var(--mc-text-secondary);
  font-size: 0.78rem;
}

.materials-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
  align-items: end;
  gap: 1rem;
}

.materials-gallery figure {
  margin: 0;
}

.materials-gallery__primary {
  padding-block-end: 8rem;
}

.materials-gallery__image {
  width: 100%;
  object-fit: cover;
}

.materials-gallery__primary .materials-gallery__image {
  aspect-ratio: 4 / 5;
}

.materials-gallery__secondary .materials-gallery__image {
  aspect-ratio: 3 / 4;
}

.materials-gallery figcaption {
  padding-block-start: 0.65rem;
  color: var(--mc-text-secondary);
  font-size: 0.7rem;
}

.slabs-section {
  position: relative;
  overflow: hidden;
  background: var(--mc-black);
  color: var(--mc-white);
}

.slabs-section::before {
  position: absolute;
  inset: -25% auto auto -8%;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(146 112 62 / 18%), transparent 68%);
  content: "";
  pointer-events: none;
}

.slabs-section__inner {
  position: relative;
}

.slabs-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 8rem);
}

.slabs-section .mc-eyebrow {
  color: #c9a66d;
}

.slabs-section__heading h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.slabs-section__intro {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}

.slabs-section__intro p {
  max-width: 38rem;
  margin: 0;
  color: #bbb9b2;
}

.slabs-section__cta {
  gap: 0.75rem;
}

.slabs-showcase {
  display: grid;
  min-height: clamp(300px, 31vw, 500px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 2.2vw, 2.4rem);
  margin-block-start: clamp(3.5rem, 7vw, 7rem);
  padding: 1.5rem 0 3rem;
}

.slabs-card {
  --slab-rotate: 0deg;
  --slab-shift: 0rem;
  display: grid;
  min-width: 0;
  gap: 1.15rem;
  color: var(--mc-white);
  text-decoration: none;
  transform: translateY(var(--slab-shift)) rotate(var(--slab-rotate));
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.slabs-card--1 {
  --slab-rotate: 1.2deg;
  --slab-shift: 2.8rem;
}

.slabs-card--2 {
  --slab-rotate: -0.9deg;
}

.slabs-card--3 {
  --slab-rotate: 0.8deg;
  --slab-shift: 4.2rem;
}

.slabs-card:hover,
.slabs-card:focus-visible {
  transform: translateY(calc(var(--slab-shift) - 0.65rem)) rotate(var(--slab-rotate));
}

.slabs-card__frame {
  position: relative;
  display: block;
  padding: clamp(5px, 0.55vw, 9px);
  border: 1px solid rgb(255 255 255 / 24%);
  background: #e9e6df;
  box-shadow: 0 28px 60px rgb(0 0 0 / 35%);
}

.slabs-card__frame::after {
  position: absolute;
  inset: auto 2% -8px;
  height: 8px;
  background: linear-gradient(90deg, #6f6d68, #c9c5bb 45%, #55534f);
  content: "";
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
}

.slabs-card__image {
  width: 100%;
  aspect-ratio: 1.58 / 1;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.slabs-card__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 0.2rem;
}

.slabs-card__meta > span:first-child {
  display: grid;
  gap: 0.2rem;
}

.slabs-card__meta strong {
  font-size: 1.05rem;
}

.slabs-card__meta small,
.slabs-card__index {
  color: #aaa8a1;
  font-size: 0.72rem;
}

.slabs-card__index {
  color: #c9a66d;
}

.featured-section {
  background: var(--mc-white);
}

.featured-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.featured-tabs a {
  min-height: 36px;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--mc-border);
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
}

.featured-tabs a:hover,
.featured-tabs .is-active {
  border-color: var(--mc-black);
  background: var(--mc-black);
  color: var(--mc-white);
}

.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.product-preview-card {
  min-width: 0;
}

.product-preview-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: var(--mc-surface);
}

.product-preview-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.product-preview-card__media:hover img {
  transform: scale(1.025);
}

.product-preview-card__pill {
  position: absolute;
  inset-block-start: 0.8rem;
  inset-inline-start: 0.8rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 90%);
  font-size: 0.65rem;
}

.product-preview-card__content {
  padding-block-start: 0.9rem;
}

.product-preview-card__type {
  margin: 0 0 0.2rem;
  color: var(--mc-text-secondary);
  font-size: 0.69rem;
}

.product-preview-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.product-preview-card h3 a {
  text-decoration: none;
}

.product-preview-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-start: 0.45rem;
}

.product-preview-card__price {
  font-size: 0.83rem;
  font-weight: 600;
}

.product-preview-card__price del {
  color: var(--mc-text-secondary);
  font-weight: 400;
}

.product-preview-card__action {
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.featured-section__all {
  margin: 2.5rem 0 0;
  text-align: center;
}

.featured-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 170px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--mc-border);
  border-radius: 20px;
  background: var(--mc-warm-white);
}

.featured-empty h3,
.featured-empty p {
  margin: 0;
}

.featured-empty h3 {
  font-size: 1.25rem;
}

.featured-empty p {
  color: var(--mc-text-secondary);
}

.featured-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.custom-section {
  display: grid;
  min-height: 700px;
  grid-template-columns: 1fr 1fr;
  background: var(--mc-black);
}

.custom-section__media {
  min-width: 0;
}

.custom-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-section__content {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem);
  color: var(--mc-white);
}

.custom-section__content h2 {
  max-width: 9ch;
  margin-block-end: 1.4rem;
  font-size: clamp(3rem, 5vw, 4.8rem);
}

.custom-section__content > p:not(.mc-eyebrow) {
  max-width: 36rem;
  color: #b9b7b1;
  line-height: 1.9;
}

.custom-specifications {
  width: 100%;
  margin-block: 1.5rem 2rem;
  border-block-start: 1px solid #333331;
}

.custom-specifications > div {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 1rem;
  padding-block: 0.72rem;
  border-block-end: 1px solid #333331;
}

.custom-specifications dt,
.custom-specifications dd {
  margin: 0;
  font-size: 0.78rem;
}

.custom-specifications dd {
  color: #a9a7a1;
}

.steps-section {
  background: var(--mc-white);
}

.steps-section__header {
  margin-block-end: 3.5rem;
  text-align: center;
}

.steps-section__header h2 {
  margin: 0;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps-list li {
  min-height: 190px;
  padding: 1.8rem clamp(1rem, 3vw, 3rem);
  border-block-start: 1px solid var(--mc-border);
}

.steps-list li + li {
  border-inline-start: 1px solid var(--mc-border);
}

.steps-list span {
  display: block;
  margin-block-end: 2.5rem;
  color: #c5a36b;
  font-size: 0.74rem;
}

.steps-list h3 {
  margin-block-end: 0.55rem;
  font-size: 1.12rem;
}

.steps-list p {
  max-width: 28rem;
  margin: 0;
  color: var(--mc-text-secondary);
  font-size: 0.82rem;
}

.consultation-section {
  background: #f2f1ed;
}

.consultation-section__inner {
  max-width: 940px;
  padding-block: 2rem;
  text-align: center;
}

.consultation-section__inner h2 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.5rem, 4.4vw, 4.2rem);
}

.consultation-section .mc-button {
  min-height: 56px;
  margin-block-start: 1rem;
  padding-inline: 2rem;
}

@media (max-width: 1080px) {
  .home-hero__shell,
  .home-hero__content {
    min-height: 720px;
  }

  .home-hero__content h1 {
    font-size: clamp(3.6rem, 7vw, 4.8rem);
  }

  .promise-point {
    padding-inline: 0.8rem;
  }

  .family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 360px repeat(2, 220px);
  }

  .family-card--1 {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .materials-layout {
    gap: 3rem;
  }

  .slabs-card--1 {
    --slab-shift: 1.8rem;
  }

  .slabs-card--3 {
    --slab-shift: 2.8rem;
  }

  .product-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1rem;
  }

  .custom-section {
    min-height: 620px;
  }

  .custom-section__content {
    padding: 4rem;
  }
}

@media (max-width: 781px) {
  .home-hero__shell {
    min-height: 680px;
  }

  .home-hero__content {
    min-height: 680px;
    justify-content: flex-end;
    padding-block: 4rem;
  }

  .home-hero__media::after {
    background: linear-gradient(0deg, rgb(247 244 239 / 96%) 0%, rgb(247 244 239 / 70%) 48%, transparent 85%);
  }

  .home-hero__image {
    object-position: 42% center;
  }

  .home-hero__content h1 {
    font-size: clamp(3rem, 12vw, 4.4rem);
  }

  .promise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promise-point:nth-child(3) {
    border-inline-start: 0;
  }

  .promise-point:nth-child(n + 3) {
    border-block-start: 1px solid var(--mc-border);
  }

  .family-section__header,
  .featured-section__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 420px 210px 210px;
  }

  .family-card--1 {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .materials-layout,
  .custom-section {
    grid-template-columns: 1fr;
  }

  .materials-copy {
    position: static;
  }

  .materials-gallery {
    grid-template-columns: minmax(0, 1.2fr) minmax(130px, 0.8fr);
  }

  .materials-gallery__primary {
    padding-block-end: 4rem;
  }

  .slabs-section__header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .slabs-section__heading h2 {
    max-width: 11ch;
  }

  .slabs-showcase {
    display: flex;
    min-height: 0;
    gap: 1rem;
    margin-inline: calc(-1 * var(--mc-gutter));
    padding: 1rem var(--mc-gutter) 1.5rem;
    overflow-x: auto;
    scroll-padding-inline: var(--mc-gutter);
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .slabs-card,
  .slabs-card--1,
  .slabs-card--2,
  .slabs-card--3 {
    width: min(82vw, 470px);
    flex: 0 0 min(82vw, 470px);
    scroll-snap-align: start;
    transform: none;
  }

  .slabs-card:hover,
  .slabs-card:focus-visible {
    transform: translateY(-0.4rem);
  }

  .featured-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .custom-section {
    min-height: 0;
  }

  .custom-section__media {
    min-height: 460px;
  }

  .custom-section__content {
    max-width: none;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .steps-list li {
    min-height: 0;
  }

  .steps-list li + li {
    border-inline-start: 0;
  }
}

@media (max-width: 560px) {
  .family-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(390px, 105vw, 460px);
    grid-auto-rows: clamp(390px, 105vw, 460px);
    gap: 10px;
  }

  .family-card--1 {
    grid-column: auto;
  }

  .family-card__overlay {
    gap: 0.85rem;
    padding: 1rem;
  }

  .family-card__content strong {
    font-size: clamp(1.2rem, 5.6vw, 1.5rem);
  }

  .family-card__arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .home-hero__shell,
  .home-hero__content {
    min-height: 620px;
  }

  .home-hero__content {
    padding-block-end: 3rem;
  }

  .home-hero__content h1 {
    font-size: clamp(2.9rem, 14vw, 4rem);
  }

  .home-hero__lead {
    font-size: 0.92rem;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .promise-point + .promise-point {
    border-inline-start: 0;
    border-block-start: 1px solid var(--mc-border);
  }

  .materials-gallery {
    grid-template-columns: 1fr;
  }

  .materials-gallery__primary {
    padding: 0;
  }

  .materials-gallery__primary .materials-gallery__image,
  .materials-gallery__secondary .materials-gallery__image {
    aspect-ratio: 4 / 3;
  }

  .product-preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 0.7rem;
  }

  .product-preview-card__media {
    border-radius: 13px;
  }

  .product-preview-card__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-empty__actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .custom-section__media {
    min-height: 340px;
  }

  .custom-section__content {
    padding: 3.5rem var(--mc-gutter);
  }

  .custom-section__content h2 {
    font-size: 3rem;
  }

  .custom-specifications > div {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .family-card__image,
  .product-preview-card__media img,
  .slabs-card {
    transition: none;
  }
}
