/*
 Theme Name:   Tactical Army Gear
 Theme URI:    https://tactical.askunclejifu.com
 Description:  Storefront child theme — premium military/tactical bag store
 Author:       Jifu
 Template:     storefront
 Version:      2.0.0
*/

/* ═══════════════════════════════════════════
   FONTS — Google Fonts (loaded via functions.php)
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════ */
:root {
  --olive: #4A5D23;
  --olive-light: #6B8A3A;
  --olive-dark: #3A4A1B;
  --tan: #C4A46C;
  --tan-light: #D4C48C;
  --black: #0D0D0D;
  --charcoal: #1A1A1A;
  --dark: #2C2C2C;
  --coyote: #81613C;
  --bg-light: #F5F2EB;
  --bg-card: #FFFFFF;
  --border: #E0DCCF;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ═══════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════ */
body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
a { color: var(--olive); transition: color 0.3s; }
a:hover { color: var(--olive-light); }

.text-accent { color: var(--olive); }

/* ═══════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════ */
.tactical-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75em;
  letter-spacing: 3px;
  color: var(--olive);
  border: 1px solid var(--olive);
  padding: 4px 16px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag-light {
  border-color: rgba(255,255,255,0.4);
  color: #ccc;
}
.section-header h2 {
  font-size: 3em;
  color: var(--charcoal);
  margin: 0 0 12px;
  letter-spacing: 3px;
}
.section-header p {
  font-size: 1.05em;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes camoSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.tactical-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal);
}
.tactical-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(10,10,10,0.85) 40%, rgba(74,93,35,0.3) 100%);
  z-index: 1;
}
.tactical-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(74,93,35,0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(196,164,108,0.05) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px);
  z-index: 1;
  animation: camoSlide 20s linear infinite alternate;
  background-size: 200% 200%;
}
.tactical-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}
.tactical-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75em;
  letter-spacing: 4px;
  color: var(--tan);
  border: 1px solid var(--tan);
  padding: 8px 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(3em, 8vw, 7em);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.hero-accent {
  color: var(--olive-light);
  display: inline-block;
  position: relative;
}
.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--olive);
  opacity: 0.5;
}
.hero-subtitle {
  font-size: 1.15em;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn-hero-primary {
  background: var(--olive);
  color: #fff;
  border: 2px solid var(--olive);
}
.btn-hero-primary:hover {
  background: var(--olive-light);
  border-color: var(--olive-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74,93,35,0.4);
}
.btn-hero-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-hero-secondary:hover {
  border-color: var(--tan);
  color: var(--tan);
  transform: translateY(-2px);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-heading);
  font-size: 0.7em;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-arrow {
  font-size: 1.5em;
  animation: float 2s ease-in-out infinite;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════ */
.tactical-stats {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item {
  position: relative;
  padding: 20px;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 3em;
  font-weight: 700;
  color: var(--olive-light);
  line-height: 1;
  display: inline;
}
.stat-plus {
  font-family: var(--font-heading);
  font-size: 2em;
  font-weight: 600;
  color: var(--tan);
  margin-left: 4px;
}
.stat-star {
  color: #FFD700;
  font-size: 2em;
  margin-right: 4px;
}
.stat-label {
  display: block;
  font-size: 0.8em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
  font-family: var(--font-body);
}

/* ═══════════════════════════════════════════
   CATEGORY SHOWCASE
   ═══════════════════════════════════════════ */
.tactical-categories {
  padding: 100px 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background: var(--charcoal);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.category-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-color), transparent 60%);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
.category-card:hover .category-card-bg {
  opacity: 0.8;
}
.category-icon {
  position: relative;
  z-index: 1;
  font-size: 3em;
  margin-bottom: 16px;
}
.category-info {
  position: relative;
  z-index: 1;
}
.category-info h3 {
  color: #fff;
  font-size: 1.1em;
  margin: 0 0 8px;
  letter-spacing: 2px;
}
.category-info p {
  color: rgba(255,255,255,0.6);
  font-size: 0.8em;
  margin: 0 0 16px;
  line-height: 1.5;
}
.category-link {
  color: var(--tan);
  font-family: var(--font-heading);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
}
.category-card:hover .category-link {
  color: var(--tan-light);
}

/* ═══════════════════════════════════════════
   FEATURED PRODUCTS
   ═══════════════════════════════════════════ */
.tactical-featured {
  padding: 100px 0;
  background: #fff;
}
.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tactical-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.tactical-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(74,93,35,0.12);
}
.tactical-product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f0ede6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tactical-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tactical-product-card:hover .tactical-product-image img {
  transform: scale(1.08);
}
.tactical-sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--coyote);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.65em;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}
.tactical-product-info {
  padding: 20px;
}
.tactical-product-title {
  font-size: 0.9em;
  margin: 0 0 8px;
  color: var(--charcoal);
  letter-spacing: 1px;
  text-transform: none;
}
.tactical-product-price {
  font-family: var(--font-heading);
  font-size: 1.2em;
  font-weight: 600;
  color: var(--olive);
  margin-bottom: 12px;
}
.tactical-product-price .amount { color: var(--olive); }
.tactical-product-price del .amount { color: #999; font-size: 0.85em; }
.tactical-quick-view {
  font-family: var(--font-heading);
  font-size: 0.75em;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.tactical-product-card:hover .tactical-quick-view {
  opacity: 1;
}
.tactical-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: 8px;
}
.tactical-empty-state p {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   VALUES SECTION
   ═══════════════════════════════════════════ */
.tactical-values {
  padding: 100px 0;
  background: var(--bg-light);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(74,93,35,0.08);
}
.value-icon {
  font-size: 2.5em;
  margin-bottom: 16px;
  display: block;
}
.value-card h3 {
  font-size: 1em;
  color: var(--charcoal);
  margin: 0 0 12px;
  letter-spacing: 2px;
}
.value-card p {
  font-size: 0.85em;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.tactical-testimonials {
  padding: 100px 0;
  background: #fff;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  transition: transform 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
}
.testimonial-stars {
  color: #FFD700;
  font-size: 1.2em;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.95em;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85em;
}
.testimonial-author strong {
  display: block;
  font-size: 0.85em;
  color: var(--charcoal);
}
.testimonial-author span {
  font-size: 0.75em;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.tactical-cta {
  position: relative;
  padding: 120px 0;
  background: var(--charcoal);
  overflow: hidden;
}
.tactical-cta-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(74,93,35,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(196,164,108,0.08) 0%, transparent 50%);
  z-index: 0;
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: 3em;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: 3px;
}
.cta-content p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05em;
  line-height: 1.7;
  margin: 0 0 30px;
}
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}
.cta-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 14px 20px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95em;
  outline: none;
  transition: border-color 0.3s;
}
.cta-input::placeholder { color: rgba(255,255,255,0.3); }
.cta-input:focus { border-color: var(--olive); }
.cta-disclaimer {
  font-size: 0.75em !important;
  color: rgba(255,255,255,0.3) !important;
  margin-top: 0 !important;
}

