/*
Theme Name:   Kadence Child - RustGo Aerosol
Theme URI:    https://rustgochemical.com/
Description:  Child theme for the rustgochemical.com B2B aerosol manufacturer rebuild. Implements the Phase 3 visual system (design tokens, CTA band, product grid) on top of Kadence.
Author:       RustGo SEO rebuild
Template:     kadence
Version:      1.0.0
Text Domain:  rustgo-kadence-child
*/

/* =========================================================================
   1) Design Tokens (visual-system-v1.md, GAP-08 closed 2026-07-30)
   ====================================================================== */
:root {
  --rg-primary:        #1B4F8A; /* industrial blue */
  --rg-primary-dark:   #123A68;
  --rg-secondary:      #0FA3A3; /* teal */
  --rg-accent:         #F5A623; /* CTA orange */
  --rg-accent-dark:    #D98E12;
  --rg-ink:            #0F1B2D;
  --rg-slate:          #5B6B7B;
  --rg-mist:           #F4F7FA;
  --rg-white:          #FFFFFF;
  --rg-border:         #E2E8F0;

  --rg-font-heading:   "Montserrat", "Inter", system-ui, sans-serif;
  --rg-font-body:      "Inter", "Roboto", system-ui, sans-serif;

  --rg-radius-card:    12px;
  --rg-radius-btn:     8px;
  --rg-radius-img:     8px;

  --rg-shadow-card:    0 1px 3px rgba(15, 27, 45, .08);
  --rg-shadow-hover:   0 6px 18px rgba(15, 27, 45, .12);

  --rg-space-1: 4px;  --rg-space-2: 8px;   --rg-space-3: 12px;
  --rg-space-4: 16px; --rg-space-5: 24px;  --rg-space-6: 32px;
  --rg-space-7: 48px; --rg-space-8: 64px;
}

/* =========================================================================
   2) Base typography
   ====================================================================== */
body {
  font-family: var(--rg-font-body);
  color: var(--rg-ink);
}
h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
  font-family: var(--rg-font-heading);
  font-weight: 700;
  color: var(--rg-ink);
}
a { color: var(--rg-primary); }
a:hover { color: var(--rg-primary-dark); }

/* =========================================================================
   3) Buttons
   ====================================================================== */
.rg-btn,
.button.rg-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--rg-radius-btn);
  font-family: var(--rg-font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.rg-btn--accent {
  background: var(--rg-accent);
  color: var(--rg-ink);
}
.rg-btn--accent:hover,
.rg-btn--accent:focus {
  background: var(--rg-accent-dark);
  color: var(--rg-ink);
}
.rg-btn--outline {
  background: transparent;
  color: var(--rg-primary);
  border-color: var(--rg-primary);
}
.rg-btn--outline:hover,
.rg-btn--outline:focus {
  background: var(--rg-primary);
  color: var(--rg-white);
}
.rg-btn--light-outline {
  background: transparent;
  color: var(--rg-white);
  border-color: var(--rg-white);
}
.rg-btn--light-outline:hover,
.rg-btn--light-outline:focus {
  background: var(--rg-white);
  color: var(--rg-primary-dark);
}
.rg-btn:focus-visible {
  outline: 3px solid var(--rg-secondary);
  outline-offset: 2px;
}

/* =========================================================================
   4) CTA Band (required on every template)
   ====================================================================== */
.rg-cta-band {
  background: var(--rg-primary-dark);
  color: var(--rg-white);
  padding: var(--rg-space-7) var(--rg-space-5);
  text-align: center;
}
.rg-cta-band__inner {
  max-width: 900px;
  margin: 0 auto;
}
.rg-cta-band__title {
  font-family: var(--rg-font-heading);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 var(--rg-space-3);
  color: var(--rg-white);
}
.rg-cta-band__text {
  color: rgba(255, 255, 255, .85);
  margin: 0 0 var(--rg-space-5);
  font-size: 16px;
}
.rg-cta-band .rg-btn--accent { margin: 0 var(--rg-space-2); }

/* =========================================================================
   5) Product Card & Grid
   ====================================================================== */
.rg-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--rg-space-5);
  margin: var(--rg-space-6) 0;
  padding: 0;
  list-style: none;
}
.rg-product-card {
  background: var(--rg-white);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-card);
  box-shadow: var(--rg-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.rg-product-card:hover {
  box-shadow: var(--rg-shadow-hover);
  transform: translateY(-2px);
}
.rg-product-card__media {
  background: var(--rg-mist);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rg-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rg-product-card__body {
  padding: var(--rg-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--rg-space-2);
  flex: 1;
}
.rg-product-card__cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--rg-secondary);
}
.rg-product-card__title {
  font-family: var(--rg-font-heading);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}
