/* Global styles for AnglinGear - Mobile Optimized */
/* Version: 2026-02-23-v3 - Removed legacy layout rules */
:root {
  --primary: #2c5530;
  --primary-dark: #1a3a1a;
  --secondary: #e8a838;
  --accent: #e8a838;
  --accent-hover: #d4962e;
  --light: #f5f5f0;
  --dark: #1a1a1a;
  --white: #ffffff;
  --muted: #666;
  --card-border: rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--dark); background: var(--light); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

.navbar { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.logo i { color: var(--secondary); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--secondary); }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; background: rgba(255,255,255,0.08); color: inherit; cursor: pointer; gap: 4px; }
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 10px; border-radius: 12px; flex-direction: column; gap: 8px; z-index: 1200; background: linear-gradient(135deg, rgba(26,58,26,0.98) 0%, rgba(44,85,48,0.98) 100%); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
  nav.is-open .nav-links { display: flex !important; }
  .nav-links a { display: block; padding: 12px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(255,255,255,0.10); }
  .container { padding: 0 1rem; }
  .nav-container { padding: 0 1rem; }
}

.breadcrumb { margin-top: 80px; background: var(--white); padding: 1rem 0; border-bottom: 1px solid #eee; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.product-detail { padding: 40px 0; background: var(--white); }
.product-detail .product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-image-column { display: flex; flex-direction: column; gap: 1.5rem; }
.product-image-container { background: var(--light); border-radius: 12px; padding: 30px; text-align: center; contain: layout; }
.product-media { display: flex; flex-direction: column; gap: 1.25rem; }
.product-media .pd-section { margin-top: 0; padding-top: 0; border-top: none; }
.product-media .specs-table { margin: 0; }
.product-detail .product-image { max-width: 100%; max-height: 500px; object-fit: contain; aspect-ratio: 1 / 1; }
.product-info h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 0.5rem; }
.product-sku { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.5rem; }
.product-category { display: inline-block; background: var(--primary); color: var(--white); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.9rem; margin-bottom: 1.5rem; }
.product-description { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 2rem; }

.specs-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.specs-table th, .specs-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.specs-table th { background: var(--light); color: var(--primary); font-weight: 600; width: 40%; }
.specs-table td.specs-wide { background: rgba(245,245,240,0.55); font-weight: 600; }

.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 2rem; border-radius: 12px; margin-top: 2rem; }
.cta-section h3 { margin-bottom: 1rem; font-size: 1.3rem; }

