/*
* Quality Policy Page Styles
* Hitzelberger Life Sciences
*/

/*--------------------------------------------------------------
# Page Header
--------------------------------------------------------------*/
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.breadcrumb {
    justify-content: center;
    background: none;
    margin-bottom: 20px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: #fff;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Quality Statement
--------------------------------------------------------------*/
.quality-statement {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 73, 148, 0.1);
}

.statement-content {
    max-width: 800px;
    margin: 0 auto;
}

.statement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 5px 15px rgba(0, 73, 148, 0.3);
}

.statement-icon i {
    font-size: 36px;
    color: #fff;
}

.quality-statement h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.quality-statement .lead {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555;
    font-style: italic;
    position: relative;
}

.quality-statement .lead::before,
.quality-statement .lead::after {
    content: '"';
    font-size: 48px;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    opacity: 0.3;
}

.quality-statement .lead::before {
    left: -30px;
}

.quality-statement .lead::after {
    right: -30px;
}

.signature {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
    margin-top: 30px;
}

.signature p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Quality Objectives
--------------------------------------------------------------*/
.quality-objectives h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--heading-color);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.objective-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 73, 148, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.objective-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 73, 148, 0.15);
    border-color: var(--primary-color);
}

.objective-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.objective-card:hover .objective-icon {
    transform: scale(1.1);
}

.objective-icon i {
    font-size: 28px;
    color: #fff;
}

.objective-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.objective-card p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/*--------------------------------------------------------------
# Quality Management System
--------------------------------------------------------------*/
.qms-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--heading-color);
}

.qms-content p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.7;
}

.quality-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quality-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.quality-features li:last-child {
    border-bottom: none;
}

.quality-features li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
}

.qms-image img {
    box-shadow: 0 10px 30px rgba(0, 73, 148, 0.15);
}

/*--------------------------------------------------------------
# Manufacturing Standards
--------------------------------------------------------------*/
.manufacturing-standards h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--heading-color);
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.standard-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 73, 148, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.standard-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 73, 148, 0.15);
}

.standard-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.standard-header i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
}

.standard-header h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--heading-color);
}

.standard-item p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/*--------------------------------------------------------------
# QC Laboratory
--------------------------------------------------------------*/
.qc-lab-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--heading-color);
}

.qc-lab-content p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.7;
}

.lab-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 73, 148, 0.1);
}

.feature-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px;
}

.feature-item h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.feature-item p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.qc-lab-image img {
    box-shadow: 0 10px 30px rgba(0, 73, 148, 0.15);
}

/*--------------------------------------------------------------
# Certifications
--------------------------------------------------------------*/
.certifications-section h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--heading-color);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.certification-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 73, 148, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 73, 148, 0.15);
    border-color: var(--primary-color);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.certification-card:hover .cert-icon {
    transform: scale(1.1) rotate(360deg);
}

.cert-icon i {
    font-size: 32px;
    color: #fff;
}

.certification-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.certification-card p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/*--------------------------------------------------------------
# Quality Culture
--------------------------------------------------------------*/
.quality-culture h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--heading-color);
}

.culture-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.culture-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.culture-points li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    position: relative;
    padding-left: 30px;
}

.culture-points li:last-child {
    border-bottom: none;
}

.culture-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.training-programs {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
}

.training-programs h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--heading-color);
}

.training-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.training-item:last-child {
    margin-bottom: 0;
}

.training-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
    width: 25px;
}

.training-item h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.training-item p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 14px;
}

/*--------------------------------------------------------------
# Quality Metrics
--------------------------------------------------------------*/
.quality-metrics h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--heading-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.metric-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.metric-card:hover::before {
    opacity: 1;
    left: 100%;
}

.metric-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 73, 148, 0.3);
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.metric-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.metric-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

/*--------------------------------------------------------------
# Quality CTA Section
--------------------------------------------------------------*/
.quality-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.quality-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="20" height="17.32" patternUnits="userSpaceOnUse"><polygon points="10,1 18.66,6 18.66,16 10,21 1.34,16 1.34,6" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    opacity: 0.2;
}

.quality-cta .container {
    position: relative;
    z-index: 2;
}

.quality-cta h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.quality-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
    .page-title {
        font-size: 40px;
    }
    
    .quality-statement {
        padding: 30px;
    }
    
    .objectives-grid,
    .standards-grid,
    .certifications-grid,
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .page-title {
        font-size: 36px;
    }
    
    .quality-statement h3 {
        font-size: 24px;
    }
    
    .quality-statement .lead {
        font-size: 16px;
    }
    
    .qms-content,
    .qc-lab-content {
        margin-bottom: 30px;
    }
    
    .training-programs {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .quality-statement {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .quality-statement .lead::before,
    .quality-statement .lead::after {
        display: none;
    }
    
    .objectives-grid,
    .standards-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .objective-card,
    .standard-item,
    .certification-card {
        padding: 20px;
    }
    
    .quality-cta h2 {
        font-size: 28px;
    }
    
    .quality-cta p {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-value {
        font-size: 28px;
    }
}

/*--------------------------------------------------------------
# Animation Enhancements
--------------------------------------------------------------*/
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.appear-animation[data-animation="fadeInScale"] {
    animation: fadeInScale 0.6s ease forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quality-features li {
    opacity: 0;
    animation: slideInFromLeft 0.6s ease forwards;
}

.quality-features li:nth-child(1) { animation-delay: 0.1s; }
.quality-features li:nth-child(2) { animation-delay: 0.2s; }
.quality-features li:nth-child(3) { animation-delay: 0.3s; }
.quality-features li:nth-child(4) { animation-delay: 0.4s; }
.quality-features li:nth-child(5) { animation-delay: 0.5s; }
.quality-features li:nth-child(6) { animation-delay: 0.6s; }

/* Pulse animation for icons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 73, 148, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 73, 148, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 73, 148, 0);
    }
}

.objective-icon:hover,
.cert-icon:hover {
    animation: pulse 2s infinite;
}