/* ═══════════════════════════════════════════════
   RIPU PLASTOX — Global Stylesheet (mobile-first)
   ripuplastox.com | Where Precision Meets Packaging
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&family=Barlow+Condensed:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0A1628;
  --navy-m:    #122040;
  --navy-l:    #1A3260;
  --crimson:   #C41E3A;
  --crimson-d: #9B1530;
  --crimson-l: #E8304A;
  --steel:     #8A9BB0;
  --silver:    #C8D4E0;
  --pearl:     #F4F6F9;
  --white:     #FFFFFF;
  --ink:       #1A2535;
  --text:      #3D4A5C;
  --border:    #E8ECF4;
  --shadow:    0 4px 24px rgba(10,22,40,0.10);
  --shadow-lg: 0 16px 48px rgba(10,22,40,0.16);
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* Screen-reader-only — visible to Google & assistive tech, hidden visually */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(36px, 7vw, 96px); font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 56px); font-weight: 800; }
h3 { font-size: clamp(20px, 2.5vw, 32px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
p { font-size: 15px; line-height: 1.8; color: var(--text); }
a { text-decoration: none; color: inherit; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--crimson);
  display: block; margin-bottom: 12px;
}
.eyebrow.white { color: rgba(255,255,255,0.6); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) {
  .container, .container-wide { padding: 0 48px; }
}
.section { padding: 64px 0; }
.section-sm { padding: 48px 0; }
@media (min-width: 768px) {
  .section { padding: 100px 0; }
  .section-sm { padding: 64px 0; }
}

.rule { display: flex; gap: 5px; align-items: center; margin-bottom: 16px; }
.rule-bar { width: 36px; height: 3px; background: var(--crimson); }
.rule-bar.w { background: rgba(255,255,255,0.5); }
.rule-dot { width: 3px; height: 3px; background: var(--crimson-d); border-radius: 50%; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all 0.25s ease;
}
.btn-primary { background: var(--crimson); color: white; }
.btn-primary:hover { background: var(--crimson-d); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(196,30,58,0.3); }
.btn-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: white; }
.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(4px); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s, height 0.3s;
}
@media (min-width: 768px) { .nav { height: 72px; } }
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 48px; } }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: white; line-height: 1;
}
@media (min-width: 768px) { .nav-logo-name { font-size: 20px; letter-spacing: 0.1em; } }
.nav-logo-tag {
  font-size: 6.5px; font-weight: 400; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-top: 2px; display: block;
}
.nav-links {
  display: none;
  align-items: center; gap: 32px;
  list-style: none;
}
@media (min-width: 968px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  position: relative; padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--crimson);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: none; align-items: center; gap: 14px; }
@media (min-width: 968px) { .nav-cta { display: flex; } }
.nav-phone { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.nav-quote {
  background: var(--crimson); color: white;
  padding: 9px 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; transition: background 0.2s;
}
.nav-quote:hover { background: var(--crimson-d); }

.nav-toggle {
  display: flex;
  flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; margin-right: -8px;
}
@media (min-width: 968px) { .nav-toggle { display: none; } }
.nav-toggle span {
  width: 24px; height: 2px; background: white;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--navy); z-index: 999;
  padding: 32px 24px 40px;
  display: flex; flex-direction: column; gap: 0;
  transform: translateY(-120%);
  transition: transform 0.35s ease;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: white;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-drawer .mobile-cta {
  margin-top: 24px;
  background: var(--crimson); color: white;
  padding: 14px 24px; text-align: center;
  font-size: 13px; letter-spacing: 0.15em;
  border-bottom: none;
}
.mobile-drawer .mobile-phone {
  margin-top: 16px;
  font-size: 14px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em; text-transform: none;
  font-family: 'Barlow', sans-serif; font-weight: 500;
  border-bottom: none; padding: 8px 0;
}

/* ── FORM STATUS ── */
.form-status { display: none; }
.form-status.show { display: block; margin-top: 14px; padding: 12px 16px; font-size: 13px; line-height: 1.5; border-left: 3px solid; }
.form-status.show.success { background: rgba(31,138,91,0.12); border-color: #1F8A5B; color: #b8f0d0; }
.form-status.show.error { background: rgba(196,30,58,0.12); border-color: #C41E3A; color: #f5c2cc; }

/* ── FOOTER ── */
.footer { background: var(--navy); padding: 56px 0 0; position: relative; overflow: hidden; }
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--navy-l) 60%, var(--crimson) 100%);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; padding-bottom: 40px;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 968px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; } }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.8; margin-top: 16px; max-width: 320px; }
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-icon { color: var(--crimson); flex-shrink: 0; margin-top: 2px; }
.footer-contact-text { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-contact-text a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-contact-text a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0;
  display: flex; flex-direction: column; gap: 16px;
  align-items: center; text-align: center;
}
@media (min-width: 600px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom-left { font-size: 11px; color: rgba(255,255,255,0.25); }
.footer-bottom-right { display: flex; gap: 14px; align-items: center; }
.footer-social {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all 0.25s ease;
}
.footer-social:hover { border-color: var(--crimson); color: var(--crimson); transform: translateY(-2px); }

/* ── STATS STRIP ── */
.stats-strip { background: var(--crimson); }
.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .stats-strip-inner { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; gap: 6px;
}
@media (min-width: 768px) {
  .stat-item { padding: 40px 36px; border-bottom: none; }
  .stat-item:last-child { border-right: none; }
}
.stat-item:nth-child(2n) { border-right: none; }
@media (min-width: 768px) { .stat-item:nth-child(2n) { border-right: 1px solid rgba(255,255,255,0.15); } }
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 52px); font-weight: 900; color: white; line-height: 1;
}
.stat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}

