/* ============================================
   HULEGEB STATIC SITE - MAIN STYLES
   Root variables removed - Hardcoded Values
   ============================================ */



html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #faf8f5;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 640px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; }
  h2 { font-size: 2.5rem; }
}

p {
  margin-bottom: 1rem;
}

a {
  color: #237dd8;
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: #f37a20;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.text-center { text-align: center; }
.text-muted { color: #6b6b6b; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 300ms ease;
  text-decoration: none;
}

.btn:focus {
  outline: 2px solid #237dd8;
  outline-offset: 2px;
}

.btn-primary {
  background-color: #237dd8;
  color: #faf8f5;
}

.btn-primary:hover {
  background-color: rgba(139, 90, 43, 0.9);
  box-shadow: 0 0 20px rgba(139, 90, 43, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #faf8f5;
  border: 1px solid rgba(250, 248, 245, 0.3);
}

.btn-outline:hover {
  background-color: rgba(250, 248, 245, 0.1);
}

/* Cards */
.card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e0d5c5;
  overflow: hidden;
  transition: all 300ms ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    rgba(26, 26, 26, 0.9), 
    rgba(26, 26, 26, 0.75), 
    rgba(26, 26, 26, 0.6));
}

.hero-content {
  position: relative;
  padding: 4rem 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 6rem 2rem;
  }
}

.hero h1 {
  color: #faf8f5;
  margin-bottom: 1rem;
}

.hero h2 {
  color: rgba(250, 248, 245, 0.9);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero h2 {
    font-size: 1.5rem;
  }
}

.hero-text {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-text p {
  color: rgba(250, 248, 245, 0.8);
  font-size: 1rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .hero-text p {
    font-size: 1.125rem;
  }
}

.hero-text p.highlight {
  color: #faf8f5;
  font-weight: 500;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.artisan-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: rgba(250, 248, 245, 0.3);
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot::after {
  content: '';
  position: relative;
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #faf8f5;
}

/* ============================================
   IMPACT SECTION
   ============================================ */
.impact-section {
  background-color: rgba(245, 240, 232, 0.3);
  border-bottom: 1px solid #e0d5c5;
  padding: 4rem 1rem;
  margin-top: 100px;
}

@media (min-width: 640px) {
  .impact-section {
    padding: 4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .impact-section {
    padding: 4rem 2rem;
  }
}

.impact-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  .impact-section h2 {
    font-size: 1.875rem;
  }
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .impact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.impact-card {
  text-align: center;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e0d5c5;
  transition: all 300ms ease;
}

.impact-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.impact-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsla(210, 72%, 49%, 0.1);
  color: #f37a20;
}

.impact-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: hsl(210, 72%, 49%);
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .impact-value {
    font-size: 2.5rem;
  }
}

.impact-label {
  font-size: 0.875rem;
  color: hsl(33, 20%, 45%);
}

.impact-progress {
  margin-top: 0.5rem;
  height: 0.25rem;
  background-color: hsl(33, 40%, 96%);
  border-radius: 9999px;
  overflow: hidden;
}

.impact-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #237dd8, #d4a574);
  border-radius: 9999px;
  width: 0;
  transition: width 1s ease;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-section {
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .products-section {
    padding: 4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .products-section {
    padding: 4rem 2rem;
  }
}

.products-header {
  text-align: center;
  margin-bottom: 3rem;
}

.products-header h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .products-header h2 {
    font-size: 2.25rem;
  }
}

.products-header p {
  font-size: 1.125rem;
  color: #6b6b6b;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product Card */
.product-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e0d5c5;
  overflow: hidden;
  transition: all 300ms ease;
  text-decoration: none;
  display: block;
}

.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #f5f0e8;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: #237dd8;
  color: #faf8f5;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
}

.product-info {
  padding: 1rem;
}

.product-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-swatches {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.product-swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid #e0d5c5;
  cursor: pointer;
  transition: all 150ms ease;
}

.product-swatch:hover {
  transform: scale(1.1);
}

.product-swatch.active {
  border-color: #237dd8;
  box-shadow: 0 0 0 2px #faf8f5, 0 0 0 4px #237dd8;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-price .current {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #237dd8;
}

.product-price .compare {
  font-size: 0.875rem;
  color: #6b6b6b;
  text-decoration: line-through;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  border-top: 1px solid #e0d5c5;
  background: linear-gradient(to bottom right, 
    rgba(245, 240, 232, 0.5), 
    #faf8f5, 
    rgba(139, 90, 43, 0.05));
  padding: 5rem 1rem;
  text-align: center;
}

.cta-content {
  max-width: 48rem;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .cta-section h2 {
    font-size: 1.875rem;
  }
}

.cta-section p {
  font-size: 1.125rem;
  color: #6b6b6b;
  margin-bottom: 2rem;
}

.cta-section .btn {
  padding: 1rem 2rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: #ffffff;
  border-radius: 1rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 300ms ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e0d5c5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close {
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: background-color 150ms ease;
}

.modal-close:hover {
  background-color: #f5f0e8;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e0d5c5;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Artisan Modal Specifics */
.artisan-profile {
  text-align: center;
  margin-bottom: 1.5rem;
}

.artisan-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background-color: #f5f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.artisan-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.artisan-role {
  color: #6b6b6b;
  font-size: 0.875rem;
}

.artisan-story {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #6b6b6b;
}

.artisan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0d5c5;
}

.artisan-stat {
  text-align: center;
}

.artisan-stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #237dd8;
}

.artisan-stat-label {
  font-size: 0.75rem;
  color: #6b6b6b;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: #1a1a1a;
  color: #faf8f5;
  padding: 3rem 1rem;
  text-align: center;
}

.footer p {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ============================================
   DONATION SLIDER
   ============================================ */
.donation-widget {
  background-color: #ffffff;
  border: 1px solid #e0d5c5;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

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

.donation-header h4 {
  font-size: 1rem;
  font-weight: 600;
}

.donation-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #237dd8;
}

.donation-slider {
  width: 100%;
  height: 0.5rem;
  -webkit-appearance: none;
  appearance: none;
  background: #e8e0d5;
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

.donation-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  background: #237dd8;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 150ms ease;
}

.donation-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.donation-slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  background: #237dd8;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.donation-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}

.donation-tick {
  font-size: 0.75rem;
  color: #6b6b6b;
}

.donation-impact {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f5f0e8;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #6b6b6b;
  text-align: center;
}

/* ============================================
   VISUALLY HIDDEN (Accessibility)
   ============================================ */
.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 {
  outline: 2px solid #237dd8;
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: 40px;
  left: 0;
  background: #237dd8;
  color: #faf8f5;
  padding: 8px;
  z-index: 100;
}

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