/* ========================================
   Iandoli Ice — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: #166534;
  color: #fefce8;
}

/* ========================================
   Navigation
   ======================================== */
.nav-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(20, 83, 45, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-scrolled.scrolled {
  background: rgba(250, 248, 245, 0.98);
  box-shadow: 0 4px 30px rgba(20, 83, 45, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #166534;
  transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease;
}

.mobile-menu.open {
  max-height: 320px;
  border-bottom-color: rgba(20, 83, 45, 0.08);
  padding-top: 0.5rem;
}

.mobile-menu-link {
  position: relative;
  display: block;
}

/* ========================================
   Hero
   ======================================== */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(74, 222, 128, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(134, 239, 172, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 40%);
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero Animations */
.hero-eyebrow {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-headline {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-sub {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.hero-ctas {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Category Cards */
.category-card {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(20, 83, 45, 0.2);
}

/* Story Section */
.story-image {
  animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

::-webkit-scrollbar-track {
  background: #faf8f5;
}

::-webkit-scrollbar-thumb {
  background: #166534;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* ========================================
   Focus Styles
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #166534;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .category-card {
    aspect-ratio: 4/5;
  }
}

/* Print */
@media print {
  .nav-scrolled,
  .hero-pattern,
  .mobile-menu {
    display: none;
  }
}
