/* ============================================================
   Atelier do Tonhão — style.css
   Editorial restaurant design · Fraunces + Inter
   ============================================================ */

:root {
  --primary: #2D4E4C;
  --primary-soft: #406D6B;
  --primary-light: #6B9290;
  --accent: #B8895A;
  --paper: #FBF8F3;
  --cream: #F2EBE0;
  --sand: #E8DECC;
  --charcoal: #1F1F1F;
  --ink: #2A2A2A;
  --muted: #8A8580;
  --line: #DCD4C6;
  --white: #FFFFFF;
  --black: #0E0E0E;

  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;

  --container: 1280px;
  --gutter: 1.5rem;
  --section-pad: clamp(4rem, 9vw, 7.5rem);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--primary); color: var(--paper); }

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

/* TIPOGRAFIA ------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--charcoal);
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.25rem;
  font-variation-settings: "opsz" 96;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--ink);
}
p.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.section-number {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
  position: relative;
  padding-left: 2.5rem;
}
.section-number::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section-number.light { color: rgba(255,255,255,0.6); }

.section-lead {
  font-size: 1.05rem;
  max-width: 640px;
  color: var(--ink);
  line-height: 1.6;
}
.section-lead a { color: var(--primary); border-bottom: 1px solid currentColor; }

/* LINK-ARROW (CTA principal estilo editorial) -------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid currentColor;
  transition: all 0.4s var(--ease-out);
}
.link-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease-out);
}
.link-arrow:hover svg { transform: translateX(8px); }

/* NAVBAR ---------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
  padding: 1.5rem 0;
}
.navbar.scrolled {
  background: rgba(251, 248, 243, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  padding: 0.85rem 0;
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: all 0.4s var(--ease);
  filter: brightness(0) invert(1);
}
.navbar.scrolled .nav-logo img {
  filter: none;
  height: 55px;
}

.nav-menu ul {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  position: relative;
  padding: 0.3rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease-out);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.navbar.scrolled .nav-link { color: var(--ink); }
.navbar.scrolled .nav-link.active { color: var(--primary); }

.nav-cta {
  padding: 0.7rem 1.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--white);
  color: var(--primary) !important;
}
.navbar.scrolled .nav-cta:hover {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--white);
  transition: var(--ease);
}
.navbar.scrolled .nav-toggle span { background: var(--ink); }

.nav-close {
  display: none;
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}

/* HERO ------------------------------------------------------ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('public/images/hero-bg.webp') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20,30,30,0.78) 0%, rgba(20,30,30,0.5) 55%, rgba(20,30,30,0.2) 100%);
}

.hero-side {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  z-index: 2;
}
.hero-side-text {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-side-text::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,0.5);
  vertical-align: middle;
  margin-right: 1rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 var(--gutter) 0 max(var(--gutter), 8vw);
}
.hero-kicker {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.3s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 144;
  color: var(--white);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > * { display: inline-block; }
.hero-title .line {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.45s; }
.hero-title .line:nth-child(2) { animation-delay: 0.6s; }
.hero-title .line:nth-child(3) { animation-delay: 0.75s; }
.hero-title em {
  font-style: italic;
  color: var(--paper);
  position: relative;
}

.hero-text {
  max-width: 460px;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.95s forwards;
}

.hero-content .link-arrow {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 1.1s forwards;
}

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

.hero-foot {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
}
.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-scroll svg {
  width: 14px;
  height: 14px;
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* MARQUEE --------------------------------------------------- */
.marquee {
  background: var(--charcoal);
  color: var(--paper);
  padding: 1.5rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  flex-shrink: 0;
}
.marquee-track span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 400;
  white-space: nowrap;
}
.marquee-track .dot {
  font-style: normal;
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0.7;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS -------------------------------------------------- */
.section {
  padding: var(--section-pad) 0;
  background: var(--paper);
  position: relative;
}
.section-cream { background: var(--cream); }
.section-dark { background: var(--charcoal); color: var(--paper); }
.section-dark h2 { color: var(--paper); }
.section-dark h2 em { color: var(--accent); }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-head {
  margin-bottom: 4rem;
  max-width: 760px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* GRID ASIMÉTRICO ------------------------------------------ */
.grid-asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .grid-asymmetric {
    grid-template-columns: 5fr 6fr;
    gap: 5rem;
  }
  .grid-reverse {
    grid-template-columns: 6fr 5fr;
  }
  .grid-reverse .col-image { order: 0; }
  .grid-reverse .col-text { order: 1; }
}

.col-text { max-width: 540px; }
.col-image figure { margin: 0; position: relative; }
.col-image figcaption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-sans);
}
.col-image img {
  width: 100%;
  height: auto;
  filter: saturate(0.92);
  transition: filter 0.6s var(--ease);
}
.col-image figure:hover img { filter: saturate(1.1); }

/* Feature list (Sobre) */
.feature-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.feature-list li:hover { color: var(--primary); }
.feature-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  min-width: 1.5rem;
}

/* Chef ----------------------------------------------------- */
.chef-frame {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.chef-frame::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--primary-soft);
  pointer-events: none;
}
.chef-frame img {
  position: relative;
  width: 100%;
  filter: saturate(0.95);
}

