/* ===============================
   CUSTOM UTILITIES FROM REACT APP
   =============================== */

/* Bullet-proof navbar offset for anchor links */
:root { 
  --nav-h: 96px; /* Match header height */
}

:target::before {
  content: "";
  display: block;
  height: var(--nav-h);
  margin-top: calc(-1 * var(--nav-h));
}

/* Article width constraint */
article.container {
  max-width: 894px !important;
}

/* 🎨 Semantic Color Tokens (match tailwind.config.js) */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 47.4% 11.2%;
  --warm-gray: 0 0% 40%;
  --sage: 120 20% 50%;
  --sage-light: 120 25% 85%;
  --sage-dark: 120 30% 30%;
  --gold: 45 85% 60%;
  --gold-light: 45 90% 85%;
  --gold-dark: 45 80% 40%;
  --warm-white: 30 15% 98%;
  --gradient-primary: linear-gradient(to right, hsl(var(--sage)), hsl(var(--sage-light)));
  --gradient-accent: linear-gradient(to right, hsl(var(--sage-light)), hsl(var(--gold-light)));
}

/* Tailwind tokens */
.bg-background { background-color: hsl(var(--background)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-warm-gray { color: hsl(var(--warm-gray)); }
.text-sage { color: hsl(var(--sage)); }
.text-sage-light { color: hsl(var(--sage-light)); }
.bg-sage { background-color: hsl(var(--sage)); }
.bg-sage-light { background-color: hsl(var(--sage-light)); }
.bg-gold-light { background-color: hsl(var(--gold-light)); }

/* ===============================
   TYPOGRAPHY
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;500;600&display=swap');
.font-playfair {
  font-family: 'Playfair Display', serif;
}
.font-lato {
  font-family: 'Lato', sans-serif;
}

/* ===============================
   CARDS
   =============================== */
.card-elegant {
  background: white;
  border-radius: 1rem; /* 2xl */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  padding: 1.5rem;
}
.card-elegant:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Lift hover effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

/* ===============================
   ISLAMIC BORDER (Bottom Line Variant)
   =============================== */
.islamic-border {
  position: relative;
  padding-bottom: 1rem;
}
.islamic-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ===============================
   BUTTON BRANDING
   =============================== */
.btn-sage {
  background: linear-gradient(to right, hsl(var(--sage)), hsl(var(--sage-light)));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-sage:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-gold {
  background: hsl(var(--gold-light));
  color: hsl(var(--foreground));
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background: hsl(var(--gold-light) / 0.8);
  transform: scale(1.02);
}

/* ===============================
   ANIMATIONS
   =============================== */
.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
