/* ==========================================================================
   Apox Kimya - Corporate Industrial Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables & Reset
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors - Industrial Blue */
    --color-primary: #1E4D8C;
    --color-primary-dark: #153A6B;
    --color-primary-light: #2B6CB0;
    --color-secondary: #F59E0B;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9FAFB;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   Bootstrap Override - Primary Color
   -------------------------------------------------------------------------- */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.text-primary {
    color: var(--color-primary) !important;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    box-shadow: var(--shadow-md);
}

.site-header .navbar {
    padding: 0;
}

.site-header .navbar-brand {
    padding: 0.5rem 0;
}

.site-header .nav-link {
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 1rem !important;
    text-transform: uppercase;
}

.site-header .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.site-header .dropdown-menu {
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    min-width: 250px;
}

.site-header .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .dropdown-item:hover {
    background-color: var(--color-primary-light);
}

/* Sub-dropdown for subcategories */
.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
}

.dropdown:hover>.dropdown-menu {
    display: block;
}

.dropdown-item.dropdown-toggle::after {
    margin-left: auto;
}

/* Logo */
.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Hero Slider
   -------------------------------------------------------------------------- */
.hero-slider .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    text-align: left;
    padding: 0;
}

.hero-slider .carousel-caption h1 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.hero-slider .carousel-caption .lead {
    font-size: 1.25rem;
    max-width: 500px;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 60px;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Cards & Components
   -------------------------------------------------------------------------- */
.card {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Category Sidebar
   -------------------------------------------------------------------------- */
.accordion-button:not(.collapsed) {
    background-color: var(--color-primary);
    color: #fff;
}

.accordion-button:focus {
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Page Header
   -------------------------------------------------------------------------- */
.page-header {
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: #1a1a2e;
}

.footer a:hover {
    color: var(--color-secondary) !important;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.section-spacing {
    padding: 5rem 0;
}

.text-muted {
    color: var(--color-text-light) !important;
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.btn-back-to-top.show {
    display: flex;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.whatsapp-button:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

/* Map Container */
.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-slider .carousel-caption h1 {
        font-size: 2rem;
    }

    .site-header .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .dropdown-submenu {
        position: static;
    }
}

@media (max-width: 767px) {
    .hero-slider .carousel-caption {
        background: rgba(0, 0, 0, 0.6);
    }

    .hero-slider .carousel-caption h1 {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
[data-aos] {
    transition-duration: 600ms;
}