/*
Theme Name: ProMoisture Meters Child
Theme URI: https://promoisturemeter.com
Description: Custom child theme for ProMoisture Meters built on Astra. Adds B2B/B2C ecommerce styling for moisture meters and thickness gauges.
Author: ProMoisture Meters
Template: astra
Version: 1.0.1
Text Domain: promoisture-child
*/

/* ============================================================
   ProMoisture Meters — Brand Variables
   ============================================================ */
:root {
  --pm-teal: #0D7A5F;
  --pm-teal-dark: #085544;
  --pm-teal-light: #E6F4F0;
  --pm-gold: #D4A017;
  --pm-dark: #1A1A2E;
  --pm-gray: #F5F7F9;
  --pm-text: #2D2D2D;
  --pm-text-light: #6B7280;
  --pm-white: #FFFFFF;
  --pm-border: #E2E8F0;
  --pm-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --pm-radius: 12px;
  --pm-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.pm-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, #0D7A5F 0%, #1A1A2E 60%, #0D3B2E 100%);
  overflow: hidden;
}
.pm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.pm-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.pm-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.pm-hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  color: #fff !important;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.pm-hero h1 span { color: #4DD9AC; }
.pm-hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.80);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.pm-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pm-btn-primary {
  background: var(--pm-teal);
  color: #fff !important;
  padding: 15px 34px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--pm-teal);
  transition: all 0.2s;
  display: inline-block;
}
.pm-btn-primary:hover { background: var(--pm-teal-dark); border-color: var(--pm-teal-dark); }
.pm-btn-outline {
  background: transparent;
  color: #fff !important;
  padding: 15px 34px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.2s;
  display: inline-block;
}
.pm-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.pm-hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.pm-hero-stat { color: #fff; text-align: center; }
.pm-hero-stat strong { display: block; font-size: 32px; font-weight: 700; color: #4DD9AC; }
.pm-hero-stat span { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 2px; display: block; }

.pm-trust-bar {
  background: var(--pm-dark);
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.pm-trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500; }

@media (max-width: 768px) {
  .pm-hero-stats { gap: 24px; }
  .pm-trust-bar { gap: 16px; }
}
/* ============================================================
   PRODUCT CATEGORIES & FEATURED PRODUCTS
   ============================================================ */
.pm-section { padding: 80px 24px; }
.pm-section-inner { max-width: 1100px; margin: 0 auto; }
.pm-section-label { font-size: 12px; font-weight: 600; color: var(--pm-teal); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; display: block; }
.pm-section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--pm-dark); margin: 0 0 14px; letter-spacing: -0.02em; line-height: 1.2; }
.pm-section-sub { font-size: 17px; color: var(--pm-text-light); max-width: 560px; line-height: 1.6; margin: 0 0 48px; }

.pm-cats { background: var(--pm-gray); }
.pm-cats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pm-cat-card {
  background: #fff;
  border-radius: var(--pm-radius);
  padding: 28px 24px;
  border: 1px solid var(--pm-border);
  transition: all 0.2s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.pm-cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--pm-teal); transform: scaleX(0); transition: transform 0.2s; }
.pm-cat-card:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow); }
.pm-cat-card:hover::before { transform: scaleX(1); }
.pm-cat-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.pm-cat-name { font-size: 17px; font-weight: 600; color: var(--pm-dark) !important; margin-bottom: 6px; }
.pm-cat-desc { font-size: 13px; color: var(--pm-text-light); line-height: 1.5; margin-bottom: 12px; }
.pm-cat-models { font-size: 11px; color: var(--pm-teal); font-weight: 500; font-family: monospace; }
.pm-cat-arrow { position: absolute; top: 24px; right: 24px; color: var(--pm-border); font-size: 20px; transition: color 0.2s; }
.pm-cat-card:hover .pm-cat-arrow { color: var(--pm-teal); }

