/*
Theme Name: CoatNex
Theme URI: https://coatnex.com
Author: CoatNex
Author URI: https://coatnex.com
Description: A modern, responsive corporate WordPress theme for CoatNex - B2B Chemical Solutions. Fully compatible with Elementor page builder featuring clean, professional industrial design with blues and greys color scheme.
Version: 2.0.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coatnex
Tags: corporate, business, custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, responsive-layout, theme-options

CoatNex WordPress Theme - Industrial Chemical Solutions
Designed for B2B chemical companies with Elementor compatibility.
*/

/* ==========================================================================
   CSS Custom Properties / Design Tokens
   ========================================================================== */
:root {
    /* Primary Colors - Navy */
    --bp-primary: #1e3a5f;
    --bp-primary-dark: #0f2744;
    --bp-primary-light: #2d5a8a;
    
    /* Secondary Colors - Blue */
    --bp-secondary: #3498db;
    --bp-secondary-dark: #2980b9;
    --bp-secondary-light: #5dade2;
    
    /* Gold Colors - Brand Accent */
    --bp-gold: #d4af37;
    --bp-gold-dark: #b8941f;
    --bp-gold-light: #e6c85d;
    --bp-gold-pale: #f4e8c1;
    
    /* Teal Accent - Modern & Fresh */
    --bp-teal: #14b8a6;
    --bp-teal-dark: #0d9488;
    --bp-teal-light: #2dd4bf;
    --bp-teal-pale: #99f6e4;
    
    /* Orange Accent - Energy & Innovation */
    --bp-orange: #f97316;
    --bp-orange-dark: #ea580c;
    --bp-orange-light: #fb923c;
    --bp-orange-pale: #fed7aa;
    
    /* Legacy Accent Colors */
    --bp-accent: #14b8a6;
    --bp-accent-dark: #0d9488;
    --bp-accent-light: #2dd4bf;
    
    /* Neutral Colors */
    --bp-white: #ffffff;
    --bp-light: #f8f9fa;
    --bp-gray-100: #f1f3f5;
    --bp-gray-200: #e9ecef;
    --bp-gray-300: #dee2e6;
    --bp-gray-400: #ced4da;
    --bp-gray-500: #adb5bd;
    --bp-gray-600: #6c757d;
    --bp-gray-700: #495057;
    --bp-gray-800: #343a40;
    --bp-dark: #212529;
    
    /* Typography */
    --bp-font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bp-font-secondary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes */
    --bp-text-xs: 0.75rem;
    --bp-text-sm: 0.875rem;
    --bp-text-base: 1rem;
    --bp-text-lg: 1.125rem;
    --bp-text-xl: 1.25rem;
    --bp-text-2xl: 1.5rem;
    --bp-text-3xl: 1.875rem;
    --bp-text-4xl: 2.25rem;
    --bp-text-5xl: 3rem;
    --bp-text-6xl: 3.75rem;
    
    /* Spacing */
    --bp-space-1: 0.25rem;
    --bp-space-2: 0.5rem;
    --bp-space-3: 0.75rem;
    --bp-space-4: 1rem;
    --bp-space-5: 1.25rem;
    --bp-space-6: 1.5rem;
    --bp-space-8: 2rem;
    --bp-space-10: 2.5rem;
    --bp-space-12: 3rem;
    --bp-space-16: 4rem;
    --bp-space-20: 5rem;
    --bp-space-24: 6rem;
    
    /* Border Radius */
    --bp-radius-sm: 0.25rem;
    --bp-radius: 0.5rem;
    --bp-radius-lg: 0.75rem;
    --bp-radius-xl: 1rem;
    --bp-radius-2xl: 1.5rem;
    --bp-radius-full: 9999px;
    
    /* Shadows */
    --bp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bp-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --bp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --bp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --bp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --bp-transition-fast: 150ms ease;
    --bp-transition: 300ms ease;
    --bp-transition-slow: 500ms ease;
    
    /* Container */
    --bp-container-max: 1280px;
    --bp-container-padding: 1.5rem;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--bp-font-secondary);
    font-size: var(--bp-text-base);
    line-height: 1.6;
    color: var(--bp-gray-700);
    background-color: var(--bp-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bp-font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--bp-primary);
    margin-bottom: var(--bp-space-4);
}

