/* ==========================================================================
   KRISH ENTERPRISES - General Merchandise
   ========================================================================== */

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

:root {
    /* Colors */
    --primary-color: #0B1F3A; /* Deep Navy */
    --secondary-color: #F8F7F3; /* Warm White */
    --accent-color: #F28C28; /* Orange */
    --supporting-color: #667085; /* Slate Grey */
    --dark-color: #101828;
    --text-color: #333333;
    --light-border: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'DM Sans', sans-serif;

    /* Spacing & Layout */
    --section-padding: 100px 0;
    --border-radius: 12px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

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

a:hover {
    color: var(--accent-color);
}

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

.section-padding {
    padding: var(--section-padding);
}

.bg-navy { background-color: var(--primary-color); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy p { color: #fff; }
.bg-light-warm { background-color: var(--secondary-color); }
.bg-dark { background-color: var(--dark-color) !important; color: #fff; }
.text-accent { color: var(--accent-color); }
.text-navy { color: var(--primary-color); }
.text-slate { color: var(--supporting-color); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-custom {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-fast);
    text-transform: uppercase;
    border: 2px solid transparent;
}

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

.btn-outline-custom {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 20px 0;
    background: transparent;
}
header.scrolled {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.1;
    color: var(--primary-color) !important;
    display: flex;
    flex-direction: column;
}
.navbar-brand span { 
    font-size: 0.85rem; 
    font-weight: 700; 
    letter-spacing: 3px; 
    color: var(--accent-color);
}

header:not(.scrolled) .nav-link { color: #fff; }
header.scrolled .nav-link { color: var(--primary-color); }
header:not(.scrolled) .navbar-brand { color: #fff !important; }

.nav-link {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    overflow: hidden;
    padding-top: 100px; /* Account for fixed header */
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(242, 140, 40, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.hero-content h1 {
    color: #fff;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-visual img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-labels {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(242, 140, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(242, 140, 40, 0.3);
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-container {
    background-color: var(--dark-color);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    color: var(--secondary-color);
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.marquee-content span {
    margin: 0 40px;
}
.marquee-content span::after {
    content: '•';
    color: var(--accent-color);
    margin-left: 80px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Cards & Layouts
   ========================================================================== */
.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-slow);
    height: 100%;
    border: 1px solid var(--light-border);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}
.feature-card .number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(11, 31, 58, 0.05);
    position: absolute;
    top: 20px;
    right: 30px;
    transition: var(--transition-fast);
}
.feature-card:hover .number {
    color: var(--accent-color);
    opacity: 0.2;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-slow);
}
.product-card:hover {
    transform: translateY(-10px);
}
.product-img {
    height: 250px;
    background: #eee;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-body {
    padding: 30px;
}
.product-category {
    font-family: var(--font-accent);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-step {
    text-align: center;
    position: relative;
    padding: 0 20px;
}
.process-step .step-num {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: var(--font-heading);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-control {
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--light-border);
    background-color: #fff;
    font-family: var(--font-body);
}
.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}
label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 80px 0 40px;
}
.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.loader-text {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}
.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent-color);
    animation: progress 1.5s ease forwards;
}
@keyframes progress {
    100% { width: 100%; }
}
.loader-icon {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    margin-top: 30px;
    animation: rotate 2s linear infinite;
}
@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Mobile Sticky CTA
   ========================================================================== */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    transform: translateY(100%);
    transition: var(--transition-fast);
}
.mobile-cta.visible {
    transform: translateY(0);
}
.mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    font-family: var(--font-accent);
    font-size: 0.9rem;
}
.mobile-cta .btn-call {
    background: var(--primary-color);
    color: #fff;
}
.mobile-cta .btn-enquiry {
    background: var(--accent-color);
    color: #fff;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
