/* ================= MATERIALS PAGE ================= */

.materials-page {
  --mat-brown: #3d2b1f;
  --mat-brown-dark: #241810;
  --mat-tan: #8b5e3c;
  --mat-gold: #c4a035;
  --mat-cream: #f9f5f0;
  --mat-beige: #f0e8df;
  --mat-beige-card: #ebe3d8;
  --mat-text: #4a3f38;
  --mat-white: #ffffff;
  --mat-max: 1250px;
  background: var(--mat-cream);
  color: var(--mat-text);
  font-family: "Poppins", sans-serif;
}

.materials-page h1,
.materials-page h2,
.materials-page h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--mat-brown);
}

/* ================= HERO ================= */

.mat-hero {
  padding: 64px 5% 48px;
  max-width: var(--mat-max);
  margin: 0 auto;
}

.mat-hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.mat-hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.mat-hero-content p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--mat-text);
  margin: 0;
  max-width: 500px;
}

.mat-hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.mat-hero-visual img {
  width: 100%;
  max-width: 520px;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 120px 16px 120px 16px;
  box-shadow: 0 20px 50px rgba(61, 43, 31, 0.12);
}

/* ================= SECTION DIVIDER ================= */

.mat-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 5% 40px;
  max-width: var(--mat-max);
  margin: 0 auto;
}

.mat-section-title::before,
.mat-section-title::after {
  content: "";
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: rgba(139, 94, 60, 0.35);
}

.mat-section-title span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--mat-brown);
  text-align: center;
  position: relative;
  padding: 0 20px;
  line-height: 1.4;
}

.mat-section-title span::before,
.mat-section-title span::after {
  content: "✦";
  font-size: 9px;
  color: var(--mat-tan);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.mat-section-title span::before {
  left: 0;
}

.mat-section-title span::after {
  right: 0;
}

.mat-section-title--tight {
  padding-bottom: 28px;
}

/* ================= MATERIAL CARDS ================= */

.mat-cards {
  padding: 0 5% 56px;
  max-width: var(--mat-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mat-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  align-items: stretch;
  /* background: #f2e8d9; */
  border: 1px solid rgba(60, 42, 33, 0.22);
  border-radius: 18px;
  padding: 26px 24px 26px 28px;
  box-shadow: 0 10px 32px rgba(61, 43, 31, 0.07);
}

.mat-card-body {
  padding: 4px 8px 4px 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.mat-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.mat-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--mat-brown);
  color: var(--mat-white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

.mat-card-head h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  margin: 0;
  flex: 1;
  line-height: 1.25;
}

.mat-card-hide-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  opacity: 0.9;
}

.mat-card-best {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mat-text);
  margin-bottom: 22px;
}

.mat-card-best strong {
  color: var(--mat-brown);
  font-weight: 600;
}

.mat-card-why {
  font-size: 13px;
  font-weight: 600;
  color: #a06840;
  margin-bottom: 14px;
}

.mat-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mat-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mat-text);
}

.mat-card-list li i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mat-brown);
  color: var(--mat-white);
  font-size: 9px;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Swatches */
.mat-swatches {
  display: flex;
  gap: 10px;
  align-items: stretch;
  min-height: 300px;
}

.mat-swatch {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(61, 43, 31, 0.12);
  transition: flex 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s ease;
}

.mat-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(36, 24, 16, 0.4) 100%
  );
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mat-swatch-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.4s ease;
}

.mat-swatch:hover {
  flex: 1.45;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.2);
}

.mat-swatch:hover .mat-swatch-img {
  transform: scale(1.08);
  filter: brightness(1.06);
}

.mat-swatch:hover::before {
  opacity: 1;
}

.mat-swatch-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(36, 24, 16, 0.94);
  color: var(--mat-white);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: center;
  padding: 11px 6px;
  z-index: 2;
  transition: padding 0.35s ease;
}

.mat-swatch:hover .mat-swatch-label {
  padding: 13px 6px;
}

/* ================= CUSTOMIZATION ================= */

.mat-custom {
  padding: 10px 5% 70px;
  max-width: var(--mat-max);
  margin: 0 auto;
}

