/* ===========================================================
   MozirCo — Premium B2B Food Packaging Website
   Design system: Inter, primary #F4B400, secondary #111827
   =========================================================== */

:root {
  --primary: #F4B400;
  --secondary: #111827;
  --accent: #F97316;
  --ink: #1F2937;
  --muted: #6B7280;
  --line: #E5E7EB;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

::selection { background: var(--primary); color: var(--secondary); }

/* Accessibility focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ===== Gradient text ===== */
.gradient-text {
  background: linear-gradient(90deg, #F4B400 0%, #F97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Hero background ===== */
.hero-bg {
  background-image:
    linear-gradient(120deg, rgba(17,24,39,0.88) 0%, rgba(17,24,39,0.7) 50%, rgba(17,24,39,0.88) 100%),
    url('https://www.mozirco.com/wp-content/uploads/2019/07/mozirco-food-packaging-paper-plastic-cup-container-sachet-gift-disposable-items-bangladesh.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

/* ===== Sticky header states ===== */
#site-header {
  background: transparent;
  backdrop-filter: none;
}
#site-header.scrolled {
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.4);
}

/* ===== Nav link underline ===== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(90deg, #F4B400 0%, #F97316 100%);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-primary:hover {
  box-shadow: 0 20px 45px -15px rgba(244, 180, 0, 0.5);
  transform: translateY(-2px);
}
.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* ===== Product card hover ===== */
.product-card { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.product-card .product-img { transition: transform 0.6s ease; }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(17, 24, 39, 0.18);
}
.product-card:hover .product-img { transform: scale(1.06); }

/* ===== Client logo grayscale ===== */
.client-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ===== Marquee ===== */
.marquee-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Step line ===== */
.step-line {
  background: linear-gradient(90deg, #F4B400 0%, #F97316 100%);
}

/* ===== Process step circle ring ===== */
.step-circle {
  position: relative;
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  background: #fff;
  border: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(17, 24, 39, 0.12);
  margin-left: auto;
  margin-right: auto;
}

/* ===== Float animation ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* ===== Slow spin ===== */
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 16s linear infinite; }

/* ===== Pulse for badge dots ===== */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.animate-pulse-dot { animation: pulse-dot 1.6s ease-in-out infinite; }

/* ===== Stats counter emphasis ===== */
.counter { font-variant-numeric: tabular-nums; }

/* ===== Form ===== */
input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #9CA3AF; }

/* ===== Footer social hover ===== */
.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}
.social-btn:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px);
}

/* ===== Mobile menu transition ===== */
#mobile-menu { transition: max-height 0.3s ease; }

/* ===== Section spacing ===== */
section { scroll-margin-top: 5rem; }

/* ===== Reveal delay helpers ===== */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

/* ===== Mobile refinements ===== */
@media (max-width: 640px) {
  .hero-bg { background-position: 70% center; }
}

/* ===== Process step circles ===== */
.step-circle {
  position: relative;
  width: 6rem;
  height: 6rem;
  margin: 0 auto;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F4B400, #F97316);
  color: #111827;
  box-shadow: 0 12px 30px -8px rgba(244,180,0,0.45);
  z-index: 2;
}
.step-circle::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px dashed rgba(244,180,0,0.45);
  animation: spin-slow 18s linear infinite;
}

/* ===== Product image zoom on card hover ===== */
.product-card .product-img {
  transition: transform 0.7s ease;
}
.product-card:hover .product-img {
  transform: scale(1.07);
}

/* ===== Active nav link ===== */
.nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  width: 100%;
  left: 0;
}

/* ===== Social icon buttons (footer) ===== */
.social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-btn:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px);
}

/* ===== Clients section — featured cards ===== */
.client-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px)  { .client-featured-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .client-featured-grid { gap: 1.25rem; } }

