/*
Theme Name: Navkala Plastic Industries
Theme URI: https://www.navkala.com
Author: Navkala Plastic Industries
Author URI: https://www.navkala.com
Description: Custom business theme for Navkala Plastic Industries — manufacturer of plastic caps and closures. Includes homepage with hero, product catalogue, about, stats, why-us, enquiry form and contact section, plus SEO/OpenGraph metadata and Organization schema.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: navkala
*/

:root {
  --navy: #1f2a44;
  --navy-dark: #17203a;
  --accent: #1f9d55;
  --accent-dark: #187a42;
  --highlight: #f08a2c;
  --secondary: #f2f5f9;
  --border: #e4e8ee;
  --muted: #667085;
  --text: #1f2937;
  --radius: 12px;
}

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

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; color: var(--navy); line-height: 1.25; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-light { background: var(--secondary); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.section-lead { color: var(--muted); max-width: 680px; font-size: 17px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .section-lead { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: all .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; max-width: 1180px; margin: 0 auto; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 52px; width: 52px; border-radius: 10px; object-fit: cover; }
.site-logo .logo-text { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 17px; color: var(--navy); line-height: 1.2; }
.site-logo .logo-text span { display: block; font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; }
.main-nav a { color: var(--text); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 22px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: all .25s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 12px 24px rgba(15,23,42,.1); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 12px 0; }
  .header-cta .btn { display: none; }
}

/* Hero */
.hero { position: relative; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(23,32,58,.92) 30%, rgba(23,32,58,.55) 70%, rgba(23,32,58,.35)); }
.hero-inner { position: relative; padding: 120px 0; max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); margin-bottom: 18px; }
.hero p { font-size: 18px; color: #e6eaf2; margin-bottom: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badges span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Badge band */
.badge-band { background: var(--navy); color: #fff; padding: 22px 0; }
.badge-band .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.badge-band span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.badge-band span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15,23,42,.12); border-color: var(--accent); }
.product-card img { width: 100%; height: 190px; object-fit: cover; }
.product-card .card-body { padding: 18px; }
.product-card h3 { font-size: 17px; margin-bottom: 6px; }
.product-card p { font-size: 14px; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-media { position: relative; }
.about-media img.main { border-radius: var(--radius); width: 100%; }
.about-media img.overlap {
  position: absolute;
  width: 46%;
  right: -18px;
  bottom: -30px;
  border: 6px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(15,23,42,.18);
}
.about-points { list-style: none; margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .about-points { grid-template-columns: 1fr; } }
.about-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.about-points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(31,157,85,.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Stats */
.stats { background: var(--navy); color: #fff; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat h3 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.stat p { color: #b9c2d4; font-size: 14px; font-weight: 600; margin-top: 6px; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: all .25s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(15,23,42,.1); border-color: var(--accent); }
.why-card .icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(31,157,85,.1);
  color: var(--accent);
  font-size: 24px;
}
.why-card h3 { font-size: 16px; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--muted); }

/* CTA banner */
.cta-banner { background: var(--accent); color: #fff; padding: 64px 0; text-align: center; }
.cta-banner h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 28px; }
.cta-banner .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-banner .btn-primary:hover { background: var(--navy); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(31,157,85,.1);
  color: var(--accent);
  font-size: 20px;
}
.contact-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--muted); font-size: 14.5px; display: block; }
.contact-item a:hover { color: var(--accent); }

.quote-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 20px 44px rgba(15,23,42,.08);
}
.quote-form h3 { font-size: 21px; margin-bottom: 6px; }
.quote-form > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--secondary);
  transition: border-color .2s ease;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form-notice {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-notice.success { background: rgba(31,157,85,.1); color: var(--accent-dark); border: 1px solid rgba(31,157,85,.3); }
.form-notice.error { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.25); }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row img { width: 120px; height: 40px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.captcha-row input { width: min(180px, 100%); }
.captcha-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.quote-form button:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 420px) { .captcha-row { align-items: flex-start; flex-direction: column; } }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b9c2d4; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #b9c2d4; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 56px; width: 56px; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; }
.footer-contact p { font-size: 14px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 13px; }

/* Generic pages */
.page-content { padding: 70px 0; }
.page-content h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.page-content .entry-content > * { margin-bottom: 18px; max-width: 780px; }


/* Floating WhatsApp enquiry */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15,23,42,.28);
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp-float:hover { color: #fff; background: var(--accent-dark); transform: translateY(-3px) scale(1.04); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }
@media (max-width: 560px) {
  .whatsapp-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
