/* ============================================
   Global Footer Styles
   ============================================ */

/* Footer Container */
footer.bg-gradient-to-b {
  background: linear-gradient(to bottom, #111827, #111827);
  color: #e5e7eb;
  padding: 4rem 0;
  width: 100%;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Footer Grid Layout */
footer .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  footer .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer Sections */
footer > div > div {
  margin-bottom: 1rem;
}

/* Company Info Section */
footer h2 {
  margin-bottom: 1rem;
}

footer h2 a {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}

footer h2 a:hover {
  color: white;
}

footer p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #d1d5db;
}

/* Review Badges */
footer .flex.items-center.space-x-2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

footer .flex.items-center.space-x-2 img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/* Section Headings */
footer h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

/* Footer Links List */
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: inline-block;
}

footer ul li a:hover {
  color: #2563eb;
}

/* Contact Section */
footer div:nth-child(3) p {
  margin-bottom: 0.5rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

footer div:nth-child(3) a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: inline-block;
  margin-top: 0.5rem;
}

footer div:nth-child(3) a:hover {
  color: #2563eb;
}

/* Social Media Icons */
footer .flex.justify-start.space-x-4 {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

footer .flex.justify-start.space-x-4 a {
  display: inline-block;
  transition: opacity 0.3s, transform 0.2s;
}

footer .flex.justify-start.space-x-4 a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

footer .flex.justify-start.space-x-4 svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: color 0.3s;
}

/* Social Icon Colors */
footer .flex.justify-start.space-x-4 a[href*="youtube"] svg:hover {
  color: #ef4444;
}

footer .flex.justify-start.space-x-4 a[href*="linkedin"] svg:hover {
  color: #0a66c2;
}

footer .flex.justify-start.space-x-4 a[href*="twitter"] svg:hover,
footer .flex.justify-start.space-x-4 a[href*="x.com"] svg:hover {
  color: #e5e7eb;
}

footer .flex.justify-start.space-x-4 a[href*="facebook"] svg:hover {
  color: #e5e7eb;
}

footer .flex.justify-start.space-x-4 a[href*="instagram"] svg:hover {
  color: #e5e7eb;
}

/* Bottom Bar */
footer > div:last-child {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

footer > div:last-child p {
  margin-bottom: 0.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

footer > div:last-child a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.875rem;
}

footer > div:last-child a:hover {
  color: #2563eb;
}

/* Responsive Design */
@media (max-width: 767px) {
  footer.bg-gradient-to-b {
    padding: 3rem 0;
  }

  footer .container {
    padding: 0 1rem;
  }

  footer h2 a {
    font-size: 1.5rem;
  }

  footer h3 {
    font-size: 1rem;
    margin-top: 1.5rem;
  }

  footer ul li {
    margin-bottom: 0.75rem;
  }

  footer .flex.justify-start.space-x-4 {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  footer.bg-gradient-to-b {
    padding: 2rem 0;
  }

  footer .grid {
    gap: 1.5rem;
  }

  footer h2 a {
    font-size: 1.25rem;
  }

  footer p {
    font-size: 0.875rem;
  }

  footer ul li a {
    font-size: 0.8125rem;
  }
}

/* ============================================
   ISO 9001:2015 Certification Section
   ============================================ */

/* ISO Certification Section Container */
.iso-certification-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

.iso-certification-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ISO Badge Container */
.iso-badge-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iso-badge-image {
  max-width: 60px;
  width: 60px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.iso-badge-image:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .iso-badge-image {
    max-width: 100px;
    width: 100px;
  }
}

/* ISO Text Content */
.iso-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .iso-text-content {
    align-items: flex-start;
    text-align: left;
  }
}

.iso-text-content p {
  color: #d1d5db;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .iso-text-content p {
    font-size: 1rem;
  }
}

/* View Certificate Button */
.iso-view-certificate {
  color: #60a5fa;
  text-decoration: underline;
  font-size: 0.75rem;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .iso-view-certificate {
    font-size: 0.875rem;
  }
}

.iso-view-certificate:hover {
  color: #93c5fd;
  border: none;
  box-shadow: none;
  outline: none;
}

.iso-view-certificate:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.iso-view-certificate:active {
  outline: none;
  border: none;
  box-shadow: none;
}

/* ============================================
   ISO Certificate Modal
   ============================================ */

/* Modal Container */
.iso-certificate-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.iso-certificate-modal.iso-modal-active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Modal Overlay */
.iso-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Modal Container */
.iso-modal-container {
  position: relative;
  z-index: 10001;
  max-width: 95vw;
  width: 95vw;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  animation: isoModalFadeIn 0.3s ease forwards;
}

.iso-certificate-modal.iso-modal-active .iso-modal-container {
  transform: scale(1);
}

@keyframes isoModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modal Close Button */
.iso-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
  padding: 0;
}

.iso-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: rotate(90deg);
}

.iso-modal-close:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.iso-modal-close svg {
  width: 24px;
  height: 24px;
}

/* Modal Content */
.iso-modal-content {
  padding: 2rem;
  overflow-y: auto;
  max-height: 90vh;
}

.iso-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  text-align: center;
}

/* Certificate Image Wrapper */
.iso-certificate-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 8px;
  padding: 1rem;
  overflow: auto;
  min-height: 400px;
  position: relative;
}

.iso-certificate-iframe {
  width: 100%;
  min-height: 600px;
  max-height: 80vh;
  border: none;
  border-radius: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: block;
}

.iso-certificate-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Fallback Download Section */
.iso-certificate-fallback {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  width: 100%;
}

.iso-certificate-fallback.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.iso-fallback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.iso-fallback-icon {
  width: 64px;
  height: 64px;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.iso-certificate-download-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.iso-certificate-download-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.iso-certificate-download-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
  .iso-modal-container {
    max-width: 95vw;
    width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
  }

  .iso-modal-content {
    padding: 1.5rem 1rem;
  }

  .iso-modal-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .iso-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
  }

  .iso-modal-close svg {
    width: 20px;
    height: 20px;
  }

  .iso-certificate-image-wrapper {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .iso-modal-container {
    max-width: 100vw;
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .iso-modal-content {
    padding: 1rem 0.5rem;
  }

  .iso-modal-title {
    font-size: 1.125rem;
  }
}

/* Prevent body scroll when modal is open */
body.iso-modal-open {
  overflow: hidden;
}

/* Utility Classes */
.text-gray-100 {
  color: #f3f4f6;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-600 {
  color: #4b5563;
}

.text-blue-600 {
  color: #2563eb;
}

.hover\:text-blue-600:hover {
  color: #2563eb;
}

.hover\:opacity-80:hover {
  opacity: 0.8;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
  transition-duration: 300ms;
}

