/* Outfitter base theme styles — built on tokens.css. See docs/brand/styleguide.html. */

* { box-sizing: border-box; }

body {
  background: var(--gg-canvas);
  color: var(--gg-navy);
  font-family: var(--gg-font-body);
  font-size: var(--gg-size-md);
  line-height: 1.55;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gg-font-display);
  font-weight: 700;
  color: var(--gg-navy);
  line-height: 1.15;
  margin: 0 0 var(--gg-space-3);
}
h1 { font-size: var(--gg-size-3xl); }
h2 { font-size: var(--gg-size-2xl); }
h3 { font-size: var(--gg-size-xl); }
h4 { font-size: var(--gg-size-lg); }

a { color: var(--gg-cardinal); }
a:hover { color: var(--gg-cardinal-hover); }

.op-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gg-space-4);
}

/* Header */
.op-header {
  background: var(--gg-navy);
  padding: var(--gg-space-4) 0 var(--gg-space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.op-header .op-container {
  display: flex;
  flex-direction: column;
  gap: var(--gg-space-3);
}
.op-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gg-space-4);
  flex-wrap: wrap;
}
.op-header .op-logo img {
  height: 34px;
  width: auto;
  display: block;
}
.op-header-search {
  flex: 1;
  max-width: 480px;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
}
.op-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--gg-radius);
  color: var(--gg-canvas);
  font-family: var(--gg-font-body);
  font-size: var(--gg-size-sm);
  padding: 9px 40px 9px 14px;
  outline: none;
  transition: all 0.2s ease;
}
.op-search-input::placeholder { color: rgba(244, 245, 242, 0.55); }
.op-search-input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gg-brass);
  box-shadow: 0 0 0 2px rgba(185, 149, 90, 0.25);
}
.op-search-btn {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--gg-brass);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.op-search-btn:hover { color: #fff; }
.op-header-actions {
  display: flex;
  align-items: center;
  gap: var(--gg-space-3);
}
.op-cart-link {
  display: inline-flex;
  align-items: center;
  gap: var(--gg-space-2);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--gg-radius);
  color: var(--gg-canvas);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--gg-size-sm);
  padding: 8px 14px;
  transition: all 0.2s ease;
}
.op-cart-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gg-brass);
  color: var(--gg-brass);
}
.op-cart-badge {
  background: var(--gg-cardinal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}

/* Primary Navigation Bar */
.op-primary-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--gg-space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.op-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--gg-space-4);
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.op-nav-list a {
  color: rgba(244, 245, 242, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--gg-size-sm);
  padding: 4px 2px;
  display: inline-block;
  transition: color 0.15s ease;
}
.op-nav-list a:hover { color: var(--gg-brass); }

/* Footer */
.op-footer {
  background: var(--gg-navy);
  color: var(--gg-canvas);
  padding: var(--gg-space-6) 0;
  margin-top: var(--gg-space-7);
  font-size: var(--gg-size-sm);
}
.op-footer a { color: var(--gg-canvas); }

/* Buttons */
.button,
button.single_add_to_cart_button,
button.button {
  font-family: var(--gg-font-body);
  font-size: var(--gg-size-sm);
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--gg-radius);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  background: var(--gg-cardinal);
  color: #fff;
  text-decoration: none;
  display: inline-block;
}
.button:hover,
button.single_add_to_cart_button:hover,
button.button:hover {
  background: var(--gg-cardinal-hover);
  color: #fff;
}
.button:focus-visible,
button.single_add_to_cart_button:focus-visible,
button.button:focus-visible {
  outline: 3px solid var(--gg-focus);
  outline-offset: 2px;
}
.button:disabled,
button.single_add_to_cart_button:disabled,
button.button:disabled {
  background: var(--gg-mist);
  color: #8A929C;
  border-color: var(--gg-mist);
  cursor: not-allowed;
}

/* Prices, the product grid, the gallery and every other WooCommerce rule: assets/shop.css (Task 26). */

