/* ============================================
   VAIBHAV TRADERS B2B THEME — Main Stylesheet
   Brand Colors: Deep Red #C0392B | Charcoal #2C2C2C | White #FFFFFF
   Tagline: "You build... We care..."
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    /* === VAIBHAV TRADERS BRAND PALETTE === */
    --primary:        #C0392B;   /* Logo red */
    --primary-dark:   #96281B;   /* Deep red */
    --primary-light:  #E74C3C;   /* Bright red */
    --primary-faint:  #fdf2f2;   /* Red tint bg */

    --charcoal:       #2C2C2C;   /* Logo dark text */
    --charcoal-light: #4A4A4A;
    --charcoal-faint: #f5f5f5;

    --accent:         #C0392B;   /* Same red as primary for consistency */
    --accent-gold:    #D4A017;   /* Construction gold accent */
    --accent-gold-dk: #B8860B;

    --success:        #27AE60;
    --danger:         #E74C3C;
    --white:          #ffffff;
    --off-white:      #fafafa;
    --light-gray:     #f2f2f2;
    --border:         #e0e0e0;
    --text:           #2C2C2C;
    --text-muted:     #666666;
    --text-light:     #999999;

    --font-head:  'Montserrat', -apple-system, sans-serif;
    --font:       'Open Sans', -apple-system, sans-serif;
    --radius:     8px;
    --radius-lg:  14px;
    --shadow:     0 1px 4px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:  0 10px 40px rgba(0,0,0,0.14);
    --shadow-red: 0 8px 24px rgba(192,57,43,0.25);
    --transition: all 0.22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: none; }
ul { list-style: none; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ==============================
   HEADER
   ============================== */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

/* Header Top Bar */
.header-top { background: var(--charcoal); padding: 8px 0; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }
.header-contact-info { display: flex; gap: 24px; }
.header-contact-item { color: rgba(255,255,255,0.8); font-size: 13px; display: flex; align-items: center; gap: 6px; font-family: var(--font); }
.header-contact-item:hover { color: var(--white); }
.header-top-right { display: flex; gap: 16px; align-items: center; }
.header-tagline { color: var(--primary-light); font-size: 12px; font-style: italic; font-weight: 600; letter-spacing: 0.5px; }
.header-user-link { color: rgba(255,255,255,0.8); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.header-user-link:hover { color: var(--white); }
.header-register-link { background: var(--primary); color: var(--white) !important; padding: 4px 14px; border-radius: 4px; font-weight: 700; }
.header-register-link:hover { background: var(--primary-dark); }

/* Header Main */
.header-main { padding: 0; background: var(--white); border-bottom: 3px solid var(--primary); }
.header-main-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

/* Logo */
.site-logo a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 56px; width: auto; object-fit: contain; }
.logo-v-mark { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-brand { font-family: var(--font-head); font-size: 20px; font-weight: 900; color: var(--charcoal); letter-spacing: 3px; }
.logo-tagline { font-size: 9px; color: var(--primary); letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; }

/* Navigation */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; gap: 2px; align-items: center; }
.nav-menu li a { padding: 8px 16px; color: var(--charcoal); font-size: 14px; font-weight: 600; font-family: var(--font-head); border-radius: 6px; transition: var(--transition); letter-spacing: 0.3px; }
.nav-menu li a:hover,
.nav-menu li.current-menu-item a { background: var(--primary-faint); color: var(--primary); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-enquire { background: var(--primary); color: var(--white); padding: 10px 22px; border-radius: var(--radius); font-weight: 700; font-size: 14px; font-family: var(--font-head); border: none; cursor: pointer; transition: var(--transition); white-space: nowrap; letter-spacing: 0.5px; }
.btn-enquire:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-red); }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-toggle span { width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: var(--transition); }

/* ==============================
   HERO SECTION
   ============================== */
