/* ============================================================
   FilaSource Landing Pages (Google Ads) — landing.css
   Enqueued ONLY on pages using template-landing.php.
   Extends the sitewide design tokens in main.css (do not redefine).
   Flat design: no gradients, no blur. Hover = scale(1.04) only.
   ============================================================ */

/* ---------- Minimal header (no nav) ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
}
.lp-header-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.lp-brand img { height: 32px; width: auto; }
.lp-header .btn { min-height: 42px; padding: 8px 18px; font-size: 14px; white-space: nowrap; }

/* ---------- Header language switcher (GTranslate gt-link) ---------- */
.lp-lang { display: flex; align-items: center; gap: 18px; margin-left: auto; margin-right: 6px; }
.lp-lang a {
  display: flex; align-items: center; gap: 7px; text-decoration: none;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--slate);
}
.lp-lang a img { width: 18px; height: 18px; border-radius: 2px; display: block; }
.lp-lang a:hover { color: var(--text); }
.lp-lang a.is-active { color: var(--accent); font-weight: 700; }
/* hidden wrapper that boots the GTranslate engine (dwf.js) for the header links */
.lp-gt-boot { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 768px) {
  .lp-header-in { gap: 10px; }
  .lp-brand img { height: 26px; }
  .lp-lang { gap: 12px; margin-right: 0; }
  .lp-lang a span { display: none; }
  .lp-lang a img { width: 20px; height: 20px; }
  .lp-header .btn { min-height: 38px; padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 400px) {
  .lp-header-in { gap: 8px; }
  .lp-brand img { height: 24px; }
  .lp-lang { gap: 8px; }
  .lp-lang a img { width: 18px; height: 18px; }
  .lp-header .btn { padding: 8px 10px; font-size: 12.5px; }
}

/* ---------- Hero: full-bleed factory-floor banner ----------
   Static image only (no video). The photo is the "we are a factory" proof;
   the scrim (functional gradient, sole exception to the no-gradient rule)
   keeps copy at AA contrast over any part of the floor. */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-navy); color: var(--text-on-dark); }
.lp-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.lp-hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(93deg, rgba(19,29,39,.96) 0%, rgba(19,29,39,.88) 36%, rgba(19,29,39,.66) 70%, rgba(19,29,39,.5) 100%);
}
.lp-hero-in {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 44px);
}
.lp-hero .kicker { color: var(--kicker-on-navy); }
.lp-hero .kicker::before { background: var(--kicker-on-navy); }
.lp-hero h1 { color: var(--text-on-dark); margin-bottom: 18px; }
.lp-hero .lead { color: var(--text-on-dark-muted); margin-top: 0; margin-bottom: 26px; }
.lp-hero .btn-row { margin-top: 6px; }
.lp-hero .text-link { color: var(--kicker-on-navy); border-bottom-color: rgba(255,255,255,.3); }
.lp-hero .text-link:hover { color: var(--text-on-dark); border-bottom-color: var(--text-on-dark); }

/* factory facts row under the CTA */
.lp-hero-facts {
  list-style: none; display: flex; flex-wrap: wrap; margin: 30px 0 0; padding: 0;
}
.lp-hero-facts li { display: flex; flex-direction: column; gap: 3px; padding: 0 22px; border-left: 1px solid rgba(255,255,255,.22); }
.lp-hero-facts li:first-child { padding-left: 0; border-left: 0; }
.lp-hero-facts b { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--text-on-dark); letter-spacing: .01em; }
.lp-hero-facts span { font-size: 11.5px; color: var(--text-on-dark-muted); letter-spacing: .03em; }

/* proof card: per-page factory shot + spool strip (right column) */
.lp-hero-proof { display: flex; flex-direction: column; gap: 12px; }
.lp-hero-shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); }
.lp-hero-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.lp-hero-shot .lp-media-badge {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(19,29,39,.82); color: var(--text-on-dark);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  padding: 8px 12px; border-radius: 4px;
}
.lp-hero-spools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lp-hero-spools figure { margin: 0; }
.lp-hero-spools img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 8px; }
.lp-hero-spools figcaption {
  margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: var(--text-on-dark-muted); text-align: center;
}
.lp-hero-proof-note { margin: 2px 0 0; font-size: 12.5px; color: var(--text-on-dark-muted); }
.lp-hero-proof-note a { color: var(--kicker-on-navy); }

