/* ==========================================================================
   Chhadwa Plastic Corporation LLP — Custom stylesheet (complements Tailwind)
   ========================================================================== */

:root{
  --cpc-maroon: #8B1538;
  --cpc-maroon-dark: #5E0E26;
  --cpc-maroon-light: #B32B4F;
  --cpc-gold: #C9973A;
  --cpc-ink: #1F2125;
}

html{ scroll-behavior:smooth; }
/* Nothing may widen the page sideways (AOS slide-in offsets, decorative blobs) — fixes the
   white strip on the right on phones. `clip` keeps the sticky header working. */
html{ overflow-x:hidden; }
@supports (overflow-x: clip){ html, body{ overflow-x:clip; } }

/* Font Awesome sets display:inline-block on icons, which overrode Tailwind's .hidden
   (both hamburger + close icons showed at once). */
.fa-solid.hidden, .fa-regular.hidden, .fa-brands.hidden, i.hidden{ display:none !important; }
body{ font-family:'Inter', system-ui, sans-serif; color:var(--cpc-ink); }
h1,h2,h3,h4,.font-heading{ font-family:'Poppins', system-ui, sans-serif; }

/* ---- Selection & scrollbar ---- */
::selection{ background:var(--cpc-maroon); color:#fff; }
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:#f1eeec; }
::-webkit-scrollbar-thumb{ background:var(--cpc-maroon); border-radius:10px; }

/* ---- Gradient text / brand accents ---- */
.text-gradient{
  background:linear-gradient(90deg,var(--cpc-maroon) 0%, var(--cpc-maroon-light) 60%, var(--cpc-gold) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.bg-brand-gradient{ background-color:var(--cpc-maroon-dark); background-image:linear-gradient(135deg,var(--cpc-maroon-dark) 0%, var(--cpc-maroon) 55%, #7A1030 100%); }
.bg-dots{
  background-image:radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size:22px 22px;
}
/* When both decorative classes are combined, layer the dot pattern over the gradient
   (higher specificity than either class alone, so source order can't break it). */
.bg-brand-gradient.bg-dots{
  background-image:radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px),
                   linear-gradient(135deg,var(--cpc-maroon-dark) 0%, var(--cpc-maroon) 55%, #7A1030 100%);
  background-size:22px 22px, auto;
}

/* ---- Image / media placeholder pattern ---- */
.img-placeholder{
  position:relative;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  border:2px dashed #C9A6B2;
  background:repeating-linear-gradient(135deg,#FAF3F5,#FAF3F5 10px,#F3E7EA 10px,#F3E7EA 20px);
  color:#8B1538; border-radius:0.75rem; overflow:hidden;
  transition:border-color .2s ease, background-color .2s ease;
  min-height:160px;
}
.img-placeholder:hover{ border-color:var(--cpc-maroon); }
.img-placeholder .ph-icon{
  width:2.75rem; height:2.75rem; border-radius:9999px;
  background:rgba(139,21,56,0.1); display:flex; align-items:center; justify-content:center;
  margin-bottom:0.6rem; font-size:1.1rem; color:var(--cpc-maroon);
}
.img-placeholder .ph-size{
  font-weight:600; font-size:0.82rem; letter-spacing:.02em;
}
.img-placeholder .ph-label{
  font-size:0.72rem; color:#9C6B7A; margin-top:2px; padding:0 1rem;
}

/* ---- Nav underline animation ---- */
.nav-link{ position:relative; }
.nav-link::after{
  content:''; position:absolute; left:0; bottom:-4px; width:0; height:2px;
  background:var(--cpc-gold); transition:width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after{ width:100%; }

/* ---- Card hover lift ---- */
.card-lift{ transition:transform .3s ease, box-shadow .3s ease; }
.card-lift:hover{ transform:translateY(-6px); box-shadow:0 18px 35px -12px rgba(139,21,56,0.25); }

/* ---- Floating WhatsApp button ---- */
.fab-whatsapp{
  position:fixed; right:1.25rem; bottom:1.25rem; z-index:50;
  width:56px; height:56px; border-radius:9999px; background:#25D366;
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.5rem;
  box-shadow:0 10px 25px -5px rgba(0,0,0,0.35);
  animation:pulse-wa 2.4s infinite;
}
@keyframes pulse-wa{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,0.55); }
  70%{ box-shadow:0 0 0 14px rgba(37,211,102,0); }
  100%{ box-shadow:0 0 0 0 rgba(37,211,102,0); }
}

/* ---- Back to top ---- */
#backToTop{ transition:opacity .3s ease, transform .3s ease; }

/* ---- Marquee for certifications / trust strip ---- */
.marquee-track{ display:flex; width:max-content; animation:marquee 28s linear infinite; }
.marquee-track:hover{ animation-play-state:paused; }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---- Counter number ---- */
.counter{ font-variant-numeric:tabular-nums; }

/* ---- Mobile menu ---- */
#mobileMenu{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
#mobileMenu.open{ max-height:600px; }

/* ---- Section reveal fallback (if AOS fails to load) ---- */
[data-aos]{ }

/* ---- Utility: subtle shadow border card ---- */
.soft-card{ background:#fff; border:1px solid #F0E4E8; box-shadow:0 4px 20px -8px rgba(31,33,37,.08); }

/* ---- Timeline ---- */
.timeline-line{ background:linear-gradient(to bottom,var(--cpc-maroon),var(--cpc-gold)); }

/* ---- Blob decoration ---- */
.blob{ filter:blur(60px); opacity:.35; }
