/* Shared components used across pages. */

/* Doodle accents from the banner reference: hand-drawn sparks and squiggles */
.cp-doodle { position: absolute; pointer-events: none; color: var(--cp-white); }
.cp-doodle svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cp-doodle--orange { color: var(--cp-marigold); }
.cp-doodle path, .cp-doodle circle { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cp-doodle .fill { fill: currentColor; stroke: none; }

/* Headline with spark marks, like "TAQUITOS" on the banner */
.cp-sparked { position: relative; display: inline-block; }
.cp-sparked::before, .cp-sparked::after { content: ""; position: absolute; width: .55em; height: .55em; background: center / contain no-repeat; }
.cp-sparked::before { left: -.5em; top: -.3em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23fff' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M20 4v9M6 12l7 6M34 12l-7 6'/%3E%3C/g%3E%3C/svg%3E"); transform: rotate(-30deg); }
.cp-sparked::after { right: -.5em; top: -.3em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23fff' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M20 4v9M6 12l7 6M34 12l-7 6'/%3E%3C/g%3E%3C/svg%3E"); transform: rotate(30deg); }

/* Round sticker badge, like the "3x2" burst */
.cp-badge { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: var(--cp-chili); color: var(--cp-white); display: grid; place-content: center; text-align: center; box-shadow: 0 0 0 6px var(--cp-char), 0 0 0 8px var(--cp-chili), 0 14px 30px rgba(0,0,0,.35); transform: rotate(-8deg); z-index: 2; }
.cp-badge strong { display: block; font-size: 2.6rem; line-height: 1; font-weight: 800; }
.cp-badge span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; padding: 0 14px; line-height: 1.25; }

/* Dish card */
.cp-dish { background: var(--cp-white); border-radius: var(--cp-radius); overflow: hidden; box-shadow: 0 2px 14px rgba(34,26,31,.08); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.cp-dish:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(34,26,31,.16); }
.cp-dish__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cp-char-2); }
.cp-dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cp-dish:hover .cp-dish__img img { transform: scale(1.05); }
.cp-dish__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cp-dish__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cp-dish__name { font-size: 1.15rem; font-weight: 700; margin: 0; text-transform: none; }
.cp-dish__price { font-weight: 800; color: var(--cp-plum); white-space: nowrap; }
.cp-dish__desc { color: var(--cp-muted); font-size: .95rem; margin: 0; }
.cp-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; background: var(--cp-cream); color: var(--cp-plum); }
.cp-tag--it { background: #e8f2dc; color: #3b5a1c; }

/* Orange info band, like the phone/website strip on the banner */
.cp-band { background: var(--cp-marigold); color: var(--cp-char); }
.cp-band .cp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 18px; padding-bottom: 18px; }
.cp-band a { color: var(--cp-char); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.cp-band a:hover { text-decoration: underline; }
.cp-band__item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.cp-band__item svg { width: 22px; height: 22px; flex: none; }

/* Open / closed pill (site.js fills it) */
.cp-open { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); }
.cp-open::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9a9a9a; }
.cp-open.is-open::before { background: var(--cp-lime); box-shadow: 0 0 0 4px rgba(140,198,63,.25); }
.cp-open.is-closed::before { background: var(--cp-chili); }

/* Scroll reveals: movement only, text is never transparent */
[data-reveal] { transform: translateY(26px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Final call to action */
.cp-cta { background: var(--cp-char); color: var(--cp-white); text-align: center; position: relative; overflow: hidden; }
.cp-cta h2 { color: var(--cp-white); }
.cp-cta h2 em { color: var(--cp-marigold); font-style: normal; }
.cp-cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