/* three promise cards (full-width row under the hero grid) */
.lp-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(48px, 6vw, 72px); }
.lp-promise {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 18px;
}
.lp-promise h3 { color: var(--text-on-dark); font-size: 15.5px; margin-bottom: 8px; }
.lp-promise p { font-size: 13.5px; color: var(--text-on-dark-muted); margin: 0; }
.lp-promise .lp-promise-ico {
  width: 34px; height: 34px; border-radius: 6px; margin-bottom: 12px;
  background: rgba(127,178,229,.16); color: var(--kicker-on-navy);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}

/* ---------- Pain points (light section, quote + solution) ---------- */
.lp-pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lp-pain {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.lp-pain h3 { font-size: 16.5px; }
.lp-pain .lp-pain-body { font-size: 14.5px; color: var(--text-muted); margin: 0; }
.lp-pain .lp-pain-fix {
  font-size: 14px; color: var(--text-body); margin: 0;
  border-left: 3px solid var(--green); padding-left: 14px;
}
.lp-pain .lp-pain-fix b { color: var(--green); font-weight: 600; }

/* ---------- Risk table (zebra + hover; mobile = stacked cards) ---------- */
.lp-risk .table-wrap table { min-width: 720px; }
.lp-risk .table-wrap tbody tr:nth-child(even) { background: var(--mist); }
.lp-risk .table-wrap tbody tr:hover { background: rgba(28,88,160,.06); }
.lp-risk .table-wrap td:first-child { color: var(--text); }

/* ---------- 4-stage qualification path ---------- */
.lp-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: lpstage; }
.lp-stage { position: relative; padding: 0 22px 0 0; }
.lp-stage + .lp-stage { padding-left: 22px; border-left: 1px solid var(--border); }
.lp-stage-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 10px; display: block;
}
.lp-stage h3 { font-size: 17px; margin-bottom: 10px; }
.lp-stage p { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; }
.lp-stage-meta { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 6px; }
.lp-stage-meta span { font-size: 12.5px; color: var(--slate); font-family: var(--mono); letter-spacing: .02em; }
.lp-stage-meta b { color: var(--text); font-weight: 600; }

/* ---------- Capability / stats ---------- */
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.lp-stat b {
  display: block; font-family: var(--mono); font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px); color: var(--accent); letter-spacing: -.01em;
}
.lp-stat span { font-size: 13.5px; color: var(--text-muted); display: block; margin-top: 6px; }

/* Intertek block (image + copy) */
.lp-intertek {
  background: var(--mist); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; margin-top: 22px;
  display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: start;
}
.lp-intertek-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--border); }
.lp-intertek h3 { font-size: 16px; margin-bottom: 10px; }
.lp-intertek p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ---------- Series grid (material pages) ---------- */
.lp-series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Glossy vs matte compare */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-compare figure { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.lp-compare img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lp-compare figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--text-muted); font-family: var(--mono); letter-spacing: .02em; }

/* ---------- Bottom CTA + form ---------- */
.lp-cta { background: var(--bg-alt); border-top: 1px solid var(--border); }
.lp-cta-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.lp-cta-copy h2 { margin-bottom: 14px; }
.lp-cta-copy .lead { margin-top: 0; }
.lp-cta-alt { margin-top: 22px; display: grid; gap: 10px; font-size: 14.5px; }
.lp-cta-alt a { font-weight: 600; }
/* checkbox groups inside the form */
.lp-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
/* CF7 nests the [checkbox] output as p > .wpcf7-form-control-wrap >
   .wpcf7-form-control > list-item spans. Dissolve all three wrapper levels so
   the individual .wpcf7-list-item spans become the grid items. */
.lp-checks > p,
.lp-checks .wpcf7-form-control-wrap,
.lp-checks .wpcf7-form-control { display: contents; margin: 0; }
.lp-checks .wpcf7-list-item { display: block; margin: 0; }
.lp-checks label {
  display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; font-weight: 500;
  color: var(--text-body); cursor: pointer;
}
.lp-checks input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--source-blue); }

