/*
Theme Name: Express PowerSave - Professional B2B
Author: Creating Solutions
Description: Crisp, structured, editorial B2B wholesale theme with fixed CTA banner.
Version: 9.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@700;800;900&display=swap');

:root {
    /* Brand Colors */
    --primary-navy: #1b2675;      
    --primary-navy-700: #141c5c;  
    --primary-navy-900: #0e133d;
    --accent-red: #e33038;        
    --accent-red-hover: #c4262d;
    
    /* Backgrounds */
    --bg-light: #f8fafc;          
    --surface: #ffffff;
    --white: #ffffff;
    
    /* Typography */
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #cbd5e1;
    --border-color: #e2e8f0; 

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    
    --shadow-sm: 0 1px 3px rgba(27, 38, 117, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(27, 38, 117, 0.06);
    
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--primary-navy);
}

.text-red { color: var(--accent-red); }

/* --- Utility Classes for Perfect Spacing --- */
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }
.border-top { border-top: 1px solid var(--border-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 6rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* --- Header --- */
.header {
    background-color: rgba(27, 38, 117, 0.98); 
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 3rem; position: sticky; top: 0; z-index: 1000;
    backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
    border-bottom: none !important; 
}

.nav-container { display: flex; align-items: center; gap: 3rem; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; margin: 0; padding: 0; }
.nav-links li a {
    color: var(--white); text-decoration: none; font-weight: 600;
    font-size: 1.1rem;
    position: relative; padding-bottom: 4px;
    transition: color var(--transition);
}
.nav-links li a::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0;
    background-color: var(--accent-red); border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-links li a:hover::after, .nav-links li.current-menu-item a::after { width: 100%; }

/* --- Image Placeholders --- */
.img-placeholder {
    background-color: rgba(27, 38, 117, 0.05); border: 2px dashed rgba(27, 38, 117, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-navy); font-family: 'Inter', sans-serif;
    font-size: 1rem; font-weight: 600; overflow: hidden;
}
.img-placeholder span { background: rgba(255,255,255,0.9); padding: 6px 16px; border-radius: 6px; }
.logo-placeholder { width: 280px; height: 70px; border-radius: var(--radius-sm); border-color: rgba(255,255,255,0.3); }
.logo-placeholder span { background: rgba(0,0,0,0.4); color: white;}
.img-landscape { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); }
.img-portrait { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-lg); }
.img-cover { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); display: block; }

/* Image Clusters */
.image-grid-cluster { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.image-grid-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }

/* --- Buttons --- */
.btn-primary, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    padding: 1rem 2.25rem; border-radius: var(--radius-pill);
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none;
    transition: all var(--transition); cursor: pointer;
}
.btn-primary { background-color: var(--accent-red); color: var(--white); border: 2px solid var(--accent-red); }
.btn-primary:hover { background-color: var(--accent-red-hover); border-color: var(--accent-red-hover); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--primary-navy); border: 2px solid var(--primary-navy); }
.btn-outline:hover { background-color: var(--primary-navy); color: var(--white); transform: translateY(-2px); }

.btn-header {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.7rem 1.6rem; border-radius: var(--radius-pill);
    background-color: var(--accent-red); color: var(--white);
    border: none; text-decoration: none; font-weight: 700; font-size: 0.95rem;
    transition: all var(--transition); 
}
.btn-header:hover { background-color: var(--white); color: var(--accent-red); }

/* --- Section Headers --- */
.section-head, .section-head-center { 
    text-align: left; 
    margin-bottom: 4rem; 
}
.eyebrow { 
    display: block; 
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: var(--accent-red); 
    margin-bottom: 1rem; 
}
.section-head h2, .section-head-center h2 { 
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--primary-navy); 
    margin: 0 0 1rem 0;
}
.section-lead {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0;
}

