/**
 * Stitch Sacred Modernism — Core Styles
 * Styles that Tailwind can't handle: animations, scrollbar, glass effects, print.
 */

/* ── Base ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background-color: #fbf9f4;
  color: #1b1c19;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #7A1A22;
  color: #ffffff;
}

/* ── Material Symbols ──────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* ── Reveal Animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 560ms; }

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

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

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out both;
}

/* ── Glass Effects ─────────────────────────────────────── */
.glass-panel {
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
  background: rgba(251, 249, 244, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(221, 192, 190, 0.15);
}

.glass-texture {
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Bento Card Hover ──────────────────────────────────── */
.bento-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(122, 26, 34, 0.08);
}

/* ── Hero Gradients ────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(27,28,25,0.9) 100%);
}

.hero-gradient-crimson {
  background: linear-gradient(to bottom, rgba(122,26,34,0.6) 0%, rgba(91,0,15,0.95) 100%);
}

/* ── Custom Scrollbar ──────────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f5f3ee;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #C59B27;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #a88420;
}

/* Hide scrollbar utility */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Text Utilities ────────────────────────────────────── */
.text-balance { text-wrap: balance; }

/* ── Print Styles ──────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  .printable-area { display: block !important; }
  body { background: white; color: black; }
  header, footer, nav, #mobile-overlay { display: none !important; }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .bento-card:hover {
    transform: none;
  }
}
