/*
Theme Name: PUG Grading
Theme URI: https://precisionuniversalgrading.com
Author: PUG Team
Author URI: https://precisionuniversalgrading.com
Description: A premium WordPress theme for Precision Universal Grading - Professional card authentication and grading services. Features light/dark mode, WooCommerce compatibility, and stunning animations.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pug-grading
Domain Path: /languages
Tags: e-commerce, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, grid-layout, one-column, two-columns, custom-colors, custom-header, full-width-template, theme-options

WC requires at least: 7.0
WC tested up to: 8.0
*/

/* ========================================
   PUG GRADING - WORDPRESS THEME
   Precision Universal Grading
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Inter+Tight:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Brand Colors */
  --brand-primary: #1c4f88;
  --brand-gold: #c7a243;
  --brand-black: #000000;
  --brand-white: #FFFFFF;
  
  /* Easing Functions */
  --ease-dramatic: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Theme (Default) */
[data-theme="dark"],
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --text-primary: #FFFFFF;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(28, 79, 136, 0.08);
  --gold-glow: rgba(199, 162, 67, 0.3);
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f2f5;
  --text-primary: #000000;
  --text-secondary: #4a4a4a;
  --text-muted: #888888;
  --border-color: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(28, 79, 136, 0.05);
  --gold-glow: rgba(199, 162, 67, 0.2);
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.section-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .section-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding: 0 2rem;
  }
}

@media (min-width: 1280px) {
  .section-container {
    padding: 0 3rem;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: white;
  background-color: var(--brand-primary);
  transition: all 0.3s var(--ease-spring);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--brand-gold);
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(199, 162, 67, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: transparent;
  border: 2px solid var(--brand-primary);
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--brand-primary);
  color: white;
}

/* Card Feature */
.card-feature {
  padding: 2rem;
  border-radius: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--ease-spring);
}

.card-feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border-color: var(--brand-gold);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Effect */
.glass {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .glass {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Gold Glow */
.gold-glow {
  box-shadow: 0 0 30px var(--gold-glow);
}

/* 3D Transforms */
.perspective-1000 {
  perspective: 1000px;
}

.preserve-3d {
  transform-style: preserve-3d;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

@keyframes pulse-gold {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 10s ease-in-out infinite;
}

.animate-pulse-gold {
  animation: pulse-gold 4s ease-in-out infinite;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  transition: all 0.3s var(--ease-smooth);
}

.site-header.scrolled {
  height: 64px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
}

.site-header .logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s var(--ease-smooth);
}

.site-header.scrolled .logo img {
  transform: scale(0.9);
}

/* Navigation */
.main-nav a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-smooth);
}

.main-nav a:hover {
  color: var(--brand-gold);
  transform: translateY(-2px);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--brand-gold);
  transition: all 0.2s var(--ease-smooth);
  transform: translateX(-50%);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-smooth);
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
}

/* Mobile Menu */
/* The mobile menu is hidden off‑screen by default using a transform instead of
   the display property. This allows the `.open` class to animate it into view
   without being blocked by `display: none`. */
.mobile-menu {
  /* do not set display: none; the transform pushes it off screen */
  position: fixed;
  top: 64px;
  right: 0;
  width: 320px;
  max-width: 100%;
  height: calc(100vh - 64px);
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-expo-out);
  z-index: 1000;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 0.5rem;
  transition: all 0.2s var(--ease-smooth);
}

.mobile-menu a:hover {
  background-color: var(--bg-tertiary);
  color: var(--brand-gold);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, transparent 50%, rgba(28, 79, 136, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--brand-gold);
  background-color: rgba(199, 162, 67, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
}

.hero-eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.125rem;
  max-width: 500px;
  color: var(--text-secondary);
}

/* Hero Card */
.hero-card-container {
  position: relative;
  perspective: 1000px;
}

.hero-card {
  position: relative;
  animation: float-slow 10s ease-in-out infinite;
}

.hero-card-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--brand-gold);
  color: black;
  font-weight: 700;
  font-size: 0.875rem;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--brand-primary);
  font-family: 'Inter Tight', sans-serif;
}

.stat-number.gold {
  color: var(--brand-gold);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-primary);
  margin-bottom: 1.5rem;
  transition: all 0.3s var(--ease-spring);
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: white;
}

.card-feature:hover .feature-icon {
  transform: scale(1.1) translateY(-5px);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  transition: color 0.3s var(--ease-smooth);
}

.card-feature:hover .feature-title {
  color: var(--brand-gold);
}

.feature-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.testimonial-card {
  background-color: var(--bg-primary);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed var(--brand-gold);
  animation: rotate-slow 20s linear infinite;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   APP DOWNLOAD SECTION
   ======================================== */
.app-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.app-mockup {
  position: relative;
  animation: float-slow 10s ease-in-out infinite;
}

.app-store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--ease-spring);
}

