/* =========================================================
   RETRO FILM THEME — override layer for Link-shine Smart
   Loads AFTER style.css via mu-plugin. Rollback = remove
   mu-plugin retro-film-theme.php + this file.
   Palette: cream paper / kraft / film-black / amber / brick
========================================================= */
:root{
  --rf-paper:#F6F1E7;
  --rf-paper2:#EFE7D6;
  --rf-kraft:#E7DCC5;
  --rf-card:#FFFDF7;
  --rf-ink:#26231E;
  --rf-ink-soft:#57503F;
  --rf-amber:#C88A31;
  --rf-amber-dark:#A96B1D;
  --rf-brick:#A4442E;
  --rf-brick-dark:#8F3A26;
  --rf-film:#1A1713;
  --rf-cream-text:#EDE4D2;
  --rf-serif:'Playfair Display',Georgia,'Times New Roman',serif;
  --rf-mono:'Courier Prime','Courier New',monospace;
}

/* ---------- base ---------- */
body{
  background-color:var(--rf-paper);
  color:var(--rf-ink);
}
/* subtle film grain over the whole page */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:9999;
  pointer-events:none;
  opacity:.5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
::selection{background:var(--rf-amber);color:#fff}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--rf-amber);outline-offset:2px}

/* sections go transparent so the warm paper shows through
   (background-color only — keeps any background images) */
section{background-color:transparent}

/* ---------- typography ---------- */
h1,h2,h3{
  font-family:var(--rf-serif);
  letter-spacing:.2px;
}
.site-title,.hero-title,.about-hero-title,.contact-hero-title,
.product-category-hero__title,.products-overview-title,
.section-heading,.product-title,.section h2{
  font-family:var(--rf-serif);
}
.hero-eyebrow,.section-eyebrow,.contact-section-eyebrow,
.product-section-eyebrow,.product-category-section-eyebrow,
.product-category-label{
  font-family:var(--rf-mono);
  text-transform:uppercase;
  letter-spacing:3px;
  color:var(--rf-amber-dark);
}
.hero-eyebrow::before,.section-eyebrow::before,
.contact-section-eyebrow::before,.product-section-eyebrow::before,
.product-category-section-eyebrow::before{
  content:"▸ ";
}

/* ---------- header ---------- */
.site-header{
  background-color:var(--rf-paper);
  border-bottom:2px solid var(--rf-ink);
}
.top-bar,.topbar{
  background-color:var(--rf-film);
  color:#D8CDB4;
  font-family:var(--rf-mono);
  letter-spacing:2px;
  text-transform:uppercase;
  font-size:11px;
}
.primary-menu > li > a{
  font-family:var(--rf-mono);
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-size:13px;
  color:var(--rf-ink);
  border-bottom:2px solid transparent;
}
.primary-menu > li > a:hover{
  border-bottom-color:var(--rf-amber);
  color:var(--rf-ink);
}

/* ---------- buttons ---------- */
.button{
  font-family:var(--rf-mono);
  text-transform:uppercase;
  letter-spacing:1.5px;
  border-radius:0;
}
.button-primary{
  background-color:var(--rf-brick);
  border-color:var(--rf-brick);
  color:#FBF6EA;
  box-shadow:3px 3px 0 var(--rf-ink);
}
.button-primary:hover{
  background-color:var(--rf-brick-dark);
  border-color:var(--rf-brick-dark);
  color:#FBF6EA;
}
.button-secondary{
  background-color:transparent;
  color:var(--rf-ink);
  border-color:var(--rf-ink);
}
.button-secondary:hover{
  background-color:var(--rf-ink);
  color:var(--rf-paper);
}
input[type="submit"],button[type="submit"]{
  border-radius:0;
}

/* ---------- hero bands ---------- */
.hero-section,.about-hero,.contact-hero,
.product-category-hero,.product-category-hero__inner{
  background-color:var(--rf-kraft);
}
.hero-title,.about-hero-title,.contact-hero-title,
.product-category-hero__title{
  color:var(--rf-ink);
}
.hero-description,.about-hero-description,
.contact-hero-description,.product-category-hero__description{
  color:var(--rf-ink-soft);
}

/* ---------- cards: photo-print frames ---------- */
.product-card,.about-capability-item,.capability-item,
.contact-detail-item,.certification-card,.quality-step,
.faq-item,.stat-card{
  background-color:var(--rf-card);
  border:1px solid #D9CDB4;
  box-shadow:0 10px 22px rgba(60,45,20,.12);
  transition:transform .2s ease,box-shadow .2s ease;
}
.product-card:hover,.about-capability-item:hover,
.capability-item:hover,.certification-card:hover{
  transform:translateY(-4px) rotate(-.4deg);
  box-shadow:0 16px 30px rgba(60,45,20,.18);
}
.product-card-title,.product-title{
  color:var(--rf-ink);
}

/* ---------- dark bands ---------- */
.cta-section{
  position:relative;
  background-color:var(--rf-film);
  color:var(--rf-cream-text);
}
.cta-section::before{
  content:"";
  display:block;
  position:absolute;
  top:10px;left:24px;right:24px;
  height:8px;
  background-image:repeating-linear-gradient(to right,
    var(--rf-kraft) 0 10px,transparent 10px 22px);
  opacity:.55;
}
.cta-section h2,.cta-section .section-heading{color:#F3EAD6}
.cta-section .button-secondary{
  color:var(--rf-cream-text);
  border-color:var(--rf-cream-text);
}
.cta-section .button-secondary:hover{
  background-color:var(--rf-cream-text);
  color:var(--rf-film);
}

/* ---------- footer ---------- */
.site-footer{
  position:relative;
  background-color:var(--rf-film);
  color:#CBBFA3;
  border-top:4px double var(--rf-amber);
}
.site-footer h2,.site-footer h3,.site-footer h4{
  font-family:var(--rf-mono);
  text-transform:uppercase;
  letter-spacing:2px;
  color:var(--rf-amber);
}
.site-footer a{color:#CBBFA3}
.site-footer a:hover{color:var(--rf-amber)}

/* ---------- forms ---------- */
input[type="text"],input[type="email"],input[type="tel"],
input[type="url"],input[type="number"],textarea,select{
  background-color:var(--rf-card);
  border:1px solid #C9BC9F;
  color:var(--rf-ink);
  border-radius:0;
}
input[type="text"]:focus,input[type="email"]:focus,
input[type="tel"]:focus,textarea:focus,select:focus{
  border-color:var(--rf-amber);
  outline:none;
  box-shadow:2px 2px 0 rgba(200,138,49,.35);
}

/* ---------- tables / spec lists ---------- */
table{border-color:#D9CDB4}
th{background-color:var(--rf-kraft);color:var(--rf-ink)}

/* =========================================================
   FILMSTRIP BANNER (site-wide marquee below header)
========================================================= */
.filmstrip-banner{
  position:relative;
  background-color:var(--rf-film);
  padding:12px 0;
  overflow:hidden;
}
/* sprocket hole rows (top + bottom of the strip) */
.filmstrip-banner::before,
.filmstrip-banner::after{
  content:"";
  position:absolute;
  left:0;right:0;
  height:10px;
  background-image:radial-gradient(circle 3px at 11px 5px,#F6F1E7 98%,transparent);
  background-size:22px 10px;
  background-repeat:repeat-x;
  opacity:.85;
}
.filmstrip-banner::before{top:4px}
.filmstrip-banner::after{bottom:4px}
.filmstrip-track{
  display:flex;
  width:max-content;
  animation:filmScroll 48s linear infinite;
  will-change:transform;
}
.filmstrip-banner:hover .filmstrip-track{animation-play-state:paused}
@keyframes filmScroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
.filmstrip-group{display:flex}
.film-frame{
  flex:0 0 auto;
  margin-right:16px;
  padding:5px;
  background-color:#0E0C09;
  border:1px solid #3E382C;
  border-radius:2px;
}
.film-frame img{
  display:block;
  width:230px;
  height:130px;
  object-fit:cover;
  filter:sepia(.12) saturate(.92) contrast(.98);
}
@media (prefers-reduced-motion: reduce){
  .filmstrip-track{animation:none}
}
@media (max-width:640px){
  .film-frame img{width:160px;height:92px}
}

/* =========================================================
   UX ENHANCER LAYER (skip-link / sticky / backtop / float quote)
========================================================= */
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:9999;
  background-color:#C88A31;color:#1A1713;padding:10px 18px;
  font-family:'Courier Prime',monospace;font-weight:700;
}
.skip-link:focus{left:12px;top:12px}
.site-header.ls-sticky-on{
  position:fixed;top:0;left:0;right:0;z-index:9990;
  box-shadow:0 6px 22px rgba(26,23,19,.28);
  animation:lsStickyIn .28s ease;
}
@keyframes lsStickyIn{from{transform:translateY(-100%)}to{transform:translateY(0)}}
body.ls-has-sticky{padding-top:0}
#ls-backtop{
  position:fixed;right:22px;bottom:96px;z-index:9980;
  width:46px;height:46px;border-radius:50%;
  background-color:#1A1713;color:#C88A31;
  border:2px solid #C88A31;font-size:15px;cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .25s,transform .25s,visibility .25s;
}
#ls-backtop.ls-visible{opacity:1;visibility:visible;transform:translateY(0)}
#ls-backtop:hover{background-color:#C88A31;color:#1A1713}
.ls-float-quote{
  position:fixed;right:22px;bottom:36px;z-index:9981;
  display:flex;flex-direction:column;gap:10px;align-items:flex-end;
}
.ls-fq-main{
  display:inline-block;background-color:#A4442E;color:#F6F1E7;
  font-family:'Courier Prime',monospace;font-weight:700;
  padding:12px 20px;border-radius:6px;text-decoration:none;
  box-shadow:3px 3px 0 #1A1713;font-size:14px;letter-spacing:.04em;
}
.ls-fq-main:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 #1A1713}
.ls-fq-mail{
  width:46px;height:46px;border-radius:50%;
  background-color:#1A1713;color:#C88A31;border:2px solid #C88A31;
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;font-size:18px;
}
.ls-fq-mail:hover{background-color:#C88A31;color:#1A1713}
@media (max-width:768px){
  /* mobile: compact bottom bar instead of corner buttons */
  .ls-float-quote{
    left:0;right:0;bottom:0;flex-direction:row;
    background-color:#1A1713;border-top:2px solid #C88A31;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom));
    align-items:center;justify-content:center;gap:14px;
  }
  .ls-fq-main{flex:1;text-align:center;box-shadow:none}
  .ls-fq-mail{width:40px;height:40px;flex:0 0 auto}
  #ls-backtop{bottom:76px;right:14px}
}
@media (prefers-reduced-motion: reduce){
  .site-header.ls-sticky-on{animation:none}
}

/* =========================================================
   404 PAGE (retro film)
========================================================= */
.ls-404{padding:70px 20px 90px;text-align:center}
.ls-404-frame-label{
  font-family:'Courier Prime',monospace;font-size:13px;letter-spacing:.22em;
  color:#A4442E;text-transform:uppercase;margin-bottom:18px;
}
.ls-404-title{
  font-family:'Playfair Display',Georgia,serif;font-size:44px;
  color:#1A1713;margin:0 0 14px;
}
.ls-404-sub{color:#4A4234;font-size:16px;line-height:1.7;margin:0 0 30px}
.ls-404-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:44px}
.ls-404-btn{
  display:inline-block;padding:12px 22px;border:2px solid #1A1713;
  color:#1A1713;text-decoration:none;border-radius:4px;font-weight:600;font-size:14px;
  background-color:#F6F1E7;
}
.ls-404-btn:hover{background-color:#EAE0CC}
.ls-404-btn-primary{background-color:#1A1713;color:#F6F1E7}
.ls-404-btn-primary:hover{background-color:#33302A}
.ls-404-btn-quote{background-color:#A4442E;border-color:#A4442E;color:#F6F1E7;box-shadow:3px 3px 0 #1A1713}
.ls-404-btn-quote:hover{background-color:#8C3A26}
.ls-404-filmstrip{
  max-width:640px;margin:0 auto;display:flex;justify-content:space-between;
  padding:8px 10px;background-color:#1A1713;border-radius:3px;
}
.ls-404-filmstrip span{
  width:14px;height:12px;border-radius:2px;background-color:#F6F1E7;opacity:.85;
}

/* =========================================================
   PRODUCT BREADCRUMB (visible UI)
========================================================= */
.ls-breadcrumb{
  font-family:'Courier Prime',monospace;font-size:12.5px;
  color:#6B6152;margin:14px 0 6px;letter-spacing:.02em;
}
.ls-breadcrumb a{color:#A4442E;text-decoration:none}
.ls-breadcrumb a:hover{text-decoration:underline}
.ls-breadcrumb .ls-bc-sep{margin:0 8px;color:#B7AB96}
.ls-breadcrumb .ls-bc-current{color:#1A1713;font-weight:700}

/* =========================================================
   SPEC TABLE (product parameters)
========================================================= */
.ls-spec-table{
  width:100%;border-collapse:collapse;margin:6px 0 4px;
  background-color:#FBF7EE;font-size:14.5px;
}
.ls-spec-table th,.ls-spec-table td{
  padding:11px 14px;border-bottom:1px solid #E5D9C2;
  text-align:left;vertical-align:top;
}
.ls-spec-table tr:nth-child(odd){background-color:#F4ECD9}
.ls-spec-table th{
  width:38%;font-weight:600;color:#1A1713;white-space:normal;
}
.ls-spec-table td{color:#4A4234}
.ls-spec-table tr:hover{background-color:#EFE3C8}

/* =========================================================
   MOBILE NAV TIDY (no theme edit, <=767px)
========================================================= */
@media (max-width:767px){
  .primary-menu{
    display:flex;flex-wrap:wrap;justify-content:center;
    width:100%;gap:2px 14px;
  }
  .primary-menu li{width:auto}
  .primary-menu a{
    display:inline-block;padding:8px 6px;font-size:13.5px;
  }
}
