/* =========================================================
   POOL.MGULER — Materials interior page (G13)
   Light / paper toned, dark image hero. Rides on
   ../assets/css/main.css tokens. Counterpart to eng.css.
   ========================================================= */

.mat-body { background: var(--paper); color: var(--ink); }

/* current nav item (header is over the dark hero → light styling) */
.header-nav a.is-current { color: #fff; }
.header-nav a.is-current::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 4px;
  background: var(--gold);
  opacity: 0.85;
}

/* ---- HERO (dark, travertine image) ---- */
.mat-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(150px, 22vh, 240px) 0 clamp(56px, 8vw, 110px);
}
.mat-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../assets/img/material-travertine.jpg') center 60% / cover no-repeat;
  background-image: -webkit-image-set(url('../assets/img/material-travertine.webp') type('image/webp') 1x, url('../assets/img/material-travertine.jpg') type('image/jpeg') 1x);
  background-image: image-set(url('../assets/img/material-travertine.webp') type('image/webp') 1x, url('../assets/img/material-travertine.jpg') type('image/jpeg') 1x);
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.04);
}
.mat-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(14,17,22,0.50), rgba(14,17,22,0.42) 40%, rgba(14,17,22,0.78));
  pointer-events: none;
}
.mat-hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: 980px;
}
.mat-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 30px;
}
.mat-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color .3s ease; }
.mat-breadcrumb a:hover { color: #fff; }
.mat-bc-sep { margin: 0 10px; opacity: 0.4; }

.mat-hero-title {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 200;
  font-size: var(--h-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 24px 0 0;
}
.mat-hero-lead {
  margin-top: 28px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
}
.mat-hero-scroll {
  display: inline-block;
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: opacity .3s ease;
}
.mat-hero-scroll:hover { opacity: 0.7; }

/* shared light block heads */
.mat-block-head {
  padding: 0 var(--gutter);
  max-width: 720px;
  margin-bottom: clamp(44px, 5.5vw, 76px);
}

/* ---- PALETTE ---- */
.mat-palette { background: var(--paper); padding: var(--section-y) 0; }
.mat-swatch-row {
  padding: 0 var(--gutter);
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}
.mat-swatch { display: flex; flex-direction: column; gap: 12px; }
.mat-swatch-chip {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  border: 1px solid rgba(14,17,22,0.10);
  box-shadow: 0 18px 40px -22px rgba(14,17,22,0.45);
}
.mat-swatch-name {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
}
.mat-swatch-hex {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---- SURFACES & FINISHES ---- */
.mat-features { background: var(--paper-soft); padding: var(--section-y) 0; }
.mat-feature {
  padding: 0 var(--gutter);
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.mat-feature + .mat-feature { margin-top: clamp(48px, 7vw, 110px); }
.mat-feature--rev .mat-feature-img { order: 2; }

.mat-feature-img {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: var(--travertine) center / cover no-repeat;
  box-shadow: 0 40px 80px -40px rgba(14,17,22,0.5);
}
.mat-img--travertine {
  background-image: -webkit-image-set(url('../assets/img/material-travertine.webp') type('image/webp') 1x, url('../assets/img/material-travertine.jpg') type('image/jpeg') 1x);
  background-image: image-set(url('../assets/img/material-travertine.webp') type('image/webp') 1x, url('../assets/img/material-travertine.jpg') type('image/jpeg') 1x);
  background-position: center 55%;
}
.mat-img--slot {
  background-image: -webkit-image-set(url('../assets/img/material-slot.webp') type('image/webp') 1x, url('../assets/img/material-slot.jpg') type('image/jpeg') 1x);
  background-image: image-set(url('../assets/img/material-slot.webp') type('image/webp') 1x, url('../assets/img/material-slot.jpg') type('image/jpeg') 1x);
  background-position: 35% 70%;
}
.mat-img--waterline {
  background-image: -webkit-image-set(url('../assets/img/project-beach-sunset.webp') type('image/webp') 1x, url('../assets/img/project-beach-sunset.jpg') type('image/jpeg') 1x);
  background-image: image-set(url('../assets/img/project-beach-sunset.webp') type('image/webp') 1x, url('../assets/img/project-beach-sunset.jpg') type('image/jpeg') 1x);
  background-position: center 50%;
}
.mat-img--light {
  background-image: -webkit-image-set(url('../assets/img/hero-night.webp') type('image/webp') 1x, url('../assets/img/hero-night.jpg') type('image/jpeg') 1x);
  background-image: image-set(url('../assets/img/hero-night.webp') type('image/webp') 1x, url('../assets/img/hero-night.jpg') type('image/jpeg') 1x);
  background-position: center 30%;
}

.mat-feature-no {
  display: block;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 200;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  color: rgba(14,17,22,0.18);
  margin-bottom: 12px;
}
.mat-feature-name {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-size: var(--h-2);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mat-feature-desc {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--stone);
  max-width: 520px;
}
.mat-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 48px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-paper);
}
.mat-feature-meta div { display: flex; flex-direction: column; gap: 6px; }
.mat-feature-meta dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.7;
}
.mat-feature-meta dd {
  margin: 0;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
}

/* ---- QUOTE BAND (dark) ---- */
.mat-quote {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
}
.mat-quote-text {
  padding: 0 var(--gutter);
  max-width: 860px;
  margin: 0 auto;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 200;
  font-style: italic;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--paper);
}

/* ---- NEXT / RELATED ---- */
.mat-next { background: var(--paper); padding: clamp(70px, 10vw, 130px) 0; }
.mat-next-inner {
  padding: 0 var(--gutter);
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.mat-next-lead {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 200;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 460px;
}
.mat-next-links { display: flex; flex-wrap: wrap; gap: 14px; }
/* ghost buttons on light bg need ink outline */
.mat-next .btn--ghost { color: var(--ink); border: 1px solid rgba(14,17,22,0.32); background: transparent; }
.mat-next .btn--ghost:hover { background: rgba(14,17,22,0.04); border-color: var(--ink); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .mat-swatch-row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .mat-feature, .mat-feature--rev .mat-feature-img { grid-template-columns: 1fr; }
  .mat-feature { gap: 22px; }
  .mat-feature--rev .mat-feature-img { order: 0; }
  .mat-feature-img { aspect-ratio: 16 / 11; }
  .mat-hero-lead { font-size: 16px; }
  .mat-next-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .mat-swatch-row { grid-template-columns: repeat(2, 1fr); }
}
