/* ============================================
   THE SILENT HERO COFFEE SHOP & MORE
   Classic · Elegant · Terracotta & Sand
   ============================================ */

/* Custom Tailwind Config */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --terracotta: #C4724E;
    --terracotta-light: #D4916F;
    --sand: #E8D5C4;
    --sand-light: #F5E6D3;
    --stone-50: #FAFAF8;
    --stone-100: #F5F5F4;
    --stone-200: #E7E5E4;
    --stone-500: #78716C;
    --stone-800: #292524;
    --stone-900: #1C1917;
  }
}

@layer base {
  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--stone-50);
    color: var(--stone-800);
  }

  h1, h2, h3, h4 {
    font-family: 'Lora', serif;
  }

  ::selection {
    background-color: var(--terracotta);
    color: white;
  }
}

@layer components {
  .nav-link {
    position: relative;
  }

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

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

  .nav-link:hover {
    color: var(--terracotta) !important;
  }

  /* Header scroll state */
  .header-scrolled {
    background-color: rgba(250, 250, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  }

  .header-scrolled .nav-link {
    color: #78716C !important;
  }

  .header-scrolled .font-lora {
    color: #1C1917 !important;
  }

  /* Mobile menu */
  .mobile-menu-open .bar1 {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .mobile-menu-open .bar2 {
    opacity: 0;
  }

  .mobile-menu-open .bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .mobile-menu-active #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
  }

  /* Scroll animations */
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal-up {
    transform: translateY(40px);
  }

  .reveal-left {
    transform: translateX(-40px);
  }

  .reveal-right {
    transform: translateX(40px);
  }

  .reveal-visible {
    opacity: 1 !important;
    transform: translate(0) !important;
  }

  /* Scroll line animation */
  .scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
  }

  @keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
  }

  /* Delay utilities */
  .delay-100 { transition-delay: 100ms; }
  .delay-200 { transition-delay: 200ms; }
  .delay-300 { transition-delay: 300ms; }
}

@layer utilities {
  .text-terracotta { color: var(--terracotta); }
  .bg-terracotta { background-color: var(--terracotta); }
  .hover\:bg-terracotta:hover { background-color: var(--terracotta); }
}

/* Image hover container */
.rounded-2xl.overflow-hidden {
  position: relative;
}

.rounded-2xl.overflow-hidden::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(28, 25, 23, 0.1));
  border-radius: inherit;
  pointer-events: none;
}