/* ---------- Mini footer ---------- */
.lp-footer { background: var(--navy-deep); color: rgba(255,255,255,.55); font-size: 13px; padding: 26px 0; }
.lp-footer-in { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.lp-footer a { color: rgba(255,255,255,.7); }
.lp-footer a:hover { color: var(--text-on-dark); }

/* ---------- Mobile sticky CTA ---------- */
.lp-ctabar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
}
.lp-ctabar .btn { flex: 1; min-height: 46px; font-size: 14px; padding: 10px 8px; }

/* ---------- Sub-headings & folded blocks (AIDA modules 2/3) ---------- */
.lp-sub-h {
  font-size: clamp(18px, 2.1vw, 22px); margin: 40px 0 16px;
  padding-top: 22px; border-top: 1px solid var(--border); color: var(--text);
}
.lp-spec-block, .lp-risk-block, .lp-extra { margin-top: 8px; }
.lp-painrisk .lp-risk-block { margin-top: 34px; }
/* shared table polish for the folded blocks */
.lp-painrisk .table-wrap table, .lp-spec-block .table-wrap table, .lp-extra .table-wrap table { min-width: 640px; }
.lp-painrisk .table-wrap tbody tr:nth-child(even),
.lp-spec-block .table-wrap tbody tr:nth-child(even),
.lp-extra .table-wrap tbody tr:nth-child(even) { background: var(--mist); }
.lp-painrisk .table-wrap tbody tr:hover,
.lp-spec-block .table-wrap tbody tr:hover,
.lp-extra .table-wrap tbody tr:hover { background: rgba(28,88,160,.06); }
.lp-painrisk .table-wrap td:first-child { color: var(--text); font-weight: 500; }

/* ---------- Captioned photo gallery (real factory / QC / packaging) ---------- */
.lp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-gallery figure {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.lp-gallery figure:hover { transform: scale(1.04); }
.lp-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lp-gallery figcaption {
  padding: 11px 14px; font-size: 12.5px; color: var(--text-muted);
  font-family: var(--mono); letter-spacing: .02em; border-top: 1px solid var(--border);
}

/* ---------- Quality grid (QC photos + copy) ---------- */
.lp-qgrid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.lp-gallery--qc { grid-template-columns: repeat(2, 1fr); }
.lp-quality-list { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 14px; }
.lp-quality-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text-body); }
.lp-quality-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 2px; background: var(--accent); }

/* ---------- Market-specific packaging grid ---------- */
.lp-market { margin-top: 40px; }
.lp-market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-market-grid figure {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); text-align: center;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.lp-market-grid figure:hover { transform: scale(1.04); }
.lp-market-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.lp-market-grid figcaption {
  padding: 10px 12px; font-size: 12.5px; color: var(--text-body); font-weight: 600;
  font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase;
  border-top: 1px solid var(--border);
}

/* ---------- Compact 4-step path above the form (Action module) ---------- */
.lp-path-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 44px; }
.lp-stage-mini {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 18px;
}
.lp-stage-mini-num {
  font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--accent);
  letter-spacing: .04em; flex: 0 0 auto; line-height: 1.4;
}
.lp-stage-mini h4 { font-size: 15px; margin: 0 0 6px; color: var(--text); }
.lp-stage-mini h4 em { font-family: var(--mono); font-style: normal; font-size: 11.5px; color: var(--slate); margin-left: 6px; letter-spacing: .02em; }
.lp-stage-mini p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ---------- Assurance bullets + form helpers (Action module) ---------- */
.lp-assure { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.lp-assure li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text-body); }
.lp-assure li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.lp-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.lp-form label em { color: var(--source-blue); font-style: normal; }
.lp-form .opt, .form-panel .opt { font-weight: 500; color: var(--slate); font-size: 12px; }

/* ---------- Copy-led B2B refinement (2026-10 review; existing selectors only) ---------- */
.lp-hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lp-hero-copy .lead { max-width: 62ch; text-wrap: pretty; }

