/* line_page.css — Shared styles for all product line pages
   Uses styles.css CSS variables throughout                    */

body.line-page {
  background: var(--ivory);
  color: var(--umber);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

.lp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HERO ──────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
@media (max-width: 768px) { .lp-hero { height: 300px; } }

.lp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.lp-hero:hover .lp-hero__bg { transform: scale(1.0); }

.lp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(61,46,30,0.75) 0%,
    rgba(61,46,30,0.30) 60%,
    transparent 100%
  );
}

.lp-hero__content {
  position: relative;
  z-index: 10;
  padding: 0 2rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lp-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(247,242,234,0.75);
  text-decoration: none;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 6px 16px;
  backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s;
  width: fit-content;
  margin-bottom: 0.25rem;
}
.lp-back:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.lp-hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-light);
  font-weight: 500;
}

.lp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.lp-hero__subtitle {
  font-size: 0.92rem;
  color: rgba(247,242,234,0.7);
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

/* ── INTRO ─────────────────────────────────────────────────── */
.lp-intro {
  padding: 5rem 0;
  background: var(--ivory-soft);
  border-bottom: 1px solid var(--umber-10);
}

.lp-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 860px) {
  .lp-intro__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.lp-intro__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--umber);
  line-height: 1.25;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.lp-intro__body {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--umber-60);
  margin: 0;
}

.lp-intro__image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* ── PRODUCT SECTIONS ──────────────────────────────────────── */
.lp-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--umber-06);
}
.lp-section:nth-child(odd) { background: var(--ivory); }
.lp-section:nth-child(even) { background: var(--ivory-soft); }

.lp-section__head {
  margin-bottom: 2rem;
  max-width: 700px;
}

.lp-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--umber);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.lp-section__desc {
  font-size: 0.9rem;
  color: var(--umber-60);
  line-height: 1.75;
  margin: 0;
}

.lp-section__banner {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 340px;
}
.lp-section__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── PRODUCT GRID ──────────────────────────────────────────── */
.lp-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1100px) { .lp-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .lp-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .lp-products-grid { grid-template-columns: 1fr; } }

/* ── PRODUCT CARD ──────────────────────────────────────────── */
.lp-product-card {
  background: var(--white);
  border: 1px solid var(--umber-06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  animation: lpCardIn 0.55s ease both;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
@keyframes lpCardIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lp-product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.lp-product-card__img {
  position: relative;
  aspect-ratio: 1;
  background: var(--parchment);
  overflow: hidden;
}
.lp-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.5s ease;
}
.lp-product-card:hover .lp-product-card__img img {
  transform: scale(1.07);
}
.lp-product-card__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,196,172,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.lp-product-card:hover .lp-product-card__overlay { opacity: 1; }

.lp-product-card__body {
  padding: 1.25rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.lp-product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.lp-product-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--umber);
  line-height: 1.3;
  margin: 0;
  flex: 1;
  letter-spacing: -0.01em;
}
.lp-product-card__size {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--umber-40);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px;
  background: var(--parchment);
  padding: 2px 8px;
  border-radius: 999px;
}
.lp-product-card__desc {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--umber-60);
  flex: 1;
  margin: 0;
}
.lp-product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--sand);
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
  transition: color 0.2s, gap 0.2s;
}
.lp-product-card:hover .lp-product-card__cta {
  color: var(--clay);
  gap: 9px;
}

/* ── MODAL ─────────────────────────────────────────────────── */
.lp-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61,46,30,0.55);
  z-index: 300;
  backdrop-filter: blur(10px);
}
.lp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 400;
  background: var(--ivory-soft);
  border: 1px solid var(--umber-10);
  border-radius: var(--radius-xl);
  width: min(920px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 32px 96px rgba(61,46,30,0.28);
  animation: lpModalIn 0.3s ease;
}
@keyframes lpModalIn {
  from { opacity: 0; transform: translate(-50%, -47%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.lp-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--umber-06);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--umber);
  transition: background 0.2s, transform 0.2s;
}
.lp-modal__close:hover {
  background: var(--parchment);
  transform: rotate(90deg);
}
.lp-modal__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  min-height: 440px;
}
@media (max-width: 620px) {
  .lp-modal__inner { grid-template-columns: 1fr; }
}

.lp-modal__img-panel {
  background: linear-gradient(135deg, var(--parchment), var(--ivory));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  overflow: hidden;
  padding: 3rem 2rem;
  min-height: 340px;
}
@media (max-width: 620px) {
  .lp-modal__img-panel {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    min-height: 220px;
  }
}
.lp-modal__img-panel img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.lp-modal__info {
  padding: 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lp-modal__line-label {
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
}
.lp-modal__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--umber);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.lp-modal__desc {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--umber-60);
  flex: 1;
  margin: 0;
}
.lp-modal__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--umber-10);
}
.lp-modal__meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--umber-40);
}
.lp-modal__meta-value {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--umber);
}
.lp-modal__source-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--clay);
  text-decoration: none;
  border: 1px solid var(--clay);
  border-radius: 999px;
  padding: 8px 18px;
  width: fit-content;
  transition: background 0.2s, color 0.2s;
}
.lp-modal__source-btn:hover {
  background: var(--clay);
  color: var(--ivory);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lp-intro  { padding: 3rem 0; }
  .lp-section { padding: 3rem 0; }
  .lp-container { padding: 0 1rem; }
  .lp-hero__content { padding: 0 1rem 2rem; }
}