.rg-product-card__title a {
  color: var(--rg-ink);
  text-decoration: none;
}
.rg-product-card__title a:hover { color: var(--rg-primary); }
.rg-product-card__excerpt {
  font-size: 14px;
  color: var(--rg-slate);
  margin: 0;
  flex: 1;
}
.rg-product-card__link {
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* =========================================================================
   6) Category Grid (6 category cards)
   ====================================================================== */
.rg-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--rg-space-5);
  margin: var(--rg-space-6) 0;
  padding: 0;
  list-style: none;
}
.rg-category-card {
  background: var(--rg-mist);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-card);
  padding: var(--rg-space-5);
  text-decoration: none;
  display: block;
  transition: box-shadow .15s ease;
}
.rg-category-card:hover { box-shadow: var(--rg-shadow-hover); }
.rg-category-card__title {
  font-family: var(--rg-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--rg-primary);
  margin: 0 0 var(--rg-space-2);
}
.rg-category-card__count {
  font-size: 13px;
  color: var(--rg-slate);
}
.rg-category-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--rg-secondary);
  color: var(--rg-white);
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: var(--rg-space-2);
  vertical-align: middle;
}

/* =========================================================================
   7) Product single layout
   ====================================================================== */
.rg-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--rg-space-6);
  align-items: start;
  margin: var(--rg-space-6) 0;
}
.rg-product-hero__media {
  background: var(--rg-mist);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-img);
  padding: var(--rg-space-5);
  text-align: center;
}
.rg-product-hero__media img { max-width: 100%; height: auto; border-radius: var(--rg-radius-img); }
.rg-product-hero__model {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--rg-secondary);
  margin-bottom: var(--rg-space-2);
}
.rg-product-hero__title { font-size: 34px; margin: 0 0 var(--rg-space-3); }
.rg-product-hero__summary { color: var(--rg-slate); font-size: 16px; margin-bottom: var(--rg-space-5); }
.rg-product-hero__actions { display: flex; gap: var(--rg-space-3); flex-wrap: wrap; }

.rg-spec-table { width: 100%; border-collapse: collapse; margin: var(--rg-space-4) 0; }
.rg-spec-table th,
.rg-spec-table td {
  border: 1px solid var(--rg-border);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}
.rg-spec-table th { background: var(--rg-mist); width: 38%; font-weight: 600; }
.rg-spec-pending { color: var(--rg-slate); font-style: italic; }

.rg-tag-list { display: flex; flex-wrap: wrap; gap: var(--rg-space-2); padding: 0; list-style: none; margin: var(--rg-space-3) 0; }
.rg-tag-list a {
  display: inline-block;
  background: var(--rg-mist);
  border: 1px solid var(--rg-border);
  color: var(--rg-primary);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.rg-tag-list a:hover { background: var(--rg-primary); color: var(--rg-white); }

.rg-section-title {
  font-size: 24px;
  margin: var(--rg-space-7) 0 var(--rg-space-4);
  padding-bottom: var(--rg-space-2);
  border-bottom: 3px solid var(--rg-accent);
  display: inline-block;
}

/* =========================================================================
   8) Category archive hero
   ====================================================================== */
.rg-archive-hero {
  background: var(--rg-mist);
  border-radius: var(--rg-radius-card);
  padding: var(--rg-space-6);
  margin: var(--rg-space-5) 0;
}
.rg-archive-hero__title { margin: 0 0 var(--rg-space-2); font-size: 32px; }
.rg-archive-hero__desc { color: var(--rg-slate); margin: 0 0 var(--rg-space-2); max-width: 800px; }
.rg-archive-hero__count { font-size: 14px; font-weight: 600; color: var(--rg-secondary); }

/* =========================================================================
   9) Breadcrumb
   ====================================================================== */
.rg-breadcrumb {
  font-size: 13px;
  color: var(--rg-slate);
  margin: var(--rg-space-4) 0;
}
.rg-breadcrumb a { color: var(--rg-slate); text-decoration: none; }
.rg-breadcrumb a:hover { color: var(--rg-primary); }
.rg-breadcrumb .sep { margin: 0 6px; color: var(--rg-border); }

/* =========================================================================
   10) Responsive (visual-system-v1.md section 4.7 mobile rules)
   ====================================================================== */
@media (max-width: 820px) {
  .rg-product-hero { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rg-product-grid,
  .rg-category-grid { grid-template-columns: 1fr; }
  .rg-product-hero__actions { flex-direction: column; align-items: stretch; }
  .rg-product-hero__actions .rg-btn { text-align: center; }
  .rg-cta-band .rg-btn { display: block; margin: var(--rg-space-2) auto 0; max-width: 320px; }
  .rg-spec-table { display: block; overflow-x: auto; }
  .rg-cta-band__title { font-size: 22px; }
}
