/* Costaneiras — site institucional */

/* Topo */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 236, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--brown-d); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--red); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); padding: 0; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--brown-d); border-radius: 2px; }

/* Abertura */
.hero { position: relative; isolation: isolate; color: #fff; padding: 90px 0 0; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: -2; background: var(--brown-d); }
.hero-slides > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero-slides > .on { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(44, 24, 12, .92) 0%, rgba(60, 34, 17, .78) 45%, rgba(60, 34, 17, .35) 100%); }
.hero-in { max-width: 1160px; padding-bottom: 70px; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); max-width: 15ch; }
.hero-sub { max-width: 56ch; margin-top: 20px; font-size: 19px; color: #f3e6d2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; font-weight: 700; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #9aa; }
.status.open i { background: #4be08a; box-shadow: 0 0 0 4px rgba(75, 224, 138, .25); }
.status.closed i { background: #ff8b7e; }
.facts { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--cream); color: var(--ink); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.facts li { border-right: 1px solid var(--line); }
.facts li a { padding: 20px 22px; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.facts li a:hover { background: var(--beige); }
.facts li a b::after { content: " ›"; color: var(--red); }
.facts li:last-child { border-right: 0; }
.facts b { font-family: var(--serif); font-size: 22px; color: var(--brown); }
.facts span { font-size: 14px; color: var(--muted); }

/* Seções */
.sec { padding: 90px 0; }
.sec h2, .area h2, .events h2 { font-size: clamp(30px, 4vw, 46px); max-width: 18ch; }
.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 54ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.area .btn, .sec .split > div > .btn { margin-top: 28px; }
.row .btn { margin-top: 0 !important; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg) scale(.8); }

/* Atalhos das áreas */
.tiles { margin-top: 70px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tiles a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; }
.tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tiles a:hover img { transform: scale(1.06); }
.tiles a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(44, 24, 12, .88), rgba(44, 24, 12, 0) 55%); }
.tiles span { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.15; }

/* Blocos de área */
.area { padding: 84px 0; border-top: 1px solid var(--line); }
.area.alt { background: var(--beige); }
.shots { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.shots img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.shots .s-main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.shots .s-sub { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.shots.trio img:not(.s-main) { aspect-ratio: 1; }

.prices { width: 100%; margin-top: 26px; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prices th, .prices td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--beige); font-size: 15px; }
.prices thead th { background: var(--brown); color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.prices tbody th { font-weight: 500; color: var(--muted); }
.prices td { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prices td small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.prices tr:last-child > * { border-bottom: 0; }

.menu-mini, .hours-mini { list-style: none; margin: 24px 0 0; padding: 0; }
.menu-mini li, .hours-mini li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.menu-mini b, .hours-mini b { color: var(--brown); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-mini i { font-style: normal; }
.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--brown-d); }

/* Eventos */
.events { position: relative; isolation: isolate; color: #fff; padding: 100px 0; overflow: hidden; }
.events-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.events::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(50, 28, 14, .8); }
.events .lead { color: #ecdcc4; }
.eyebrow.light { color: #f1d9b5; }
.ev-list { list-style: none; margin: 40px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ev-list li { padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.ev-list b { display: block; font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.ev-list span { color: #ecdcc4; font-size: 15px; }

/* Clientes */
.quote { margin: 24px 0 0; padding: 18px 20px; background: var(--white); border-left: 4px solid var(--red); border-radius: 0 14px 14px 0; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--brown); }
/* Ambiente: carrossel */
.ambiente { padding-top: 0; }
.amb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.amb-nav { display: flex; gap: 8px; }
.amb-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--brown); background: transparent; color: var(--brown); font-size: 26px; line-height: 1; }
.amb-nav button:hover { background: var(--brown); color: #fff; }
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px max(16px, calc((100% - 1160px) / 2)) 14px; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.carousel img { flex: none; height: clamp(240px, 34vw, 400px); width: auto; max-width: 86vw; object-fit: cover; border-radius: 16px; scroll-snap-align: center; }

/* Ampliar foto */
main img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(28, 16, 8, .94); }
.lightbox img { max-width: min(94vw, 1500px); max-height: 86vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; border: 0; border-radius: 50%; width: 52px; height: 52px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ecdcc4; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Contato */
.contact { background: var(--beige); border-top: 1px solid var(--line); }
.contact .split { align-items: stretch; }
.hours { width: 100%; margin-top: 26px; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px dashed var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-weight: 700; color: var(--brown); font-variant-numeric: tabular-nums; }
.note { margin-top: 10px; font-size: 14px; color: var(--muted); }
address { margin-top: 26px; font-style: normal; }
.map { min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Rodapé */
.foot { background: var(--brown-d); color: #ecdcc4; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; padding: 50px 0 30px; }
.brand.light, .brand.light small { color: #fff; }
.foot p { margin-top: 12px; max-width: 40ch; font-size: 15px; }
.foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; align-content: start; }
.foot nav a { text-decoration: none; font-weight: 500; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.copy { grid-column: 1 / -1; margin-top: 20px !important; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px !important; max-width: none !important; }

/* Botão flutuante (celular) */
.fab { display: none; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60; min-height: 52px; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 26px rgba(44, 24, 12, .35); }
.fab svg { width: 20px; height: 20px; }

@media (max-width: 1120px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--beige); }
  .top-actions { margin-left: auto; }
  .burger { display: flex; }
  .top-actions > .btn { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 0; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(2) { border-right: 0; }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ev-list { grid-template-columns: 1fr; }
  .sec, .area { padding: 60px 0; }
  .hero { padding-top: 60px; }
  .hero-in { padding-bottom: 46px; }
  .fab { display: flex; }
  .foot { padding-bottom: 76px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand b { font-size: 22px; }
  .brand small { font-size: 9px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .facts li a { padding: 14px 16px; }
  .facts b { font-size: 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .prices th, .prices td { padding: 11px 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---- Ajustes do relatório de análise ---- */
.btn-outline-light { border-color: rgba(255, 255, 255, .65); color: #fff; }
.menu-mini b small { font-weight: 500; color: var(--muted); margin-left: 6px; font-size: 13px; }

/* Barra fixa do celular: reservar e pedir, sem flutuar sobre o texto */
.fab { left: 0; right: 0; bottom: 0; min-height: 0; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 0; background: rgba(251, 246, 236, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(44, 24, 12, .12); }
.fab a { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
.fab-res { background: var(--white); color: var(--brown-d); border: 1.5px solid var(--brown); }
.fab-ped { background: var(--red); color: #fff; }

@media (max-width: 1120px) {
  .fab { display: grid; grid-template-columns: 1fr 1fr; }
  .foot { padding-bottom: 62px; }
  /* cabeçalho mais baixo no celular */
  .top-in { min-height: 54px; gap: 10px; }
  .top .brand b { font-size: 21px; }
  .top .brand small { font-size: 8px; margin-top: 2px; }
  .burger { width: 38px; height: 38px; }
  html { scroll-padding-top: 66px; }
}
@media (max-width: 560px) {
  /* página mais curta: uma foto por seção (as demais ficam no carrossel) e atalhos em faixa deslizante */
  .shots .s-sub, .shots.trio img:not(.s-main) { display: none; }
  .shots .s-main { aspect-ratio: 16 / 10; }
  .tiles { display: flex; overflow-x: auto; gap: 10px; margin-top: 44px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .tiles a { flex: none; width: 40vw; scroll-snap-align: start; }
  .hero-cta .btn-outline-light { flex: 1 1 100%; }
  .lead { font-size: 16px; }
  .sec, .area { padding: 46px 0; }
  .ev-list { margin: 26px 0; gap: 10px; }
  .ev-list li { padding: 16px; }
}

/* ---------- Promoções (faixa abaixo da abertura) ---------- */
.promos { padding: 64px 0 10px; }
.pr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.pr-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.pr-stage { position: relative; aspect-ratio: 16 / 6.4; border-radius: var(--radius); overflow: hidden; background: var(--brown-d); box-shadow: var(--shadow); }
.pr-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.pr-slide.on { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.pr-slide .pr-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.pr-slide.on .pr-img { transform: scale(1); }
.pr-slide:not(.flyer)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(44, 24, 12, .9) 0%, rgba(44, 24, 12, .62) 42%, rgba(44, 24, 12, 0) 75%); }
.pr-txt { position: absolute; z-index: 1; left: clamp(20px, 5vw, 56px); top: 50%; transform: translateY(-50%); max-width: min(46ch, 60%); color: #fff; display: grid; justify-items: start; gap: 12px; }
.pr-txt h3 { font-size: clamp(28px, 4.2vw, 52px); max-width: 14ch; text-wrap: balance; }
.pr-txt p { font-size: 18px; color: #f3e6d2; }
.pr-txt .btn { margin-top: 6px; }
/* imagem pronta (arte com o texto): mostra a arte inteira, com fundo desfocado da própria arte */
.pr-slide.flyer .pr-blur { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(26px) brightness(.55); }
.pr-slide.flyer .pr-img { position: relative; object-fit: contain; transform: none; }
.pr-slide.flyer .pr-txt { top: auto; bottom: 20px; left: auto; right: 20px; transform: none; }

.pr-pick { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.pr-pick button { position: relative; flex: 1 1 0; min-width: 190px; display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); text-align: left; overflow: hidden; transition: border-color .2s, background .2s; }
.pr-pick button:hover { border-color: var(--brown); }
.pr-pick button[aria-selected="true"] { border-color: var(--brown); background: var(--beige); }
.pr-pick img { flex: none; width: 56px; height: 42px; border-radius: 8px; object-fit: cover; }
.pr-pick span { font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-pick i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--red); }
.pr-pick [aria-selected="true"] i { animation: pr-bar var(--pr-time, 7000ms) linear forwards; }
.pr-paused .pr-pick [aria-selected="true"] i { animation: none; width: 100%; opacity: .5; }
@keyframes pr-bar { to { width: 100%; } }

@media (max-width: 760px) {
  .promos { padding-top: 44px; }
  .pr-head .amb-nav { display: none; }
  .pr-stage { aspect-ratio: 4 / 4.2; }
  .pr-slide:not(.flyer)::after { background: linear-gradient(to top, rgba(44, 24, 12, .92) 0%, rgba(44, 24, 12, .55) 50%, rgba(44, 24, 12, 0) 80%); }
  .pr-txt { top: auto; bottom: 20px; left: 20px; right: 20px; transform: none; max-width: none; gap: 8px; }
  .pr-txt p { font-size: 16px; }
  .pr-pick button { flex: none; min-width: 0; width: 74vw; max-width: 260px; }
}

/* fotos das seções que trocam com fade */
.shots .fade { position: relative; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow); background: var(--beige); }
.shots .fade img { position: absolute; inset: 0; box-shadow: none; border-radius: 0; opacity: 0; transform: scale(1.03); transition: opacity 1.4s ease, transform 6s ease-out; }
.shots .fade img.on { opacity: 1; transform: scale(1); }
.frame.fade { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--beige); }
.frame.fade img { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity 1.4s ease, transform 6s ease-out; }
.frame.fade img.on { opacity: 1; transform: scale(1); }
.fade img:not(.on) { pointer-events: none; }

/* promoção com várias fotos: trocam com fade */
.pr-imgs { position: absolute; inset: 0; overflow: hidden; }
.pr-imgs .pr-img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease, transform 7s ease-out; }
.pr-imgs .pr-img.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pr-imgs .pr-img { transition: none; } }

/* v28 — acesso discreto ao painel do restaurante */
.foot-admin { display: inline-block; margin-left: 14px; color: inherit; opacity: .55; text-decoration: none; font-weight: 600; }
.foot-admin:hover { opacity: 1; text-decoration: underline; }
