/*
Theme Name: SRGE B2B Industrial Theme
Theme URI: https://github.com/inamannkk-code/srge
Description: Premium Custom Theme for Shree Radha Govind Electricals (SRGE) B2B catalog. Implements logo-derived HSL colors, responsive product matrices, dynamic brand showcases, and smooth CSS micro-animations.
Version: 1.0.0
Author: Antigravity
Author URI: https://github.com/inamannkk-code
Text Domain: srge-theme
*/

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

:root {
    --color-primary: #1E3A8A;
    --color-primary-light: #2B3990;
    --color-accent: #DC2626;
    --color-accent-dark: #B91C1C;
    --color-neutral-dark: #1E293B;
    --color-neutral-light: #F8FAFC;
    --color-border: #E2E8F0;
    --color-border-dark: #CBD5E1;
    --color-text-gray: #64748B;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-neutral-light);
    color: var(--color-neutral-dark);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 24px;
}

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

@media (max-width: 1024px) {
    .grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-4 { grid-template-columns: 1fr; }
    .grid-cols-3 { grid-template-columns: 1fr; }
    .grid-cols-2 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

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

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

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-border-dark);
    color: var(--color-neutral-dark);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: var(--color-neutral-dark);
}

/* Section Header styling */
.section-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 64px auto;
}

