/* ══════════════════════════════════════════
   RAW MATERIAL PAGE — raw-material.css
   Inherits global: styles.css (navbar, footer, btn-*, etc.)
══════════════════════════════════════════ */

/* Active nav link */
.active-link {
  color: var(--brown) !important;
  opacity: 1 !important;
}
 




/* Scroll progress bar */
#rm-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brown), #e8c07a, var(--brown));
  background-size: 200% 100%;
  animation: rmShimmerBar 2.5s linear infinite;
  z-index: 9999;
  transition: width .12s linear;
}

@keyframes rmShimmerBar {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.rm-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.rm-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.28) saturate(1.3);
  transform: scale(1.06);
  animation: rmHeroZoom 10s ease-out forwards;
}

@keyframes rmHeroZoom {
  to {
    transform: scale(1);
    filter: brightness(.32) saturate(1.3);
  }
}

.rm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg,
      rgba(8, 8, 8, .7) 0%,
      rgba(15, 10, 5, .55) 50%,
      rgba(8, 8, 8, .85) 100%);
}

/* Floating particles */
.rm-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.rm-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 107, 11, .55), transparent 70%);
  animation: rmFloat linear infinite;
}

@keyframes rmFloat {
  0% {
    transform: translateY(105vh) scale(0);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  92% {
    opacity: .3;
  }

  100% {
    transform: translateY(-10vh) scale(1.3);
    opacity: 0;
  }
}

.rm-hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding: 0 2rem;
  animation: rmHeroFade 1s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes rmHeroFade {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rm-eyebrow {
  font-size: .72rem;
  letter-spacing: 6px;
  color: var(--brown);
  text-transform: uppercase;
  margin-bottom: 1.3rem;
  animation: rmEyebrowReveal 1.3s cubic-bezier(.22, 1, .36, 1) .2s both;
}

@keyframes rmEyebrowReveal {
  from {
    opacity: 0;
    letter-spacing: 14px;
  }

  to {
    opacity: 1;
    letter-spacing: 6px;
  }
}

.rm-hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 1.07;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #fff 0%, #f5f1eb 45%, var(--brown) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: rmHeroFade .9s ease forwards, rmGradientShimmer 5s linear 1.2s infinite;
}

.rm-hero-content h1 em {
  font-style: normal;
  -webkit-text-fill-color: var(--brown);
}

@keyframes rmGradientShimmer {
  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

.rm-hero-sub {
  font-size: clamp(.9rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, .55);
  letter-spacing: 1.5px;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────────────────────────────────
   INTRO STRIP
───────────────────────────────────────── */
.rm-intro {
  padding: 4rem 0;
  background: linear-gradient(90deg, #0d0d0d 0%, #111 50%, #0d0d0d 100%);
  border-top: 1px solid rgba(241, 107, 11, .15);
  border-bottom: 1px solid rgba(241, 107, 11, .15);
}

.rm-intro-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.rm-intro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1.5rem 3.5rem;
  text-align: center;
}

.rm-stat-num {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: var(--brown);
  line-height: 1;
  animation: rmStatGlow 3s ease-in-out infinite;
}

@keyframes rmStatGlow {

  0%,
  100% {
    text-shadow: none;
  }

  50% {
    text-shadow: 0 0 30px rgba(241, 107, 11, .55);
  }
}

.rm-stat-label {
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rm-intro-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, .08);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   MATERIAL ROWS
───────────────────────────────────────── */
.rm-materials {
  padding: 8rem 0;
  background: #0a0a0a;
}

.rm-material-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 8rem;
}

.rm-material-row:last-child {
  margin-bottom: 0;
}

.rm-row-reverse {
  direction: rtl;
}

.rm-row-reverse>* {
  direction: ltr;
}

/* Visual column */
.rm-mat-visual {
  position: relative;
}

.rm-mat-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.rm-mat-img-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.rm-mat-img-wrap:hover img {
  transform: scale(1.05);
}

.rm-mat-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(241, 107, 11, .88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
}

/* Decorative texture swatch */
.rm-mat-texture {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 100px;
  height: 100px;
  border-radius: 16px;
  border: 2px solid rgba(241, 107, 11, .25);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.wood-texture {
  background: repeating-linear-gradient(20deg, #4a2f1a 0px, #6b4226 4px, #3d2412 8px, #5a3820 12px);
}

.resin-texture {
  background: radial-gradient(ellipse at 30% 40%, #0d4f8c 0%, #001233 45%, #0a2a5c 100%);
}

.horn-texture {
  background: repeating-linear-gradient(45deg, #c8a96e 0px, #a0854d 6px, #d4b87a 12px, #b89460 18px);
}

.pigment-texture {
  background: conic-gradient(from 0deg, #d4af37, #c0392b, #2980b9, #27ae60, #8e44ad, #d4af37);
}

/* Content column */
.rm-mat-content {
  padding: 1rem 0;
}

.rm-mat-number {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 5rem;
  color: rgba(241, 107, 11, .08);
  line-height: 1;
  margin-bottom: -1rem;
  letter-spacing: -2px;
  user-select: none;
}

.rm-mat-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: .5rem;
}

.rm-mat-content>p {
  color: rgba(255, 255, 255, .5);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: .95rem;
}

.rm-feature-list {
  list-style: none;
  margin-bottom: 1.8rem;
}

.rm-feature-list li {
  padding: .45rem 0;
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.rm-feature-list li::before {
  content: '✦';
  color: var(--brown);
  font-size: .6rem;
  flex-shrink: 0;
}

.rm-mat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.rm-mat-chips span {
  padding: .35rem .95rem;
  border-radius: 50px;
  border: 1px solid rgba(241, 107, 11, .3);
  font-size: .72rem;
  color: rgba(255, 255, 255, .55);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all .3s;
  cursor: default;
}

.rm-mat-chips span:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

/* ─────────────────────────────────────────
   SOURCING PROCESS TIMELINE
───────────────────────────────────────── */
.rm-process {
  padding: 8rem 0;
  background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
}

.rm-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 1rem;
}

.rm-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--brown), rgba(241, 107, 11, .2));
  z-index: 0;
}

.rm-tl-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.rm-tl-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--glass);
  border: 2px solid rgba(241, 107, 11, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.8rem;
  transition: all .4s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(241, 107, 11, .06);
}

.rm-tl-step:hover .rm-tl-icon {
  background: var(--brown);
  border-color: var(--brown);
  transform: scale(1.12);
  box-shadow: 0 0 30px rgba(241, 107, 11, .4), 0 0 0 6px rgba(241, 107, 11, .12);
}

.rm-tl-step h4 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  margin-bottom: .7rem;
}

.rm-tl-step p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   GALLERY BENTO
───────────────────────────────────────── */
.rm-gallery {
  padding: 8rem 0;
  background: #0a0a0a;
}

.rm-gallery-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 12px;
  grid-auto-flow: dense;
}

