/* Receitas Caminho do Mar
   Visual do mockup aprovado em 25/09/2026 (mesmo visual do Instagram da marca).
   Amarelo só no botão de pedido e nos selos do Seu Vino. */

:root {
  --navy: #001953;
  --navy-deep: #000D33;
  --navy-card: #07296B;
  --line: rgba(92, 195, 247, 0.38);
  --line-soft: rgba(184, 212, 232, 0.14);
  --sky: #5CC3F7;
  --silver: #B8D4E8;
  --silver-2: #7AA8C4;
  --text: #FFFFFF;
  --muted: #A9BCD8;
  --yellow: #FFD600;
  --orange: #E8871E;
  --ink: #001953;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --col: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(92, 195, 247, 0.20), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(0, 60, 140, 0.35), transparent 60%),
    var(--navy-deep);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hl { color: var(--sky); }
svg.sprite { position: absolute; }
.ico { flex: none; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px;
  padding: 12px 16px; border-radius: 12px; transition: top .2s;
}
.pular:focus { top: 12px; }

/* ---------- aviso de sem conexão ---------- */
.aviso-offline {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--orange); color: #1A0E00;
  font-size: 13px; font-weight: 700; padding: 10px 16px; text-align: center;
}
.aviso-offline[hidden] { display: none; }
.aviso-botao {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  border: 2px solid #1A0E00; border-radius: 999px; padding: 5px 12px;
}

/* ---------- aviso de instalar ---------- */
.aviso-instalar {
  position: sticky; top: 0; z-index: 19;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  background: var(--navy-card); border-bottom: 1.5px solid var(--line);
  padding: 12px 16px; text-align: left;
}
.aviso-instalar[hidden] { display: none; }
.aviso-instalar p { font-size: 12.5px; line-height: 1.4; color: #D6E2F2; }
.aviso-instalar strong { color: var(--text); }
.aviso-instalar-acoes { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.aviso-instalar-btn {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 8px 16px;
}
.aviso-instalar-fechar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; line-height: 1; color: var(--muted);
}

/* ---------- coluna ---------- */
.app {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  background:
    repeating-radial-gradient(circle at 115% -5%, transparent 0 34px, rgba(92, 195, 247, .06) 34px 36px),
    var(--navy);
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

/* ---------- marca ---------- */
.logo-full {
  display: block; width: 120px; aspect-ratio: 340 / 285;
  background: url("/assets/logo-cdm.png") no-repeat;
  background-size: 183.5% auto; background-position: 49.3% 59.8%;
  margin: 0 auto;
}
.logo-mark {
  display: inline-block; width: 26px; aspect-ratio: 178 / 160;
  background: url("/assets/logo-cdm.png") no-repeat;
  background-size: 350.6% auto; background-position: 49.8% 38.9%;
  flex: none;
}
.app-top { padding: 22px 20px 0; text-align: center; }

.kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--silver);
}

/* ---------- início ---------- */
.hero-home { position: relative; padding: 10px 20px 0; min-height: 330px; }
.hero-home .copy { position: relative; z-index: 2; width: 56%; padding-top: 22px; }
.hero-home h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 38px; line-height: .98; margin: 10px 0 14px; letter-spacing: .01em;
}
.hero-home .chamada { color: #D6E2F2; font-size: 12.5px; line-height: 1.55; }
.vino-hero { position: absolute; right: -44px; bottom: -6px; width: 212px; z-index: 1; }
.vino-hero::before {
  content: ""; position: absolute; inset: 8% -10% 12% 0;
  background: radial-gradient(circle, rgba(255, 236, 190, .55) 0%, rgba(92, 195, 247, .28) 38%, transparent 68%);
  filter: blur(6px); z-index: -1;
}
.vino-hero img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
.bubble {
  position: absolute; z-index: 3; right: 14px; top: 6px;
  background: var(--yellow); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5);
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-4px); } }

/* ---------- busca e filtros ---------- */
.busca-form { position: relative; z-index: 3; }
.search {
  display: flex; align-items: center; gap: 10px; margin: 0 20px;
  background: rgba(7, 41, 107, .92); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 13px 16px; backdrop-filter: blur(6px);
}
.search input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--text);
  font: inherit; font-size: 16px; outline: none;
}
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--sky); }

.chips { display: flex; gap: 8px; padding: 16px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line-soft); font-size: 12.5px; font-weight: 600;
  color: var(--muted); transition: background-color .2s, color .2s, border-color .2s;
}
.chip[aria-pressed="true"] { background: var(--sky); color: var(--ink); border-color: var(--sky); }

