/* ===== machines.css — Lumi Liv "Our Machines" page ===== */

/* ---- Active nav pill ---- */
.nav-pill--active {
  background: var(--cream);
  color: var(--brown);
}

/* ===== MACHINES HERO ===== */
.machines-hero {
  min-height: 100svh;
  background: var(--cream);
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.machines-hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px var(--gutter) 60px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.machines-hero-content .eyebrow {
  margin-bottom: 20px;
  display: block;
}
.machines-hero-content h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  color: var(--brown-ink);
  margin: 0 0 22px;
}
.machines-hero-content p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  color: #4A3626;
  max-width: 480px;
  margin: 0 0 34px;
}
.machines-hero-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.machines-pill {
  font-size: 0.85rem;
  padding: 10px 22px;
}

/* Hero visual: big + two side panels */
.machines-hero-visual {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  height: min(74vh, 640px);
}
.machines-hero-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream-deep);
}
.mh-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mh-placeholder.mh-main {
  background: linear-gradient(145deg, #E4DBC6 0%, #D4C8A8 100%);
  border-radius: 20px;
}
.mh-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--brown);
  opacity: 0.7;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 20px;
}
/* Badge overlay */
.mh-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--brown-ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mh-badge-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.mh-badge-text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  opacity: 0.85;
}

/* Side column of hero visual */
.machines-hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mh-placeholder.mh-tall {
  flex: 1.4;
  border-radius: 16px;
  background: linear-gradient(170deg, var(--brown) 0%, var(--brown-deep) 100%);
  color: var(--cream);
  opacity: 1;
}
.mh-placeholder.mh-tall .mh-placeholder-inner { color: var(--cream); opacity: 0.65; }
.mh-placeholder.mh-short {
  flex: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rust) 0%, #8B2E1A 100%);
}
.mh-placeholder.mh-short .mh-placeholder-inner { color: var(--cream); opacity: 0.65; }

@media (max-width: 900px) {
  .machines-hero-inner { grid-template-columns: 1fr; }
  .machines-hero-visual { height: 52vh; order: -1; }
}

/* ===== MACHINE SECTIONS ===== */
.machine-section {
  padding: 100px 0 0;
  background: var(--cream);
}
.machine-section--alt {
  background: var(--cream-deep);
}
.machine-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.machine-section-inner--flipped {
  grid-template-columns: 1.1fr 1fr;
}

/* Label / info column */
.machine-label-col .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.machine-label-col h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--brown-ink);
}
.machine-tagline {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #4A3626;
  margin: 0 0 36px;
  max-width: 440px;
}

/* Spec row */
.machine-spec-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.machine-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.machine-spec-val {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown-ink);
  letter-spacing: -0.01em;
}
.machine-spec-key {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
}

/* Fiber highlight callout */
.fiber-highlight-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--cream);
  border: 1.5px solid rgba(166,146,61,0.35);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--brown-ink);
}
.machine-section--alt .fiber-highlight-box {
  background: var(--cream-deep);
}
.fiber-highlight-box svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}
.fiber-highlight-box p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #4A3626;
  margin: 0;
}
.fiber-highlight-box strong { color: var(--brown-ink); }