/* ── FORM ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.form-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 14px 16px;
  font-size: 14px; color: white;
  font-family: 'Barlow', sans-serif;
  transition: border-color 0.2s;
  outline: none; width: 100%;
}
.form-input:focus { border-color: var(--crimson); }
.form-input::placeholder { color: rgba(255,255,255,0.2); }
select.form-input option { background: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ── CARDS ── */
.card { background: var(--white); border-top: 3px solid transparent; padding: 28px; transition: all 0.3s ease; }
.card:hover { border-top-color: var(--crimson); box-shadow: var(--shadow); transform: translateY(-3px); }
@media (min-width: 768px) { .card { padding: 32px; } }

/* ── CLIENT LOGOS — auto-scroll marquee ── */
.clients-marquee {
  overflow: hidden;
  position: relative;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 36s linear infinite;
  will-change: transform;
}
.clients-half {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
  flex-shrink: 0;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes clients-scroll {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
.client-pill {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  transition: color 0.25s ease;
  flex: 0 0 auto;
  line-height: 1;
}
.client-pill:hover { color: #ffffff; }
.client-pill-more {
  color: #ffd0d8;
  background: rgba(196,30,58,0.18);
  border: 1px solid rgba(196,30,58,0.4);
  padding: 8px 20px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
@media (max-width: 560px) {
  .clients-half { gap: 44px; padding-right: 44px; }
  .clients-track { animation-duration: 26s; }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

/* ── PRODUCT IMAGE WRAPPER ── */
.product-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--pearl);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes count {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal-on-scroll classes */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.in { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-scale.in { opacity: 1; transform: scale(1); }

.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.54s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: 0.61s; }
.reveal-stagger.in > *:nth-child(10) { transition-delay: 0.68s; }
.reveal-stagger.in > *:nth-child(11) { transition-delay: 0.75s; }
.reveal-stagger.in > *:nth-child(12) { transition-delay: 0.82s; }

/* Hero entrance */
.hero-entrance > * { animation: fadeInUp 0.9s ease both; }
.hero-entrance > *:nth-child(1) { animation-delay: 0.05s; }
.hero-entrance > *:nth-child(2) { animation-delay: 0.18s; }
.hero-entrance > *:nth-child(3) { animation-delay: 0.32s; }
.hero-entrance > *:nth-child(4) { animation-delay: 0.46s; }
.hero-entrance > *:nth-child(5) { animation-delay: 0.6s; }

.float-anim { animation: float 4s ease-in-out infinite; }
.pulse-anim { animation: pulse 2.5s ease-in-out infinite; }

/* Product image hover zoom */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.6s ease; }
.img-zoom:hover img { transform: scale(1.06); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(37,211,102,0.4);
  z-index: 990;
  animation: pulse 2.5s ease-in-out infinite;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Responsive grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 600px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 968px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.page-hero-pad { padding-top: 64px; }
@media (min-width: 768px) { .page-hero-pad { padding-top: 72px; } }

/* Hide non-essential bits on mobile */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
