@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #8B5E3C;
  --primary-dark: #6B4423;
  --primary-light: #A07A5A;
  --secondary: #C4956A;
  --accent: #D4A574;
  --cream: #FDF8F3;
  --warm-bg: #FAF6F1;
  --text-dark: #2D2A26;
  --text-muted: #8A8580;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--warm-bg);
  color: var(--text-dark);
}

.font-arabic {
  font-family: 'Tajawal', sans-serif;
}

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

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-up-delay-1 {
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-fade-in-up-delay-2 {
  animation-delay: 0.4s;
  opacity: 0;
}

.animate-fade-in-up-delay-3 {
  animation-delay: 0.6s;
  opacity: 0;
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(139, 94, 60, 0.15);
}

/* Button styles */
.btn-primary {
  @apply inline-flex items-center gap-2 px-8 py-3 rounded-full text-base transition-all duration-300;
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 94, 60, 0.3);
}

.btn-outline {
  @apply inline-flex items-center gap-2 px-8 py-3 rounded-full font-medium text-base transition-all duration-300;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Section transitions */
.section-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle background texture */
.bg-texture {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238B5E3C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Nav link underline */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero grain overlay */
.hero-grain {
  position: relative;
}

.hero-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* Mobile menu */
.mobile-menu {
  transition: all 0.3s ease;
}

/* Vision list styling */
.vision-item {
  @apply flex items-start gap-4 p-4 rounded-xl transition-all duration-300;
}

.vision-item:hover {
  background-color: rgba(139, 94, 60, 0.05);
}

.vision-dot {
  @apply w-3 h-3 rounded-full mt-1.5 flex-shrink-0;
  background-color: var(--primary);
}

/* Footer link hover */
.footer-link {
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--accent);
  padding-right: 5px;
}

/* Responsive text */
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
