/* ==========================================
   QUALITY & SAFETY PAGE STYLES
   ========================================== */

/* CSS Variables */
:root {
  --primary-color: #02859F;
  --secondary-color: #02859F;
  --accent-color: #02859F;
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Page Base Styles */
.quality-safety-page {
  background: var(--bg-white);
  min-height: 100vh;
}

/* Hero Section */
.quality-hero-section {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.hero-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-gradient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(2, 133, 159, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(2, 133, 159, 0.05) 0%, transparent 50%);
  animation: meshFloat 20s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0% { transform: translateX(-10px) translateY(-10px); }
  100% { transform: translateX(10px) translateY(10px); }
}

.hero-animated-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: var(--delay);
}

.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: var(--delay);
}

.particle:nth-child(3) {
  top: 80%;
  left: 30%;
  animation-delay: var(--delay);
}

.particle:nth-child(4) {
  top: 40%;
  left: 70%;
  animation-delay: var(--delay);
}

@keyframes particleFloat {
  0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge svg {
  color: var(--primary-color);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(2, 133, 159, 0.3);
}

.hero-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 133, 159, 0.4);
}

.hero-btn.secondary {
  background: white;
  color: var(--primary-color);
  border-color: var(--border-color);
}

.hero-btn.secondary:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.hero-stats-content {
  position: relative;
}

.stats-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stats-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.stats-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.stats-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-medium);
  font-weight: 500;
  line-height: 1.3;
}

/* Breadcrumb Section */
.breadcrumb-section {
  background: var(--bg-light);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-color);
}

.breadcrumb-nav svg {
  color: var(--text-light);
  flex-shrink: 0;
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 600;
}

/* Main Content */
.quality-main-content {
  padding: 4rem 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Policy Introduction Section */
.policy-intro-section {
  margin-bottom: 4rem;
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.intro-text {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
}

.intro-text p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
}

.intro-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.highlight-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.highlight-text p {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.5;
  margin: 0;
}

/* Policy Points Section */
.policy-points-section {
  margin-bottom: 4rem;
}

.points-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.policy-point {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.policy-point:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.policy-point::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.point-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.point-number {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
}

.point-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(2, 133, 159, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.point-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.point-content p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
}

.point-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Implementation Section */
.implementation-section {
  margin-bottom: 4rem;
}

.implementation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.implementation-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.implementation-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.implementation-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 1.5rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.implementation-item:hover::before {
  opacity: 1;
}

.impl-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.impl-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.impl-content p {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin: 0;
}

/* Contact Section */
.policy-contact-section {
  margin-top: 4rem;
}

.contact-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2rem;
  padding: 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="rgba(255,255,255,0.1)"><circle cx="30" cy="30" r="2"/></g></svg>');
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(60px) translateY(60px); }
}

.contact-header {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.contact-header h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-header p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-btn.primary {
  background: white;
  color: var(--primary-color);
}

.contact-btn.primary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.contact-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .intro-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .quality-hero-section {
    padding: 6rem 0 4rem;
  }
  
  .hero-content-wrapper {
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-btn {
    width: 100%;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .policy-point {
    padding: 1.5rem;
  }
  
  .point-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .point-content h3 {
    font-size: 1.25rem;
  }
  
  .contact-card {
    padding: 2rem;
  }
  
  .contact-header h3 {
    font-size: 1.75rem;
  }
  
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .implementation-grid {
    grid-template-columns: 1fr;
  }
  
  .breadcrumb-nav {
    font-size: 0.8125rem;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .stats-card {
    padding: 1.5rem;
  }
  
  .stat-item {
    padding: 0.875rem;
  }
  
  .policy-point {
    padding: 1rem;
  }
  
  .point-content h3 {
    font-size: 1.125rem;
  }
}