.hero-section {
    background: linear-gradient(135deg, #1a0a09 0%, #2C2C2C 40%, #3d1c19 100%);
    padding: 90px 0;
    overflow: hidden;
    position: relative;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(192,57,43,0.04) 0px, rgba(192,57,43,0.04) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(-45deg, rgba(192,57,43,0.04) 0px, rgba(192,57,43,0.04) 1px, transparent 1px, transparent 60px);
    pointer-events: none;
}
.hero-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
    display: inline-block;
    background: rgba(192,57,43,0.15);
    border: 1px solid rgba(192,57,43,0.4);
    color: #f5a99f;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    font-family: var(--font-head);
}
.hero-title { font-family: var(--font-head); font-size: 46px; font-weight: 900; color: var(--white); line-height: 1.12; margin-bottom: 20px; letter-spacing: -0.5px; }
.hero-highlight { color: var(--primary-light); }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,0.72); line-height: 1.75; margin-bottom: 34px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 44px; flex-wrap: wrap; }
.btn-primary-hero { background: var(--primary); color: var(--white); padding: 14px 30px; border-radius: var(--radius); font-weight: 800; font-size: 15px; font-family: var(--font-head); transition: var(--transition); letter-spacing: 0.5px; }
.btn-primary-hero:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn-outline-hero { background: transparent; color: var(--white); padding: 14px 30px; border-radius: var(--radius); font-weight: 700; font-size: 15px; font-family: var(--font-head); border: 2px solid rgba(255,255,255,0.35); transition: var(--transition); }
.btn-outline-hero:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); color: var(--white); }

.hero-stats { display: flex; gap: 0; align-items: center; }
.hero-stat { text-align: center; padding: 0 28px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }
.hero-stat-num { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 900; color: var(--white); }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }

.hero-image-area { position: relative; }
.hero-visual { background: rgba(255,255,255,0.05); border: 1px solid rgba(192,57,43,0.3); border-radius: var(--radius-lg); overflow: hidden; backdrop-filter: blur(8px); padding: 24px; }
.hero-card-float { position: absolute; background: var(--white); border-radius: 12px; padding: 12px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); font-size: 13px; font-family: var(--font); z-index: 2; }
.hero-card-float strong { color: var(--charcoal); font-weight: 700; }
.hero-card-float small { color: var(--text-muted); }
.hero-card-1 { top: 16px; left: -24px; }
.hero-card-2 { bottom: 16px; right: -24px; }
.hc-icon { font-size: 26px; }

/* ==============================
   SECTIONS COMMON
   ============================== */
/* Scoped to theme homepage sections only — NOT a global section reset
   (prevents WooCommerce shop/product pages from getting extra padding) */
.hero-section,
.categories-section,
.featured-products-section,
.how-it-works-section,
.trust-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--charcoal); margin-bottom: 12px; letter-spacing: -0.3px; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--primary); margin: 12px auto 0; border-radius: 2px; }
.section-subtitle { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.section-link { color: var(--primary); font-weight: 700; font-size: 14px; font-family: var(--font-head); }
.section-link:hover { color: var(--primary-dark); }

/* ==============================
   CATEGORIES
   ============================== */
.categories-section { background: var(--charcoal-faint); }
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; transition: var(--transition); display: block; border-bottom: 3px solid transparent; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-bottom-color: var(--primary); }
.cat-icon { font-size: 38px; margin-bottom: 16px; }
.cat-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.cat-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.55; }
.cat-link { font-size: 13px; color: var(--primary); font-weight: 700; font-family: var(--font-head); }

/* ==============================
   PRODUCTS
   ============================== */