.pm-products { background: #fff; }
.pm-products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.pm-product-card { border: 1px solid var(--pm-border); border-radius: var(--pm-radius); overflow: hidden; transition: all 0.2s; background: #fff; }
.pm-product-card:hover { box-shadow: var(--pm-shadow); transform: translateY(-3px); }
.pm-product-img { background: var(--pm-gray); height: 200px; display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; overflow: hidden; }
.pm-product-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.pm-product-badge { position: absolute; top: 12px; left: 12px; background: var(--pm-teal); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 4px; }
.pm-product-body { padding: 20px; }
.pm-product-model { font-size: 11px; font-weight: 600; color: var(--pm-teal); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.pm-product-name { font-size: 18px; font-weight: 600; color: var(--pm-dark); margin-bottom: 8px; }
.pm-product-desc { font-size: 13px; color: var(--pm-text-light); line-height: 1.5; margin-bottom: 14px; }
.pm-product-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pm-spec-tag { font-size: 11px; background: var(--pm-teal-light); color: var(--pm-teal-dark); padding: 3px 8px; border-radius: 4px; font-weight: 500; }
.pm-product-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--pm-border); padding-top: 14px; }
.pm-product-price { font-size: 22px; font-weight: 700; color: var(--pm-teal-dark); }
.pm-product-price small { font-size: 13px; font-weight: 400; color: var(--pm-text-light); }
.pm-btn-small { background: var(--pm-teal); color: #fff !important; padding: 9px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.pm-btn-small:hover { background: var(--pm-teal-dark); }

.pm-why { background: var(--pm-dark); }
.pm-why .pm-section-title { color: #fff; }
.pm-why .pm-section-sub { color: rgba(255,255,255,0.65); }
.pm-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pm-why-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--pm-radius); padding: 28px; transition: background 0.2s; }
.pm-why-card:hover { background: rgba(255,255,255,0.08); }
.pm-why-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.pm-why-title { font-size: 17px; font-weight: 600; color: #fff !important; margin-bottom: 8px; }
.pm-why-text { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }

.pm-testimonials { background: #fff; }
.pm-testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pm-testi-card { border: 1px solid var(--pm-border); border-radius: var(--pm-radius); padding: 28px; }
.pm-testi-stars { color: #F59E0B; font-size: 16px; margin-bottom: 12px; }
.pm-testi-text { font-size: 15px; color: var(--pm-text); line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.pm-testi-author { display: flex; align-items: center; gap: 12px; }
.pm-testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--pm-teal-light); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.pm-testi-name { font-size: 14px; font-weight: 600; color: var(--pm-dark); }
.pm-testi-role { font-size: 12px; color: var(--pm-text-light); }

.pm-cta { background: linear-gradient(135deg, var(--pm-teal) 0%, var(--pm-teal-dark) 100%); padding: 80px 24px; text-align: center; }
.pm-cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: #fff !important; margin-bottom: 16px; letter-spacing: -0.02em; }
.pm-cta p { font-size: 18px; color: rgba(255,255,255,0.80); max-width: 520px; margin: 0 auto 36px; line-height: 1.6; }
.pm-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pm-btn-white { background: #fff; color: var(--pm-teal-dark) !important; padding: 15px 34px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; transition: all 0.2s; display: inline-block; }
.pm-btn-white:hover { background: var(--pm-teal-light); }
.pm-btn-whatsapp { background: #25D366; color: #fff !important; padding: 15px 34px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.pm-btn-whatsapp:hover { background: #1da851; }

.pm-industries { background: var(--pm-gray); }
.pm-industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pm-industry-card { background: #fff; border-radius: var(--pm-radius); padding: 24px 20px; text-align: center; border: 1px solid var(--pm-border); transition: all 0.2s; text-decoration: none; display: block; }
.pm-industry-card:hover { border-color: var(--pm-teal); box-shadow: 0 0 0 3px var(--pm-teal-light); }
.pm-industry-icon { font-size: 40px; display: block; margin-bottom: 10px; }
.pm-industry-name { font-size: 15px; font-weight: 600; color: var(--pm-dark) !important; margin-bottom: 4px; }
.pm-industry-count { font-size: 12px; color: var(--pm-text-light); }

@media (max-width: 768px) {
  .pm-section { padding: 56px 20px; }
}
/* ============================================================
   INDUSTRIES PAGE — Detailed industry sections
   ============================================================ */
.pm-industry-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.pm-industry-detail:nth-child(even) { direction: rtl; }
.pm-industry-detail:nth-child(even) > * { direction: ltr; }
.pm-industry-detail-img {
  background: var(--pm-gray);
  border-radius: var(--pm-radius);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  overflow: hidden;
}
.pm-industry-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-industry-detail-tag {
  display: inline-block;
  background: var(--pm-teal-light);
  color: var(--pm-teal-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pm-industry-detail h3 { font-size: 28px; font-weight: 700; color: var(--pm-dark); margin: 0 0 14px; }
.pm-industry-detail p { font-size: 15px; color: var(--pm-text-light); line-height: 1.7; margin-bottom: 20px; }
.pm-industry-detail-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.pm-model-pill {
  background: var(--pm-gray);
  border: 1px solid var(--pm-border);
  font-size: 12px;
  font-weight: 600;
  font-family: monospace;
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--pm-dark);
}
.pm-industry-divider { border: none; border-top: 1px solid var(--pm-border); max-width: 1100px; margin: 0 auto; }

@media (max-width: 768px) {
  .pm-industry-detail { grid-template-columns: 1fr; padding: 40px 20px; }
  .pm-industry-detail:nth-child(even) { direction: ltr; }
}
/* ============================================================
   WOOCOMMERCE SHOP / PRODUCT GRID OVERRIDES
   ============================================================ */
.pm-shop-header {
  background: linear-gradient(135deg, var(--pm-teal) 0%, var(--pm-dark) 100%);
  padding: 60px 24px;
  text-align: center;
}
.pm-shop-header h1 { color: #fff !important; font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 12px; }
.pm-shop-header p { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 500px; margin: 0 auto; }

.pm-specs-table { margin: 32px 0; padding: 24px; background: var(--pm-gray); border-radius: var(--pm-radius); }
.pm-specs-table h3 { font-size: 18px; font-weight: 600; color: var(--pm-dark); margin: 0 0 16px; }
.pm-specs-table table { width: 100%; border-collapse: collapse; }
.pm-specs-table td { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--pm-border); }
.pm-specs-table td:first-child { font-weight: 600; color: var(--pm-text-light); width: 40%; }
.pm-specs-table td:last-child { color: var(--pm-dark); }
.pm-specs-table tr:last-child td { border-bottom: none; }

.pm-bulk-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: 16px;
  transition: background 0.2s;
}
.pm-bulk-quote-btn:hover { background: #1da851; color: #fff !important; }

/* Make WooCommerce product grid match brand styling */
ul.products li.product {
  border: 1px solid var(--pm-border) !important;
  border-radius: var(--pm-radius) !important;
  padding: 16px !important;
  transition: all 0.2s !important;
}
ul.products li.product:hover {
  box-shadow: var(--pm-shadow) !important;
  transform: translateY(-3px);
}
ul.products li.product .price {
  color: var(--pm-teal-dark) !important;
  font-weight: 700 !important;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--pm-teal) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--pm-teal-dark) !important;
}
/* ============================================================
   GENERAL / SITE-WIDE STYLES
   ============================================================ */
body { font-family: var(--pm-font); }

.pm-page-header {
  background: linear-gradient(135deg, var(--pm-dark) 0%, var(--pm-teal-dark) 100%);
  padding: 70px 24px;
  text-align: center;
}
.pm-page-header h1 { color: #fff !important; font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin-bottom: 12px; }
.pm-page-header p { color: rgba(255,255,255,0.70); font-size: 16px; max-width: 560px; margin: 0 auto; }

.pm-about-section { max-width: 900px; margin: 0 auto; padding: 64px 24px; }
.pm-about-section h2 { font-size: 28px; font-weight: 700; color: var(--pm-dark); margin: 40px 0 16px; }
.pm-about-section p { font-size: 16px; color: var(--pm-text-light); line-height: 1.7; margin-bottom: 16px; }

.pm-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 40px 0; }
.pm-stat-box { text-align: center; background: var(--pm-gray); border-radius: var(--pm-radius); padding: 28px 16px; }
.pm-stat-box strong { display: block; font-size: 32px; font-weight: 700; color: var(--pm-teal); }
.pm-stat-box span { font-size: 13px; color: var(--pm-text-light); }

.pm-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; padding: 64px 24px; }
.pm-contact-card { background: var(--pm-gray); border-radius: var(--pm-radius); padding: 32px; }
.pm-contact-card h3 { font-size: 20px; font-weight: 600; color: var(--pm-dark); margin-bottom: 8px; }
.pm-contact-method { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--pm-border); }
.pm-contact-method:last-child { border-bottom: none; }
.pm-contact-method-icon { font-size: 24px; }
.pm-contact-method-text strong { display: block; font-size: 14px; color: var(--pm-dark); }
.pm-contact-method-text span { font-size: 13px; color: var(--pm-text-light); }

@media (max-width: 768px) {
  .pm-contact-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   WHATSAPP FLOATING BUTTON (site-wide, injected via functions.php)
   ============================================================ */
.pm-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25D366;
  color: #fff !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s;
}
.pm-whatsapp-float:hover { transform: scale(1.1); }

@media (max-width: 768px) {
  .pm-whatsapp-float { width: 52px; height: 52px; font-size: 24px; bottom: 20px; right: 20px; }
}
/* ============================================================
   WOOCOMMERCE FINE-TUNING
   ============================================================ */
.woocommerce-product-gallery__image { border-radius: var(--pm-radius); overflow: hidden; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--pm-teal-dark) !important; font-size: 26px !important; font-weight: 700 !important; }
.woocommerce span.onsale { background: var(--pm-teal) !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--pm-teal) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--pm-teal) !important; }