/* ===== Image placeholder styles (variety) ===== */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}
/* Warm cream */
.ip-warm {
  background: linear-gradient(150deg, #EEE3C8 0%, #DDD0AC 100%);
  color: var(--brown);
}
/* Rust */
.ip-rust {
  background: linear-gradient(150deg, #C24830 0%, #8B2E1A 100%);
  color: var(--cream);
}
/* Gold */
.ip-gold {
  background: linear-gradient(150deg, #BCA94A 0%, #8A7828 100%);
  color: var(--cream);
}
/* Light / near-white */
.ip-light {
  background: linear-gradient(150deg, var(--cream) 0%, var(--cream-deep) 100%);
  color: var(--brown);
  border: 1px solid rgba(107,66,38,0.15);
}
.ip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.ip-inner--sm {
  gap: 7px;
  font-size: 0.62rem;
  padding: 10px;
}

/* ===== Machine visual column image layouts ===== */
.machine-visual-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.machine-img {
  border-radius: 14px;
  overflow: hidden;
}
/* Large landscape hero image */
.machine-img--hero {
  aspect-ratio: 4/3;
}
/* Two equal small images side by side */
.machine-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.machine-img--sm {
  aspect-ratio: 1/1;
}
/* Tall portrait for fiber machine */
.machine-img--portrait {
  aspect-ratio: 3/4;
  max-height: 420px;
}
/* Three-tile mosaic for fiber */
.machine-img-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.machine-img--trio-item {
  aspect-ratio: 1/1;
}
/* Override portrait for fiber visual layout */
.machine-section-inner--flipped .machine-visual-col {
  display: grid;
  grid-template-rows: auto auto;
  gap: 14px;
}

@media (max-width: 900px) {
  .machine-section-inner,
  .machine-section-inner--flipped {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .machine-section-inner--flipped .machine-visual-col { order: -1; }
  .machine-img--portrait { max-height: 300px; }
}

/* ===== Capabilities grid ===== */
.machine-capabilities {
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 0 var(--gutter);
}
.caps-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  margin: 0 0 36px;
  color: var(--brown-ink);
}
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.caps-grid--fiber {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}
/* Wide card spans two cols */
.cap-card--wide {
  grid-column: span 2;
}

.cap-card {
  background: var(--cream-deep);
  border: 1px solid rgba(107,66,38,0.12);
  border-radius: 16px;
  padding: 28px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s cubic-bezier(.22,.9,.3,1), border-color 0.35s ease, box-shadow 0.4s ease;
}
.machine-section--alt .cap-card {
  background: var(--cream);
}
.cap-card:hover {
  transform: translateY(-5px);
  border-color: rgba(107,66,38,0.3);
  box-shadow: 0 12px 32px -8px rgba(43,27,14,0.14);
}
.cap-card-content {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.cap-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--cream);
  border: 1.5px solid rgba(107,66,38,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.machine-section--alt .cap-icon {
  background: var(--cream-deep);
}
.cap-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--brown-ink);
}
.cap-card h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--brown-ink);
  margin: 0 0 6px;
}
.cap-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5A3E2C;
  margin: 0;
  flex: 1;
}
/* The image placeholder inside a card */
.cap-img-wrap {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}
.cap-img-wrap--wide {
  aspect-ratio: 16/5;
}

@media (max-width: 960px) {
  .caps-grid,
  .caps-grid--fiber { grid-template-columns: repeat(2, 1fr); }
  .cap-card--wide { grid-column: span 1; }
}
@media (max-width: 600px) {
  .caps-grid,
  .caps-grid--fiber { grid-template-columns: 1fr; }
  .cap-card--wide { grid-column: span 1; }
}

/* ===== Materials strip ===== */
.materials-strip {
  max-width: 1280px;
  margin: 60px auto 0;
  padding: 50px var(--gutter);
  border-top: 1px solid rgba(107,66,38,0.12);
}
.materials-strip--dark {
  background: var(--brown-ink);
  max-width: 100%;
  margin: 60px 0 0;
}
.materials-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.material-tag {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(107,66,38,0.3);
  color: var(--brown);
  background: var(--cream);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: default;
}
.material-tag:hover {
  background: var(--brown);
  color: var(--cream);
  border-color: var(--brown);
}
.material-tag--dark {
  border-color: rgba(247,243,233,0.25);
  color: var(--cream);
  background: transparent;
}
.material-tag--dark:hover {
  background: var(--cream);
  color: var(--brown-ink);
  border-color: var(--cream);
}

/* ===== Comparison table ===== */
.compare-section {
  padding: 100px 0;
  background: var(--cream);
}
.compare-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.compare-sub {
  text-align: center;
  color: #4A3626;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(107,66,38,0.15);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.compare-table thead tr {
  background: var(--brown-ink);
  color: var(--cream);
}
.compare-table th {
  padding: 20px 22px;
  text-align: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.compare-table th:first-child { width: 30%; }
.compare-table td {
  padding: 18px 22px;
  border-top: 1px solid rgba(107,66,38,0.1);
  color: #3D2414;
  vertical-align: middle;
}
.compare-table td:first-child {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
}
.compare-table tbody tr:nth-child(even) {
  background: var(--cream-deep);
}
.compare-table tbody tr:hover td {
  background: rgba(166,146,61,0.07);
}
.compare-table .check {
  color: #2E7D32;
  font-weight: 600;
}
.compare-table .cross {
  color: #5A3E2C;
  opacity: 0.7;
}
