/* Bemis Healthcare Packaging - Custom Styles */

/* ==================== COLOR VARIABLES ==================== */
:root {
  /* Primary Healthcare Teal Theme */
  --primary-teal: #006B7D;
  --dark-teal: #004851;
  --light-teal: #E6F4F6;
  --teal-accent: #00A3B8;

  /* Medical Blue Accents */
  --medical-blue: #0077C8;
  --light-blue: #E8F4F8;

  /* Neutral Colors */
  --light-gray: #F5F7FA;
  --medium-gray: #6C757D;
  --dark-gray: #2C3E50;

  /* Status Colors */
  --success-green: #28A745;
  --warning-orange: #FF8C00;
  --danger-red: #DC3545;

  /* Text Colors */
  --text-primary: #212529;
  --text-muted: #6C757D;
  --text-white-75: rgba(255, 255, 255, 0.75);

  /* Gradients */
  --gradient-teal: linear-gradient(135deg, #006B7D 0%, #00A3B8 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(0, 107, 125, 0.95) 0%, rgba(0, 72, 81, 0.9) 100%);
}

/* ==================== GLOBAL STYLES ==================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* ==================== CUSTOM BUTTONS ==================== */
.btn-teal {
  background: var(--gradient-teal);
  color: white;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 107, 125, 0.2);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 107, 125, 0.3);
  color: white;
}

.btn-outline-teal {
  border: 2px solid var(--primary-teal);
  color: var(--primary-teal);
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-teal:hover {
  background: var(--primary-teal);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 107, 125, 0.2);
}

/* ==================== BACKGROUND UTILITIES ==================== */
.bg-teal {
  background-color: var(--primary-teal) !important;
}

.bg-dark-teal {
  background-color: var(--dark-teal) !important;
}

.bg-light-gray {
  background-color: var(--light-gray) !important;
}

.bg-teal-light {
  background-color: var(--light-teal) !important;
}

.bg-gradient-teal {
  background: var(--gradient-teal) !important;
}

/* ==================== TEXT UTILITIES ==================== */
.text-teal {
  color: var(--primary-teal) !important;
}

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

.text-gradient {
  background: linear-gradient(135deg, #00D4FF 0%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-light {
  background: linear-gradient(135deg, #FFFFFF 0%, #E0F7FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== HOVER UTILITIES ==================== */
.hover-teal-light:hover {
  color: var(--light-teal) !important;
}

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* ==================== AI-IMG PLACEHOLDER STYLES ==================== */
ai-img {
  display: block;
  background: linear-gradient(135deg, #E6F4F6 0%, #D1E9ED 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-teal);
  font-size: 12px;
  text-align: center;
  padding: 1rem;
  font-weight: 500;
  opacity: 0.7;
}

ai-img::after {
  content: '📷';
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.4;
  font-size: 20px;
}

ai-img.rounded-circle {
  border-radius: 50%;
  border: 3px solid var(--light-teal);
}

ai-img.card-img-top {
  border-radius: 0.5rem 0.5rem 0 0;
  aspect-ratio: 4/3;
  object-fit: cover;
}

ai-img[logo="true"] {
  height: auto;
  background: transparent;
}

ai-img.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

ai-img.trust-badge {
  height: 80px;
  width: auto;
  margin: 0 auto;
  background: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #E5E5E5;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.min-vh-75 {
  min-height: 75vh;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ==================== CARDS ==================== */
.card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 0.75rem;
}

.product-card,
.solution-card,
.testimonial-card {
  height: 100%;
}

.product-card:hover {
  border-color: var(--primary-teal);
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
}

.product-card .btn {
  margin-top: auto;
}

/* ==================== BADGES ==================== */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

/* ==================== SECTIONS ==================== */
.trust-section {
  border-bottom: 1px solid #E5E5E5;
}

.feature-card,
.solution-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-4px);
}

.solution-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==================== BACKDROP BLUR ==================== */
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==================== NAVIGATION ==================== */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary-teal);
}

.navbar-light .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: var(--gradient-teal);
  border-radius: 3px 3px 0 0;
}

/* ==================== TOP BAR ==================== */
.top-bar a:hover {
  opacity: 0.8;
}

.promo-bar {
  font-weight: 500;
  font-size: 14px;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--dark-teal);
}

footer h5 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--teal-accent);
  border-radius: 2px;
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  padding-left: 4px;
  opacity: 1 !important;
}

/* ==================== FLOATING BUTTONS ==================== */
.floating-buttons {
  z-index: 1000;
}

.floating-buttons .btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
}

.floating-buttons .btn:hover {
  transform: scale(1.1);
}

#backToTop {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* ==================== FORMS ==================== */
.form-control,
.form-select {
  border-radius: 0.5rem;
  border: 2px solid #E5E5E5;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 0.2rem rgba(0, 107, 125, 0.1);
}

.form-control-lg {
  padding: 1rem 1.25rem;
  font-size: 1rem;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-check-input:checked {
  background-color: var(--primary-teal);
  border-color: var(--primary-teal);
}

/* ==================== MODAL ==================== */
.modal-content {
  border-radius: 1rem;
  border: none;
  overflow: hidden;
}

.modal-header.bg-teal {
  background: var(--gradient-teal) !important;
}

.modal-body {
  padding: 2rem;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--primary-teal);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--medium-gray);
}

/* ==================== STATISTICS COUNTER ==================== */
.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-item .fs-2 {
  font-size: 2.5rem !important;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ==================== PAGE BANNER ==================== */
.page-banner {
  background: var(--gradient-teal);
  color: white;
  padding: 4rem 0 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

/* ==================== FILTERS & TABS ==================== */
.filter-group {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid #E5E5E5;
  background: white;
  color: var(--text-primary);
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary-teal);
  background: var(--primary-teal);
  color: white;
}

/* ==================== TIMELINE ==================== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--light-teal);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-teal);
  border: 4px solid white;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--light-teal);
}

/* ==================== AUTHOR CARD ==================== */
.author-card {
  border-left: 4px solid var(--primary-teal);
  transition: all 0.3s ease;
}

.author-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ==================== BLOG STYLES ==================== */
.blog-card {
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.blog-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-meta i {
  color: var(--primary-teal);
  margin-right: 0.25rem;
}

/* ==================== CERTIFICATIONS ==================== */
.certification-badge {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.certification-badge:hover {
  border-color: var(--primary-teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 60vh;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-marker {
    left: 30px;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-5 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 50vh;
  }

  .stat-item .fs-2 {
    font-size: 2rem !important;
  }

  .display-3 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .page-banner {
    padding: 3rem 0 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .navbar,
  .promo-bar,
  .top-bar,
  .floating-buttons,
  .scroll-indicator,
  footer {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
a:focus,
button:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-teal);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.shadow-soft {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.rounded-xl {
  border-radius: 1rem;
}

.rounded-xxl {
  border-radius: 1.5rem;
}

.opacity-90 {
  opacity: 0.9;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-50 {
  opacity: 0.5;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================== LOADING STATES ==================== */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-teal);
  border-top-color: var(--primary-teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
