/* Custom styles for RamanRasa Organics */

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

/* Enhanced transitions */
.transition {
  transition: all 0.3s ease;
}

/* Trust badges hover effects */
.trust-badge {
  transition: transform 0.2s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
}

/* Certification badges */
.certification-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgb(231 229 228);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.certification-badge:hover {
  background-color: rgb(214 211 209);
}

/* Info cards */
.info-card {
  padding: 1.5rem;
  background-color: white;
  border-radius: 1rem;
  border: 1px solid rgb(231 229 228);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
}

/* Certification items */
.cert-item {
  padding: 1rem;
  background-color: rgb(245 245 244);
  border: 1px solid rgb(231 229 228);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.cert-item:hover {
  background-color: rgb(231 229 228);
}

/* FAQ items */
.faq-item {
  background-color: white;
  border: 1px solid rgb(231 229 228);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: rgb(168 162 158);
}

.faq-item[open] {
  border-color: rgb(109 40 217);
  box-shadow: 0 0 0 1px rgb(109 40 217 / 0.1);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: bold;
  color: rgb(109 40 217);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

/* Contact cards */
.contact-card {
  padding: 1.5rem;
  background-color: white;
  border-radius: 1rem;
  border: 1px solid rgb(231 229 228);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
}

/* Modal styles */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.modal.show {
  display: flex;
}

.modal-content {
  max-width: 32rem;
  width: 100%;
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: between;
  margin-bottom: 1rem;
}

.modal-close {
  margin-left: auto;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: rgb(245 245 244);
}

.modal-body {
  color: rgb(68 64 60);
  font-size: 0.875rem;
}

.modal-body p {
  margin-bottom: 0.75rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 40;
  background-color: white;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  border: 1px solid rgb(231 229 228);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
  }
}

.cookie-banner.hidden {
  display: none;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
summary:focus {
  outline: 2px solid rgb(109 40 217);
  outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(241 245 249);
}

::-webkit-scrollbar-thumb {
  background: rgb(203 213 225);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(148 163 184);
}

/* Loading states */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Enhanced button hover effects */
button:hover:not(:disabled),
a:hover {
  transform: translateY(-1px);
}

/* Image lazy loading enhancement */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Print styles */
@media print {
  .sticky,
  .cookie-banner,
  .modal,
  button {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .bg-stone-50,
  .bg-white {
    background: white !important;
  }
  
  .bg-ink {
    background: white !important;
    color: black !important;
  }
}

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