/* --- Global Feature Blocks --- */
.feature-block {
    padding: 0 0 0 1.5rem;
    background: transparent;
    border-left: 3px solid var(--accent-red);
}
.feature-block h3 { margin-bottom: 0.75rem; font-size: 1.6rem; color: var(--primary-navy); }
.feature-block p { color: var(--text-muted); font-size: 1.15rem; margin: 0; line-height: 1.6; }

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.products-hero {
    position: relative; background-color: var(--primary-navy);
    background-size: cover; background-position: center;
    padding: 5rem 0 4rem;
    border-bottom: 6px solid var(--accent-red);
}
.products-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(27,38,117,0.98) 0%, rgba(27,38,117,0.85) 50%, rgba(27,38,117,0.4) 100%);
}
.hero-inner { position: relative; z-index: 2; }

.hero-tag-pill {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px; padding: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem; font-weight: 800; letter-spacing: 1.5px;
    color: var(--white); text-transform: uppercase; margin-bottom: 2rem;
}
.hero-tag-pill .dot { content: ''; display: block; width: 8px; height: 8px; background-color: var(--accent-red); border-radius: 50%; }

.products-hero h1, .hero-title { font-size: clamp(4rem, 6vw, 5.5rem); margin-bottom: 1.5rem; color: var(--white); line-height: 1.1; }
.hero-lead { font-family: 'Inter', sans-serif; color: #e2e8f0; font-size: 1.3rem; margin-bottom: 2.5rem; max-width: 700px; line-height: 1.6; font-weight: 400;}
.hero-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem;}
.btn-on-dark { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-on-dark:hover { background: var(--white); color: var(--primary-navy); }


/* --- Departments Section (Products Page) --- */
.dept-section { padding: 6rem 0; background: var(--bg-light); }
.dept-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5rem; row-gap: 3rem; }
.dept-item { display: flex; align-items: flex-start; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border-color); }
.dept-item:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
.dept-icon-plain { color: var(--accent-red); flex-shrink: 0; padding-top: 4px; }
.dept-icon-plain svg { width: 32px; height: 32px; stroke-width: 2; }
.dept-icon-img { width: 40px; height: 40px; object-fit: contain; display: block; }
.dept-content h3 { font-size: 1.6rem; color: var(--primary-navy); margin: 0; }
.dept-line { width: 40px; height: 3px; background-color: var(--accent-red); margin: 12px 0; border-radius: 2px;}
.dept-content p { color: var(--text-muted); font-size: 1.15rem; margin: 0; line-height: 1.7; }

/* --- Brands Section (Products Page) --- */
.brands-section { padding: 6rem 0; background: var(--white); border-top: 1px solid var(--border-color); }

/* PERFECTLY BALANCED CTA BANNER */
.brands-cta {
    background-color: var(--accent-red);
    border-radius: var(--radius-lg);
    padding: 2rem 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 25px -5px rgba(227, 48, 56, 0.3); /* Soft red glow */
}
.brands-cta-text {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    flex: 1; /* Forces text to take up remaining space, pushing the button to the right */
}
.btn-brands-cta {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 1rem 2.25rem;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0; /* Prevents the button from being squished by long text */
    transition: all var(--transition);
}
.btn-brands-cta:hover { background-color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.brands-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 3rem 2rem; align-items: center; justify-items: center;
}
.brand-item img { max-width: 100%; height: auto; max-height: 80px; object-fit: contain; transition: transform var(--transition); }
.brand-item img:hover { transform: scale(1.05); }

