/* ========================================
   NSL - Quality Page Styles
   Naila Sourcing (BD) Ltd.
   ======================================== */

/* CSS Variables */
:root {
    --primary: #0A8F5C;
    --primary-dark: #087a4a;
    --primary-light: #0cb872;
    --secondary: #1a1a1a;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-off-white: #fafafa;
    --border: #e5e5e5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A8F5C 0%, #087a4a 100%);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1558171813-4c088753af8f?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.15;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 143, 92, 0.9) 0%, rgba(8, 122, 74, 0.95) 100%);
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.header-content h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
}

.header-content h1 .highlight {
    color: #b8f4c9;
}

.header-content p {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(30px);
}

/* ========================================
   Section Styles
   ======================================== */

.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, 42px);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ========================================
   Quality Intro
   ======================================== */

.quality-intro {
    padding: 100px 0 60px;
    background: var(--bg-white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content .section-tag {
    display: block;
}

.intro-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.intro-content p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Process Section
   ======================================== */

.process-section {
    padding: 60px 0 120px;
    background: var(--bg-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.process-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.process-step {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.process-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.process-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   Audit Section
   ======================================== */

.audit-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.audit-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.audit-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.audit-text > p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.audit-criteria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.criteria-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.criteria-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.criteria-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.audit-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

/* ========================================
   Ethical Section
   ======================================== */

.ethical-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.ethical-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.ethical-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.ethical-card:hover {
    background: var(--primary);
}

.ethical-card:hover .ethical-icon,
.ethical-card:hover h3,
.ethical-card:hover p {
    color: #ffffff;
}

.ethical-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.ethical-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.ethical-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   Compliance Section
   ======================================== */

.compliance-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.compliance-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.compliance-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.compliance-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.compliance-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.compliance-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Stats Section
   ======================================== */

.stats-section {
    padding: 80px 0;
    background: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    color: #ffffff;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-white {
    background: #ffffff;
    color: var(--primary);
    border: 2px solid #ffffff;
}

.btn-white:hover {
    background: transparent;
    color: #ffffff;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--secondary);
    padding: 80px 0 30px;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: #ffffff;
}

.footer-brand .logo-sub {
    color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 14px;
    color: #ffffff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-contact strong {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .audit-content {
        gap: 40px;
    }
    
    .ethical-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compliance-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .audit-content {
        grid-template-columns: 1fr;
    }
    
    .audit-image {
        order: -1;
    }
    
    .ethical-grid {
        grid-template-columns: 1fr;
    }
    
    .compliance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .compliance-grid {
        grid-template-columns: 1fr;
    }
    
    .quality-intro,
    .process-section,
    .audit-section,
    .ethical-section,
    .compliance-section {
        padding: 60px 0;
    }
}