/*
Theme Name: FIPW - Free India Plastic Works
Theme URI: https://freeindiaplasticworks.com
Author: FIPW
Author URI: https://freeindiaplasticworks.com
Description: Custom wholesale plastic toy manufacturer theme for Free India Plastic Works
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fipw
*/

/* =============================================
   FIPW THEME — BASE STYLES
   Color Palette:
   Blue:   #2563eb / #1d4ed8 / #eff6ff
   Red:    #ef4444 / #fef2f2
   Yellow: #eab308 / #fefce8
   Green:  #22c55e / #f0fdf4
   Dark:   #0f172a / #1e293b
   Text:   #475569 / #64748b / #94a3b8
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: #475569;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; color: #0f172a; line-height: 1.2; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* Containers */
.fipw-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.fipw-container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.fipw-container-md { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* Section spacing */
.fipw-section { padding: 72px 24px; }
.fipw-section-sm { padding: 48px 24px; }

/* Section labels */
.fipw-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.fipw-label-blue  { background: #eff6ff; color: #2563eb; }
.fipw-label-red   { background: #fef2f2; color: #ef4444; }
.fipw-label-green { background: #f0fdf4; color: #15803d; }
.fipw-label-yellow{ background: #fefce8; color: #854d0e; }
.fipw-label-purple{ background: #f5f3ff; color: #6d28d9; }
.fipw-label-dark  { background: #f1f5f9; color: #475569; }

/* Section headings */
.fipw-h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.fipw-h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.fipw-lead {
  font-size: 16px;
  color: #64748b;
  line-height: 1.75;
  max-width: 600px;
}

/* Buttons */
.fipw-btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff;
  padding: 14px 28px; border-radius: 14px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  border: none; cursor: pointer;
}
.fipw-btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,211,102,0.45); color: #fff; }

.fipw-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2563eb; color: #fff;
  padding: 14px 28px; border-radius: 14px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
  border: none; cursor: pointer;
}
.fipw-btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); color: #fff; }

.fipw-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #1e293b;
  border: 2px solid #e2e8f0;
  padding: 14px 28px; border-radius: 14px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
  cursor: pointer;
}
.fipw-btn-outline:hover { border-color: #3b82f6; color: #2563eb; background: #eff6ff; }

.fipw-btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0f172a; color: #fff;
  padding: 14px 28px; border-radius: 14px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer;
}
.fipw-btn-dark:hover { background: #1e293b; color: #fff; }

/* Cards */
.fipw-card {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid #f1f5f9;
  transition: all 0.25s ease;
  overflow: hidden;
}
.fipw-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.08); border-color: #e2e8f0; }

/* Grid helpers */
.fipw-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.fipw-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.fipw-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }

/* Rainbow bar */
.fipw-rainbow {
  position: fixed; top: 0; left: 0; right: 0;
  height: 6px; display: flex; z-index: 9999;
}
.fipw-rainbow span:nth-child(1) { flex: 1; background: #ef4444; }
.fipw-rainbow span:nth-child(2) { flex: 1; background: #eab308; }
.fipw-rainbow span:nth-child(3) { flex: 1; background: #3b82f6; }
.fipw-rainbow span:nth-child(4) { flex: 1; background: #22c55e; }

/* Stat pills */
.fipw-stat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 999px; padding: 7px 15px;
  font-size: 13px; font-weight: 600; color: #1e293b;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float  { animation: float 4s ease-in-out infinite; }
.float2 { animation: float 5s ease-in-out infinite 1.5s; }

/* Page Hero */
.fipw-page-hero {
  background: linear-gradient(135deg, #fefce8 0%, #eff6ff 55%, #f0fdf4 100%);
  padding: 140px 24px 80px;
  text-align: center;
}

/* Responsive nav hide */
@media (max-width: 768px) {
  .fipw-nav-links { display: none; }
  .fipw-mobile-menu { display: block; }
  .fipw-grid-3 { grid-template-columns: 1fr; }
  .fipw-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fipw-section { padding: 48px 20px; }
}
@media (max-width: 480px) {
  .fipw-grid-4 { grid-template-columns: 1fr; }
}

/* Product category card */
.fipw-cat-card {
  border-radius: 20px; overflow: hidden;
  position: relative; cursor: pointer;
  transition: all 0.3s ease;
}
.fipw-cat-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,0.12); }
.fipw-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.fipw-cat-card:hover img { transform: scale(1.05); }

/* Blog card */
.fipw-blog-card { border-radius: 20px; overflow: hidden; background: #fff; border: 1.5px solid #f1f5f9; transition: all 0.25s; }
.fipw-blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.08); }

/* Contact form */
.fipw-form-group { margin-bottom: 20px; }
.fipw-form-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 7px; }
.fipw-form-input, .fipw-form-textarea, .fipw-form-select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 14px; font-family: Inter, sans-serif;
  color: #1e293b; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.fipw-form-input:focus, .fipw-form-textarea:focus, .fipw-form-select:focus {
  border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.fipw-form-textarea { resize: vertical; min-height: 130px; }

/* CTA gradient section */
.fipw-cta-gradient {
  background: linear-gradient(135deg, #1d4ed8, #4f46e5, #6d28d9);
  border-radius: 28px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(37,99,235,0.25);
}

/* Table of contents / breadcrumb */
.fipw-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: #94a3b8;
  margin-bottom: 28px; flex-wrap: wrap;
}
.fipw-breadcrumb a { color: #94a3b8; text-decoration: none; }
.fipw-breadcrumb a:hover { color: #2563eb; }
.fipw-breadcrumb .sep { color: #cbd5e1; }

/* Single blog post */
.fipw-post-content { font-size: 16px; line-height: 1.8; color: #475569; }
.fipw-post-content h2 { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin: 32px 0 14px; }
.fipw-post-content h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin: 24px 0 10px; }
.fipw-post-content p { margin-bottom: 18px; }
.fipw-post-content ul, .fipw-post-content ol { padding-left: 24px; margin-bottom: 18px; }
.fipw-post-content li { margin-bottom: 8px; list-style: disc; }
.fipw-post-content strong { color: #1e293b; font-weight: 700; }
.fipw-post-content a { color: #2563eb; }
.fipw-post-content blockquote { border-left: 4px solid #3b82f6; padding: 16px 20px; margin: 24px 0; background: #eff6ff; border-radius: 0 12px 12px 0; color: #1e3a8a; font-style: italic; }
.fipw-post-content img { border-radius: 16px; margin: 24px auto; }

/* Tag chips */
.fipw-tag { display: inline-block; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin: 3px; }
.fipw-tag-blue { background: #eff6ff; color: #2563eb; }

/* WhatsApp float button */
.fipw-wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: all 0.2s; text-decoration: none;
}
.fipw-wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(37,211,102,0.55); }

/* Mobile menu */
.fipw-mobile-nav {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 24px;
  z-index: 997;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.fipw-mobile-nav.open { display: block; }
.fipw-mobile-nav a { display: block; padding: 12px 0; font-size: 15px; font-weight: 600; color: #1e293b; border-bottom: 1px solid #f8fafc; }
.fipw-mobile-nav a:last-child { border-bottom: none; }