/* --- Reviews Section (Products Page) --- */
.reviews-section { background-color: var(--white); padding: 6rem 0; border-top: 1px solid var(--border-color); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.review-card { background: var(--bg-light); border-radius: 16px; padding: 2.5rem; border: 1px solid var(--border-color); position: relative; transition: transform var(--transition); }
.review-card:hover { transform: translateY(-5px); }
.review-quote-mark { position: absolute; top: 2rem; right: 2rem; color: rgba(227, 48, 56, 0.15); }
.review-quote-mark svg { width: 40px; height: 40px; fill: currentColor; stroke: none; }
.stars { display: flex; gap: 4px; color: var(--accent-red); margin-bottom: 1.5rem;}
.stars svg { width: 16px; height: 16px; }
.review-text { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-style: italic; color: var(--primary-navy); font-weight: 500; margin: 0 0 1.5rem 0; line-height: 1.6; }
.review-author { display: flex; align-items: center; gap: 10px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem; color: var(--primary-navy); }
.review-author::before { content: ""; display: block; width: 24px; height: 2px; background-color: var(--primary-navy); }

/* --- FORM PLUGIN STYLES --- */
.custom-form-container { margin-bottom: 2rem; }
.custom-form-container input[type="text"],
.custom-form-container input[type="email"],
.custom-form-container input[type="tel"],
.custom-form-container input[type="number"],
.custom-form-container textarea,
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea {
    width: 100%; padding: 1rem 1.2rem; border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 1.05rem;
    background-color: var(--bg-light); color: var(--text-dark);
    transition: border-color var(--transition), background-color var(--transition);
    margin-bottom: 1.25rem; box-sizing: border-box;
}
.custom-form-container input:focus, 
.custom-form-container textarea:focus,
.wpcf7-form-control:focus {
    outline: none; border-color: var(--accent-red); background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(227, 48, 56, 0.1);
}
.custom-form-container label, .wpcf7-form label {
    display: block; font-family: 'Inter', sans-serif; font-weight: 600;
    font-size: 1.05rem; color: var(--primary-navy); margin-bottom: 0.5rem;
}
.custom-form-container input[type="submit"], .wpcf7-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    padding: 1.2rem 2rem; border-radius: var(--radius-md); font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; background-color: var(--accent-red); color: var(--white);
    border: 2px solid var(--accent-red); width: 100%; margin-top: 0.5rem;
    box-sizing: border-box; -webkit-appearance: none;
}
.custom-form-container input[type="submit"]:hover, .wpcf7-submit:hover { background-color: var(--accent-red-hover); border-color: var(--accent-red-hover); transform: translateY(-2px); }
.contact-hours h3 { font-family: 'Merriweather', serif; font-weight: 900; }

/* --- Footer --- */
.site-footer { background-color: var(--primary-navy); color: var(--white); padding: 5rem 0 2rem; border-top: 6px solid var(--accent-red);}

/* Fixed Footer Grid to prevent text wrapping */
.footer-grid { display: grid; grid-template-columns: 2.5fr 1.2fr 2fr 1.5fr; gap: 3rem; margin-bottom: 4rem; }

.footer-grid h3 { color: var(--white); font-size: 1.4rem; text-transform: uppercase; margin-bottom: 1.5rem; letter-spacing: 1px; white-space: nowrap;}
.footer-links { list-style: none; padding: 0; margin: 0;}
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color var(--transition); font-weight: 500; font-size: 1.1rem; }
.footer-links a:hover { color: var(--white); }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { margin-bottom: 1.25rem; color: var(--text-light); font-size: 1.1rem; line-height: 1.6; }
.footer-contact-list li strong { color: var(--white); display: block; margin-bottom: 0.25rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; font-size: 0.9rem;}
.footer-contact-list a { color: #94a3b8; text-decoration: none; transition: color var(--transition); display: inline-block; word-break: break-word;}
.footer-contact-list a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; text-align: center; color: #94a3b8; font-size: 1rem; }

/* Mobile */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .footer-grid h3 { white-space: normal; }
}
@media (max-width: 900px) {
    .dept-grid { grid-template-columns: 1fr; gap: 1rem; }
    .dept-item { padding-bottom: 2rem; }
    .dept-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-color); }
    .dept-item:last-child { border-bottom: none; padding-bottom: 0; }
    .reviews-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    
    /* Cleanly stack the CTA banner on smaller screens */
    .brands-cta { 
        flex-direction: column; 
        text-align: center; 
        padding: 2.5rem 1.5rem; 
        gap: 1.5rem; 
    }
    .brands-cta-text { text-align: center; }

    .brands-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
@media (max-width: 600px) {
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .brands-cta-text { font-size: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}