.app-store-btn:hover {
  transform: scale(1.05);
}

.app-store-btn svg {
  width: 2rem;
  height: 2rem;
  color: var(--text-primary);
}

.app-store-btn .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.app-store-btn .store {
  font-weight: 600;
  color: var(--text-primary);
}

/* ========================================
   VAULT SECTION
   ======================================== */
.vault-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.vault-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.vault-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vault-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
  z-index: 1;
}

.vault-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.vault-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: rgba(199, 162, 67, 0.2);
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.vault-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.vault-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.vault-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.vault-feature svg {
  width: 1rem;
  height: 1rem;
  color: var(--brand-gold);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  padding: 5rem 0 2rem;
  background-color: var(--bg-secondary);
}

.footer-border {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 3rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  transition: all 0.2s var(--ease-smooth);
}

.footer-social a:hover {
  background-color: var(--brand-gold);
  transform: scale(1.1);
}

.footer-social a svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease-smooth);
}

.footer-social a:hover svg {
  color: black;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-smooth);
  display: inline-block;
}

.footer-column a:hover {
  color: var(--brand-gold);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-language {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-language svg {
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
}

.footer-language select {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ========================================
   WOOCOMMERCE STYLES
   ======================================== */
.woocommerce-page .site-header {
  position: relative;
}

.woocommerce-page .hero-section {
  min-height: auto;
  padding: 4rem 0;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product Card */
.product-card {
  background-color: var(--bg-secondary);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--ease-spring);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border-color: var(--brand-gold);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-expo-out);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.product-price del {
  color: var(--text-muted);
  font-size: 1rem;
  margin-right: 0.5rem;
}

.product-price ins {
  text-decoration: none;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  padding: 0.875rem;
  margin-top: 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: white;
  background-color: var(--brand-primary);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.add-to-cart-btn:hover {
  background-color: var(--brand-gold);
}

/* Cart & Checkout */
.woocommerce-cart,
.woocommerce-checkout {
  padding: 4rem 0;
  background-color: var(--bg-primary);
}

.woocommerce-cart .section-container,
.woocommerce-checkout .section-container {
  max-width: 1200px;
}

/* Forms */
.woocommerce-form {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.woocommerce-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.woocommerce-form input,
.woocommerce-form textarea,
.woocommerce-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s var(--ease-smooth);
}

.woocommerce-form input:focus,
.woocommerce-form textarea:focus,
.woocommerce-form select:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(199, 162, 67, 0.2);
}

/* Buttons */
.woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: white;
  background-color: var(--brand-primary);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.woocommerce-button:hover {
  background-color: var(--brand-gold);
  transform: scale(1.02);
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.woocommerce-message {
  background-color: rgba(28, 79, 136, 0.1);
  border: 1px solid var(--brand-primary);
  color: var(--text-primary);
}

.woocommerce-info {
  background-color: rgba(199, 162, 67, 0.1);
  border: 1px solid var(--brand-gold);
  color: var(--text-primary);
}

.woocommerce-error {
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid #dc2626;
  color: #dc2626;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-section .grid {
    grid-template-columns: 1fr;
  }
  
  .hero-card-container {
    order: -1;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------
 * Tailwind‑inspired utility classes
 *
 * The HTML templates included with this theme reference many Tailwind CSS
 * class names (e.g. `flex`, `items-center`, `gap-8`, `grid-cols-4`,
 * `lg:flex`). To avoid adding the entire Tailwind library, this section
 * provides lightweight fallbacks for a subset of those classes. By defining
 * them here we preserve the intended layouts and interactions without
 * including a large framework. Feel free to extend this section if you
 * introduce additional utility class names.
 */

/* Basic display utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.block { display: block; }

/* Flexbox helpers */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }

/* Gap spacing utilities */
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Margin utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

/* Vertical spacing for children (space-y-*) */
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Grid column helpers */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Responsive variants: use escaped colons (\:) to target specific breakpoints */
@media (min-width: 640px) {
  .sm\:flex { display: flex !important; }
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:grid { display: grid !important; }
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:gap-4 { gap: 1rem !important; }
  .sm\:gap-6 { gap: 1.5rem !important; }
  .sm\:gap-8 { gap: 2rem !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:inline-flex { display: inline-flex !important; }
  .md\:grid { display: grid !important; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:gap-4 { gap: 1rem !important; }
  .md\:gap-6 { gap: 1.5rem !important; }
  .md\:gap-8 { gap: 2rem !important; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:inline-flex { display: inline-flex !important; }
  .lg\:grid { display: grid !important; }
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:gap-4 { gap: 1rem !important; }
  .lg\:gap-6 { gap: 1.5rem !important; }
  .lg\:gap-8 { gap: 2rem !important; }
  .lg\:gap-10 { gap: 2.5rem !important; }
  .lg\:mt-10 { margin-top: 2.5rem !important; }
}