/* Site pages (Task 25) */
.op-brand { display: flex; flex-direction: column; gap: 4px; }
.op-tagline {
  color: var(--gg-brass);            /* brass on navy only (style guide) */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--gg-tracking-label);
  text-transform: uppercase;
  margin: 0;
}
.op-footer-links { display: flex; flex-wrap: wrap; gap: var(--gg-space-2) var(--gg-space-5); margin: var(--gg-space-3) 0; }
.op-draft {
  background: #FBF4E6;
  border: 1px solid #E3CFA6;
  border-radius: var(--gg-radius);
  color: var(--gg-warning);
  font-size: var(--gg-size-sm);
  padding: 10px 14px;
}
.op-hero {
  background: linear-gradient(135deg, #182436 0%, #1e2e45 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(24, 36, 54, 0.12);
  color: var(--gg-canvas);
  margin: var(--gg-space-4) 0 var(--gg-space-7);
  padding: var(--gg-space-6) var(--gg-space-5);
}
.op-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--gg-space-6);
  align-items: center;
}
@media (max-width: 860px) {
  .op-hero-grid { grid-template-columns: 1fr; }
}
.op-hero h1 {
  color: #fff;
  font-size: var(--gg-size-3xl);
  line-height: 1.1;
  margin: var(--gg-space-2) 0 var(--gg-space-3);
}
.op-hero-lead {
  color: rgba(244, 245, 242, 0.88);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 0 var(--gg-space-5);
}
.op-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gg-space-3);
  align-items: center;
}
.button-primary {
  background: var(--gg-cardinal);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(142, 42, 34, 0.35);
}
.button-secondary {
  background: transparent;
  border: 2px solid rgba(244, 245, 242, 0.35);
  color: var(--gg-canvas);
  font-weight: 600;
}
.button-secondary:hover {
  background: rgba(185, 149, 90, 0.1);
  border-color: var(--gg-brass);
  color: var(--gg-brass);
}

/* Hero Feature Cards */
.op-hero-features {
  display: flex;
  flex-direction: column;
  gap: var(--gg-space-3);
}
.op-feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: var(--gg-space-3);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.op-feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gg-brass);
  transform: translateX(4px);
}
.op-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(185, 149, 90, 0.12);
  color: var(--gg-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.op-feature-detail strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.op-feature-detail span {
  display: block;
  color: rgba(244, 245, 242, 0.65);
  font-size: 12px;
  line-height: 1.4;
}

/* Category Tiles */
.op-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--gg-space-4);
  margin-bottom: var(--gg-space-7);
}
.op-tile {
  background: var(--gg-white);
  border: 1px solid var(--gg-line);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(24, 36, 54, 0.04), 0 1px 2px rgba(24, 36, 54, 0.02);
  color: var(--gg-navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gg-space-4) var(--gg-space-4) var(--gg-space-4);
  min-height: 120px;
  text-decoration: none;
  border-top: 3px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.op-tile:hover {
  border-color: var(--gg-line-strong);
  border-top-color: var(--gg-cardinal);
  box-shadow: 0 8px 24px rgba(24, 36, 54, 0.08), 0 2px 6px rgba(24, 36, 54, 0.04);
  transform: translateY(-3px);
}
.op-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gg-space-2);
}
.op-tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: var(--gg-canvas);
  color: var(--gg-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}