/* Keep the background atmospheric; let the evidence photo carry the detail. */
.lp-hero-bg { filter: saturate(.62) contrast(1.06); }
.lp-hero-shot { border: 1px solid rgba(255,255,255,.28); }
.lp-hero-shot .lp-media-badge { background: rgba(19,29,39,.94); }

/* Turn three generic cards into one procurement-assurance strip. */
.lp-promises {
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.lp-promise {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 22px 26px;
}
.lp-promise + .lp-promise { border-left: 1px solid rgba(255,255,255,.2); }
.lp-promise .lp-promise-ico {
  width: auto;
  height: auto;
  justify-content: flex-start;
  background: transparent;
  margin-bottom: 8px;
}

/* Reduce the ecommerce-card feel: two evidence-rich rows instead of four towers. */
@media (min-width: 1025px) {
  .lp-range .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-range .series-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .lp-range .series-card .card-media img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .lp-range .series-card .card-body { padding: 24px; }
}

/* Risk cards should scan like an audit, not four interchangeable features. */
.lp-pain { border-radius: 2px; border-top: 3px solid var(--ink-navy); }
.lp-pain h3 { max-width: 31ch; text-wrap: balance; }
.lp-pain .lp-pain-fix { margin-top: auto; }

/* Give the real-factory section greater visual weight. */
.lp-factory .lp-gallery { gap: 10px; }
.lp-factory .lp-gallery figure { border-radius: 4px; }
.lp-factory .lp-gallery figure:hover { transform: none; border-color: var(--accent); }
.lp-factory .lp-stats { margin-top: 28px; gap: 0; border-block: 1px solid var(--border); }
.lp-factory .lp-stat { border: 0; border-right: 1px solid var(--border); border-radius: 0; }
.lp-factory .lp-stat:nth-child(3n) { border-right: 0; }

/* Make the independent assessment read like a document record. */
.lp-intertek {
  background: #fff;
  border-left-width: 4px;
  box-shadow: 0 14px 36px rgba(19,29,39,.08);
}
.lp-intertek p { max-width: 66ch; }

/* The form is the decision point; visually separate it from surrounding cards. */
.form-panel {
  border-top: 4px solid var(--source-blue);
  box-shadow: 0 18px 44px rgba(19,29,39,.10);
}
.lp-form .btn--primary { width: 100%; }

@media (max-width: 1024px) {
  .lp-promise + .lp-promise {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.2);
  }
  .lp-factory .lp-stat { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lp-hero-scrim { background: rgba(19,29,39,.88); }
  .lp-hero-in { grid-template-columns: 1fr; padding-top: 40px; }
  .lp-hero-proof { order: 2; }
  .lp-hero-spools { grid-template-columns: repeat(4, 1fr); }
  .lp-hero-facts { margin-top: 24px; }
  .lp-hero-facts li { padding: 0 16px; }
  .lp-hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .lp-promises { grid-template-columns: 1fr; margin-top: 32px; }
  .lp-pain-grid { grid-template-columns: 1fr; }
  .lp-path { grid-template-columns: 1fr; gap: 26px; }
  .lp-stage { padding: 0; }
  .lp-stage + .lp-stage { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 22px; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-quality { grid-template-columns: 1fr; }
  .lp-series-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-compare { grid-template-columns: 1fr; }
  .lp-cta-grid { grid-template-columns: 1fr; }
  .lp-gallery { grid-template-columns: repeat(2, 1fr); }
  .lp-qgrid { grid-template-columns: 1fr; }
  .lp-market-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-path-mini { grid-template-columns: repeat(2, 1fr); }
  .lp-intertek { grid-template-columns: 1fr; }
  .lp-intertek-img img { max-width: 260px; }
}
@media (max-width: 1024px) {
  .lp-ctabar { display: flex; }
  body { padding-bottom: 70px; }
}
@media (max-width: 768px) {
  .lp-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lp-series-grid { grid-template-columns: 1fr; }
  .lp-checks { grid-template-columns: 1fr; }
  .lp-path-mini { grid-template-columns: 1fr; }
  .lp-footer-in { flex-direction: column; align-items: flex-start; }
}
