/* ============================================================
   House of Linen — Content pages (industries, products, blog, b2b)
   Reuses the brand tokens from style.css. Editorial layout: a 1100px
   container, reading text held to a 760px measure, media / cards /
   tables / stats breaking out to the full container width.
   ============================================================ */

.content-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 9rem clamp(1.5rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem);
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero .page-label {
  position: relative;
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-sand);
  padding-top: 1.1rem;
  margin-bottom: 1.5rem;
}
.page-hero .page-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 1px;
  background: var(--brand-sand);
  opacity: 0.55;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--brand-cream);
  max-width: 950px;
  margin-bottom: 1.75rem;
}
.page-hero .page-intro {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.8;
  color: rgba(244, 237, 227, 0.85);
  max-width: 760px;
}

/* Meta strip — small uppercase facts under the intro */
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
  margin-top: 1.75rem;
}
.page-meta span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-slate);
  padding: 0 1.1rem;
}
.page-meta span:first-child { padding-left: 0; }
.page-meta span + span {
  border-left: 1px solid rgba(184, 169, 148, 0.22);
}

/* Hero media band */
.page-hero-media {
  position: relative;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 21 / 9;
  border: 1px solid rgba(184, 169, 148, 0.14);
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(31, 27, 23, 0) 55%, rgba(31, 27, 23, 0.4) 100%);
  pointer-events: none;
}

/* Blog dateline */
.page-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-slate);
  margin: -1.5rem 0 2.5rem;
}

/* ============================================================
   STAT STRIP — homepage stats language, static
   ============================================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2vw, 2rem);
  background: rgba(16, 13, 10, 0.5);
  border: 1px solid rgba(184, 169, 148, 0.14);
  border-radius: 2px;
}
.stat-strip .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}
.stat-strip .stat + .stat {
  border-left: 1px solid rgba(184, 169, 148, 0.22);
}
.stat-strip .stat-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  line-height: 1;
}
.stat-strip .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  color: var(--brand-cream);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-strip .stat-suffix {
  font-family: var(--font-display);
  font-size: 0.42em;
  color: var(--brand-sand);
  line-height: 1;
}
.stat-strip .stat-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-slate);
  margin-top: 0.9rem;
}

/* ============================================================
   PROSE — 760px reading measure, breakouts span the container
   ============================================================ */
.prose > * { max-width: 760px; }
.prose > table,
.prose > .card-grid { max-width: none; }

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--brand-cream);
  margin: 3.5rem 0 1.1rem;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand-cream);
  margin: 2.25rem 0 0.75rem;
}
.prose p, .prose li {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(244, 237, 227, 0.78);
  margin-bottom: 1.1rem;
}
.prose ul, .prose ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--brand-sand); }
.prose a {
  color: var(--brand-sand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(184, 169, 148, 0.4);
  transition: text-decoration-color 0.3s ease;
}
.prose a:hover { text-decoration-color: var(--brand-sand); }
.prose strong { color: var(--brand-cream); font-weight: 600; }
.prose blockquote {
  border-left: 2px solid var(--brand-sand);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(244, 237, 227, 0.85);
}
.prose img { border-radius: 2px; margin: 1.5rem 0; }

/* Tables — glass panels */
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0 2.5rem;
  font-size: 0.92rem;
  background: rgba(16, 13, 10, 0.5);
  border: 1px solid rgba(184, 169, 148, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(184, 169, 148, 0.12);
  color: rgba(244, 237, 227, 0.78);
  line-height: 1.6;
}
.prose thead th {
  background: rgba(16, 13, 10, 0.55);
  font-weight: 600;
  color: var(--brand-sand);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.prose tbody tr:last-child th,
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr { transition: background 0.3s ease; }
.prose tbody tr:hover { background: rgba(244, 237, 227, 0.03); }
.prose td strong, .prose th strong { color: var(--brand-cream); }

/* ---- Spec strip ---- */
.spec-strip {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 1.75rem 0 2.25rem;
}
.spec-strip span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-sand);
  background: rgba(16, 13, 10, 0.45);
  border: 1px solid rgba(184, 169, 148, 0.3);
  border-radius: 2px;
  padding: 0.45rem 0.95rem;
}

/* ============================================================
   CARD GRID (index pages, related links)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 3rem;
}
.card-grid .card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(16, 13, 10, 0.5);
  border: 1px solid rgba(184, 169, 148, 0.14);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.card-grid .card:hover {
  border-color: rgba(184, 169, 148, 0.45);
  background: rgba(16, 13, 10, 0.65);
  transform: translateY(-3px);
}
.card-grid .card .card-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  filter: saturate(0.95);
  transition: transform 0.6s ease;
}
.card-grid .card:hover .card-thumb { transform: scale(1.03); }
.card-grid .card .card-body,
.card-grid .card > h2,
.card-grid .card > h3,
.card-grid .card > p,
.card-grid .card > .card-meta {
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}
.card-grid .card > h2,
.card-grid .card > h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--brand-cream);
  margin: 1.5rem 0 0.6rem;
}
.card-grid .card > p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(244, 237, 227, 0.65);
  margin-bottom: 0;
  flex-grow: 1;
}
.card-grid .card .card-meta {
  display: block;
  margin-top: 1.1rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-sand);
  border-top: 1px solid rgba(184, 169, 148, 0.12);
  margin-left: 1.6rem;
  margin-right: 1.6rem;
  padding-left: 0;
  padding-right: 0;
}

/* ============================================================
   FAQ — native <details> accordion
   ============================================================ */
