/* ==========================================================
   Zooba Foods - Premium Global Export Design System
   Domain: zoobafoods.in
   Mobile-First, Responsive & Stitch-Aligned
   ========================================================== */

:root {
    --color-navy: #0A2540;
    --color-navy-dark: #061626;
    --color-navy-light: #103254;
    --color-primary: #0D3B66;
    --color-primary-hover: #072746;
    --color-accent: #D4AF37;
    --color-accent-hover: #B89320;
    --color-gold: #F59E0B;
    --color-spice: #E65100;
    --color-slate: #F8FAFC;
    --color-slate-dark: #E2E8F0;
    --color-text-dark: #0F172A;
    --color-text-muted: #64748B;
    --color-white: #FFFFFF;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 10px 25px rgba(10, 37, 64, 0.12);
    --shadow-2xl: 0 25px 50px -12px rgba(10, 37, 64, 0.25);
    
    --transition-fast: all 0.2s ease-in-out;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Utility Classes */
.bg-navy { background-color: var(--color-navy) !important; }
.bg-navy-dark { background-color: var(--color-navy-dark) !important; }
.bg-navy-light { background-color: var(--color-navy-light) !important; }
.bg-slate { background-color: var(--color-slate) !important; }
.bg-accent { background-color: var(--color-accent) !important; }
.bg-accent-subtle { background-color: rgba(212, 175, 55, 0.15) !important; }
.text-navy { color: var(--color-navy) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-slate { color: #94A3B8 !important; }
.text-white-90 { color: rgba(255, 255, 255, 0.9) !important; }

.font-xs { font-size: 0.75rem !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.max-w-700 { max-width: 700px; }
.max-w-900 { max-width: 900px; }
.cursor-pointer { cursor: pointer; }

/* Custom Buttons */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    transition: var(--transition-normal);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-white);
}

.btn-navy {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
    font-family: var(--font-heading);
    transition: var(--transition-normal);
}
.btn-navy:hover {
    background-color: var(--color-navy-dark);
    border-color: var(--color-navy-dark);
    color: var(--color-white);
}

.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-navy);
    font-family: var(--font-heading);
    transition: var(--transition-normal);
}
.btn-accent:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-navy);
}

.btn-accent-outline {
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-navy);
}
.btn-accent-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-navy);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition-normal);
}
.btn-whatsapp:hover {
    background-color: #1EBE5D;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Hover Lift Animation */
.hover-lift {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

/* Header & Dropdowns */
.main-header {
    z-index: 1020;
    transition: var(--transition-normal);
}
.active-nav {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--color-accent);
}
.nav-link {
    transition: color 0.15s ease-in-out;
}
.hover-primary:hover {
    color: var(--color-primary) !important;
}

.animate-dropdown {
    animation: fadeInDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.15) !important;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    transition: background-color 0.15s ease, padding-left 0.15s ease;
}
.dropdown-item:hover {
    background-color: #F1F5F9;
    padding-left: 1.25rem;
    color: var(--color-primary);
}

/* Hero Section */
.hero-section {
    min-height: 580px;
    background: radial-gradient(circle at 80% 20%, rgba(13, 59, 102, 0.85) 0%, rgba(10, 37, 64, 0.98) 100%),
                url('/assets/images/hero_shipping.jpg') center/cover no-repeat,
                #0A2540;
}
.hero-overlay {
    background: linear-gradient(135deg, rgba(10,37,64,0.92) 0%, rgba(6,22,38,0.96) 100%);
}
.hero-form-card {
    border-top: 4px solid var(--color-accent) !important;
}

/* Product Cards */
.product-card {
    border-color: var(--color-slate-dark) !important;
    transition: var(--transition-normal);
}
.product-card img {
    transition: transform 0.4s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Section */
.footer-section {
    border-top: 3px solid var(--color-accent);
}
.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    display: block;
    padding: 3px 0;
    transition: color 0.15s ease;
}
.footer-links a:hover {
    color: var(--color-white);
    padding-left: 4px;
}
.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}
.social-icon-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-navy);
}

/* Floating Mobile Quick Actions */
.floating-mobile-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
    display: flex;
    align-items: center;
}

/* Mobile Offcanvas Drawer */
.mobile-nav-drawer {
    box-shadow: -10px 0 30px rgba(10, 37, 64, 0.35) !important;
}
.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: #ffffff;
    border-radius: 10px;
    color: var(--color-navy);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-fast);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: #f1f5f9;
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateX(2px);
}
.mobile-subnav-box {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid var(--color-accent);
}
.mobile-subnav-link {
    display: block;
    padding: 7px 10px;
    font-size: 0.8rem;
    color: #475569;
    text-decoration: none;
    transition: var(--transition-fast);
}
.mobile-subnav-link:hover {
    color: var(--color-primary);
    padding-left: 14px;
}

/* Mobile Bottom Fixed Dock Bar */
.mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1045;
    background: rgba(10, 37, 64, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}
.dock-container {
    width: 100%;
}
.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.dock-item .dock-icon {
    font-size: 18px;
    margin-bottom: 2px;
}
.dock-item:hover, .dock-item.active {
    color: var(--color-accent) !important;
}
.dock-center-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: -18px;
}
.dock-rfq-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);
    color: #0A2540;
    border: 3px solid #0A2540;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5) !important;
    animation: pulseRfq 2.5s infinite;
}
@keyframes pulseRfq {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
    70% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .main-header {
        position: static !important; /* Non-sticky & non-floating on mobile */
        top: auto !important;
        box-shadow: none !important;
        border-bottom: 1px solid #E2E8F0 !important;
    }
    body {
        padding-bottom: 68px; /* Smooth spacing for bottom dock bar */
    }
    .main-header .navbar-collapse {
        display: none !important;
    }
    .zooba-chat-widget .chat-launcher-btn {
        display: none !important; /* Integrated cleanly inside bottom dock on mobile */
    }
    .zooba-chat-widget .chat-window {
        position: fixed;
        bottom: 70px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
    }
}
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
    .display-4 {
        font-size: 2.25rem !important;
    }
    .display-5 {
        font-size: 1.85rem !important;
    }
    .display-6 {
        font-size: 1.5rem !important;
    }
}