/* ═══════════════════════════════════════════
   BRAND TRUST
   ═══════════════════════════════════════════ */
.tactical-brands {
  padding: 60px 0;
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.brands-headline {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}
.brands-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.brand-logo {
  font-family: var(--font-heading);
  font-size: 0.85em;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  transition: color 0.3s;
}
.brand-logo:hover {
  color: var(--tan);
}

/* ═══════════════════════════════════════════
   STOREFRONT OVERRIDES
   ═══════════════════════════════════════════ */
.site-header {
  background: var(--charcoal) !important;
  border-bottom: 3px solid var(--olive) !important;
}
.site-header .site-branding a { color: var(--tan) !important; font-family: var(--font-heading); }
.site-header .site-branding .site-description { color: rgba(255,255,255,0.35) !important; }
.main-navigation ul.menu > li > a { color: rgba(255,255,255,0.75) !important; font-family: var(--font-heading); font-weight: 500; letter-spacing: 1.5px; }
.main-navigation ul.menu > li > a:hover { color: var(--tan) !important; }
.site-footer { background: var(--charcoal) !important; color: rgba(255,255,255,0.5) !important; border-top: 3px solid var(--olive) !important; }
.site-footer a { color: var(--tan) !important; }
button, .button, .added_to_cart, input[type="submit"] {
  background: var(--olive) !important;
  border-color: var(--olive) !important;
  color: #fff !important;
  font-family: var(--font-heading) !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
button:hover, .button:hover, .added_to_cart:hover, input[type="submit"]:hover {
  background: var(--olive-light) !important;
  border-color: var(--olive-light) !important;
}
.woocommerce span.onsale { background: var(--coyote) !important; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .category-grid, .featured-products-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tactical-hero { min-height: 90vh; }
  .hero-title { font-size: 2.5em; }
  .hero-subtitle { font-size: 1em; }
  .section-header h2 { font-size: 2em; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-item:nth-child(2)::after { display: block; right: 0; top: 20%; height: 60%; width: 1px; }
  .category-grid, .featured-products-grid, .values-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .brands-logos { gap: 20px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-hero { width: 100%; max-width: 300px; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-number { font-size: 2em; }
}
