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

:root {
  --color-bg: #f5f0e8;
  --color-text: #2c2018;
  --color-primary: #8b5e3c;
  --color-primary-dark: #6b462a;
  --color-accent: #c97b4a;
  --color-accent-light: #e8d5b7;
  --color-white: #ffffff;
  --color-gray: #6b6b6b;
  --color-feedback: #3a7d44;
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --spacing: 1rem;
  --max-width: 1100px;
  --border-radius: 6px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

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

/* ===== Tipografia ===== */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0.5rem auto 0;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* ===== Botão ===== */
.button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ===== Header ===== */
.header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(44, 32, 24, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.8rem 0;
}

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

.header__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.header__logo:hover {
  color: var(--color-primary);
}

.header__nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.header__nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.header__nav a:hover,
.header__nav a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg) 100%);
  padding: 5rem 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
}

.hero__content {
  max-width: 650px;
}

.hero__content p {
  font-size: 1.2rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
}

/* ===== Section ===== */
.section {
  padding: 4rem 1rem;
}

.sobre p {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-gray);
}

/* ===== Menu ===== */
.menu {
  background: var(--color-white);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.menu-item {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(44, 32, 24, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(44, 32, 24, 0.12);
}

.menu-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.menu-item__info {
  padding: 1rem 1.2rem 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.menu-item__info h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.menu-item__price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.menu-item__info p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
  flex-grow: 1;
}

/* ===== Contato ===== */
.contato {
  background: var(--color-bg);
}

.contato__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contato__info h3 {
  color: var(--color-primary);
  margin-top: 1.2rem;
}

.contato__info p {
  color: var(--color-gray);
  margin-bottom: 0.6rem;
}

.contato__form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contato__form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.contato__form input,
.contato__form textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
  transition: border-color 0.2s;
}

.contato__form input:focus,
.contato__form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-accent-light);
}

.contato__form button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.contato__feedback {
  font-size: 0.9rem;
  color: var(--color-feedback);
  margin-top: 0.3rem;
  min-height: 1.2rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-text);
  color: var(--color-accent-light);
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: auto;
}

.footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .hero {
    padding: 3rem 1rem;
    min-height: 50vh;
  }
  .hero__content p {
    font-size: 1rem;
  }
  .menu__grid {
    grid-template-columns: 1fr;
  }
  .contato__wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .header__nav ul {
    gap: 1rem;
  }
  .header__nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header__container {
    flex-direction: column;
    gap: 0.5rem;
  }
  .header__nav ul {
    justify-content: center;
  }
  .button {
    padding: 0.6rem 1.2rem;
  }
}