/* ==========================================================================
   ChiBarri Restaurant — plain CSS version
   Colors / spacing follow the original design. Edit the variables in :root
   to re-theme the whole site.
   ========================================================================== */

:root {
  --radius: 0.75rem;

  /* Mediterranean palette */
  --background: oklch(0.975 0.012 80);   /* broken white / cream */
  --foreground: oklch(0.23 0.025 50);    /* dark earth */
  --card: oklch(0.99 0.008 80);
  --primary: oklch(0.58 0.13 45);        /* terracotta / ochre */
  --primary-foreground: oklch(0.98 0.01 80);
  --secondary: oklch(0.93 0.02 80);
  --muted-foreground: oklch(0.48 0.02 60);
  --accent: oklch(0.5 0.08 130);         /* olive green */
  --accent-foreground: oklch(0.98 0.01 80);
  --border: oklch(0.88 0.015 70);
  --cream: oklch(0.97 0.012 80);

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem; /* 6xl */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem; /* 7xl */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .section { padding-top: 8rem; padding-bottom: 8rem; }
}

.section--tinted {
  background-color: color-mix(in oklch, var(--secondary) 40%, transparent);
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.text-muted {
  color: var(--muted-foreground);
}

.italic {
  font-style: italic;
}

/* ---------------------------------- Buttons ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.9rem 2rem;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn--primary:hover { background-color: color-mix(in oklch, var(--primary) 90%, black); }

.btn--accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  width: 100%;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.btn--accent:hover { background-color: color-mix(in oklch, var(--accent) 90%, black); }

.btn--outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn--outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn--outline-cream {
  background-color: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn--outline-cream:hover {
  background-color: var(--cream);
  color: var(--foreground);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------- Badge -------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: color-mix(in oklch, var(--accent) 10%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent) 20%, transparent);
}
.badge .icon { margin-right: 0.4rem; }

.badge--dish {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* ---------------------------------- Header ------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background-color: color-mix(in oklch, var(--background) 70%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 50%, transparent);
}

.site-header__inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.site-nav a:hover { color: var(--primary); }

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

/* ---------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in oklch, var(--foreground) 50%, transparent),
    color-mix(in oklch, var(--foreground) 58%, transparent) 50%,
    color-mix(in oklch, var(--foreground) 80%, transparent)
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 48rem;
  color: var(--cream);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  color: color-mix(in oklch, var(--cream) 90%, transparent);
}

.hero__title {
  font-size: 3rem;
  line-height: 0.95;
  color: var(--cream);
}

@media (min-width: 768px) { .hero__title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 6rem; } }

.hero__subtitle {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 300;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: color-mix(in oklch, var(--cream) 90%, transparent);
}

@media (min-width: 768px) { .hero__subtitle { font-size: 1.25rem; } }

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
}

/* ---------------------------------- About -------------------------------- */

.about {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.about__image {
  border-radius: 1rem;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.25);
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about__title {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  line-height: 1.2;
}

@media (min-width: 768px) { .about__title { font-size: 3rem; } }

.about p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.about strong { color: var(--foreground); }

.about__hashtags {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}

/* ---------------------------------- Cards / grid -------------------------- */

.grid {
  display: grid;
  gap: 2rem;
}

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

.card {
  background-color: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); }

.card__image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.card:hover .card__image-wrap img { transform: scale(1.05); }

.card__body {
  padding: 1.5rem;
}

.card__body h3 {
  font-size: 1.5rem;
}

.card__body p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.card__link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
}
.card__link:hover { text-decoration: underline; }

/* ---------------------------------- Experience --------------------------- */

.experience-grid {
  display: grid;
  gap: 3rem;
  text-align: center;
}

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

.experience-item__icon {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
}

.experience-item h3 { font-size: 1.5rem; }
.experience-item p { margin-top: 0.75rem; color: var(--muted-foreground); line-height: 1.7; }

/* ---------------------------------- Reviews ------------------------------- */

.review-card .stars {
  display: flex;
  gap: 0.15rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.review-card .stars .icon { fill: currentColor; }

.review-card blockquote {
  margin: 0;
  font-style: italic;
  line-height: 1.7;
  color: color-mix(in oklch, var(--foreground) 90%, transparent);
}

.review-card .author {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.review-card .card__body { padding: 2rem; }

/* ---------------------------------- Contact ------------------------------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-row {
  display: flex;
  gap: 1rem;
}

.info-row__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
}

.info-row__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.info-row__content {
  line-height: 1.7;
}
.info-row__content a:hover { color: var(--primary); }

.contact-map {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.2);
  height: 500px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------- Footer -------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background-color: color-mix(in oklch, var(--secondary) 30%, transparent);
  padding: 3rem 1.5rem;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .site-footer__top { flex-direction: row; align-items: center; }
}

.site-footer__brand p:first-child { font-size: 1.5rem; font-family: var(--font-display); }
.site-footer__brand p:last-child { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

.site-footer__social {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-btn:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.site-footer__copy {
  margin: 2rem auto 0;
  max-width: 72rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===========================================================================
   Carta (menu) page
   =========================================================================== */

.carta-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: blur(10px);
}

.carta-topbar__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.back-link:hover { color: var(--primary); }

.carta-header {
  padding: 3rem 1.25rem 1.5rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.carta-header h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}
@media (min-width: 768px) { .carta-header h1 { font-size: 3rem; } }

.carta-header p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.carta-filters {
  position: sticky;
  top: 3.5rem;
  z-index: 30;
  background-color: color-mix(in oklch, var(--background) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.carta-filters__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.filter-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  background-color: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.is-active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.dishes-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.dishes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.dish-card {
  background-color: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}
.dish-card:hover { box-shadow: 0 16px 30px -12px rgba(0,0,0,0.18); }

.dish-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--secondary);
}

.dish-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.dish-card:hover .dish-card__image-wrap img { transform: scale(1.05); }

.dish-card__category-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background-color: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.dish-card__body {
  padding: 1.25rem;
}

.dish-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dish-card__row h2 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.dish-card__price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--primary);
  flex-shrink: 0;
}

.dish-card__body p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.carta-disclaimer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.whatsapp-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.3);
  font-size: 0.875rem;
  font-weight: 500;
  transition: box-shadow 0.2s ease;
}
.whatsapp-fab:hover { box-shadow: 0 16px 36px -8px rgba(0,0,0,0.4); }