/* ---------- lista de peixes ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px 8px; }
.fish-card {
  background: var(--navy-card); border: 1.5px solid var(--line); border-radius: 22px;
  overflow: hidden; display: block; transition: transform .25s ease, border-color .25s;
}
.fish-card:hover { transform: translateY(-3px); border-color: var(--sky); }
.fish-card .ph { height: 116px; }
.fish-card .body { padding: 11px 14px 14px; }
.fish-card h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 21px; letter-spacing: .01em; line-height: 1.05;
}
.fish-card .cuts { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.fish-card .count { margin-top: 10px; }
.fish-card .count .todo { letter-spacing: .06em; white-space: nowrap; font-size: 8.5px; }
.fish-card .cont { font-size: 11.5px; font-weight: 700; color: var(--sky); }
.fish-card[hidden] { display: none; }

/* ---------- arte no lugar da foto ---------- */
.ph {
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 25% 15%, var(--ph-a, #2a64a8) 0%, #0b2f6e 45%, #041a4a 100%);
}
.ph::after {
  content: ""; position: absolute; inset: auto -10% -30% -10%; height: 70%;
  background: repeating-radial-gradient(ellipse at 50% 120%, transparent 0 14px, rgba(184, 212, 232, .10) 14px 15px);
}
.ph.tem-foto { background: #041a4a; }
.ph.tem-foto::after { display: none; }
.ph.tem-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph svg.art {
  width: 46%; max-width: 150px; height: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
}
.ph .tag-photo {
  position: absolute; z-index: 2; left: 10px; bottom: 10px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--silver); background: rgba(0, 13, 51, .55);
  border: 1px solid var(--line-soft); padding: 4px 8px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.ph .tag-photo:empty { display: none; }

.todo {
  display: inline-block; font-family: var(--sans); font-size: 9px; font-weight: 800;
  letter-spacing: .16em; color: var(--orange); border: 1px solid var(--orange);
  border-radius: 999px; padding: 3px 8px; vertical-align: middle; text-transform: uppercase;
}
.skel {
  height: 9px; border-radius: 6px; margin-top: 9px;
  background: linear-gradient(90deg, rgba(184, 212, 232, .14), rgba(184, 212, 232, .28), rgba(184, 212, 232, .14));
  background-size: 200% 100%; animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- estados vazios ---------- */
.vazio {
  margin: 8px 20px; padding: 22px 18px; text-align: center;
  background: var(--navy-card); border: 1.5px dashed var(--line);
  border-radius: 20px;
}
.vazio p { font-size: 13.5px; color: #D6E2F2; line-height: 1.55; }
.vazio[hidden] { display: none; }
.vazio-receitas { margin: 0; }
.btn-linha {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid var(--sky); color: var(--sky);
  font-size: 13px; font-weight: 700;
}

/* ---------- dica do Seu Vino ---------- */
.tip {
  position: relative; margin: 44px 20px 8px;
  background: linear-gradient(135deg, #0B3380, #07296B);
  border: 1.5px solid var(--line); border-radius: 22px;
  padding: 18px 150px 18px 18px; min-height: 150px; overflow: visible;
}
.tip .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 10px 10px 10px 3px;
}
.tip .tip-titulo {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 22px; line-height: 1.02; margin: 10px 0 8px;
}
.tip p { font-size: 12px; color: #D6E2F2; line-height: 1.5; }
.tip .mini-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 11.5px; font-weight: 700;
  border-bottom: 2px solid var(--yellow); padding-bottom: 2px;
}
.tip img { position: absolute; right: -6px; bottom: 0; width: 150px; border-bottom-right-radius: 20px; }
.tip::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 170px; height: 170px;
  background: radial-gradient(circle at 60% 55%, rgba(255, 236, 190, .35), transparent 62%);
  pointer-events: none;
}

/* ---------- rodapé ---------- */
.rodape {
  display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 20px 36px; margin-top: 18px;
  border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted);
}
.rodape span, .rodape a { display: inline-flex; align-items: center; gap: 7px; }
.rodape b { color: var(--text); font-weight: 700; }

/* ---------- topo de peixe e receita ---------- */
.hero-img { position: relative; height: 340px; }
.hero-img .ph { position: absolute; inset: 0; }
.hero-img::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 25, 83, .45) 0%, transparent 30%, transparent 45%, var(--navy) 100%);
}
.hero-img .ph .tag-photo { bottom: auto; top: 76px; left: 20px; }
.hero-receita { height: 320px; }
.top-actions {
  position: absolute; top: 18px; left: 16px; right: 16px; z-index: 3;
  display: flex; justify-content: space-between;
}
.round-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 13, 51, .55); border: 1px solid var(--line-soft); backdrop-filter: blur(8px);
}
.hero-title { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 3; }
.hero-title h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(42px, 15vw, 64px); line-height: .95; margin: 6px 0 12px;
}
.pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 6px 12px;
  border-radius: 999px; background: rgba(92, 195, 247, .14);
  border: 1.5px solid var(--line); margin: 0 6px 6px 0;
}