.section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-divider {
    height: 3px;
    width: 80px;
    background-color: var(--color-accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* 1. Header Layout */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.header-nav {
    display: flex;
    gap: 32px;
    list-style: none;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-nav a {
    color: var(--color-neutral-dark);
}

.header-nav a:hover,
.header-nav .current-menu-item a {
    color: var(--color-accent);
}

/* 2. Hero Carousel (Simple WP CSS Slideshow) */
.hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #000;
}

@media (max-width: 768px) {
    .hero-slider { height: 400px; }
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
    display: flex;
    align-items: center;
    z-index: 2;
}

.slide-content {
    max-width: 640px;
    color: #fff;
}

.slide-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}

.slide-subtitle {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 32px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .slide-title { font-size: 28px; }
}

/* 3. Marquee Client Slider */
.marquee-container {
    background-color: #fff;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.marquee-title {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-text-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
    gap: 48px;
}

.marquee-item {
    background: var(--color-neutral-light);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    color: var(--color-primary);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 4. Pillars & Credentials */
.credentials-section {
    background-color: var(--color-primary);
    color: #fff;
    padding: 40px 0;
}

.credential-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credential-icon {
    background-color: var(--color-accent);
    color: #fff;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.credential-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.credential-desc {
    font-size: 11px;
    color: #cbd5e1;
}

/* 5. Product Categories & Catalog */
.category-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.category-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-img {
    height: 180px;
    background-color: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-body {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--color-primary);
}

.category-card:hover .category-body {
    color: var(--color-accent);
}

/* 6. Product Showcase Grid */
.product-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    z-index: 10;
}

.product-badge.diamond { background-color: var(--color-accent); }
.product-badge.sh { background-color: #b45309; } /* Amber-700 */

.product-thumbnail {
    height: 200px;
    background-color: #f1f5f9;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-excerpt {
    font-size: 12px;
    color: var(--color-text-gray);
    margin-bottom: 16px;
    font-weight: 300;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}

.product-tag {
    font-size: 9px;
    background-color: var(--color-neutral-light);
    border: 1px solid var(--color-border);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-neutral-dark);
}

/* 7. Proprietary Brands Grid (Premium Design) */
.brand-showcase-section {
    padding: 80px 0;
    background-color: #fff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.brand-card {
    background-color: var(--color-neutral-light);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.brand-card:hover {
    box-shadow: var(--shadow-md);
}

.brand-border-top {
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
}

.brand-card.diamond-brand .brand-border-top { background-color: var(--color-accent); }
.brand-card.sh-brand .brand-border-top { background-color: #b45309; }

.brand-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.brand-logo-badge {
    height: 48px;
    width: auto;
    object-fit: contain;
    background: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.brand-type-tag {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.brand-card.diamond-brand .brand-type-tag { background-color: var(--color-accent); }
.brand-card.sh-brand .brand-type-tag { background-color: #b45309; }

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.brand-desc {
    font-size: 13px;
    color: var(--color-text-gray);
    margin-bottom: 24px;
    font-weight: 300;
}

.brand-bullets-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-neutral-dark);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.brand-bullets {
    list-style: none;
    margin-bottom: 24px;
}

.brand-bullets li {
    font-size: 12px;
    color: var(--color-text-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 300;
}

.brand-bullets li span.tick {
    font-weight: 700;
    flex-shrink: 0;
}

.brand-card.diamond-brand .brand-bullets li span.tick { color: var(--color-accent); }
.brand-card.sh-brand .brand-bullets li span.tick { color: #b45309; }

.brand-categories-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-neutral-dark);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.brand-categories-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.brand-category-pill {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-primary);
    background-color: #fff;
    border: 1px solid var(--color-border);
    padding: 4px 8px;
    border-radius: 4px;
}

.brand-tagline-block {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.brand-card.diamond-brand .brand-tagline-block { color: var(--color-accent-dark); }
.brand-card.sh-brand .brand-tagline-block { color: #92400e; }

.brand-tagline-label {
    display: block;
    font-size: 8px;
    font-weight: 700;
    color: var(--color-text-gray);
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* 8. B2B Directories & Trust Seals */
.b2b-directories-section {
    padding: 64px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
}

.directory-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.directory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
}

.directory-card.indiamart::before { background-color: #097b6a; }
.directory-card.tradeindia::before { background-color: #ff5a00; }

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.directory-name {
    font-size: 20px;
    font-weight: 800;
}

.directory-card.indiamart .directory-name { color: #097b6a; }
.directory-card.tradeindia .directory-name { color: var(--color-primary); }

.directory-seal {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.directory-card.indiamart .directory-seal { background-color: #097b6a; }
.directory-card.tradeindia .directory-seal { background-color: #ff5a00; }

.directory-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-neutral-dark);
    margin-bottom: 8px;
}

.directory-body p {
    font-size: 11px;
    color: var(--color-text-gray);
    line-height: 1.5;
}

.directory-link {
    margin-top: 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.directory-card.indiamart .directory-link { color: #097b6a; }
.directory-card.tradeindia .directory-link { color: #ff5a00; }

/* 9. Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--color-neutral-light);
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-rating {
    color: #f59e0b;
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 12px;
    color: var(--color-text-gray);
    italic: oblique;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.testimonial-author {
    font-weight: 700;
    font-size: 12px;
    color: var(--color-primary);
}

.testimonial-company {
    font-size: 10px;
    color: var(--color-text-gray);
}

/* 10. Footer Styling */
.site-footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: 64px 0 24px 0;
    font-size: 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-widget h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 32px;
    background-color: var(--color-accent);
}

.footer-logo-box {
    background-color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo-box img {
    height: 36px;
    width: auto;
}

.footer-desc {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.footer-contact-icon {
    color: var(--color-accent);
    font-size: 14px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 11px;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* 11. Modal Inquiry Dialog */
.inquiry-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 10000;
}

.inquiry-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.inquiry-modal-box {
    background-color: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.inquiry-modal.open .inquiry-modal-box {
    transform: translateY(0);
}

.inquiry-modal-header {
    background-color: var(--color-primary);
    color: #fff;
    padding: 20px 24px;
}

.inquiry-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.inquiry-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.inquiry-modal-body {
    padding: 24px;
}

.inquiry-form-group {
    margin-bottom: 16px;
}

.inquiry-form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-neutral-dark);
}

.inquiry-form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border-dark);
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.inquiry-form-input:focus {
    border-color: var(--color-primary);
}

.inquiry-submit-btn {
    width: 100%;
    padding: 12px;
}

/* WhatsApp Floating Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.whatsapp-button {
    background-color: #25d366;
    color: #fff;
    height: 56px;
    width: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    font-size: 24px;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Division Page Cards */
.division-header-box {
    padding: 40px;
    color: #fff;
    background-color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.division-header-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 160px;
    opacity: 0.15;
    pointer-events: none;
}
