/* ============================================
   CARTA — Cardápio Digital
   Identidade Visual: Bossa Nova
   ============================================ */

/* === DESIGN TOKENS === */
:root {
  /* Bossa Nova Palette */
  --gold: #C5A55A;
  --gold-light: #D4B96E;
  --gold-dark: #A68B3E;
  --cream: #F5F0E1;
  --cream-light: #FAF8F0;
  --brown-dark: #2C1810;
  --brown-medium: #4A3228;
  --brown-light: #6B4D3E;
  --olive: #5B6B4A;
  --olive-light: #7A8B66;
  --terracotta: #B5644A;
  --off-white: #FAF8F0;
  --black-soft: #1A1A1A;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 500ms;

  /* Layout */
  --max-width: 960px;
  --nav-height: 60px;
}

/* === RESET === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--brown-dark);
  background-color: var(--cream-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brown-dark) 0%,
    #3D2418 30%,
    var(--brown-medium) 60%,
    #352015 100%
  );
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(197, 165, 90, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(91, 107, 74, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(181, 100, 74, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 50px,
      rgba(197, 165, 90, 0.02) 50px,
      rgba(197, 165, 90, 0.02) 51px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(197, 165, 90, 0.02) 50px,
      rgba(197, 165, 90, 0.02) 51px
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl);
}

.hero__ornament {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: var(--space-lg);
  opacity: 0.8;
  letter-spacing: 1em;
  animation: fadeInDown 1s var(--ease-smooth) 0.2s both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.08em;
  line-height: 0.9;
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s var(--ease-smooth) 0.4s both;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1s var(--ease-smooth) 0.6s both;
}

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto var(--space-xl);
  opacity: 0.6;
  animation: scaleIn 1s var(--ease-smooth) 0.8s both;
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--cream);
  opacity: 0.7;
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 1s var(--ease-smooth) 1s both;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: var(--space-md) var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-smooth);
  animation: fadeInUp 1s var(--ease-smooth) 1.2s both;
}

.hero__cta:hover {
  background: var(--gold);
  color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 165, 90, 0.2);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(44, 24, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 165, 90, 0.1);
  transform: translateY(-100%);
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.nav--visible {
  transform: translateY(0);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.nav__links {
  display: none;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 225, 0.6);
  transition: color var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: all var(--duration-normal) var(--ease-smooth);
  transform-origin: center;
}

.nav__toggle--active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle--active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* === MOBILE NAV === */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(44, 24, 16, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-smooth);
}

.mobile-nav--open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--cream);
  opacity: 0.7;
  transition: all var(--duration-normal) var(--ease-smooth);
  transform: translateY(20px);
}

.mobile-nav--open .mobile-nav__link {
  transform: translateY(0);
}

.mobile-nav__link:hover {
  opacity: 1;
  color: var(--gold);
}

/* Stagger animation */
.mobile-nav--open .mobile-nav__link:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav--open .mobile-nav__link:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav--open .mobile-nav__link:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav--open .mobile-nav__link:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav--open .mobile-nav__link:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav--open .mobile-nav__link:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav--open .mobile-nav__link:nth-child(7) { transition-delay: 0.35s; }
.mobile-nav--open .mobile-nav__link:nth-child(8) { transition-delay: 0.4s; }

/* === INTRO === */
.intro {
  padding: var(--space-5xl) 0;
  text-align: center;
}

.intro__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  line-height: 1.8;
  color: var(--brown-light);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-smooth);
}

.intro__text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === MENU SECTION === */
.menu-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.menu-section:nth-child(even) {
  background: rgba(197, 165, 90, 0.03);
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-smooth);
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header__number {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  color: var(--brown-dark);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
}

.section-header__desc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--brown-light);
  opacity: 0.7;
  margin-bottom: var(--space-lg);
}

.section-header__line {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
  opacity: 0.5;
}

/* === MENU GRID === */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* === MENU ITEM === */
.menu-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(44, 24, 16, 0.06);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-smooth);
}

.menu-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item__top {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.menu-item__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--brown-dark);
  flex-shrink: 0;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.menu-item:hover .menu-item__name {
  color: var(--gold-dark);
}

.menu-item__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(44, 24, 16, 0.15);
  min-width: 20px;
  margin-bottom: 4px;
}

.menu-item__price {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold-dark);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.menu-item__desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--brown-light);
  max-width: 600px;
  padding-right: var(--space-xl);
}

.menu-item__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
  background: rgba(91, 107, 74, 0.08);
  border: 1px solid rgba(91, 107, 74, 0.15);
  padding: 3px 10px;
  border-radius: 2px;
  margin-top: var(--space-sm);
}

/* Featured Item */
.menu-item--featured {
  padding: var(--space-xl);
  background: rgba(197, 165, 90, 0.04);
  border: 1px solid rgba(197, 165, 90, 0.1);
  border-radius: 4px;
  margin: var(--space-sm) 0;
}

.menu-item--featured:last-child {
  border-bottom: 1px solid rgba(197, 165, 90, 0.1);
}

.menu-item__badge {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
}

/* === DRINKS CATEGORY === */
.drinks-category,
.wine-category {
  margin-bottom: var(--space-2xl);
}

.drinks-category:last-child,
.wine-category:last-child {
  margin-bottom: 0;
}

.drinks-category__title,
.wine-category__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--brown-dark);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid rgba(197, 165, 90, 0.2);
  letter-spacing: 0.05em;
}

/* === NOTES === */
.notes {
  padding: var(--space-4xl) 0;
}

.notes__content {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--brown-dark);
  border-radius: 4px;
  position: relative;
}

.notes__ornament {
  font-size: 1.2rem;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: var(--space-lg);
}

.notes__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.05em;
}

.notes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 700px;
  margin: 0 auto;
}

.notes__item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.notes__item p {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(245, 240, 225, 0.6);
  line-height: 1.6;
}

/* === FOOTER === */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--brown-dark);
  border-top: 1px solid rgba(197, 165, 90, 0.1);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.6;
}

.footer__info p {
  font-size: 0.8rem;
  color: rgba(245, 240, 225, 0.4);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(197, 165, 90, 0.08);
}

.footer__bottom p {
  font-size: 0.7rem;
  color: rgba(245, 240, 225, 0.3);
  letter-spacing: 0.1em;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brown-dark);
  color: var(--gold);
  border: 1px solid rgba(197, 165, 90, 0.3);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--brown-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(197, 165, 90, 0.3);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 0.8;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 0.6;
    transform: scaleX(1);
  }
}

/* === RESPONSIVE === */

/* Tablet */
@media (min-width: 640px) {
  .notes__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .menu-item__desc {
    padding-right: 0;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  :root {
    --max-width: 1040px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .nav,
  .hero__cta,
  .back-to-top,
  .mobile-nav {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: white;
  }

  .hero__title {
    color: black;
    font-size: 3rem;
  }

  .hero__subtitle,
  .hero__tagline {
    color: #333;
  }

  .menu-section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }

  .menu-item {
    opacity: 1;
    transform: none;
    page-break-inside: avoid;
  }

  body {
    background: white;
  }
}