/* ==========================================================
   A la Brasa — Estils Globals (Taverna)
   Refactoritzat: Mobile-first, Pur CSS3, Premium Responsive.
   ========================================================== */

:root {
  /* Colors - A la Brasa V1 Taverna */
  --bg: #f4ecdd;
  --surface: #fffaf0;
  --ink: #2a1d12;
  --ink-soft: #6b5440;
  --ink-mute: #a18a70;
  --line: rgba(42, 29, 18, 0.12);
  --accent: #b94a2c;
  --accent-ink: #fffaf0;
  --accent-soft: #ecd9c3;

  /* Typography */
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter", -apple-system, system-ui, sans-serif;
  --f-italic: "Fraunces", Georgia, serif;

  /* Radius */
  --radius: 6px;
  --radius-lg: 18px;

  /* Transitions */
  --trans: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Spacing */
  --gutter: clamp(2rem, 10vw, 6.5rem);
}

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

body,
h1,
h2,
h3,
h4,
p,
ul,
li,
figure {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--trans);
}

a:hover {
  opacity: 0.8;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(3.5rem, 10vw, 8rem) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  text-align: center;
}

/* Atoms */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow.on-dark {
  color: var(--accent-soft);
}

.h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.h2.on-dark {
  color: #fff;
}

.h2 em {
  font-style: italic;
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 54ch;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--trans);
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 48px;
  /* Mobile touch target */
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px var(--accent);
  opacity: 1;
}

.btn.is-disabled {
  pointer-events: none;
  cursor: default;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  opacity: 1;
}

.btn--ghost.on-dark-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.btn--ghost.on-dark-btn:hover {
  background: #fff;
  color: var(--ink);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 13px;
  min-height: 38px;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* Header */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--trans);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.hdr.scrolled {
  background: rgba(244, 236, 221, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 24px 0;
  transition: padding var(--trans);
}

.hdr.scrolled .hdr__in {
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-display);
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  font-style: italic;
}

.logo__text {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav {
  display: none;
  gap: 32px;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  transition: color var(--trans);
}

.nav__link:hover,
.nav__link.on {
  color: var(--ink);
  opacity: 1;
}

.nav__link.on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hdr__actions {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}

@media (max-width: 1023px) {
  .hdr__actions .btn {
    display: none;
  }
}

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: all var(--trans);
}

.burger:hover {
  background: var(--line);
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.9);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 15, 12, 0.8) 0%, rgba(26, 15, 12, 0.4) 50%, rgba(26, 15, 12, 0.2) 100%);
  z-index: 1;
}

@media (max-width: 768px) {
  .hero__scrim {
    background: linear-gradient(to bottom, rgba(26, 15, 12, 0.3) 0%, rgba(26, 15, 12, 0.7) 100%);
  }

  .hero {
    align-items: flex-end;
  }
}

.hero__in {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: italic;
}

.hero__sub {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 42ch;
  line-height: 1.4;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.hero__meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Value Props */
.values {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.values__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 768px) {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
  .values__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  text-align: center;
}

@media (min-width: 768px) {
  .value-card {
    text-align: left;
  }
}

.value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--trans);
}

.value-card:hover .value-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
  font-family: var(--f-display);
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.value-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

/* Dishes Grid */
.dishes__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
  .dishes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dishes__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dish-card {
  display: flex;
  flex-direction: column;
}

.dish-card__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--line);
}

.dish-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.dish-card:hover .dish-card__media img {
  transform: scale(1.08);
}

.dish-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dish-card__veg {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(93, 111, 57, 0.95);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.dish-card h4 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.dish-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.dishes__more {
  text-align: center;
  margin-top: 60px;
}

.link-arrow {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all var(--trans);
}

.link-arrow:hover {
  border-bottom-color: var(--accent);
  gap: 15px;
  opacity: 1;
}

/* Story */
.story {
  background: var(--surface);
}

.story__grid {
  display: grid;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .story__grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.story__media {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(42, 29, 18, 0.2);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__body {
  padding: 20px 0;
}

.story__body p {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.story__signature {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 22px;
  margin-top: 32px;
  color: var(--ink);
}

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 16px;
  }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  cursor: pointer;
  background: var(--line);
}

@media (min-width: 1024px) {
  .gallery__item {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, filter 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

@media (min-width: 1024px) {
  .gallery__item--tall {
    grid-row: span 2;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }
}

/* Reviews */
.reviews {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.reviews__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.stars {
  color: #e8a63c;
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.review-card p {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 500;
  flex: 1;
}

.review-card__foot {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--ink);
  text-align: left;
  font-weight: 600;
}

.faq-q svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--ink-mute);
}

.faq-item.active .faq-q svg {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.faq-item.active .faq-a {
  max-height: 300px;
  padding-bottom: 28px;
  opacity: 1;
}

.faq-a p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
}

/* Visit CTA */
.visit {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 100px 0;
}

.visit__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.visit__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 15, 12, 0.8);
  z-index: 1;
}

.visit__in {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 800px;
}

.visit__info {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  opacity: 0.8;
  align-items: center;
}

.visit__info div {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Footer */
.foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 100px 0 40px;
}

.foot__grid {
  display: grid;
  gap: 60px;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .foot__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .foot__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.foot__col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 24px;
  font-weight: 700;
}

.foot__col p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.foot__col ul {
  list-style: none;
}

.foot__col li {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.foot__col li span:first-child {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.foot__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 14px;
  transition: color var(--trans);
}

.foot__link:hover {
  color: #fff;
  opacity: 1;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--trans);
}

.social-btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
  opacity: 1;
}