h1 { font-size: var(--bp-text-5xl); }
h2 { font-size: var(--bp-text-4xl); }
h3 { font-size: var(--bp-text-3xl); }
h4 { font-size: var(--bp-text-2xl); }
h5 { font-size: var(--bp-text-xl); }
h6 { font-size: var(--bp-text-lg); }

p {
    margin-bottom: var(--bp-space-4);
}

a {
    color: var(--bp-secondary);
    text-decoration: none;
    transition: color var(--bp-transition-fast);
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
.bp-container {
    width: 100%;
    max-width: var(--bp-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bp-container-padding);
    padding-right: var(--bp-container-padding);
}

.bp-header .bp-container {
    max-width: 100%;
}

.bp-header__cta .bp-btn {
    padding: var(--bp-space-2) var(--bp-space-4);
    font-size: var(--bp-text-sm);
}

.bp-section {
    padding-top: var(--bp-space-20);
    padding-bottom: var(--bp-space-20);
    position: relative;
}

.bp-section--sm {
    padding-top: var(--bp-space-12);
    padding-bottom: var(--bp-space-12);
}

.bp-section--lg {
    padding-top: var(--bp-space-24);
    padding-bottom: var(--bp-space-24);
}

/* Section with top wave decoration */
.bp-section--wave::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 C360,60 1080,0 1440,30 L1440,0 L0,0 Z' fill='%23f8fafc'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
}

/* Section with decorative corner */
.bp-section--corner::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 40px;
    width: 100px;
    height: 100px;
    border: 3px solid var(--bp-secondary);
    border-radius: var(--bp-radius-xl);
    opacity: 0.1;
    pointer-events: none;
}

.bp-section--gray {
    background-color: var(--bp-gray-100);
}

.bp-section--dark {
    background-color: var(--bp-primary);
    color: var(--bp-white);
}

.bp-section--dark h1,
.bp-section--dark h2,
.bp-section--dark h3,
.bp-section--dark h4,
.bp-section--dark h5,
.bp-section--dark h6 {
    color: var(--bp-white);
}

/* Grid System */
.bp-grid {
    display: grid;
    gap: var(--bp-space-6);
}

.bp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.bp-grid--6 { grid-template-columns: repeat(6, 1fr); }

/* Flex Utilities */
.bp-flex {
    display: flex;
}

.bp-flex--center {
    align-items: center;
    justify-content: center;
}

.bp-flex--between {
    justify-content: space-between;
}

.bp-flex--wrap {
    flex-wrap: wrap;
}

.bp-flex--col {
    flex-direction: column;
}

.bp-gap-2 { gap: var(--bp-space-2); }
.bp-gap-4 { gap: var(--bp-space-4); }
.bp-gap-6 { gap: var(--bp-space-6); }
.bp-gap-8 { gap: var(--bp-space-8); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bp-space-2);
    padding: var(--bp-space-3) var(--bp-space-6);
    font-family: var(--bp-font-primary);
    font-size: var(--bp-text-base);
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--bp-radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.bp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.bp-btn:hover::before {
    left: 100%;
}