.featured-products-section .section-header { display: flex; justify-content: space-between; align-items: center; text-align: left; margin-bottom: 32px; }
.featured-products-section .section-header .section-title::after { margin: 10px 0 0; }
.featured-products-section .section-header > * { margin: 0; }
.products-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-image { position: relative; background: var(--light-gray); aspect-ratio: 4/3; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--charcoal), var(--charcoal-light)); color: var(--white); font-size: 38px; font-weight: 900; font-family: var(--font-head); }
.product-card-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: var(--white); padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; font-family: var(--font-head); }
.product-card-body { padding: 16px; }
.product-card-title a { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--charcoal); display: block; margin-bottom: 6px; }
.product-card-title a:hover { color: var(--primary); }
.product-card-excerpt { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.btn-quote-sm { background: var(--primary); color: var(--white); padding: 7px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; font-family: var(--font-head); transition: var(--transition); }
.btn-quote-sm:hover { background: var(--primary-dark); color: var(--white); }

/* ==============================
   HOW IT WORKS
   ============================== */
.how-it-works-section { background: var(--charcoal-faint); }
.steps-grid { display: flex; align-items: center; gap: 0; }
.step-card { flex: 1; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; transition: var(--transition); }
.step-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.step-num { font-family: var(--font-head); font-size: 42px; font-weight: 900; color: var(--primary); opacity: 0.18; margin-bottom: 10px; line-height: 1; }
.step-card:hover .step-num { opacity: 0.5; }
.step-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.step-arrow { font-size: 22px; color: var(--primary); padding: 0 10px; flex-shrink: 0; }

/* ==============================
   TRUST SECTION
   ============================== */
.trust-section { background: var(--charcoal); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust-item { text-align: center; }
.trust-icon { font-size: 38px; margin-bottom: 16px; }
.trust-item h4 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.trust-item p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* ==============================
   CTA SECTION
   ============================== */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 72px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.cta-section::after { content: ''; position: absolute; bottom: -80px; left: -40px; width: 300px; height: 300px; border-radius: 50%; background: rgba(0,0,0,0.12); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; position: relative; z-index: 1; }
.cta-content h2 { font-family: var(--font-head); font-size: 30px; font-weight: 900; color: var(--white); margin-bottom: 8px; }
.cta-content p { font-size: 15px; color: rgba(255,255,255,0.8); }
.cta-actions { display: flex; gap: 16px; flex-shrink: 0; }
.btn-cta-primary { background: var(--white); color: var(--primary); padding: 14px 30px; border-radius: var(--radius); font-weight: 800; font-size: 15px; font-family: var(--font-head); transition: var(--transition); }
.btn-cta-primary:hover { background: var(--off-white); color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-cta-outline { background: transparent; color: var(--white); padding: 14px 30px; border-radius: var(--radius); font-weight: 700; font-size: 15px; font-family: var(--font-head); border: 2px solid rgba(255,255,255,0.5); transition: var(--transition); }
.btn-cta-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.9); color: var(--white); }

/* ==============================
   FOOTER
   ============================== */
.site-footer { background: #1a1a1a; }
.footer-top { padding: 60px 0; border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-logo-img { height: 52px; width: auto; filter: brightness(1.1); }
.footer-tagline-quote { font-size: 13px; font-style: italic; color: var(--primary-light); font-weight: 600; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 22px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 700; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-links h4, .footer-contact h4 { font-family: var(--font-head); font-size: 13px; font-weight: 800; color: var(--white); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1.5px; padding-bottom: 10px; border-bottom: 1px solid rgba(192,57,43,0.4); }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-links li a:hover { color: var(--primary-light); padding-left: 5px; }
.footer-contact-item { margin-bottom: 14px; }
.footer-contact-item strong { display: block; font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; font-family: var(--font-head); }
.footer-contact-item a, .footer-contact-item span { font-size: 13px; color: rgba(255,255,255,0.75); }
.footer-contact-item a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom-inner p { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }

/* ==============================
   PAGE LAYOUTS
   ============================== */
.main-content { min-height: 60vh; }
.page-hero { background: var(--charcoal-faint) !important; padding: 24px 0 !important; margin-bottom: 32px !important; border-bottom: 1px solid var(--border) !important; border-top: 3px solid var(--primary) !important; }
.page-title { font-family: var(--font-head) !important; font-size: 26px !important; font-weight: 800 !important; color: var(--charcoal) !important; margin: 0 !important; padding: 0 !important; }
.page-body { padding-bottom: 60px; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 38px; }
    .products-showcase { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .header-contact-info { display: none; }
    .header-tagline { display: none; }
    .primary-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-section .container { grid-template-columns: 1fr; }
    .hero-image-area { display: none; }
    .hero-title { font-size: 32px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .cta-inner { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .products-showcase { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; }
    .products-showcase { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 0; justify-content: space-around; }
    .hero-stat { padding: 0 12px; }
}
