/* ===== Claire Corporation - Custom Styles ===== */

/* Base styles for readability */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (min-width: 640px) {
  html {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.8;
}

/* Improved readability for older users */
p, li, td, th, label, span {
  line-height: 1.8;
}

/* Smooth transitions for interactive elements */
a, button {
  transition: all 0.2s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #B8953F;
  outline-offset: 2px;
}

/* Form input improvements */
input, textarea, select {
  font-size: 16px !important; /* Prevent zoom on iOS */
}

/* Table responsive styling */
@media (max-width: 640px) {
  table {
    display: block;
    overflow-x: auto;
  }
  
  tr {
    display: flex;
    flex-direction: column;
  }
  
  th, td {
    display: block;
    width: 100% !important;
  }
}

/* Animate elements on scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Phone number styling */
a[href^="tel:"] {
  white-space: nowrap;
}

/* Sticky header shadow on scroll */
header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero pattern overlay */
.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #B8953F;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a07e2f;
}

/* Print styles */
@media print {
  header, footer, .fixed {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
}

/* FAQ accordion - details/summary reset */
details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  display: none;
  content: '';
}

/* Loading animation for form */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