.op-icon-optics { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23182436' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='22' y1='12' x2='18' y2='12'/%3E%3Cline x1='6' y1='12' x2='2' y2='12'/%3E%3Cline x1='12' y1='6' x2='12' y2='2'/%3E%3Cline x1='12' y1='22' x2='12' y2='18'/%3E%3C/svg%3E"); }
.op-icon-sights { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23182436' stroke-width='2'%3E%3Cpath d='M12 2v20M2 12h20M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.op-icon-lights-lasers { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23182436' stroke-width='2'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E"); }
.op-icon-mounts-rings { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23182436' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E"); }
.op-icon-magazines { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23182436' stroke-width='2'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cline x1='9' y1='6' x2='15' y2='6'/%3E%3Cline x1='9' y1='10' x2='15' y2='10'/%3E%3Cline x1='9' y1='14' x2='15' y2='14'/%3E%3C/svg%3E"); }
.op-icon-holsters-gear { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23182436' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.op-icon-parts { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23182436' stroke-width='2'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }

.op-tile-arrow {
  color: var(--gg-line-strong);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}
.op-tile:hover .op-tile-arrow {
  color: var(--gg-cardinal);
  transform: translateX(4px);
}
.op-tile strong {
  display: block;
  font-family: var(--gg-font-display);
  font-size: var(--gg-size-lg);
  font-weight: 700;
  color: var(--gg-navy);
  margin-bottom: 4px;
}
.op-tile span {
  color: var(--gg-slate);
  font-size: var(--gg-size-sm);
  line-height: 1.4;
}

/* How It Works Steps */
.op-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gg-space-4);
  margin: var(--gg-space-4) 0 var(--gg-space-5);
}
@media (max-width: 768px) {
  .op-steps { grid-template-columns: 1fr; }
}
.op-step {
  background: var(--gg-white);
  border: 1px solid var(--gg-line);
  border-radius: 6px;
  padding: var(--gg-space-5) var(--gg-space-4);
  position: relative;
  box-shadow: var(--gg-shadow-card);
}
.op-step-number {
  font-family: var(--gg-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gg-brass);
  line-height: 1;
  margin-bottom: var(--gg-space-2);
}
.op-step h3 {
  font-size: 1.2rem;
  color: var(--gg-navy);
  margin-bottom: var(--gg-space-2);
}
.op-step p {
  font-size: var(--gg-size-sm);
  color: var(--gg-slate);
  margin: 0;
  line-height: 1.5;
}
.op-shipping-callout {
  background: #EAEFF5;
  border-left: 4px solid var(--gg-focus);
  border-radius: 4px;
  padding: var(--gg-space-3) var(--gg-space-4);
  margin-top: var(--gg-space-4);
  font-size: var(--gg-size-sm);
  color: var(--gg-navy);
}
.op-shipping-callout p { margin: 0; }
.op-entry-content table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.op-entry-content th, .op-entry-content td { border-bottom: 1px solid var(--gg-line); padding: 8px 12px; text-align: left; }

/* Front page: lead with shopping, then let the product catalog do the selling. */
.home .op-main { padding-top: 24px; }
.home .op-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: clamp(28px, 5vw, 60px);
  border: 0;
  border-radius: 4px;
  background: linear-gradient(112deg, #182436 0%, #182436 58%, #243752 100%);
  box-shadow: none;
}
.home .op-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(185,149,90,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(185,149,90,.035), 0 0 0 68px rgba(185,149,90,.025);
  pointer-events: none;
}
.home .op-hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 36px;
  max-width: 1000px;
  margin: auto;
}
.home .op-hero-content { max-width: 620px; }
.home .op-hero .op-tagline { color: #D6B678; }
.home .op-hero h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -.025em; }
.home .op-hero-lead { max-width: 48ch; font-size: 18px; }
.home .op-hero-actions { gap: 12px; }
.home .op-hero-actions .button { min-height: 46px; padding: 13px 20px; }
.home .op-hero-actions .button-primary { box-shadow: none; }
.home .op-hero-actions .button-secondary { border-width: 1px; }
.home .op-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  max-width: 310px;
  min-height: 210px;
  margin-left: auto;
  padding: 24px;
  border-left: 2px solid var(--gg-brass);
  color: #fff;
}
.home .op-hero-panel-label { color: #D6B678; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.home .op-hero-panel strong { font: 700 30px/1.08 var(--gg-font-display); }
.home .op-hero-panel > span:last-child { max-width: 28ch; color: rgba(255,255,255,.74); font-size: 15px; }
.home .op-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 42px;
  border: 1px solid var(--gg-line);
  background: #fff;
}
.home .op-service-strip .op-feature-card {
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.home .op-service-strip .op-feature-card + .op-feature-card { border-left: 1px solid var(--gg-line); }
.home .op-service-strip .op-feature-card:hover { transform: none; background: var(--gg-canvas); border-color: var(--gg-line); }
.home .op-service-strip .op-feature-icon { width: 34px; height: 34px; flex: 0 0 34px; background: #F3EEE5; color: #806335; }
.home .op-service-strip .op-feature-detail strong { color: var(--gg-navy); }
.home .op-service-strip .op-feature-detail span { color: var(--gg-slate); }
.home .op-entry-content > h2 { margin: 0 0 16px; font-size: 30px; }
.home .op-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}
.home .op-tile {
  min-height: 158px;
  padding: 18px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(24,36,54,.06);
}
.home .op-tile:hover { transform: translateY(-2px); }
.home .op-tile-header { margin-bottom: 16px; }
.home .op-tile-icon { background-color: #F3F4F2; }
.home .op-tile strong { font-size: 19px; }
.home .op-tile > span:last-child { color: var(--gg-slate); }
.home .op-home-products { margin-bottom: 48px; }
.home .op-home-section-heading { display:flex; align-items:end; justify-content:space-between; gap: 16px; margin-bottom: 18px; }
.home .op-home-section-heading h2 { margin:0; font-size:30px; }
.home .op-section-kicker { margin:0 0 4px; color:var(--gg-slate); font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.home .op-home-section-heading > a { padding-bottom:5px; color:var(--gg-navy); font-size:15px; font-weight:600; text-decoration:none; }
.home .op-home-section-heading > a:hover { color:var(--gg-cardinal); }
@media (max-width: 860px) {
  .home .op-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .home .op-hero-panel { min-height: 0; margin: 0; padding: 12px 0 0 18px; }
  .home .op-hero-panel strong br { display:none; }
  .home .op-hero::after { right:-240px; }
  .home .op-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home .op-main { padding-top: 14px; }
  .home .op-hero { padding: 26px 22px; }
  .home .op-hero-grid { grid-template-columns: 1fr; }
  .home .op-hero h1 { font-size: 38px; }
  .home .op-hero-lead { font-size: 16px; }
  .home .op-hero-actions { align-items: stretch; flex-direction: column; }
  .home .op-hero-actions .button { text-align:center; }
  .home .op-service-strip { grid-template-columns: 1fr; margin-bottom: 32px; }
  .home .op-service-strip .op-feature-card + .op-feature-card { border-left:0; border-top:1px solid var(--gg-line); }
  .home .op-tiles { gap:10px; }
  .home .op-tile { min-height:146px; padding:14px; }
  .home .op-tile strong { font-size:17px; }
  .home .op-home-section-heading h2, .home .op-entry-content > h2 { font-size:25px; }
}