.btn { display: inline-block; background: var(--secondary); color: var(--white); padding: 1rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 700; margin-top: 1rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.quote-btn { background: var(--secondary); color: var(--white); border: none; padding: 0.9rem 1rem; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; transition: transform 0.2s ease, background 0.2s ease; display: block; }
.quote-btn:hover { transform: translateY(-1px); background: var(--accent-hover); }
.quote-btn i { margin-right: 0.5rem; }

footer { background: var(--primary-dark); color: var(--white); padding: 3rem 2rem 1rem; margin-top: 3rem; }
.footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; align-items: start; }
.footer-section { align-self: start; }
.footer-section h3 { margin-bottom: 1rem; color: var(--secondary); margin-top: 0; }
.footer-section p, .footer-section a { color: #ddd; text-decoration: none; line-height: 1.8; }
.footer-section a:hover { color: var(--secondary); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid #444; color: #bbb; }

.hero { margin-top: 80px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 4.5rem 2rem 3rem; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; max-width: 900px; margin: 0 auto 1.5rem; opacity: 0.95; }
.hero-tools { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; align-items: center; }
.search { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); padding: 0.85rem 1rem; border-radius: 10px; display: flex; gap: 0.75rem; align-items: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.search input { flex: 1; background: transparent; border: none; outline: none; color: var(--white); font-size: 1rem; }
.search input::placeholder { color: rgba(255,255,255,0.92); }
.hero-note { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); padding: 0.85rem 1rem; border-radius: 10px; text-align: left; font-size: 0.95rem; opacity: 0.95; }
.hero-note a { color: rgba(255,255,255,0.95); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.category-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 2rem; }
.category-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border-radius: 999px; background: var(--white); border: 1px solid var(--card-border); color: var(--primary-dark); text-decoration: none; font-weight: 600; font-size: 0.95rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.category-pill:hover { border-color: rgba(44,85,48,0.25); }

.category-section { margin-bottom: 3.25rem; }
.category-header { background: var(--primary); color: var(--white); padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; border-radius: 10px; display: flex; align-items: baseline; gap: 0.9rem; }
.category-header h2 { font-size: 1.5rem; }
.category-count { margin-left: auto; opacity: 0.9; font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; }
.product-card { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid var(--card-border); display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; contain: layout style; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.11); }
.product-card.hidden { display: none !important; }
.product-link { text-decoration: none; color: inherit; }
.product-card .product-image { width: 100%; height: 210px; object-fit: contain; object-position: center; background: #f0f0f0; aspect-ratio: 320 / 210; }
.product-content { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.product-topline { display: flex; flex-direction: column; gap: 0.25rem; }

/* Product detail enhancements */
.muted { color: var(--muted); }
.pd-section { margin-top: 1.5rem; padding-top: 0.75rem; border-top: 1px solid #eee; }
.pd-section h2 { font-size: 1.25rem; color: var(--primary-dark); margin: 0 0 0.75rem; }
.benefits-list, .checklist, .use-cases { list-style: none; padding-left: 0; margin: 0.5rem 0 0; display: grid; gap: 0.5rem; }
.benefits-list li, .checklist li, .use-cases li { position: relative; padding-left: 1.35rem; color: #333; }
.benefits-list li::before, .checklist li::before, .use-cases li::before { content: '>'; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 800; }
.cert-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.cert-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.65rem; border-radius: 999px; background: rgba(245,245,240,0.75); border: 1px solid #eee; color: var(--primary-dark); font-weight: 700; font-size: 0.95rem; }
.cert-badge i { color: var(--primary); }

/* Mobile specific optimizations */
@media (max-width: 900px) {
  .product-detail .product-grid { grid-template-columns: 1fr; }
  .product-image-column { gap: 1rem; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-tools { grid-template-columns: 1fr; }
  .product-info h1 { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .footer-content { grid-template-columns: 1fr; }
  .category-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .category-count { margin-left: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
}

/* Content page styles (comparison, articles) */
.content-page { padding: 2rem 0 4rem; }
.content-page .page-header { margin-bottom: 2rem; }
.content-page .page-header h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.content-page .lead { font-size: 1.125rem; color: #555; }
.content-page section { margin-bottom: 2.5rem; }
.content-page h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }
.content-page h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

/* Comparison table */
.comparison-section { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; background: #fff; }
.comparison-table th, .comparison-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #e0e0e0; }
.comparison-table thead th { background: var(--primary); color: #fff; font-weight: 600; }
.comparison-table tbody tr:hover { background: #f8f9fa; }
.comparison-table .highlight { color: var(--accent); font-weight: 600; }
.table-responsive { overflow-x: auto; }

/* Benefit cards */
.benefit-card { background: #f8f9fa; padding: 1.5rem; border-radius: 8px; margin-bottom: 1rem; border-left: 4px solid var(--accent); }
.benefit-card h3 { display: flex; align-items: center; gap: 0.5rem; }
.benefit-card h3 i { color: var(--accent); }

/* Testimonials */
.testimonial-section { background: #f0f4f8; padding: 2rem; border-radius: 8px; }
.testimonial { margin: 1.5rem 0; padding-left: 1.5rem; border-left: 3px solid var(--primary); }
.testimonial p { font-style: italic; margin-bottom: 0.5rem; }
.testimonial cite { font-size: 0.875rem; color: #666; }

/* Product links */
.products-section .product-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.5rem; }
.products-section .product-links li { padding: 0.5rem 0; }
.products-section .product-links a { color: var(--primary); text-decoration: none; }
.products-section .product-links a:hover { text-decoration: underline; }

/* FAQ section */
.faq-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e0e0e0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: var(--primary); }

/* CTA section */
.cta-section { text-align: center; padding: 2rem; background: linear-gradient(135deg, var(--primary) 0%, #1a4d3a 100%); border-radius: 8px; color: #fff; }
.cta-section h2 { color: #fff; }
.cta-section p { margin-bottom: 1.5rem; }
.cta-section .btn { background: #fff; color: var(--primary); padding: 0.75rem 2rem; font-size: 1.125rem; font-weight: 600; border-radius: 4px; text-decoration: none; display: inline-block; }
.cta-section .btn:hover { background: var(--accent); color: #fff; }
.cta-section .cta-note { font-size: 0.875rem; margin-top: 1rem; opacity: 0.9; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .navbar, .nav-toggle, .cta-section, footer { display: none; }
  .product-detail { padding: 0; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
