/* ==========================================================================
   Lohabour — Materials.css
   Materials-page-only styles. Assumes base.css is already loaded for
   variables, typography, buttons, reveal system, section primitives,
   tags, header, and footer. Self-contained — no dependency on index.css,
   Solutions.css, Manufacturing.css or Process.css.
   ========================================================================== */

/* ---------------- Shared full-bleed media wrapper ---------------- */
/* Used by hero, both break variants (Metal / Upholstery / detail break),
   and the closing CTA banner. */

.mat-media {
  position: absolute;
  top: -40px;
  right: 0;
  bottom: -40px;
  left: 0;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

.mat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
}

.mat-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(10, 10, 9, 0.80) 0%,
      rgba(10, 10, 9, 0.60) 42%,
      rgba(10, 10, 9, 0.26) 75%,
      rgba(10, 10, 9, 0.20) 100%),
    linear-gradient(180deg,
      rgba(10, 10, 9, 0.28) 0%,
      rgba(10, 10, 9, 0.20) 45%,
      rgba(10, 10, 9, 0.94) 100%);
}

.mat-gradient--center {
  background: linear-gradient(180deg,
      rgba(10, 10, 9, 0.70) 0%,
      rgba(10, 10, 9, 0.58) 40%,
      rgba(10, 10, 9, 0.90) 100%);
}

.mat-gradient--strong {
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.55) 0%, rgba(10, 10, 9, 0.85) 100%);
}

/* ---------------- Hero ---------------- */

.mat-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8vh;
  overflow: hidden;
  background: var(--bg-secondary);
}

.mat-hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

@keyframes matFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.mat-fade {
  animation: matFadeUp 1s var(--ease-soft) var(--d, 0s) both;
}

.mat-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 11px;
  color: rgba(241, 239, 232, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.mat-hero__kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--accent);
}

.mat-hero__headline {
  max-width: 880px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.mat-hero__sub {
  max-width: 640px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(241, 239, 232, 0.78);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.mat-hero__tags {
  margin-top: 20px;
  margin-bottom: 32px;
}

.mat-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mat-hero__meta {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  justify-content: flex-start;
}

@media (max-width: 740px) {
  .mat-hero {
    min-height: 88svh;
    align-items: center;
    padding: 70px 0 42px;
  }

  .mat-hero__headline {
    font-size: clamp(38px, 11vw, 54px);
    letter-spacing: -0.04em;
  }

  .mat-hero__sub {
    font-size: 15px;
    margin-top: 20px;
  }

  .mat-hero__ctas .btn {
    width: min(100%, 320px);
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  .mat-hero__meta {
    display: none;
  }
}

/* =========================================================
   SHORT DESKTOP / LAPTOP SCREENS
   Keep typography unchanged — allow hero to grow and scroll.
   Example: 1200 × 650
   ========================================================= */

@media (min-width: 741px) and (max-height: 750px) {

  .mat-hero {
    min-height: 700px;
    height: auto;

    padding-top: 100px;
    padding-bottom: 60px;

    overflow: visible;
  }
}

/* ---------------- Introduction highlights ---------------- */

.mat-highlight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.mat-highlight__num {
  display: block;
  margin-bottom: 14px;
}

.mat-highlight h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 8px;
}

.mat-highlight p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  max-width: 32ch;
}

@media (max-width: 760px) {
  .mat-highlight-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------------- Material collection — split variant ---------------- */

.mat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.mat-split--reverse {
  direction: rtl;
}

.mat-split--reverse>* {
  direction: ltr;
}

.mat-split__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.mat-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1.02);
  transition: transform 0.9s var(--ease-soft);
}

.mat-split__media:hover img {
  transform: scale(1.06);
}

.mat-split__text .mono-label {
  margin-bottom: 8px;
}

.mat-split__text h2 {
  margin-top: 8px;
}

.mat-app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
}

.mat-split__note {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(241, 239, 232, 0.42);
  margin: 12px 0 0;
  max-width: 48ch;
}

@media (max-width: 900px) {
  .mat-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mat-split--reverse {
    direction: ltr;
  }

  .mat-split__media {
    aspect-ratio: 16 / 10;
  }
}

/* ---------------- Material collection — full-bleed break variant ---------------- */
/* Also reused for the standalone "large visual section" between the
   collection and Finishes. */

.mat-break {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.mat-break__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mat-break__inner .mono-label {
  justify-content: center;
}

.mat-break__inner .lede {
  margin: 0 auto;
  max-width: 56ch;
}

.mat-break__inner .display {
  margin: 16px auto 18px;
}

.mat-break__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 8px;
}

.mat-break__tagline {
  justify-content: center;
  margin: 24px 0 8px;
  color: var(--accent);
}

.mat-break__apps {
  justify-content: center;
  margin-top: 20px;
  color: rgba(241, 239, 232, 0.45);
  text-transform: none;
  letter-spacing: 0.03em;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
  .mat-break {
    min-height: 50vh;
    padding: 60px 0;
  }
}

/* ---------------- Finishes — swatch grid ---------------- */

.mat-finish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.mat-finish-swatch__block {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.mat-finish-swatch__block--0 {
  background: linear-gradient(135deg, #d8c9a8, #b89a6c);
}

.mat-finish-swatch__block--1 {
  background: linear-gradient(135deg, #8a5a34, #5e3a1e);
}

.mat-finish-swatch__block--2 {
  background: linear-gradient(135deg, #2c2c2b, #0f0f0e);
}

.mat-finish-swatch__block--3 {
  background: linear-gradient(135deg, #6b6b68, #38302a);
}

.mat-finish-swatch__block--4 {
  background: linear-gradient(135deg, #b08d57, #8c6d3e);
}

.mat-finish-swatch__block--5 {
  background: linear-gradient(135deg, #4a4038, #221d19);
}

.mat-finish-swatch h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
}

.mat-finish-swatch p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 900px) {
  .mat-finish-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .mat-finish-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Material selection ---------------- */

.mat-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 8px;
}

.mat-select-item {
  background: var(--bg-secondary);
  padding: 30px 26px;
}

.mat-select-item__num {
  display: block;
  margin-bottom: 16px;
}

.mat-select-item h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 10px;
}

.mat-select-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 900px) {
  .mat-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .mat-select-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Custom material development ---------------- */

.mat-custom {
  position: relative;
  padding: 140px 0;
  background: #050504;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.mat-custom .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mat-custom .mono-label {
  justify-content: center;
}

.mat-custom .lede {
  margin-left: auto;
  margin-right: auto;
}

.mat-custom-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 56px 0 40px;
}

.mat-custom-flow__step {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  white-space: nowrap;
}

.mat-custom-flow__arrow {
  color: var(--accent);
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .mat-custom {
    padding: 100px 0;
  }

  .mat-custom-flow {
    flex-direction: column;
    gap: 10px;
  }

  .mat-custom-flow__arrow {
    transform: rotate(90deg);
  }
}

/* ---------------- Final CTA banner ---------------- */

.cta-banner {
  position: relative;
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner .mat-media img {
  object-position: bottom;
}

.cta-banner .display {
  margin: 16px auto 20px;
}

.cta-banner .lede {
  margin: 0 auto 32px;
}

.cta-banner__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cta-banner .mono-label {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {

  .mat-media img,
  .mat-split__media img,
  .mat-gallery-item img {
    transform: none;
  }
}