/* =============================================
   HUTKE SE — Global Stylesheet
   ============================================= */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- HEADER NAV ACTIVE STATES ---- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #2D5016;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 9999px;
}
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: #2D5016;
  font-weight: 600;
}

/* ---- MOBILE MENU ---- */
#mobile-menu {
  transition: all 0.25s ease;
}

/* ---- BURGER ANIMATION ---- */
.mobile-menu-open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- TABS ---- */
.tab-btn {
  color: #6b6b6b;
  background-color: transparent;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}
.tab-btn:hover {
  color: #2D5016;
  border-color: #2D5016;
}
.tab-btn.active-tab {
  background-color: #2D5016;
  color: #ffffff;
  border-color: #2D5016;
}

/* ---- MENU CARDS ---- */
.menu-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(45, 80, 22, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45, 80, 22, 0.1);
}

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 9999px;
  white-space: nowrap;
}
.badge-green {
  background-color: #dcfce7;
  color: #15803d;
}
.badge-teal {
  background-color: #ccfbf1;
  color: #0f766e;
}
.badge-amber {
  background-color: #fef9c3;
  color: #a16207;
}
.badge-orange {
  background-color: #ffedd5;
  color: #c2410c;
}

/* ---- INGREDIENT TAGS ---- */
.ingredient-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 500;
  color: #6b6b6b;
  background-color: #f3f4f6;
  padding: 3px 9px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- NUTRITION STATS ---- */
.nutrition-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nutrition-stat .label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}
.nutrition-stat .value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* ---- LEGAL PAGE PROSE ---- */
.legal-prose h1 {
  font-family: 'Inter', sans;
  font-weight: 700;
  color: #2D5016;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}
.legal-prose h2 {
  font-family: 'Inter', sans;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-prose p, .legal-prose li {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-prose a {
  color: #2D5016;
  text-decoration: underline;
}

/* ---- HEADER SHADOW ON SCROLL ---- */
.header-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- CONTACT FORM ---- */
.form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: #F6F5DF;
  border: 1.5px solid #4a7c20;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-input::placeholder {
  color: #6b6b6b;
}
.form-input:focus {
  border-color: #2D5016;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}
.form-input.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 500;
}

.form-group {
  display: flex;
  flex-direction: column;
}

/* Spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 0.75s linear infinite;
}

/* ---- TOUCH FRIENDLY ---- */
@media (max-width: 640px) {
  .tab-btn {
    font-size: 0.8125rem;
    padding: 0.6rem 1rem;
  }
  .ingredient-tag {
    font-size: 0.6rem;
  }
}
