/*
Theme Name: PQS Agro Enterprise
Theme URI: https://pqsagro.com
Author: PQS Agro Development Team
Author URI: https://pqsagro.com
Description: Production-ready, mobile-first, SEO-optimized B2B WooCommerce & corporate WordPress theme for PQS Agro. Features built-in one-click demo data importer, schema markup, and responsive export catalogs.
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: pqs-agro
Tested up to: 6.7
Requires PHP: 7.4
*/

:root {
  --primary: #123d24;
  --primary-dark: #0b2616;
  --primary-light: #1b5332;
  --accent: #d49a38;
  --accent-hover: #b88229;
  --surface: #ffffff;
  --surface-alt: #f7faf7;
  --border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--surface-alt);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------------- Top Utility Bar ---------------- */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-contact-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}
.top-contact-list a:hover {
  color: var(--accent);
}
.top-badge-list {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  flex-wrap: wrap;
}
.top-pill {
  background: rgba(212, 154, 56, 0.2);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ---------------- Main Header & Navigation ---------------- */
.main-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.brand-logo {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.brand-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}
.desktop-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.desktop-nav a:hover,
.desktop-nav .current-menu-item > a {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cart-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-alt);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.cart-counter {
  background: var(--accent);
  color: var(--surface);
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Off-canvas Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
}
.mobile-drawer.is-active {
  display: block;
}
.mobile-drawer-content {
  background: var(--surface);
  width: 82%;
  max-width: 340px;
  height: 100%;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.mobile-drawer-content a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------------- Hero Section ---------------- */
.hero-enterprise {
  background: linear-gradient(135deg, var(--primary) 0%, #174b2c 60%, #0d2e1b 100%);
  color: var(--surface);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-enterprise::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 154, 56, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.hero-heading {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: 1.15rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-accent {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 4px 14px rgba(212, 154, 56, 0.4);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--surface);
}

.hero-quick-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.quick-card-title {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.quick-stats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  list-style: none;
}
.stat-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--surface);
}
.stat-box span {
  font-size: 0.8125rem;
  color: #cbd5e1;
}

/* ---------------- Credential Metrics Bar ---------------- */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.trust-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.trust-metric-item .metric-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
}
.trust-metric-item .metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------------- Main Section Commons ---------------- */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--surface);
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}
.section-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ---------------- Product Grid & Cards ---------------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.product-thumb {
  position: relative;
  background: #e2e8f0;
  height: 200px;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}
.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.product-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.product-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.55;
  flex-grow: 1;
}
.product-meta-specs {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.spec-row:last-child {
  margin-bottom: 0;
}
.spec-row strong {
  color: var(--text-primary);
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.product-price-box {
  display: flex;
  flex-direction: column;
}
.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}
.product-moq {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------------- 6-Step Export Workflow ---------------- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.step-number {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--surface);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border: 3px solid #ecfdf5;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.step-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------------- Compliance & Assurance Grid ---------------- */
.assurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.assurance-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.75rem;
  border-radius: var(--radius-sm);
}
.assurance-box h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.assurance-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------------- Inquiry Desk & Secure B2B Remittance ---------------- */
.inquiry-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-meta-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-meta-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
}
.contact-meta-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.security-alert-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #b45309;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.security-alert-box h4 {
  color: #92400e;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.security-alert-box p {
  color: #78350f;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Forms */
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.925rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(18, 61, 36, 0.1);
}

/* ---------------- Table Spec Format ---------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.b2b-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.b2b-data-table th, .b2b-data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.925rem;
}
.b2b-data-table th {
  background: #f1f5f2;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
}
.b2b-data-table tr:last-child td {
  border-bottom: none;
}
.b2b-data-table tr:hover td {
  background: #fafcfa;
}

/* ---------------- WooCommerce Styling Overrides ---------------- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem !important;
  text-align: left !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--primary) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  padding: 0.75rem 0 0.25rem !important;
}
.woocommerce ul.products li.product .price {
  color: var(--accent-hover) !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
}
.woocommerce ul.products li.product .button {
  background: var(--primary) !important;
  color: var(--surface) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  padding: 0.75rem 1.25rem !important;
  width: 100%;
  text-align: center;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--primary-light) !important;
}
.woocommerce .woocommerce-breadcrumb {
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.woocommerce div.product .product_title {
  color: var(--primary);
  font-weight: 900;
}
.woocommerce div.product p.price {
  color: var(--accent-hover) !important;
  font-size: 1.6rem !important;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.footer-col h4 {
  color: var(--surface);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
}
.footer-col h4::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.4rem;
}
.footer-col p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.7;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* ---------------- Mobile Responsive Media Queries ---------------- */
@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .inquiry-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .hero-enterprise {
    padding: 3.5rem 0 3rem;
  }
  .hero-heading {
    font-size: 2rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}