.bp-btn--primary {
    background: linear-gradient(135deg, var(--bp-teal), var(--bp-orange));
    color: var(--bp-white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.bp-btn--primary:hover {
    background: linear-gradient(135deg, var(--bp-teal-dark), var(--bp-orange-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
    color: var(--bp-white);
}

.bp-btn--secondary {
    background-color: transparent;
    color: var(--bp-white);
    border-color: var(--bp-white);
}

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

.bp-btn--outline {
    background-color: transparent;
    color: var(--bp-secondary);
    border-color: var(--bp-secondary);
}

.bp-btn--outline:hover {
    background-color: var(--bp-secondary);
    color: var(--bp-white);
}

.bp-btn--accent {
    background: linear-gradient(135deg, var(--bp-teal), var(--bp-orange));
    color: var(--bp-white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    font-weight: 600;
}

.bp-btn--accent:hover {
    background: linear-gradient(135deg, var(--bp-orange), var(--bp-teal));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
    color: var(--bp-white);
}

.bp-btn--lg {
    padding: var(--bp-space-4) var(--bp-space-8);
    font-size: var(--bp-text-lg);
}

.bp-btn--sm {
    padding: var(--bp-space-2) var(--bp-space-4);
    font-size: var(--bp-text-sm);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.bp-card {
    background-color: var(--bp-white);
    border-radius: var(--bp-radius-xl);
    padding: var(--bp-space-8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bp-secondary), var(--bp-secondary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.bp-card:hover {
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.12);
    transform: translateY(-8px);
}

.bp-card:hover::before {
    transform: scaleX(1);
}

.bp-card--bordered {
    border: 1px solid var(--bp-gray-200);
    box-shadow: none;
}

.bp-card--bordered:hover {
    border-color: var(--bp-secondary-light);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.12);
}

.bp-card__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bp-secondary-light), var(--bp-secondary));
    border-radius: var(--bp-radius-xl);
    margin-bottom: var(--bp-space-5);
    color: var(--bp-white);
    font-size: var(--bp-text-2xl);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
    transition: all 0.4s ease;
    position: relative;
}

.bp-card:hover .bp-card__icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.35);
}

.bp-card__title {
    font-size: var(--bp-text-xl);
    font-weight: 600;
    margin-bottom: var(--bp-space-2);
}

.bp-card__text {
    color: var(--bp-gray-600);
    font-size: var(--bp-text-sm);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.bp-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--bp-space-12);
    position: relative;
}

.bp-section-header__subtitle {
    display: inline-flex;
    align-items: center;
    gap: var(--bp-space-3);
    font-size: var(--bp-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--bp-secondary);
    margin-bottom: var(--bp-space-4);
    padding: var(--bp-space-2) var(--bp-space-4);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    border-radius: var(--bp-radius-full);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.bp-section-header__subtitle::before,
.bp-section-header__subtitle::after {
    content: '';
    width: 8px;
    height: 2px;
    background: var(--bp-secondary);
    border-radius: 1px;
}

.bp-section-header__title {
    font-size: var(--bp-text-4xl);
    margin-bottom: var(--bp-space-4);
    position: relative;
    display: block;
    width: 100%;
}

.bp-section-header__title::after {
    content: '';
    display: block;
    margin: 10px auto 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--bp-secondary), var(--bp-accent));
    border-radius: 2px;
}

.bp-section-header__desc {
    color: var(--bp-gray-600);
    font-size: var(--bp-text-lg);
    margin-bottom: 0;
    margin-top: var(--bp-space-4);
}

/* Left aligned variant */
.bp-section-header--left {
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
}

.bp-section-header--left .bp-section-header__title::after {
    margin-left: 0;
    margin-right: auto;
}

/* ==========================================================================
   WordPress Required Styles
   ========================================================================== */
.wp-caption {
    max-width: 100%;
    margin-bottom: var(--bp-space-4);
}

.wp-caption img {
    border-radius: var(--bp-radius);
}

.wp-caption-text {
    font-size: var(--bp-text-sm);
    color: var(--bp-gray-600);
    margin-top: var(--bp-space-2);
    text-align: center;
}

.alignnone,
.aligncenter,
.alignleft,
.alignright {
    margin-bottom: var(--bp-space-4);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: var(--bp-space-4);
}

.alignright {
    float: right;
    margin-left: var(--bp-space-4);
}

.sticky,
.gallery-caption,
.bypostauthor {
    /* Required by WordPress theme check */
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --bp-text-5xl: 2.5rem;
        --bp-text-4xl: 2rem;
        --bp-text-3xl: 1.5rem;
    }
    
    .bp-section {
        padding-top: var(--bp-space-16);
        padding-bottom: var(--bp-space-16);
    }
}

@media (max-width: 768px) {
    :root {
        --bp-text-5xl: 2rem;
        --bp-text-4xl: 1.75rem;
        --bp-text-3xl: 1.375rem;
        --bp-container-padding: 1rem;
    }
    
    .bp-section {
        padding-top: var(--bp-space-12);
        padding-bottom: var(--bp-space-12);
    }
    
    .bp-grid--2,
    .bp-grid--3,
    .bp-grid--4 {
        grid-template-columns: 1fr;
    }
    
    .bp-grid--6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    :root {
        --bp-text-5xl: 1.75rem;
        --bp-text-4xl: 1.5rem;
    }
    
    .bp-grid--6 {
        grid-template-columns: 1fr;
    }
}