/* ---------- seções ---------- */
.sec { padding: 22px 20px 4px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sec h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 24px; letter-spacing: .01em;
}
.sec .hint { font-size: 11px; color: var(--muted); text-align: right; }
.note-box {
  background: var(--navy-card); border: 1.5px dashed rgba(232, 135, 30, .6);
  border-radius: 18px; padding: 16px;
}
.note-box.preenchido { border-style: solid; border-color: var(--line); }
.note-box p { font-size: 13.5px; line-height: 1.6; color: #D6E2F2; }
.note-box p.cap { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

.cuts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cut-tile {
  background: var(--navy-card); border: 1.5px solid var(--line);
  border-radius: 18px; padding: 14px;
}
.cut-tile svg { color: var(--sky); }
.cut-tile strong { display: block; font-size: 14px; margin: 8px 0 6px; }
.cut-tile small { font-size: 10.5px; color: var(--muted); }

/* ---------- lista de receitas ---------- */
.recipe-list { display: flex; flex-direction: column; gap: 10px; }
.recipe-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center;
  background: var(--navy-card); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 8px 14px 8px 8px; transition: border-color .2s;
}
.recipe-row:hover { border-color: var(--sky); }
.recipe-row .ph { width: 88px; height: 88px; border-radius: 14px; }
.recipe-row .ph svg.art { width: 58%; }
.recipe-row .ph::after { display: none; }
.recipe-row h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 17px; letter-spacing: .02em;
}
.recipe-row .sub { font-size: 11.5px; color: var(--muted); margin: 2px 0 7px; }
.recipe-row .sub:empty { margin: 0 0 4px; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--silver); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- botão de pedido ---------- */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 6; display: flex; gap: 10px;
  padding: 14px 16px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--navy) 35%);
}
.btn-order {
  flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px;
  border-radius: 18px; padding: 16px 18px; text-align: center;
  box-shadow: 0 12px 30px -10px rgba(255, 214, 0, .55); transition: transform .15s;
}
.btn-order:active { transform: scale(.98); }
.btn-ghost {
  width: 54px; flex: none; border-radius: 18px; display: grid; place-items: center;
  border: 1.5px solid var(--line); background: var(--navy-card);
}

/* ---------- receita ---------- */
.recipe-head { padding: 4px 20px 0; margin-top: -8px; position: relative; z-index: 3; }
.recipe-head h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 9vw, 38px); line-height: 1; margin: 8px 0 12px;
}
.byline { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.byline b { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 20px 4px; }
.fact {
  background: var(--navy-card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 12px 10px; text-align: center;
}
.fact svg { color: var(--sky); }
.fact b { display: block; font-size: 15px; margin-top: 6px; }
.fact small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; margin: 20px 20px 0;
  background: var(--navy-card); border-radius: 16px; padding: 4px; border: 1.5px solid var(--line);
}
.tab {
  padding: 11px; border-radius: 12px; font-size: 13px; font-weight: 700;
  color: var(--muted); transition: background-color .2s, color .2s;
}
.tab[aria-selected="true"] { background: var(--sky); color: var(--ink); }
.panel { padding: 16px 20px 4px; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: -3px; }
.progress { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.progress b { color: var(--yellow); }
.ing {
  display: flex; align-items: center; gap: 12px; padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 13.5px;
}
.ing input {
  appearance: none; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--silver-2); flex: none; display: grid; place-items: center;
  transition: background-color .2s, border-color .2s; cursor: pointer;
}
.ing input:checked { background: var(--yellow); border-color: var(--yellow); }
.ing input:checked::after {
  content: ""; width: 6px; height: 11px; border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.ing input:checked + span { color: var(--muted); text-decoration: line-through; }
.ing .qty { margin-left: auto; padding-left: 10px; font-size: 11.5px; color: var(--muted); text-align: right; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 0; }
.step .n { font-family: var(--display); font-size: 36px; line-height: 1; color: var(--sky); }
.step p { font-size: 13.5px; line-height: 1.6; color: #D6E2F2; }
.step .step-ph { margin-top: 10px; height: 160px; border-radius: 14px; }
.step .step-ph svg.art { width: 30%; }

/* ---------- página de erro ---------- */
.erro { padding: 48px 20px 24px; text-align: center; }
.erro h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 40px; line-height: 1; margin: 10px 0 14px;
}
.erro .chamada { color: #D6E2F2; font-size: 13.5px; line-height: 1.6; }
.erro-acoes { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
.erro-acoes .btn-order { width: 100%; }

/* ---------- avisos flutuantes ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 40; background: var(--navy-card); color: var(--text);
  border: 1.5px solid var(--sky); border-radius: 999px;
  font-size: 13px; font-weight: 600; padding: 11px 18px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
}

/* ---------- telas maiores ---------- */
@media (min-width: 900px) {
  :root { --col: 720px; }
  .app { border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
  .app-top { padding-top: 32px; }
  .logo-full { width: 150px; }
  .hero-home { min-height: 380px; padding-inline: 32px; }
  .hero-home .copy { width: 60%; }
  .hero-home h1 { font-size: 52px; }
  .hero-home .chamada { font-size: 14px; }
  .vino-hero { width: 270px; right: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .fish-card .ph { height: 140px; }
  .sec, .chips, .facts, .panel { padding-inline: 32px; }
  .search, .tabs, .tip, .vazio { margin-inline: 32px; }
  .aviso-instalar { flex-direction: row; align-items: center; justify-content: center; padding-inline: 32px; }
  .aviso-instalar-acoes { flex: none; }
  .hero-img { height: 400px; }
  .recipe-head { padding-inline: 32px; }
  .sticky-cta { padding-inline: 32px; }
}

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