/* Main CSS - Supplementary styles beyond Tailwind */

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

/* Base body font size */
body {
  font-size: 16px;
  line-height: 1.6;
}

/* Focus visible styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #b45309;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip to content link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: #292524;
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

/* Form input transitions */
input,
textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #a8a29e;
}

/* Prose-like content styling */
.content-prose p {
  margin-bottom: 1rem;
  color: #44403c;
  font-size: 1.125rem;
  line-height: 1.75;
}

.content-prose p:last-child {
  margin-bottom: 0;
}

/* Card hover transition */
.card-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-hover:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* FAQ accordion styles */
.faq-item {
  border-bottom: 1px solid #e7e5e4;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-weight: 500;
  color: #292524;
  font-size: 1.0625rem;
  transition: color 0.2s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  color: #b45309;
}

.faq-question .faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding-bottom: 0;
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: #57534e;
  font-size: 1rem;
  line-height: 1.7;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle animation for hero elements */
@keyframes gentle-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.gentle-float {
  animation: gentle-float 4s ease-in-out infinite;
}

/* Body scroll lock for mobile menu */
body.menu-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.5rem;
  }

  .content-prose p {
    font-size: 1rem;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  #cookie-consent,
  #mobile-menu {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
