/* ==========================================================================
   RCF Tactical — skin built to Colt's approved mockups (2026-08-15)

   Palette sampled from the artwork itself, not eyeballed:
     olive drab   #3a3c12   (headline accent, buttons, icons, badge bar)
     olive light  #545430   (secondary icon strokes in the category strip)
     cream        #eceae6   (page ground)
     card white   #fefefe
     ink          #000000   (primary headline)
   Contrast is comfortable throughout: olive on white 11.0:1, black on cream
   17.5:1 — this palette is accessible by construction, which the earlier
   charcoal/tan placeholder was not.

   Two traps this file works around, both learned on sibling tenants:

   1. professional-fixes.min.css loads with media="print" onload="this.media='all'",
      so it applies asynchronously AFTER everything else, and it carries blanket
      rules on the bare `section` selector marked !important — including
      `background:#ffffff !important` and `color:#333 !important`. An !important
      declaration only yields to another !important, and between two of those the
      more specific selector wins. That is why the affected properties below are
      element-qualified AND flagged; source order alone loses.
   2. Never pair mix-blend-mode with filter: drop-shadow() on product imagery —
      the filter creates a stacking context that isolates the blend and paints a
      white box. Bit this project twice.
   ========================================================================== */

:root {
  --rcf-olive:      #3a3c12;
  --rcf-olive-lt:   #545430;
  --rcf-olive-dk:   #2b2d0d;
  --rcf-cream:      #eceae6;
  --rcf-card:       #fefefe;
  --rcf-ink:        #000000;
  --rcf-mut:        #5b5b52;

  /* Retheme the platform palette at source. theme.css drives the nav, cart,
     search and buttons from these, so overriding them here recolours the whole
     site consistently instead of chasing individual selectors, and anything
     added later inherits the brand automatically. */
  --color-bg-dark:        #2b2d0d;
  --color-accent-primary: #3a3c12;
  --color-accent-hover:   #4a4d1a;
  --color-accent-active:  #2b2d0d;
}

/* Visually hidden but available to crawlers and screen readers. Used for the
   hero H1, whose words are baked into the approved artwork. */
.rcf-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------- hero ---------------------------------------------------------- */
section.rcf-hero {
  position: relative;
  background: var(--rcf-cream) !important;   /* beats section{background:#fff !important} */
  padding: 0 !important;
  border-bottom: 4px solid var(--rcf-olive);
  overflow: hidden;
}
section.rcf-hero .rcf-hero__art { display: block; }
section.rcf-hero .rcf-hero__art img {
  display: block; width: 100%; height: auto;
  /* The artwork is 2172px wide. Without a cap, width:100% upscales it on any
     wider viewport, which is what made the hero look soft. Cap at native width
     and centre the surplus. */
  max-width: 2172px;
  margin: 0 auto;
}
/* phone-only type block; hidden wherever the baked headline is legible */
section.rcf-hero .rcf-hero__mobile { display: none; }

@media (max-width: 760px) {
  section.rcf-hero .rcf-hero__mobile {
    display: block;
    padding: 22px 18px 26px;
    background: var(--rcf-cream) !important;
    text-align: left;
  }
  section.rcf-hero .rcf-hero__eyebrow {
    margin: 0 0 10px; color: var(--rcf-olive) !important;
    font-size: 11.5px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase;
  }
  section.rcf-hero .rcf-hero__title {
    margin: 0; color: var(--rcf-ink) !important;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(34px, 11vw, 52px); line-height: .96;
    font-weight: 900; letter-spacing: -.5px; text-transform: uppercase;
  }
  section.rcf-hero .rcf-hero__title span { color: var(--rcf-olive) !important; display: block; }
  section.rcf-hero .rcf-hero__sub {
    margin: 14px 0 18px; color: var(--rcf-ink) !important;
    font-size: 14px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  }
}

