/* ========================================
   MIPO Azerbaijan - Style
   Color Palette based on mipo.com.cn
   Primary: #F26522 (Orange)
   ======================================== */

:root {
    --primary: #F26522;
    --primary-dark: #D4541A;
    --primary-light: #FF8A50;
    --dark: #1a1a1a;
    --gray-900: #2d2d2d;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-300: #cccccc;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

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

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

.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-text sup {
    font-size: 10px;
    vertical-align: super;
}

.logo-divider {
    width: 1px;
    height: 28px;
    background: var(--gray-300);
}

.logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    border: none;
    background: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    color: var(--gray-500);
    font-family: var(--font);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section - Split Layout
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 72px;
}

.hero-split {
    display: flex;
    min-height: calc(100vh - 72px);
}

.hero-left {
    flex: 0 0 45%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.hero-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero-left-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.25);
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-brand {
    display: block;
    font-size: 72px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-brand sup {
    font-size: 18px;
}

.hero-slogan {
    display: block;
    font-size: 20px;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1.5px;
    font-style: italic;
}

.hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

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

.hero-slide.active {
    opacity: 1;
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: var(--white);
    border-color: var(--white);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: var(--font);
}

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

.btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   Section Common
   ======================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--gray-100);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.about-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.about-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.about-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    padding: 24px 24px 0;
}

.about-card p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
    padding: 0 24px 24px;
}

/* ========================================
   Products Section
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(242, 101, 34, 0.12);
}

.product-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.product-info {
    padding: 24px;
    flex: 1;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-info p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ========================================
   Why MIPO Section
   ======================================== */
.why-mipo {
    background: var(--gray-100);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.why-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-100);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}

.why-card:hover .why-number {
    color: #FFF3ED;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.why-card p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
    position: relative;
}

/* ========================================
   Certificates Section
   ======================================== */

/* Distributor Certificate */
.dist-certificate {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 2px solid var(--gray-100);
}

.dist-cert-img {
    flex: 0 0 400px;
    position: relative;
}

.dist-cert-img img {
    width: 100%;
    height: auto;
    display: block;
}

.dist-cert-info {
    padding: 40px 40px 40px 0;
    flex: 1;
}

.dist-cert-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.cert-details {
    margin-bottom: 24px;
}

.cert-detail-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.cert-detail-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
}

.cert-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.btn-cert {
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    font-family: var(--font);
}

.btn-cert:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242,101,34,0.3);
}

.cert-sub-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 32px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cert-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--gray-100);
    border-radius: 20px;
    transition: all 0.3s;
}

.cert-card:hover {
    background: #FFF3ED;
    transform: translateY(-4px);
}

.cert-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

.cert-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.cert-card p {
    font-size: 13px;
    color: var(--gray-700);
}

/* ========================================
   Distributor Banner
   ======================================== */
.distributor-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
    padding: 80px 0;
}

.dist-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.dist-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.dist-company {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.dist-info p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    max-width: 550px;
    line-height: 1.7;
}

.dist-logo {
    text-align: center;
    flex-shrink: 0;
}

.dist-logo-text {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 4px;
}

.dist-logo-sub {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 8px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--gray-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-4px);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FFF3ED, #FFE4D6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 20px;
}

.contact-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-card a,
.contact-card p {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    line-height: 1.6;
}

.contact-card a:hover {
    color: var(--primary);
}

.map-placeholder {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-text {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}

.footer-company {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--primary) !important;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links a,
.footer-links span {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dist-certificate {
        flex-direction: column;
    }
    .dist-cert-img {
        flex: none;
        width: 100%;
    }
    .dist-cert-info {
        padding: 0 32px 32px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(calc(-100% - 72px));
        transition: transform 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav.open {
        transform: translateY(0);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .dist-content {
        flex-direction: column;
        text-align: center;
    }

    .dist-info p {
        margin: 0 auto;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-split {
        flex-direction: column;
    }

    .hero-left {
        flex: none;
        padding: 60px 24px;
    }

    .hero-right {
        min-height: 50vh;
    }

    .hero-brand {
        font-size: 56px;
    }

    .section {
        padding: 60px 0;
    }

    .cert-detail-item {
        flex-direction: column;
        gap: 4px;
    }

    .cert-detail-label {
        min-width: auto;
    }
}

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ========================================
   Animations
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