.client-featured {
  display: block;
  border-radius: 1.25rem;
  text-decoration: none;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.client-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(17, 24, 39, 0.35);
}
.client-featured-inner {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7.5rem;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.client-featured:hover .client-featured-inner {
  border-color: var(--primary);
}
.client-featured-inner img {
  max-height: 3rem;
  max-width: 70%;
  object-fit: contain;
  /* Logos render in their original brand colors */
  filter: none;
  opacity: 1;
  transition: transform 0.4s ease;
}
.client-featured:hover .client-featured-inner img {
  transform: scale(1.05);
}
.client-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.92) 0%, rgba(31,41,55,0.92) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 1.25rem;
}
.client-featured:hover .client-featured-overlay {
  opacity: 1;
}
.client-featured-link {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Clients section — compact browser card ===== */
.client-browser {
  background: linear-gradient(180deg, #ffffff 0%, #FAFAFB 100%);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 10px 30px -22px rgba(17,24,39,0.20);
}
.client-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.client-browser-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.client-browser-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 700;
}
.client-browser-stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.client-browser-stat-num {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--secondary);
  letter-spacing: -0.02em;
}
.client-browser-stat-suffix {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.client-browser-stat-sep {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--line);
  margin: 0 0.25rem;
}
.client-browser-hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* Industry summary chips (clickable filters) */
.client-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.client-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.client-stat:hover {
  border-color: var(--primary);
  color: var(--ink);
  transform: translateY(-1px);
}
.client-stat.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
  box-shadow: 0 6px 16px -8px rgba(244,180,0,0.55);
}
.client-stat.is-active .client-stat-num,
.client-stat.is-active .client-stat-label {
  color: var(--secondary);
}
.client-stat-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.01em;
}
.client-stat-label {
  font-weight: 600;
}
.client-browser-hint strong {
  color: var(--ink);
  font-weight: 700;
  font-style: normal;
}

/* Compact pill marquee for the full brand directory */
.marquee-mask-client {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-mask-client:hover .marquee-track-client {
  animation-play-state: paused;
}
.marquee-track-client {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
}
.marquee-track-client[data-dir="right"] {
  animation-direction: reverse;
  animation-duration: 55s;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.client-pill:hover {
  border-color: var(--primary);
  color: var(--secondary);
  background: rgba(244,180,0,0.08);
}
.client-pill-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--primary);
  display: inline-block;
  flex-shrink: 0;
}

/* ===== Clients section — CTA strip ===== */
.client-cta {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--secondary) 0%, #1F2937 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.client-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(244,180,0,0.18) 0%, transparent 60%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .client-cta {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding: 2.25rem 2.5rem;
  }
}

/* ==========================================================
   MozirCo � Catalog (Product System)
   - /products and /products/category.html
   - Modal, lightbox, gallery
   ========================================================== */

/* --- Catalog reveal animation (shares .reveal w/ homepage) --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Category card (index) --- */
.cat-card { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.cat-card:hover { transform: translateY(-4px); border-color: #F4B400; }
.cat-card .cat-img { transition: transform 0.6s ease; }
.cat-card:hover .cat-img { transform: scale(1.05); }

/* --- Product card (category page) --- */
.prod-card { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; cursor: pointer; }
.prod-card:hover { transform: translateY(-4px); border-color: #F4B400; }
.prod-card .prod-img { transition: transform 0.6s ease; }
.prod-card:hover .prod-img { transform: scale(1.05); }

/* --- Truncation helper --- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Product modal --- */
#product-modal { animation: modalIn 0.25s ease-out; }
@keyframes modalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#product-modal > div:last-child { animation: modalSlide 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes modalSlide {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-main-img { transition: opacity 0.2s ease; }
.modal-main-img.is-loading { opacity: 0.3; }
.modal-thumb { transition: border-color 0.2s ease, transform 0.2s ease; cursor: pointer; }
.modal-thumb:hover { transform: scale(1.06); }
.modal-thumb img { transition: opacity 0.2s ease; }

/* --- Lightbox --- */
#lightbox { animation: lbIn 0.2s ease-out; cursor: zoom-out; }
#lightbox img { animation: lbZoom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); max-height: 90vh; }
@keyframes lbIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lbZoom {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* --- Modal responsive: stack on mobile --- */
@media (max-width: 1023px) {
  #product-modal > div:last-child {
    max-height: 100vh;
    border-radius: 0 !important;
  }
  #product-modal { padding: 0; }
}