.foot__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

/* Bottom Bar (Mobile) - iOS Style */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 250, 240, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  display: flex;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  gap: 12px;
  z-index: 1100;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .bottom-bar {
    display: none;
  }
}

.bottom-bar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: transparent;
  transition: all var(--trans);
}

.bottom-bar__btn svg {
  width: 22px;
  height: 22px;
}

.bottom-bar__btn--reserve {
  background: var(--accent);
  color: #fff;
  flex: 2;
  font-size: 13px;
  flex-direction: row;
  gap: 10px;
}

.bottom-bar__btn--reserve svg {
  width: 18px;
  height: 18px;
}

.bottom-bar__btn--wa {
  color: #128c4a;
}

/* Fab Stack (Desktop) */
.fab-stack {
  position: fixed;
  right: 40px;
  bottom: 40px;
  display: none;
  flex-direction: column;
  gap: 20px;
  z-index: 1100;
}

@media (min-width: 1024px) {
  .fab-stack {
    display: flex;
  }
}

.fab-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: all var(--trans);
}

.fab-btn:hover {
  transform: scale(1.1) translateY(-5px);
  opacity: 1;
}

.fab-btn--wa {
  background: #25D366;
}

.fab-btn--wa::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 4px solid #25D366;
  opacity: 0;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.fab-btn--call {
  background: var(--ink);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.fab-tip {
  position: absolute;
  right: 80px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--trans);
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fab-btn:hover .fab-tip {
  opacity: 1;
  transform: translateX(0);
}

/* Carta Specific */
.ap--carta {
  background: var(--surface);
}

.carta-hero {
  padding: clamp(8.5rem, 15vw, 12rem) 0 60px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.carta-filters {
  position: sticky;
  top: 72px;
  background: rgba(244, 236, 221, 0.9);
  backdrop-filter: blur(15px);
  z-index: 900;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Forcem la desaparició total */
.carta-filters.filters--hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.hdr.scrolled~main .carta-filters {
  top: 60px;
}

.chip {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--trans);
  background: transparent;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.chip--gluten.active {
  background: #8c6c51;
  border-color: #8c6c51;
}

.chip--lactis.active {
  background: #5a8ba0;
  border-color: #5a8ba0;
}

.chip--veg.active {
  background: #5d6f39;
  border-color: #5d6f39;
}

.carta-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 60px 0;
}

@media (min-width: 1024px) {
  .carta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 80px;
  }
}

.carta-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

@media (min-width: 768px) {
  .carta-item {
    grid-template-columns: 160px 1fr;
  }
}

.carta-item__img {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.1);
}

.carta-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carta-item:hover .carta-item__img img {
  transform: scale(1.1);
}

.carta-item__body h3 {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink);
}

.carta-item__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  position: relative;
  top: -5px;
  opacity: 0.5;
}

.price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  flex-shrink: 0;
}

.carta-item__body p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.allergens {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.allergen {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.allergen svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* Modal UI - Premium Feel */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 15, 12, 0.4);
  backdrop-filter: blur(15px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 40px var(--gutter) 32px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.2, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }

  .modal-card {
    border-radius: var(--radius-lg);
    transform: translateY(30px) scale(0.95);
    padding: 48px;
  }
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all var(--trans);
}

.modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.modal-step {
  display: none;
  animation: modalFadeIn 0.4s ease;
}

.modal-step.active {
  display: block;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.progress-bar span {
  flex: 1;
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  transition: background 0.5s ease;
}

.progress-bar span.active {
  background: var(--accent);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: all var(--trans);
}

.form-group input:focus {
  border-color: var(--accent);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-btn {
  padding: 12px 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--trans);
}

.time-btn:hover {
  border-color: var(--accent);
}

.time-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.05);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg);
  padding: 10px 20px;
  border-radius: 999px;
  width: max-content;
  border: 1.5px solid var(--line);
}

.stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform var(--trans);
}

.stepper button:active {
  transform: scale(0.9);
}

.stepper strong {
  font-size: 20px;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

/* Mobile Menu Drawer (Premium Redesign) */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(26, 15, 12, 0.4);
  backdrop-filter: blur(12px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.open {
  opacity: 1;
  visibility: visible;
}

.drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 90%;
  max-width: 400px;
  background: var(--surface);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
}

.drawer.open .drawer__panel {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.drawer__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--trans);
}

.drawer__close:hover {
  background: var(--ink);
  color: var(--bg);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer__link {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered Entrance */
.drawer.open .drawer__link {
  transform: translateY(0);
  opacity: 1;
}

.drawer.open .drawer__link:nth-child(1) { transition-delay: 0.1s; }
.drawer.open .drawer__link:nth-child(2) { transition-delay: 0.15s; }
.drawer.open .drawer__link:nth-child(3) { transition-delay: 0.2s; }
.drawer.open .drawer__link:nth-child(4) { transition-delay: 0.25s; }
.drawer.open .drawer__link:nth-child(5) { transition-delay: 0.3s; }

.drawer__link span {
  font-size: 13px;
  font-family: var(--f-sans);
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.drawer__link.active {
  color: var(--accent);
}

.drawer__footer {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.drawer__socials {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.drawer__social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  transition: all var(--trans);
}

.drawer__social-icon:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-3px);
}

/* Utils */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}