/* Jijoca Restaurante Frutos do Mar, folha de estilo principal.
   Mobile first. Sem frameworks. Cores em tokens no :root. */

:root {
  --navy: #1f3c88;
  --navy-d: #152a63;
  --sand: #f7f1e6;
  --coral: #9c4425;
  --coral-d: #7f341b;
  --gold: #f2d28b;
  --ink: #1c2331;
  --muted: #4d5666;
  --line: #e3dac9;
  --white: #ffffff;
  --radius: 14px;
  --focus: #f2b13b;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3 {
  font-family: "Josefin Sans", "Nunito Sans", sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.2em; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: #fff; color: var(--navy); padding: 10px 14px; z-index: 100; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Cabeçalho */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { font-family: "Josefin Sans", sans-serif; font-size: 1.7rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: 1px; }
.nav { display: none; }
.nav a { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.nav .btn-primary { color: #fff; margin-left: 8px; }
.nav-toggle {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 8px; padding: 8px 14px; font: 700 1rem "Nunito Sans", sans-serif;
  min-height: 44px; cursor: pointer;
}
.nav.open {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; top: 68px; left: 0; right: 0;
  background: var(--navy-d); padding: 12px 16px 16px;
}
.nav.open .btn-primary { margin: 8px 0 0; justify-content: center; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 4px; align-items: center; }
  .nav-toggle { display: none; }
  .nav.open { position: static; flex-direction: row; background: none; padding: 0; }
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 800 1rem "Nunito Sans", sans-serif; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-d); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Heróis e seções */
.hero { background: var(--navy); color: #fff; padding: 48px 0 84px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.12rem; max-width: 58ch; }
.hero .seal { color: var(--gold); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.phone-line { margin-top: 18px; font-size: 1.05rem; }
.phone-line a { color: #fff; font-weight: 800; }
.seal { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; font-size: .85rem; color: var(--navy); margin-bottom: 12px; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 120px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

section.block { padding: 64px 0; }
.alt { background: var(--sand); }
.sec-head { max-width: 70ch; margin-bottom: 28px; }
.sec-head p { color: var(--muted); }

.proof {
  display: grid; gap: 16px; grid-template-columns: 1fr;
  margin-top: -64px; position: relative; z-index: 2;
}
.proof > div {
  background: #fff; border-radius: var(--radius); padding: 20px; text-align: center;
  box-shadow: 0 10px 28px rgba(21, 42, 99, .16);
}
.proof strong { display: block; font-family: "Josefin Sans", sans-serif; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.proof span { color: var(--muted); font-size: .95rem; }
@media (min-width: 720px) { .proof { grid-template-columns: repeat(3, 1fr); } }

.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.card p { margin: 0; color: var(--muted); }
.card .price { font-weight: 800; color: var(--coral); font-size: 1.1rem; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--sand);
  display: grid; place-items: center; color: var(--navy);
}
.card .link { margin-top: auto; font-weight: 800; }
.card h3 { margin: 0; }

.split { display: grid; gap: 28px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.menu-list li:last-child { border-bottom: 0; }
.menu-list .dish strong { display: block; color: var(--ink); font-size: 1.02rem; }
.menu-list .dish span { color: var(--muted); font-size: .95rem; }
.menu-list .p { white-space: nowrap; font-weight: 800; color: var(--coral); }
.menu-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.menu-group h3 { margin-bottom: 4px; }
.menu-group .note { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }

.tag {
  display: inline-block; background: var(--sand); color: var(--navy);
  padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 800;
}
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:last-child { text-align: right; font-weight: 800; }
.map-frame { width: 100%; height: 420px; border: 0; border-radius: var(--radius); }
.tour-frame { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); background: var(--navy-d); }

details.faq {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px;
  background: #fff; margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer; font-weight: 800; color: var(--navy); list-style: none;
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
details.faq[open] summary::after { content: "-"; }
details.faq p { margin: 12px 0 0; color: var(--muted); }

.page-hero { background: var(--sand); padding: 44px 0 40px; }
.page-hero p { max-width: 66ch; color: var(--muted); font-size: 1.1rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.anchors a {
  background: #fff; border: 1px solid var(--navy); border-radius: 999px;
  padding: 8px 14px; font-weight: 700; text-decoration: none; color: var(--navy); min-height: 40px;
  display: inline-flex; align-items: center;
}
.anchors a:hover { background: var(--navy); color: #fff; }

/* Rodapé */
.site-footer { background: var(--navy-d); color: #e6ebf7; padding: 48px 0 28px; font-size: .97rem; }
.site-footer h2 { color: #fff; font-size: 1.2rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 8px; }
.foot-bottom { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 16px; font-size: .9rem; color: #c8d1e8; }

/* Filtros e cardápio por categoria */
[hidden] { display: none !important; }
.filtros { position: sticky; top: 68px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.filtros .wrap { padding-top: 2px; }
.filtros-in { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.filtros-in button {
  flex: none; min-height: 44px; border: 1px solid var(--navy); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 8px 16px; font: 800 .95rem "Nunito Sans", sans-serif; cursor: pointer;
}
.filtros-in button:hover { background: var(--sand); }
.filtros-in button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.filtro-status { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.busca-linha { padding: 12px 0 0; }
.busca-linha input {
  width: 100%; min-height: 48px; border: 1px solid #8a93a6; border-radius: 12px;
  padding: 10px 14px; font: 600 1rem "Nunito Sans", sans-serif; color: var(--ink); background: #fff;
}
.filtros-alt { padding-top: 4px; }
.filtros-alt button { border-color: var(--coral); color: var(--coral); }
.filtros-alt button[aria-pressed="true"] { background: var(--coral); color: #fff; }
.cat { padding: 40px 0; }
.cat h2 { margin-bottom: 16px; }
.cat h3 { margin: 28px 0 12px; font-size: 1.1rem; }
.cat-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .items { grid-template-columns: 1fr 1fr; } }
.item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
}
.item .dish strong { display: block; color: var(--ink); font-size: 1.02rem; }
.item .dish span { display: block; color: var(--muted); font-size: .95rem; }
.item .p { white-space: nowrap; font-weight: 800; color: var(--coral); text-align: right; }
.item s { color: var(--muted); font-weight: 600; font-size: .9rem; margin-right: 4px; }
.tag-happy { display: inline-block; background: var(--gold); color: var(--ink); font-size: .78rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.tag-novo { display: inline-block; background: var(--coral); color: #fff; font-size: .78rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin: 0 0 6px 6px; }
.happy-note { background: var(--sand); border-radius: 12px; padding: 14px 16px; font-size: .95rem; margin: 0; }
.grupo { margin-top: 8px; }
.cat.alt .item { border-color: var(--line); }

/* Assistente */
.assist-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  background: var(--navy); color: #fff; border: 0; border-radius: 999px;
  padding: 0 20px; min-height: 52px; font: 800 1rem "Nunito Sans", sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.assist-panel {
  position: fixed; right: 16px; bottom: 80px; z-index: 61;
  width: min(380px, calc(100% - 32px)); max-height: 70vh;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  display: none; flex-direction: column; overflow: hidden;
}
.assist-panel.open { display: flex; }
.assist-head { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.assist-head h2 { color: #fff; font-size: 1.15rem; margin: 0; }
.assist-close { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 8px; min-height: 40px; padding: 0 12px; font: 700 .95rem "Nunito Sans", sans-serif; cursor: pointer; }
.assist-log { padding: 14px; overflow: auto; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 220px; }
.msg { padding: 10px 12px; border-radius: 12px; max-width: 90%; font-size: .97rem; line-height: 1.5; }
.msg.bot { background: var(--sand); align-self: flex-start; }
.msg.me { background: var(--navy); color: #fff; align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.chips button {
  border: 1px solid var(--navy); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 8px 12px; font: 700 .9rem "Nunito Sans", sans-serif;
  cursor: pointer; min-height: 40px;
}
.chips button:hover { background: var(--sand); }
.assist-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.assist-form input {
  flex: 1; min-height: 44px; border: 1px solid #8a93a6; border-radius: 10px;
  padding: 8px 12px; font: inherit; color: var(--ink);
}
.assist-form button {
  min-height: 44px; background: var(--coral); color: #fff; border: 0; border-radius: 10px;
  padding: 0 16px; font: 800 1rem "Nunito Sans", sans-serif; cursor: pointer;
}
.assist-note { font-size: .82rem; color: var(--muted); padding: 0 14px 12px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
