/*
Theme Name: Rolinex Industrial Fluids V5 (WPVibe Draft)
Theme URI: https://rolinex.ca
Author: Rolinex
Description: Premium English WordPress theme for windshield washer fluid, motor oil, DEF/AdBlue manufacturing, packaging and distribution.
Version: 5.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: rolinex-v4
*/

:root{
  --navy:#052c56;--navy-dark:#031c37;--blue:#0878dc;--sky:#36a8ff;
  --gold:#d59b00;--ink:#122038;--muted:#657188;--line:#dbe3ed;
  --soft:#f3f7fb;--white:#fff;--max:1400px;--radius:16px;
  --shadow:0 20px 55px rgba(5,44,86,.14)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;line-height:1.6}
a{text-decoration:none;color:inherit}img{max-width:100%;display:block}
.container{max-width:var(--max);margin:auto;padding:0 30px}
.topbar{background:var(--navy-dark);color:#fff;font-size:14px}
.topbar .container{height:42px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.topbar-links{display:flex;gap:26px}.topbar a{color:#fff}
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 4px 18px rgba(0,0,0,.04)}
.header-inner{height:92px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand{font-size:44px;font-weight:900;font-style:italic;letter-spacing:-2px;color:var(--navy)}
.custom-logo{max-height:70px;width:auto}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:32px}
.main-nav a{font-weight:800;font-size:14px;text-transform:uppercase;color:#101b2d}
.main-nav a:hover{color:var(--blue)}
.menu-toggle{display:none;border:0;background:var(--navy);color:#fff;padding:10px 13px;border-radius:8px;font-weight:800}

/* Hero */
.hero{position:relative;height:760px;background:#031629;overflow:hidden}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .8s ease}
.hero-slide.active{opacity:1}
.hero-slide img{width:100%;height:100%;object-fit:cover}
.hero-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,16,31,.92) 0%,rgba(2,16,31,.68) 44%,rgba(2,16,31,.12) 100%)}
.hero-content{position:absolute;z-index:4;inset:0;display:flex;align-items:center}
.hero-copy{max-width:690px;color:#fff}
.hero-kicker{text-transform:uppercase;letter-spacing:3px;font-size:14px;font-weight:900;color:#50b5ff}
.hero h1{font-size:78px;line-height:1;margin:12px 0 14px}
.hero h2{font-size:29px;margin:0 0 18px}
.hero p{font-size:19px;max-width:630px;margin:0 0 30px;color:#eef5fb}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 25px;border-radius:5px;font-size:14px;font-weight:900;text-transform:uppercase;letter-spacing:.3px}
.btn-primary{background:var(--blue);color:#fff}.btn-primary:hover{background:#1491f5}
.btn-outline{border:2px solid #fff;color:#fff;margin-left:10px}
.slider-arrow{position:absolute;z-index:8;top:50%;transform:translateY(-50%);width:56px;height:56px;border-radius:50%;border:1px solid rgba(255,255,255,.5);background:rgba(0,15,29,.42);color:#fff;font-size:34px;cursor:pointer}
.slider-prev{left:28px}.slider-next{right:28px}
.slider-dots{position:absolute;z-index:8;left:50%;bottom:28px;transform:translateX(-50%);display:flex;gap:12px}
.slider-dot{width:12px;height:12px;border-radius:50%;border:0;background:rgba(255,255,255,.72);cursor:pointer}.slider-dot.active{background:var(--blue)}

/* Sections */
.section{padding:82px 0}.section-alt{background:var(--soft)}
.section-heading{text-align:center;margin-bottom:38px}
.eyebrow{color:var(--blue);font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:2px;margin-bottom:8px}
.section-title{font-size:42px;line-height:1.14;color:var(--navy);margin:0 0 14px}
.section-lead{font-size:18px;color:var(--muted);max-width:850px;margin:0 auto}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.product-card{border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:var(--shadow);transition:.25s transform,.25s box-shadow}
.product-card:hover{transform:translateY(-6px);box-shadow:0 28px 65px rgba(5,44,86,.22)}
.product-card img{width:100%;height:460px;object-fit:cover}
.feature-band{background:linear-gradient(135deg,#063765,#05274b);color:#fff;padding:44px 0}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;text-align:center}
.feature-icon{width:62px;height:62px;border-radius:16px;border:2px solid #51b3ff;display:grid;place-items:center;margin:0 auto 14px;color:#52b4ff;font-size:28px;font-weight:900}
.feature-item h3{text-transform:uppercase;margin:0 0 8px}.feature-item p{margin:0;color:#d7e8f8;font-size:14px}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:62px;align-items:center}
.about-image img{width:100%;height:440px;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}
.checks{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px;margin:28px 0}
.check{font-weight:800}.check::before{content:"✓";display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e3f3ff;color:var(--blue);margin-right:9px}
.cap-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.cap-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:28px 22px;box-shadow:0 10px 30px rgba(5,44,86,.07)}
.cap-icon{width:53px;height:53px;border-radius:13px;background:#e6f4ff;color:var(--blue);display:grid;place-items:center;font-weight:900;margin-bottom:18px}
.cap-card h3{margin:0 0 9px;color:var(--navy)}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.gallery img{width:100%;height:270px;object-fit:cover;border-radius:12px}
.quality{background:linear-gradient(135deg,var(--navy),#0b477e);color:#fff}.quality .section-title{color:#fff}.quality .section-lead{color:#d9e8f6}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.stat{text-align:center;padding:26px;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.06)}.stat strong{font-size:31px;display:block}
.contact-box{display:grid;grid-template-columns:1.2fr .8fr;gap:34px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:44px}
.contact-list{display:grid;gap:15px;margin-top:22px}.contact-card{background:var(--navy);color:#fff;padding:30px;border-radius:13px}.contact-card a{color:#67c3ff;font-weight:900}
.footer-widgets{background:#10263e;color:#fff;padding:54px 0}.widget-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px}.widget-title{color:#fff}
.site-footer{background:#07192d;color:#dce7f2;padding:23px 0;font-size:14px}.footer-inner{display:flex;justify-content:space-between;gap:20px}
.content-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:36px;padding:65px 0}.sidebar{border-left:1px solid var(--line);padding-left:28px}

@media(max-width:1000px){
  .main-nav ul{gap:17px}.hero h1{font-size:58px}.cap-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:840px){
  .menu-toggle{display:block}.main-nav{display:none;position:absolute;top:134px;left:0;right:0;background:#fff}.main-nav.open{display:block}.main-nav ul{display:block;padding:16px 28px}.main-nav li{padding:10px 0}
  .hero{height:650px}.hero h1{font-size:50px}.product-grid,.about-grid,.contact-box{grid-template-columns:1fr}.feature-grid{grid-template-columns:repeat(2,1fr)}.gallery{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}.widget-grid{grid-template-columns:1fr}.content-layout{grid-template-columns:1fr}.sidebar{border:0;border-top:1px solid var(--line);padding:28px 0 0}
  .product-card img{height:auto;aspect-ratio:1.3/1}
}
@media(max-width:580px){
  .container{padding:0 18px}.topbar .container{font-size:12px}.topbar-note{display:none}.header-inner{height:74px}.brand{font-size:31px}
  .main-nav{top:116px}.hero{height:610px}.hero-copy{text-align:center}.hero h1{font-size:42px}.hero h2{font-size:21px}.hero p{font-size:16px}.btn{display:flex;width:100%;margin:9px 0}.btn-outline{margin-left:0}.slider-arrow{width:44px;height:44px;font-size:28px}.slider-prev{left:8px}.slider-next{right:8px}
  .section{padding:60px 0}.section-title{font-size:32px}.product-grid,.feature-grid,.cap-grid,.gallery,.stats{grid-template-columns:1fr}.product-card img{aspect-ratio:1/1}.checks{grid-template-columns:1fr}.footer-inner{display:block;text-align:center}
}


/* ===== V5 PRODUCT CARD FIX: HTML cards, no cropped text images ===== */
.product-grid-html{
  align-items:stretch;
}
.product-card-html{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  min-width:0;
}
.product-media{
  background:#eef6fc;
  overflow:hidden;
}
.product-media img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:11/7;
  object-fit:cover;
  object-position:center;
}
.product-body{
  padding:28px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.product-body h3{
  margin:0 0 14px;
  color:var(--navy);
  font-size:28px;
  line-height:1.15;
}
.product-body ul{
  margin:0 0 24px;
  padding-left:20px;
  color:#46556a;
}
.product-body li{margin:7px 0}
.product-button{
  margin-top:auto;
  align-self:flex-start;
}
.btn-gold{
  background:#c99300;
  color:#fff;
}
.btn-gold:hover{background:#dfa800}
.product-details-section{
  scroll-margin-top:100px;
}
.product-details-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.product-detail{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:30px;
  box-shadow:0 10px 30px rgba(5,44,86,.07);
  scroll-margin-top:120px;
}
.product-detail h2{
  color:var(--navy);
  font-size:25px;
  line-height:1.2;
  margin:0 0 12px;
}
.text-link-real{
  color:var(--blue);
  font-weight:900;
}
@media(max-width:840px){
  .product-details-grid{grid-template-columns:1fr}
  .product-media img{aspect-ratio:16/9;object-fit:contain;background:#edf5fb}
}
@media(max-width:580px){
  .product-body{padding:22px}
  .product-body h3{font-size:24px}
  .product-button{width:100%}
}

/* Rotating 3D slider */
.hero.v6-rotating{perspective:1200px}
.hero.v6-rotating .hero-slide{transform-origin:center;backface-visibility:hidden}
.hero.v6-rotating .hero-slide.v6-leaving{opacity:0;transform:rotateY(85deg) scale(.8);transition:transform 1.1s ease,opacity 1.1s ease}
.hero.v6-rotating .hero-slide.v6-entering{opacity:1;transform:rotateY(0) scale(1);animation:v6-turn 1.1s ease both}
@keyframes v6-turn{from{transform:rotateY(-85deg) scale(.8);opacity:0}to{transform:rotateY(0) scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.hero.v6-rotating .hero-slide.v6-entering{animation:none}.hero.v6-rotating .hero-slide.v6-leaving{transition:none}}
/* V6 tiled 3D slide transition */
.hero.v6-tiles{perspective:1200px;isolation:isolate}
.hero.v6-tiles .v6-tile-stage{position:absolute;inset:0;z-index:3;pointer-events:none;perspective:1100px;overflow:hidden}
.hero.v6-tiles .v6-tile{position:absolute;background-repeat:no-repeat;transform-style:preserve-3d;backface-visibility:hidden;opacity:1;transition:transform 900ms cubic-bezier(.2,.7,.2,1),opacity 850ms ease;transition-delay:var(--delay)}
.hero.v6-tiles .v6-tile-stage.v6-explode .v6-tile{transform:rotateX(var(--rx)) rotateY(var(--ry)) translateZ(220px) scale(.72);opacity:0}
.hero.v6-tiles .hero-slide.v6-leaving,.hero.v6-tiles .hero-slide.v6-entering{animation:none}
@media(prefers-reduced-motion:reduce){.hero.v6-tiles .v6-tile-stage{display:none}}
/* ===== V6 LIVE 3D MOTION ===== */
.hero.v6-live{height:min(860px,88vh);min-height:680px;perspective:1400px;isolation:isolate;background:radial-gradient(circle at 72% 45%,#0c5c99 0,#052c56 28%,#020e1c 72%)}
.hero.v6-live:before{content:"";position:absolute;inset:-20%;z-index:1;pointer-events:none;background:radial-gradient(circle at calc(70% + var(--mx,0)*12%) calc(42% + var(--my,0)*12%),rgba(68,187,255,.30),transparent 28%);filter:blur(16px);transform:translate3d(calc(var(--mx,0)*-28px),calc(var(--my,0)*-20px),0)}
.hero.v6-live .hero-slide{overflow:visible;transform-style:preserve-3d}
.hero.v6-live .hero-slide img{transform:translate3d(calc(var(--mx,0)*-28px),calc(var(--my,0)*-18px + var(--scroll,0)*42px),0) scale(1.075);transition:transform .16s linear,filter .8s ease;filter:saturate(1.06) contrast(1.04)}
.hero.v6-live .hero-slide.active img{animation:v6HeroIn 1.15s cubic-bezier(.2,.8,.2,1) both}
.hero.v6-live .hero-content{z-index:5;transform-style:preserve-3d}
.hero.v6-live .hero-copy{transform:translate3d(calc(var(--mx,0)*18px),calc(var(--my,0)*12px + var(--scroll,0)*-36px),70px);transition:transform .16s linear;text-shadow:0 12px 38px rgba(0,0,0,.25)}
.hero.v6-live .hero-kicker{display:inline-flex;padding:8px 13px;border:1px solid rgba(93,195,255,.38);background:rgba(3,28,55,.42);backdrop-filter:blur(10px);border-radius:999px}
.hero.v6-live h1{font-size:clamp(64px,8vw,118px);letter-spacing:-5px;font-style:italic;background:linear-gradient(180deg,#fff 15%,#b9e4ff 90%);-webkit-background-clip:text;color:transparent;filter:drop-shadow(0 14px 18px rgba(0,0,0,.22))}
.hero.v6-live .btn{box-shadow:0 14px 34px rgba(0,0,0,.18);transition:transform .25s ease,box-shadow .25s ease,background .25s ease}
.hero.v6-live .btn:hover{transform:translateY(-4px);box-shadow:0 20px 42px rgba(0,0,0,.28)}
.product-card-html{transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease}
.product-card-html:hover{transform:translateY(-10px) rotateX(2deg);box-shadow:0 32px 70px rgba(5,44,86,.22)}
.product-card-html:hover .product-media img{transform:scale(1.045)}
.product-media img{transition:transform .55s cubic-bezier(.2,.8,.2,1)}
@keyframes v6HeroIn{from{opacity:.25;transform:translate3d(40px,0,-90px) scale(1.14)}to{opacity:1;transform:translate3d(calc(var(--mx,0)*-28px),calc(var(--my,0)*-18px),0) scale(1.075)}}
/* Hide any leftover isolated gallon overlay from cached markup */
.v6-product-scene,.v6-jug,.v6-product-halo,.v6-floor-shadow{display:none!important}
/* V6 isolated product scene */
.v6-product-scene{position:absolute;z-index:4;right:4%;top:50%;width:min(38vw,560px);height:82%;transform:translateY(-50%);pointer-events:none;perspective:1400px;transform-style:preserve-3d}
.v6-product-halo{position:absolute;inset:13% -8% 4%;border-radius:50%;background:radial-gradient(circle,rgba(65,182,255,.34),rgba(20,103,170,.12) 43%,transparent 70%);filter:blur(22px);animation:v6Halo 3.8s ease-in-out infinite alternate}
.v6-jug{position:absolute;left:50%;top:48%;width:auto;height:88%;max-width:100%;object-fit:contain;filter:drop-shadow(0 34px 24px rgba(0,0,0,.44));transform-origin:50% 60%;will-change:transform,opacity}
.v6-jug-en{animation:v6JugEN 9s ease-in-out infinite}
.v6-jug-fr{animation:v6JugFR 9s ease-in-out infinite}
.v6-floor-shadow{position:absolute;left:18%;right:6%;bottom:3%;height:7%;border-radius:50%;background:rgba(0,0,0,.48);filter:blur(18px);animation:v6Floor 4.5s ease-in-out infinite}
@keyframes v6JugEN{0%,42%{opacity:1;transform:translate3d(calc(-50% + var(--mx,0)*-18px),calc(-50% + var(--my,0)*-10px),90px) rotateY(-7deg) rotateZ(-1deg)}48%,92%{opacity:0;transform:translate3d(calc(-50% + var(--mx,0)*-18px),calc(-54% + var(--my,0)*-10px),120px) rotateY(8deg) rotateZ(1deg)}96%,100%{opacity:1;transform:translate3d(calc(-50% + var(--mx,0)*-18px),calc(-50% + var(--my,0)*-10px),90px) rotateY(-7deg) rotateZ(-1deg)}}
@keyframes v6JugFR{0%,44%{opacity:0;transform:translate3d(calc(-50% + var(--mx,0)*-18px),calc(-54% + var(--my,0)*-10px),120px) rotateY(8deg) rotateZ(1deg)}50%,90%{opacity:1;transform:translate3d(calc(-50% + var(--mx,0)*-18px),calc(-50% + var(--my,0)*-10px),90px) rotateY(-7deg) rotateZ(-1deg)}96%,100%{opacity:0;transform:translate3d(calc(-50% + var(--mx,0)*-18px),calc(-54% + var(--my,0)*-10px),120px) rotateY(8deg) rotateZ(1deg)}}
@keyframes v6Floor{0%,100%{transform:scaleX(1);opacity:.5}50%{transform:scaleX(.84);opacity:.3}}
@keyframes v6Halo{to{transform:scale(1.08);opacity:.72}}
@media(max-width:1050px){.v6-product-scene{right:-2%;width:44vw}.hero.v6-live .hero-copy{max-width:57%}}
@media(max-width:840px){.v6-product-scene{right:-13%;width:58vw;opacity:.68}.hero.v6-live .hero-copy{max-width:70%}}
@media(max-width:580px){.v6-product-scene{right:-28%;width:78vw;opacity:.38}.hero.v6-live .hero-copy{max-width:100%}}
@media(prefers-reduced-motion:reduce){.hero.v6-live .hero-slide img,.hero.v6-live .hero-copy,.product-card-html,.product-media img,.v6-jug,.v6-floor-shadow,.v6-product-halo{animation:none!important;transition:none!important}}
@media(max-width:840px){.hero.v6-live{min-height:650px}.hero.v6-live h1{font-size:clamp(52px,14vw,82px)}}