.rm-gb-item {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #111;
}

.rm-gb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.rm-gb-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.rm-gb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rm-gb-category {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 600;
}

.rm-gb-overlay h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.rm-gb-item:hover img {
  transform: scale(1.1);
}

.rm-gb-item:hover::after {
  opacity: 1;
}

.rm-gb-item:hover .rm-gb-overlay {
  transform: translateY(0);
  opacity: 1;
}

.rm-gb-item:hover {
  box-shadow: 0 0 0 1px rgba(241, 107, 11, 0.4), 0 20px 60px rgba(0, 0, 0, .8);
  border-radius: 14px;
}

.rm-gb-tall {
  grid-row: span 2;
}

.rm-gb-wide {
  grid-column: span 2;
}

/* ─────────────────────────────────────────
   WHY MATERIALS MATTER
───────────────────────────────────────── */
.rm-why {
  padding: 8rem 0;
  background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
}

.rm-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.rm-why-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}

.rm-why-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--brown), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  z-index: 0;
}

.rm-why-card:hover::before {
  opacity: .15;
}

.rm-why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(241, 107, 11, .25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.rm-why-card>* {
  position: relative;
  z-index: 1;
}

.rm-why-icon {
  font-size: 2.4rem;
  margin-bottom: 1.3rem;
  display: block;
  filter: drop-shadow(0 0 12px rgba(241, 107, 11, .25));
  transition: filter .3s;
}

.rm-why-card:hover .rm-why-icon {
  filter: drop-shadow(0 0 20px rgba(241, 107, 11, .5));
}

.rm-why-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  margin-bottom: .8rem;
}

.rm-why-card p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .48);
  line-height: 1.75;
}

/* ─────────────────────────────────────────
   CTA
───────────────────────────────────────── */
.rm-cta {
  padding: 9rem 0;
  text-align: center;
  position: relative;
}

.rm-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, .78);
}

.rm-cta-inner {
  position: relative;
  z-index: 2;
}

.rm-cta h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 1.2rem;
  animation: rmCtaGlow 3.5s ease-in-out infinite;
}

@keyframes rmCtaGlow {

  0%,
  100% {
    text-shadow: none;
  }

  50% {
    text-shadow: 0 0 50px rgba(241, 107, 11, .4);
  }
}

.rm-cta p {
  color: rgba(255, 255, 255, .5);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.75;
}

.rm-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   FADE-UP
───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .75s ease, transform .75s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .rm-material-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .rm-row-reverse {
    direction: ltr;
  }

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

  .rm-timeline::before {
    display: none;
  }

  .rm-gallery-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 210px;
    grid-auto-flow: dense;
  }

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

  .rm-intro-stat {
    padding: 1.2rem 2rem;
  }
}

@media (max-width: 768px) {
  .rm-hero-content h1 {
    font-size: 2.2rem;
  }

  .rm-timeline {
    grid-template-columns: 1fr;
  }

  .rm-gallery-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    grid-auto-flow: dense;
  }

  .rm-gb-wide {
    grid-column: span 2;
  }

  .rm-gb-tall {
    grid-row: span 2;
  }

  .rm-why-grid {
    grid-template-columns: 1fr;
  }

  .rm-mat-img-wrap img {
    height: 300px;
  }

  .rm-intro-divider {
    display: none;
  }

  .rm-intro-stat {
    padding: 1rem 1.5rem;
  }

  .rm-intro-grid {
    gap: .5rem;
  }

  .rm-mat-texture {
    display: none;
  }
}