.faq-section { margin-top: clamp(3.5rem, 7vw, 5rem); }
.faq-section > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 300;
  color: var(--brand-cream);
  margin-bottom: 1.75rem;
}
.faq-accordion {
  max-width: 860px;
  border-bottom: 1px solid rgba(184, 169, 148, 0.15);
}
.faq-item {
  border-top: 1px solid rgba(184, 169, 148, 0.15);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-cream);
  margin: 0;
  transition: color 0.3s ease;
}
.faq-item summary:hover h3 { color: var(--brand-sand); }
.faq-marker {
  position: relative;
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
}
.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--brand-sand);
  transition: transform 0.35s ease;
}
.faq-marker::after { transform: rotate(90deg); }
.faq-item[open] .faq-marker::after { transform: rotate(0deg); }
.faq-item > p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(244, 237, 227, 0.72);
  padding: 0 2.5rem 1.5rem 0.25rem;
  max-width: 760px;
}

/* ============================================================
   CTA PANEL — glass panel with the contact-email treatment
   ============================================================ */
.cta-panel {
  position: relative;
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: rgba(16, 13, 10, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(184, 169, 148, 0.14);
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.cta-panel::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 1px;
  background: var(--brand-sand);
  opacity: 0.55;
}
.cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--brand-cream);
  margin-bottom: 1rem;
}
.cta-panel .cta-body {
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(244, 237, 227, 0.7);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.cta-panel .cta-link {
  display: inline-block;
  padding: 0.25em 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--brand-cream);
  border-bottom: 1px solid rgba(244, 237, 227, 0.35);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.cta-panel .cta-link:hover,
.cta-panel .cta-link:focus-visible {
  border-bottom-color: var(--brand-sand);
  color: var(--brand-sand);
}
.cta-panel .cta-note {
  margin-top: 1.75rem;
  margin-bottom: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--brand-slate);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-slate);
  margin-bottom: 2.75rem;
}
.breadcrumbs a { color: var(--brand-slate); transition: color 0.3s ease; }
.breadcrumbs a:hover { color: var(--brand-cream); }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.6; }

/* ============================================================
   B2B PORTAL (src/pages/b2b.astro)
   ============================================================ */
.b2b-section { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Heritage — prose beside a portrait image */
.b2b-heritage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.b2b-heritage .prose h2 { margin-top: 0; }
.b2b-heritage-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(184, 169, 148, 0.14);
  aspect-ratio: 4 / 5;
  max-height: 520px;
}
.b2b-heritage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}
.b2b-heritage-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(31, 27, 23, 0) 60%, rgba(31, 27, 23, 0.35) 100%);
  pointer-events: none;
}

/* Differentiators — numbered glass cards */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.diff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2rem 1.75rem;
  background: rgba(16, 13, 10, 0.5);
  border: 1px solid rgba(184, 169, 148, 0.14);
  border-radius: 2px;
  transition: border-color 0.35s ease, background 0.35s ease;
}
.diff-card:hover {
  border-color: rgba(184, 169, 148, 0.4);
  background: rgba(16, 13, 10, 0.65);
}
.diff-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--brand-sand);
}
.diff-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--brand-cream);
  margin: 0;
}
.diff-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(244, 237, 227, 0.7);
  margin: 0;
}
.diff-card a {
  color: var(--brand-sand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(184, 169, 148, 0.4);
  transition: text-decoration-color 0.3s ease;
}
.diff-card a:hover { text-decoration-color: var(--brand-sand); }

/* Commercial terms — definition cards */
.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.term-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  background: rgba(16, 13, 10, 0.5);
  border: 1px solid rgba(184, 169, 148, 0.14);
  border-radius: 2px;
}
.term-card--highlight {
  border-color: rgba(184, 169, 148, 0.4);
}
.term-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-sand);
}
.term-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--brand-cream);
}
.term-note {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(244, 237, 227, 0.6);
  margin: 0;
}

/* Warranty callout — guarantee panel, deliberately not badge-like */
.warranty-panel {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  background: rgba(16, 13, 10, 0.5);
  border: 1px solid rgba(184, 169, 148, 0.25);
  border-radius: 2px;
  max-width: 860px;
}
.warranty-panel::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: clamp(1.5rem, 4vw, 3.5rem);
  width: 2rem;
  height: 1px;
  background: var(--brand-sand);
  opacity: 0.55;
}
.warranty-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--brand-cream);
  margin: 0.5rem 0 1.1rem;
}
.warranty-panel p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(244, 237, 227, 0.78);
  margin-bottom: 1rem;
}
.warranty-panel a {
  color: var(--brand-sand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(184, 169, 148, 0.4);
}
.warranty-panel .warranty-fineprint {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--brand-slate);
  margin-bottom: 0;
}

/* ============================================================
   SCROLL REVEALS — activated by /js/content.js; inert without it.
   Content is fully visible by default (no-JS safe).
   ============================================================ */
.will-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.will-reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .will-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .content-page { padding-top: 7rem; }
  .page-hero-media { aspect-ratio: 16 / 10; }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }
  .stat-strip .stat:nth-child(odd) { border-left: none; }
  .prose table { display: block; overflow-x: auto; }
  .faq-item > p { padding-right: 0.25rem; }
}

/* B2B mobile */
@media (max-width: 768px) {
  .b2b-heritage { grid-template-columns: 1fr; }
  .b2b-heritage-media { order: -1; aspect-ratio: 16 / 10; max-height: none; }
}
