/* Crisethor Cucina — shared styles
   Tailwind v4 browser CDN handles utilities; this file covers what utilities
   can't: radius/shadow/button identity, cookie banner, keyframes. */

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

/* ---------- Border radius family: pill-everywhere ---------- */
.btn,
button.btn,
.card-pill,
.tile {
  border-radius: 24px;
}

.btn,
a.btn,
button.btn {
  border-radius: 9999px;
}

input,
textarea,
select {
  border-radius: 12px;
}

img,
.img-rounded {
  border-radius: 16px;
}

/* ---------- Shadow family: colored-tint ---------- */
.card-shadow {
  box-shadow: 0 8px 24px rgba(0, 43, 96, 0.12);
}

.card-shadow-accent {
  box-shadow: 0 8px 24px rgba(208, 75, 0, 0.14);
}

.card-shadow-secondary {
  box-shadow: 0 8px 24px rgba(165, 159, 110, 0.16);
}

/* ---------- Button + form family: brutalist-thick-border ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-surface);
  color: var(--color-primary);
  border: 3px solid var(--color-primary);
  box-shadow: 3px 3px 0 var(--color-primary);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  box-shadow: none;
  transform: translate(3px, 3px);
}

.btn-accent {
  background-color: var(--color-surface);
  color: var(--color-accent);
  border: 3px solid var(--color-accent);
  box-shadow: 3px 3px 0 var(--color-accent);
}

.btn-accent:hover {
  box-shadow: none;
  transform: translate(3px, 3px);
}

input,
textarea,
select {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  border: 3px solid var(--color-primary);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-secondary);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
}

label {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ---------- Section rhythm: oversized-bordered-cards ---------- */
.section-card {
  border: 3px solid var(--color-accent);
  border-radius: 24px;
  background-color: var(--color-surface);
  box-shadow: 0 8px 24px rgba(0, 43, 96, 0.12);
}

/* ---------- Nav: borderless-flat ---------- */
.nav-link {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* ---------- Tiles (industry-niche grid) ---------- */
.tile {
  border: 2px solid var(--color-accent);
  background-color: var(--color-surface);
  box-shadow: 0 8px 24px rgba(165, 159, 110, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(208, 75, 0, 0.16);
}

/* ---------- Mobile menu ---------- */
#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: flex;
}

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-color: var(--color-surface);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 -8px 24px rgba(0, 43, 96, 0.12);
}

#cookie-banner.hidden {
  display: none;
}

/* ---------- Confirmation message ---------- */
#booking-confirmation {
  display: none;
}

#booking-confirmation.visible {
  display: block;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
