/* Premium Wood Design - FutureLab KZ */

/* Wood and brass color palette implementation */
:root {
  --wood-dark: #2a1f17;
  --wood-darker: #1b1410;
  --brass-primary: #cba135;
  --brass-warm: #b08d57;
  --ivory: #ede9e3;
  --graphite: #1f2328;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Wood pane effect with subtle texture */
.wood-pane {
  background: linear-gradient(135deg, var(--wood-dark) 0%, var(--wood-darker) 100%);
  position: relative;
}

.wood-pane::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 20px 20px, 30px 30px;
  pointer-events: none;
  opacity: 0.3;
}

/* Brass edge effect with subtle glow */
.brass-edge {
  border: 1px solid var(--brass-primary);
  box-shadow: 0 0 8px rgba(203, 161, 53, 0.2);
  position: relative;
}

.brass-edge:hover {
  box-shadow: 0 0 12px rgba(203, 161, 53, 0.3);
}

/* Inlay border effect for premium look */
.inlay-border {
  border: 2px solid transparent;
  background: linear-gradient(var(--wood-dark), var(--wood-dark)) padding-box,
    linear-gradient(45deg, var(--ivory), var(--graphite)) border-box;
  border-radius: 8px;
}

/* Plaque styling for important elements */
.plaque {
  background: linear-gradient(135deg, rgba(203, 161, 53, 0.1) 0%, rgba(176, 141, 87, 0.1) 100%);
  border: 1px solid var(--brass-primary);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Engraved title effect */
.engraved-title {
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8), 0 0 8px rgba(203, 161, 53, 0.3);
}

/* Section dividers with decorative elements */
.divider-fillet {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--brass-primary) 20%,
    var(--brass-warm) 50%,
    var(--brass-primary) 80%,
    transparent 100%
  );
  border-radius: 1px;
  position: relative;
}

.divider-fillet::before,
.divider-fillet::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 6px;
  height: 6px;
  background: var(--brass-primary);
  border-radius: 50%;
}

.divider-fillet::before {
  left: 20%;
}

.divider-fillet::after {
  right: 20%;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.animate-pulse-hover:hover {
  animation: pulse 0.6s ease-in-out;
}

/* Enhanced card hover effects for wood theme */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(203, 161, 53, 0.1);
}

/* Mobile menu animation */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* FAQ accordion styling */
.faq-button:hover {
  background: rgba(42, 31, 23, 0.9) !important;
}

.faq-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content.active {
  max-height: 200px;
}

/* Loading animation for form submission */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--brass-primary);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Custom scrollbar with wood theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--wood-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--brass-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brass-warm);
}

/* Responsive typography */
@media (max-width: 768px) {
  .text-responsive-xl {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .text-responsive-lg {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

/* Cookie notice animation */
.cookie-notice-enter {
  opacity: 0;
  transform: translateY(100px);
}

.cookie-notice-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.cookie-notice-exit {
  opacity: 1;
  transform: translateY(0);
}

.cookie-notice-exit-active {
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
}

/* Enhanced map wrapper with wood frame */
.map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--brass-primary);
}

.map-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(203, 161, 53, 0.1) 50%, transparent 51%);
  pointer-events: none;
  z-index: 1;
}

/* Team member cards with wood styling */
.team-card {
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card:hover .team-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(203, 161, 53, 0.3);
}

.team-avatar {
  transition: all 0.3s ease;
  border: 3px solid var(--brass-primary);
}

/* Statistics counters */
.stat-counter {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--brass-primary), var(--brass-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section spacing */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Form validation styles with wood theme */
.form-error {
  border-color: #dc2626;
  background-color: rgba(220, 38, 38, 0.1);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.2);
}

.form-success {
  border-color: var(--brass-primary);
  background-color: rgba(203, 161, 53, 0.1);
  box-shadow: 0 0 8px rgba(203, 161, 53, 0.2);
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.success-message {
  color: var(--brass-primary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Loading states */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid var(--brass-primary);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Accessibility improvements */
.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 styles */
.focus-visible:focus {
  outline: 2px solid var(--brass-primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-stone-600 {
    color: #000000;
  }

  .text-stone-300 {
    color: #ffffff;
  }

  .wood-pane {
    background: #000000;
    border: 1px solid #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Additional wood texture effects */
.wood-grain {
  background-image: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.02) 50%),
    linear-gradient(0deg, transparent 50%, rgba(0, 0, 0, 0.02) 50%);
  background-size: 2px 2px, 1px 1px;
}

/* Brass shimmer effect for interactive elements */
.brass-shimmer {
  background: linear-gradient(90deg, var(--brass-primary) 0%, var(--brass-warm) 50%, var(--brass-primary) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Enhanced shadow effects for depth */
.wood-shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brass-glow {
  box-shadow: 0 0 10px rgba(203, 161, 53, 0.3), 0 0 20px rgba(203, 161, 53, 0.1), 0 0 30px rgba(203, 161, 53, 0.05);
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
  .plaque {
    padding: 1rem;
  }

  .wood-pane {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .engraved-title {
    font-size: 1.5rem;
  }
}
