/*
Theme Name: BioFreeze Premium V2
Theme URI: https://biofreeze.local
Description: Professional B2B WordPress theme for BioFreeze freeze-dried ingredients. White/light gray design with deep blue accents, optimized for SEO and conversions.
Version: 2.0.1
Author: BioFreeze Development Team
Author URI: https://biofreeze.local
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biofreeze-premium
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   Design System - B2B Professional Style
   ============================================ */

:root {
    /* Primary Colors - Deep Blue (Trust & Professionalism) */
    --primary: #1e3a5f;
    --primary-light: #2c5f8a;
    --primary-dark: #0f1f3a;

    /* Accent Colors - Gold (Premium & Quality) */
    --accent: #D4AF37;
    --accent-hover: #c49d2e;

    /* Background Colors - White & Light Gray */
    --bg-white: #FFFFFF;
    --bg-surface: #F8F9FA;
    --bg-light: #F5F5F5;

    /* Text Colors */
    --text-primary: #2d2d2d;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;

    /* Border & Divider */
    --border-light: #e0e0e0;
    --border-medium: #d0d0d0;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Container */
    --container-max: 1200px;
    --container-wide: 1400px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* ============================================
   Layout Utilities
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-alt {
    background-color: var(--bg-surface);
}

/* ============================================
   Navigation
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: var(--container-wide);
    margin: 0 auto;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.25rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-surface) 100%);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--primary-light);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* ============================================
   Trust Bar
   ============================================ */

.trust-bar {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: var(--spacing-lg) 0;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.trust-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(0) invert(1);
}

.trust-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* ============================================
   Section Titles
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

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

/* ============================================
   Product Grid
   ============================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.product-name {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.product-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.product-specs {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Technical Specifications Table
   ============================================ */

.specs-table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-xl) 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
}

.specs-table thead {
    background-color: var(--bg-surface);
}

.specs-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-medium);
}

.specs-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.specs-table tbody tr:hover {
    background-color: var(--bg-surface);
}

.specs-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Features Grid
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-xl);
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
}

.feature-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Application Areas
   ============================================ */

.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.application-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: var(--spacing-xl);
    text-align: center;
}

.application-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.application-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.application-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--bg-white);
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .main-nav ul {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .product-grid,
    .features-grid,
    .application-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Accessibility
   ============================================ */

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

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--bg-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
/* Navigation - Complete Rewrite */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
    text-decoration: none;
}

.nav-menu {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #1e3a5f;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #D4AF37;
}

/* Hero Section - Fix Top Spacing */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Remove Canvas */
#particle-canvas {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        margin-top: 60px;
        padding: 2rem 1rem;
    }
}
/* Trust Bar - Complete Fix */
.trust-bar {
    background: #f8f9fa;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.trust-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3a5f;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.trust-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.trust-highlight {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trust-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
}

.trust-text strong {
    color: #1e3a5f;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

/* Fix image loading - use emoji fallback */
.trust-icon img {
    display: none;
}

.trust-icon::before {
    content: "✓";
    font-size: 2rem;
    color: white;
}

@media (max-width: 768px) {
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Page and Single Post Styles */
.page-content, .single-post {
    padding: 6rem 0 4rem;
    background: #ffffff;
}

.page-header, .post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.page-title, .post-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 1rem;
}

.page-body, .post-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d2d2d;
}

.page-body h2, .post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 2.5rem 0 1.5rem;
}

.page-body h3, .post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5f8a;
    margin: 2rem 0 1rem;
}

.page-body p, .post-content p {
    margin-bottom: 1.5rem;
}

.page-body ul, .post-content ul,
.page-body ol, .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.page-body li, .post-content li {
    margin-bottom: 0.75rem;
}

.page-body a, .post-content a {
    color: #2c5f8a;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-body a:hover, .post-content a:hover {
    color: #D4AF37;
}

.page-body img, .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .page-title, .post-title {
        font-size: 2rem;
    }
    
    .page-body, .post-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Fix for trust-number and trust-label classes (used in page content) */
.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-bar .trust-item {
    text-align: center;
    min-width: 150px;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .trust-bar {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .trust-bar .trust-item {
        min-width: 120px;
    }
    
    .trust-number {
        font-size: 2rem;
    }
}

/* Override trust-bar to use flexbox layout - IMPORTANT */
.trust-bar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3rem !important;
    flex-wrap: wrap !important;
}

/* Ensure trust items are properly styled */
.trust-bar .trust-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 8rem 2rem 6rem;
    margin-top: 80px;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #1e3a5f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2c5f8a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.2);
}

.btn-ghost {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #1e3a5f;
    text-decoration: none;
    border: 2px solid #1e3a5f;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: #1e3a5f;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Bento Grid Section */
.bento-grid-section {
    padding: 6rem 2rem;
    background: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: 3rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    min-height: 250px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
}

.bento-large {
    grid-column: span 2;
}

.glass-panel {
    padding: 2.5rem;
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glass-panel h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1rem;
}

.glass-panel p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-link {
    color: #2c5f8a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #D4AF37;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 6rem 1.5rem 4rem;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-ghost {
        width: 100%;
        text-align: center;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large {
        grid-column: span 1;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
