/* 
   -------------------------------------------------------------------------
   Theme Name: Flexbox - Premium Printing Services
   Description: Redesigned professional UI based on Printmine & Vaishali Ads style.
   Version: 2.0
   -------------------------------------------------------------------------
*/

/* =========================================================================
   1. VARIABLES & RESET
   ========================================================================= */
:root {
    --primary-color: #002D62;
    /* Deep Royal Blue */
    --primary-dark: #001f44;
    --accent-color: #D32F2F;
    /* Strong Red for crucial CTAs if needed, otherwise maintain deep blue focus */
    --secondary-bg: #F8F9FA;
    /* Soft Grey */
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --white-color: #ffffff;
    --border-color: #E5E7EB;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);

    --border-radius: 12px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =========================================================================
   2. GLOBAL COMPONENTS & UTILITIES
   ========================================================================= */
.section-padding {
    padding: 100px 0;
}

.bg-soft {
    background-color: var(--secondary-bg);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

/* Custom Buttons */
.btn-custom {
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.2);
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 45, 98, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* =========================================================================
   3. HEADER & MEGA MENU
   ========================================================================= */
.site-header {
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.03em;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 12px;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Mega Menu placeholder style for standard dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 15px;
}

.dropdown-item {
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 6px;
}

.dropdown-item:hover {
    background-color: var(--secondary-bg);
    color: var(--primary-color);
}

/* =========================================================================
   4. HERO SECTION
   ========================================================================= */
.hero-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 100%);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-image-collage {
    position: relative;
}

.hero-img-main {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-img-main:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* =========================================================================
   5. CATEGORY & PRODUCT CARDS
   ========================================================================= */
/* Shop By Category */
.category-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* Updated for Real Images */
.category-img-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Fallback Icon Style (if kept) */
.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.category-card h5 {
    font-weight: 700;
    margin-bottom: 0;
}

/* Product Cards Grid */
.product-card {
    background: var(--white-color);
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-img-container {
    height: 240px;
    background-color: #f0f2f5;
    position: relative;
    overflow: hidden;
}

.product-img-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-container img {
    transform: scale(1.05);
}

.card-category-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-short-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-card-cta {
    width: 100%;
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card:hover .btn-card-cta {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* =========================================================================
   6. STEPS (HOW IT WORKS)
   ========================================================================= */
.step-card {
    position: relative;
    padding: 40px 30px;
    background: var(--white-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s ease;
    z-index: 1;
}

.step-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 45, 98, 0.05);
    /* Very subtle primary color */
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    z-index: -1;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* =========================================================================
   7. FOOTER
   ========================================================================= */
.site-footer {
    background-color: #0d121c;
    /* Very dark blue almost black */
    color: #a0a6b5;
    padding: 80px 0 30px;
}

.footer-widget h4 {
    color: var(--white-color);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #a0a6b5;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

/* =========================================================================
   8. RESPONSIVE UTILITIES
   ========================================================================= */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 50px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}