/* IMI's Spice Kitchen - component styles (plain CSS, used alongside the Tailwind CDN) */

:root {
  --chilli: #B3261E;
  --chilli-dark: #8E1D17;
  --saffron: #E8A317;
  --saffron-light: #FBEBC8;
  --spice: #2B1A12;
  --cream: #FFF8EE;
  --taupe: #8C7B6B;
  --taupe-dark: #6B5A4B;
}

html { scroll-behavior: smooth; }

section[id], main { scroll-margin-top: 5rem; }

main:focus, section[tabindex]:focus { outline: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: .5rem;
  background: var(--spice);
  color: var(--cream);
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus states */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: .375rem;
}
.bg-spice a:focus-visible,
.bg-spice button:focus-visible,
footer a:focus-visible,
footer button:focus-visible { outline-color: var(--saffron); }
.btn-accent:focus-visible { outline-color: var(--chilli); }

/* Navigation */
.nav-link {
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-weight: 600;
  color: var(--spice);
  transition: background-color .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--saffron-light); color: var(--chilli-dark); }

.mobile-link {
  display: block;
  padding: .85rem .25rem;
  border-bottom: 1px solid rgba(43, 26, 18, .08);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--spice);
}
.mobile-link:hover { color: var(--chilli); }

/* Buttons */
.btn-primary,
.btn-accent,
.btn-outline,
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--chilli); color: #fff; }
.btn-primary:hover { background: var(--chilli-dark); }
.btn-accent { background: var(--saffron); color: var(--spice); }
.btn-accent:hover { background: #D69210; }
.btn-outline { border: 2px solid var(--spice); color: var(--spice); }
.btn-outline:hover { background: var(--spice); color: var(--cream); }
.btn-outline-light { border: 2px solid rgba(255, 248, 238, .7); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--spice); }

.btn-primary:active,
.btn-accent:active,
.btn-outline:active,
.btn-outline-light:active { transform: translateY(1px); }

/* Text links */
.text-link {
  color: var(--chilli);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--chilli-dark); text-decoration-thickness: 2px; }

/* Section headings */
.section-eyebrow {
  margin-bottom: .5rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--chilli);
}
.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--spice);
}
@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid rgba(43, 26, 18, .1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(43, 26, 18, .05);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 10px 30px -12px rgba(43, 26, 18, .25); transform: translateY(-2px); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: .9rem;
  background: #F6E1DC;
  color: var(--chilli);
}
.card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--spice);
}
.card-text {
  margin-top: .5rem;
  color: rgba(43, 26, 18, .8);
  line-height: 1.6;
  flex-grow: 1;
}

/* Menu dishes */
.dish {
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 248, 238, .18);
  border-radius: 1rem;
  background: rgba(255, 248, 238, .05);
}
.dish-note {
  border-color: rgba(232, 163, 23, .6);
  background: rgba(232, 163, 23, .12);
}
.dish-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--saffron);
}
.dish-text { margin-top: .35rem; color: rgba(255, 248, 238, .88); }

/* Key facts */
.fact {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--saffron);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(43, 26, 18, .05);
}
.fact-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--taupe-dark);
}
.fact-value { margin-top: .35rem; font-size: 1.05rem; font-weight: 600; color: var(--spice); }

/* Social links */
.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem 1.1rem;
  border: 2px solid rgba(43, 26, 18, .2);
  border-radius: 9999px;
  font-weight: 600;
  color: var(--spice);
  transition: border-color .15s ease, color .15s ease;
}
.social-link:hover { border-color: var(--chilli); color: var(--chilli); }

/* Footer */
.footer-link {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(255, 248, 238, .35);
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.footer-link:hover { color: var(--saffron); text-decoration-color: currentColor; }

/* Backgrounds */
.hero-bg {
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 163, 23, .22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(179, 38, 30, .12), transparent 40%),
    linear-gradient(180deg, #FFF8EE 0%, #F7EBDA 100%);
}
.pattern-dots {
  background-image: radial-gradient(rgba(232, 163, 23, .9) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

/* Steam animation */
.steam path { animation: steam 4s ease-in-out infinite; transform-origin: center bottom; }
.steam path:nth-child(2) { animation-delay: .6s; }
.steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50% { opacity: .75; transform: translateY(-6px); }
}

/* Legal modals */
.legal-modal {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: var(--cream);
  color: var(--spice);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, .45);
}
.legal-modal::backdrop { background: rgba(43, 26, 18, .65); }
.legal-inner { display: flex; flex-direction: column; max-height: calc(100vh - 2rem); }
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(43, 26, 18, .1);
}
.legal-body { overflow-y: auto; padding: 1.25rem 1.5rem 1.75rem; line-height: 1.65; }
.legal-body h3 {
  margin-top: 1.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--chilli-dark);
}
.legal-body p { margin-top: .4rem; color: rgba(43, 26, 18, .88); }
.legal-body a { color: var(--chilli); text-decoration: underline; }
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(43, 26, 18, .15);
  color: var(--spice);
  background: #fff;
}
.modal-close:hover { background: var(--saffron-light); }
body.modal-open { overflow: hidden; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
}