.mat-custom-box {
  /* background: var(--mat-beige-card); */
  border: 1px solid rgba(139, 94, 60, 0.15);
  border-radius: 14px;
  padding: 36px 28px 32px;
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.05);
}

.mat-custom-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.mat-custom-item {
  text-align: center;
}

.mat-custom-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mat-brown);
  font-size: 26px;
}

.mat-custom-item span {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--mat-brown);
  line-height: 1.45;
}

/* ================= CTA BANNER ================= */

.mat-cta {
  padding: 0 5% 80px;
  max-width: var(--mat-max);
  margin: 0 auto;
}

.mat-cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  background: linear-gradient(90deg, #2a1c14 0%, #3d2b1f 55%, #352418 100%);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 16px 40px rgba(36, 24, 16, 0.28);
}

.mat-cta-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--mat-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--mat-gold);
  flex-shrink: 0;
}

.mat-cta-text h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--mat-gold);
  margin-bottom: 8px;
  line-height: 1.35;
}

.mat-cta-text p {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(235, 220, 200, 0.85);
  margin: 0;
  max-width: 420px;
}

.mat-cta-text a {
  color: var(--mat-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mat-cta-text a:hover {
  color: #e8c84a;
}

.mat-cta-visual {
  position: relative;
  width: 200px;
  height: 110px;
  flex-shrink: 0;
}

.mat-cta-swatch-stack {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: flex-end;
}

.mat-cta-swatch-piece {
  width: 52px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.3);
  margin-left: -18px;
}

.mat-cta-swatch-piece:first-child {
  margin-left: 0;
  z-index: 1;
}

.mat-cta-swatch-piece:nth-child(2) {
  z-index: 2;
  height: 80px;
}

.mat-cta-swatch-piece:nth-child(3) {
  z-index: 3;
  height: 88px;
}

.mat-cta-swatch-piece:nth-child(4) {
  z-index: 4;
  height: 76px;
}

.mat-cta-swatch-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mat-cta-brand-card {
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 72px;
  height: 48px;
  background: linear-gradient(145deg, #1a1008, #2d1f14);
  border: 1px solid rgba(196, 160, 53, 0.5);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.mat-cta-brand-card span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mat-gold);
  line-height: 1;
}

.mat-cta-brand-card small {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: rgba(196, 160, 53, 0.9);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .mat-hero-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mat-hero-content p {
    max-width: none;
  }

  .mat-hero-visual {
    justify-content: center;
  }

  .mat-hero-visual img {
    height: 300px;
    border-radius: 80px 12px 80px 12px;
  }

  .mat-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }

  .mat-swatches {
    min-height: 0;
  }

  .mat-swatch img,
  .mat-swatch .mat-swatch-img {
    min-height: 220px;
  }

  .mat-swatch:hover {
    flex: 1;
  }

  .mat-custom-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 12px;
  }

  .mat-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .mat-cta-icon {
    margin: 0 auto;
  }

  .mat-cta-text p {
    max-width: none;
    margin: 0 auto;
  }

  .mat-cta-visual {
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .mat-hero {
    padding: 44px 5% 36px;
  }

  .mat-section-title {
    padding: 8px 5% 32px;
  }

  .mat-section-title span {
    font-size: 0.95rem;
    padding: 0 16px;
  }

  .mat-cards,
  .mat-custom,
  .mat-cta {
    padding-left: 5%;
    padding-right: 5%;
  }

  .mat-card-body {
    padding: 24px 20px;
  }

  .mat-swatches {
    flex-direction: column;
    gap: 12px;
  }

  .mat-swatch img,
  .mat-swatch .mat-swatch-img {
    min-height: 180px;
  }

  .mat-custom-box {
    padding: 28px 16px 24px;
  }

  .mat-custom-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 8px;
  }

  .mat-custom-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .mat-custom-item span {
    font-size: 10.5px;
  }

  .mat-cta-visual {
    width: 170px;
    height: 100px;
  }

  .mat-cta-swatch-piece {
    width: 44px;
    height: 60px;
  }

  .mat-cta-swatch-piece:nth-child(2) {
    height: 66px;
  }

  .mat-cta-swatch-piece:nth-child(3) {
    height: 72px;
  }

  .mat-cta-swatch-piece:nth-child(4) {
    height: 62px;
  }
}