.chef-stats {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 600px) {
  .chef-stats { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.chef-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.chef-stats strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.6rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.chef-stats .unit {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.chef-stats > div > span:last-child {
  font-size: 0.88rem;
  color: var(--ink);
  opacity: 0.75;
  line-height: 1.5;
}

/* GALERIA --------------------------------------------------- */
.gallery {
  --gap: 1rem;
}
.gallery-pratos {
  column-count: 1;
  column-gap: var(--gap);
}
@media (min-width: 640px) { .gallery-pratos { column-count: 2; } }
@media (min-width: 1024px) { .gallery-pratos { column-count: 3; } }

.gallery-pratos .gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-pratos .gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
  filter: saturate(0.92);
}

.gallery-ambiente {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 640px) { .gallery-ambiente { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-ambiente { grid-template-columns: repeat(4, 1fr); } }

.gallery-ambiente .gallery-item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-ambiente .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
  filter: saturate(0.92);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gallery-item:hover::after { opacity: 1; }

.gallery-item .item-num {
  position: absolute;
  bottom: 0.8rem;
  left: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--white);
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s var(--ease-out);
}
.gallery-item:hover .item-num {
  opacity: 1;
  transform: translateY(0);
}

/* EVENTOS --------------------------------------------------- */
.event-list {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.event-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}
@media (min-width: 768px) {
  .event-list li { grid-template-columns: 80px 1fr auto; padding: 2.5rem 0; }
}
.event-list li:hover { padding-left: 1.5rem; }
.event-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 400;
}
.event-list h3 {
  color: var(--charcoal);
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
}
.event-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
  padding: 0.5rem 0;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease-out);
}
.event-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.event-link:hover svg { transform: translateX(6px); }

/* CONTATO --------------------------------------------------- */
.grid-contato {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
@media (min-width: 900px) {
  .grid-contato { grid-template-columns: 1.4fr 1fr; gap: 5rem; }
}

.section-dark .contato-form p { color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; }
.contato-form form { margin-top: 2rem; }

.form-row { margin-bottom: 1.6rem; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 600px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.contato-form input,
.contato-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  padding: 0.85rem 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--paper);
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}
.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.contato-form ::placeholder { color: rgba(255,255,255,0.4); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  padding: 1rem 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper);
  border-bottom: 1px solid currentColor;
  background: none;
  transition: color 0.3s var(--ease);
}
.btn-submit svg {
  width: 18px; height: 18px;
  transition: transform 0.3s var(--ease-out);
}
.btn-submit:hover { color: var(--accent); }
.btn-submit:hover svg { transform: translateX(8px); }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }

.btn-spinner {
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--accent);
}
.form-feedback.error { color: #E07A5F; }

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 0;
}
@media (min-width: 900px) {
  .contato-info { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,0.12); }
}
.contato-info > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.info-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.info-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--paper);
  transition: color 0.3s var(--ease);
}
a.info-value:hover { color: var(--accent); }

/* FOOTER ---------------------------------------------------- */
.footer {
  background: var(--charcoal);
  color: var(--paper);
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: 'Atelier';
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(8rem, 18vw, 16rem);
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.04em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr 1.3fr; } }

.footer-brand p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 280px;
}
.footer-logo {
  width: 160px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.93rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease-out);
}
.footer-col a:hover {
  color: var(--accent);
  padding-left: 0.3rem;
}
.footer-small {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
}

.newsletter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 0.5rem 0;
}
.newsletter input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--paper);
}
.newsletter input:focus { outline: none; }
.newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter button {
  color: var(--accent);
  padding: 0.4rem;
  transition: transform 0.3s var(--ease-out);
}
.newsletter button:hover { transform: translateX(4px); }
.newsletter button svg { width: 22px; height: 22px; }

.sub-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem var(--gutter);
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 600px) {
  .sub-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.credit-link {
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.credit-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* LIGHTBOX -------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.96);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--paper);
  background: transparent;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover { color: var(--accent); }
.lightbox-prev:hover { transform: translate(-4px, -50%); color: var(--accent); }
.lightbox-next:hover { transform: translate(4px, -50%); color: var(--accent); }
.lightbox-prev svg, .lightbox-next svg { width: 28px; height: 28px; }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

/* MOBILE MENU ----------------------------------------------- */
@media (max-width: 960px) {
  .nav-toggle, .nav-close { display: inline-flex; }

  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(380px, 86vw);
    background: var(--charcoal);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    padding: 6rem 2.5rem 2rem;
    box-shadow: -20px 0 60px rgba(0,0,0,0.25);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu ul {
    flex-direction: column;
    gap: 1.4rem;
    align-items: flex-start;
  }
  .nav-menu .nav-link {
    color: var(--paper);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    text-transform: none;
    font-style: italic;
    letter-spacing: -0.01em;
    font-weight: 400;
  }
  .navbar.scrolled .nav-menu .nav-link { color: var(--paper); }
  .nav-cta {
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    font-family: var(--font-sans) !important;
    font-style: normal !important;
    padding: 0.7rem 1.4rem !important;
    border-radius: 999px;
    margin-top: 1rem;
  }
}

/* RESPONSIVE FINE-TUNING ----------------------------------- */
@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }
  .hero-side { display: none; }
  .hero-foot { display: none; }
  .marquee-track span { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .section-head { margin-bottom: 2.5rem; }
  h2 { font-size: 2.2rem; }
  .chef-frame::before { inset: 12px -12px -12px 12px; }
  .event-list li:hover { padding-left: 0; }
  .grid-contato { gap: 3rem; }
  .footer::before { font-size: 7rem; }
}

/* Acessibilidade: respeitar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg { transform: none; }
}