/* ---------- buttons ------------------------------------------------------- */
.rcf-btn {
  display: inline-block; padding: 14px 30px; border-radius: 2px;
  font-size: 14px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.rcf-btn--primary { background: var(--rcf-olive); color: #fff; }
.rcf-btn--primary:hover { background: var(--rcf-olive-dk); color: #fff; }
.rcf-btn:focus-visible { outline: 3px solid var(--rcf-ink); outline-offset: 3px; }

/* ---------- category strip ------------------------------------------------ */
section.rcf-cats {
  background: var(--rcf-cream) !important;
  padding: clamp(34px, 4.5vw, 62px) 0;
}
section.rcf-cats .rcf-cats__head { margin-bottom: 22px; }
section.rcf-cats .rcf-cats__head h2 {
  margin: 0; color: var(--rcf-ink) !important;
  font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(24px, 3.4vw, 42px); font-weight: 900;
  letter-spacing: -.4px; text-transform: uppercase;
}
section.rcf-cats .rcf-cats__head p {
  margin: 6px 0 0; color: var(--rcf-ink) !important;
  font-size: clamp(12px, 1.3vw, 15px); font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
}
section.rcf-cats .rcf-cats__head p span { color: var(--rcf-olive) !important; }

section.rcf-cats .rcf-cats__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(8, 1fr);
}
section.rcf-cats .rcf-cat {
  display: block; text-decoration: none; border-radius: 3px; overflow: hidden;
  transition: transform .14s, box-shadow .14s;
}
section.rcf-cats .rcf-cat img {
  display: block; width: 100%; height: auto;
}
section.rcf-cats .rcf-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(43,45,13,.20);
}
section.rcf-cats .rcf-cat:focus-visible { outline: 3px solid var(--rcf-olive); outline-offset: 2px; }

section.rcf-cats .rcf-cats__ribbon {
  margin: 26px auto 0; max-width: 460px; text-align: center;
  padding: 9px 18px; background: var(--rcf-card);
  border: 1px solid #d9d7cf;
  color: var(--rcf-olive) !important;
  font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}

/* The strip is eight cards wide by design; step down rather than let each card
   shrink to an illegible sliver. */
@media (max-width: 1200px) { section.rcf-cats .rcf-cats__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { section.rcf-cats .rcf-cats__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- header / nav / footer ----------------------------------------- */
/* The real logo lifted from the artwork is dark ink on transparency — a reticle,
   black wordmark and olive rule. It needs a LIGHT plate to read, which also
   matches the comp's cream aesthetic; the olive nav bar directly beneath supplies
   the contrast the design gets from its badge bar. */
.header-main { background: var(--rcf-card) !important; border-bottom: 1px solid #ddd9d0; }
.header-main .logo img { max-height: 62px; width: auto; }
.header-main a, .header-main .header-link { color: var(--rcf-ink); }

/* professional-fixes.min.css sets `.main-nav{background:#2c3e50 !important}` as a
   LITERAL, not through --color-bg-dark, so retheming the variable cannot reach
   it. Qualifying with the element name raises specificity above that rule while
   matching its !important. */
nav.main-nav {
  background: var(--rcf-olive-dk) !important;
  border-bottom: 3px solid var(--rcf-olive) !important;
}
nav.main-nav a { color: #fff !important; }
nav.main-nav a:hover, nav.main-nav a:focus-visible { color: #cdd08a !important; }

/* Cart shipped as a red pill, which reads as an error state and belongs to no
   part of this palette. Olive keeps white label text at 11:1. */
a.cart-link, a.mobile-cart-link { background: var(--rcf-olive) !important; color: #fff !important; }
a.cart-link:hover, a.mobile-cart-link:hover { background: var(--rcf-olive-dk) !important; }
a.cart-link .cart-count, a.mobile-cart-link .cart-count {
  background: #fff !important; color: var(--rcf-olive) !important;
}

footer .footer-bottom, .site-footer .footer-bottom { border-top: 3px solid var(--rcf-olive); }

@media (prefers-reduced-motion: reduce) {
  section.rcf-cats .rcf-cat { transition: none; }
  section.rcf-cats .rcf-cat:hover { transform: none; }
}

/* rcf-cats squeeze fix: eight cards inside the 1200px container left each tile
   ~132px, far tighter than the comp. Widen this section only, open the gap, and
   step down to four columns earlier so a card is never a sliver. */
section.rcf-cats > .container { max-width: 1560px; }
section.rcf-cats .rcf-cats__grid { gap: 18px; }
/* Bounded at the low end: an unbounded max-width:1400px sits AFTER the 640px
   two-column rule in this file, so on a phone both matched and this one won,
   forcing four columns into 390px and pushing the strip off screen. */
@media (min-width: 641px) and (max-width: 1400px) {
  section.rcf-cats .rcf-cats__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  section.rcf-cats .rcf-cats__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  section.rcf-cats > .container { max-width: 100%; padding-left: 14px; padding-right: 14px; }
}

/* Platform stamp, last thing on the page. */
.rcf-stamp { text-align: center; padding: 20px 0 26px; background: transparent; }
.rcf-stamp img { display: block; margin: 0 auto; width: 460px; max-width: 78%; height: auto; }

/* ---------- category cards (rebuilt) -------------------------------------
   The tiles used to be baked bitmaps sliced from the comp, which carried
   slivers of the neighbouring cards and gave every tile a different visual
   edge. The card, its border, the notched corners, the glyph and the type are
   now drawn in CSS, so spacing and borders are identical by construction and
   the labels are real selectable text. Only the product plate is artwork. */
section.rcf-cats .rcf-cat {
  display: flex; flex-direction: column; align-items: center;
  background: #f5f3ee;
  border: 1px solid #d5d1c4;
  border-radius: 0;
  padding: 10px 8px 12px;
  text-decoration: none;
  /* chamfered corners, matching the comp */
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  overflow: visible;
}
section.rcf-cats .rcf-cat__plate {
  display: block; width: 100%; line-height: 0;
}
section.rcf-cats .rcf-cat__plate img {
  /* 30% shorter than the plate's natural 166x205 while still filling the card
     edge to edge: crop with object-fit rather than scaling the artwork down. */
  display: block; width: 100%; height: auto;
  aspect-ratio: 166 / 143;
  object-fit: cover;
  object-position: center 45%;
}
section.rcf-cats .rcf-cat__icon {
  display: block; margin: 10px 0 8px;
  color: var(--rcf-olive, #4c5228); line-height: 0;
}
section.rcf-cats .rcf-cat__label {
  font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(13px, 1.05vw, 16px); font-weight: 900; letter-spacing: .4px;
  text-transform: uppercase; color: #1a1a18; text-align: center; line-height: 1.15;
}
section.rcf-cats .rcf-cat__cta {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--rcf-olive, #4c5228);
}
section.rcf-cats .rcf-cat:hover { border-color: var(--rcf-olive, #4c5228); }

/* Feature icons: drawn, not emoji. Emoji pick up a different colour font on every
   OS and read as clip-art next to a tactical palette. */
.features-section .feature-icon { color: var(--rcf-olive, #4c5228); line-height: 0; margin-bottom: 10px; }
.features-section .feature-icon svg { display: block; margin: 0 auto; }

/* Header mark: 20% larger. */
.site-header .logo img { max-height: 86px !important; }
@media (max-width: 1100px) { .site-header .logo img { max-height: 62px !important; } }
@media (max-width: 760px)  { .site-header .logo img { max-height: 58px !important; } }
@media (max-width: 480px)  { .site-header .logo img { max-height: 53px !important; } }

/* Footer: streamlined. Padding and type were sized for a much taller block. */
footer .footer-content, footer .footer-main { padding-top: 30px !important; padding-bottom: 22px !important; }
footer h3, footer h4 { font-size: 13px !important; margin-bottom: 8px !important; letter-spacing: .6px; }
footer ul li { margin-bottom: 4px !important; line-height: 1.45 !important; }
footer ul li a, footer p { font-size: 12.5px !important; }
footer .footer-bottom { padding: 12px 0 !important; font-size: 11.5px !important; }

/* Trust row above the footer: was left-aligned and unstyled. Centre it, give the
   band a quiet ground so it reads as a deliberate section rather than stray text. */
.features-section { background: #f5f3ee; border-top: 1px solid #e2ded3; border-bottom: 1px solid #e2ded3; padding: 30px 0 !important; }
.features-section .container { max-width: 1180px; }
.features-section .features-grid,
.features-section .features-grid-5col {
  display: flex !important; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 26px 34px; margin: 0 auto; text-align: center;
}
.features-section .feature { flex: 0 1 240px; max-width: 260px; text-align: center; margin: 0; }
.features-section .feature h3 {
  font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 15px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase;
  color: #1a1a18; margin: 0 0 5px;
}
.features-section .feature p { font-size: 12.5px; line-height: 1.5; color: #5d5a53; margin: 0; }

/* ---------- product pricing (matched to TheGunDock) -----------------------
   Prices are never red. Red appears only on the savings chip, so the colour
   means exactly one thing: "this is a markdown". Uniform price styling is what
   lets a shopper compare straight down a column. */
.products-grid .product-card .product-price,
.products-grid .product-card .product-price .price-now,
.product-card .product-price .price-now,
.product-card .product-price {
  color: #1a1a1a !important;
  font-weight: 700;
}
.product-card .product-price .price-was,
.product-price .price-was {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280 !important;
  text-decoration: line-through;
  margin-left: 6px;
}
.product-card .product-price .price-save,
.product-price .price-save {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff !important;
  background: #c41e3a;
  border-radius: 4px;
  padding: 3px 8px;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.3;
  margin-left: 6px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Footer: was sized for a much taller block. Tighten the whole thing. */
footer .footer-main, footer .footer-content { padding: 26px 0 18px !important; }
footer .footer-col, footer .footer-column { margin-bottom: 12px !important; }
footer .footer-social-row { padding: 10px 0 !important; }
footer .footer-trust-row { padding: 10px 0 !important; gap: 14px !important; }
footer .footer-trust-row .trust-badge { font-size: 11.5px !important; }
footer .footer-bottom { padding: 10px 0 !important; }
footer .legal-notice { font-size: 11px !important; line-height: 1.45 !important; margin: 6px 0 0 !important; }
