/* Sagres — cozinha de mar (template de demonstração Westsites) */
:root {
  --night: #1b1714; --night-2: #26201c; --cream: #f1e7d8; --cream-2: #e8dbc6; --paper: #f8f2e8;
  --terra: #c4572b; --terra-2: #a8461f; --olive: #7d8a5a; --ink: #1b1714; --mute: #7a6e62; --line: rgba(27, 23, 20, .14); --line-l: rgba(241, 231, 216, .16);
  --serif: "Young Serif", Georgia, serif; --sans: "Instrument Sans", system-ui, sans-serif;
  --g: clamp(16px, 4vw, 48px); --max: 1320px; --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.w { width: min(100% - 2 * var(--g), var(--max)); margin-inline: auto; }
.serif { font-family: var(--serif); font-weight: 400; }
.over { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--terra); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.lead { font-size: 1.12rem; color: var(--mute); max-width: 34em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .8rem 1.6rem; border: 1px solid var(--terra); border-radius: 999px; background: var(--terra); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .3s, color .3s, border-color .3s; }
.btn:hover { background: var(--terra-2); border-color: var(--terra-2); }
.btn--line { background: transparent; color: currentColor; border-color: currentColor; }
.btn--line:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }
.btn--dark { background: var(--night); border-color: var(--night); }
.btn--dark:hover { background: var(--terra); border-color: var(--terra); }

/* cabeçalho */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--cream); transition: background .35s, color .35s, box-shadow .35s; }
.hd.solid, .page .hd { background: rgba(248, 242, 232, .94); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.hd .w { display: flex; align-items: center; gap: 2rem; height: 78px; }
.logo { margin-right: auto; display: flex; align-items: baseline; gap: .6rem; text-decoration: none; }
.logo b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1; }
.logo span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.hd nav { display: flex; gap: 1.8rem; font-size: .92rem; font-weight: 500; }
.hd nav a { text-decoration: none; position: relative; padding: .3rem 0; }
.hd nav a[aria-current="page"]::after, .hd nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--terra); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; background: none; position: relative; color: inherit; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 26px; }
.open .burger i:first-child { top: 22px; transform: rotate(45deg); } .open .burger i:last-child { top: 22px; transform: rotate(-45deg); }

/* herói */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); isolation: isolate; padding: 120px 0 clamp(2rem, 5vw, 3.5rem); }
.hero .bg { position: absolute; inset: 0; z-index: -1; background: var(--night); }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62; animation: slowzoom 18s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.08); } }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,23,20,.55) 0%, rgba(27,23,20,0) 30%, rgba(27,23,20,.15) 55%, rgba(27,23,20,.92) 100%); }
.hero h1 { font-size: clamp(5rem, 19vw, 17rem); line-height: .8; letter-spacing: -.04em; }
.hero .row { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-top: 1.5rem; }
.hero .tag { max-width: 26em; font-size: 1.15rem; color: rgba(241, 231, 216, .85); }
.quick { display: flex; align-items: stretch; gap: 0; border-radius: 999px; background: var(--cream); color: var(--ink); padding: .35rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.quick label { display: grid; padding: .3rem 1.2rem; border-right: 1px solid var(--line); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.quick select { border: 0; background: none; font-size: .98rem; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; padding: .15rem 0; min-width: 7rem; -webkit-appearance: none; appearance: none; cursor: pointer; }
.quick select:focus { outline: 0; }
.quick .btn { margin-left: .4rem; }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.night { background: var(--night); color: var(--cream); }
.night .lead { color: rgba(241, 231, 216, .7); }
.cream { background: var(--cream); }

/* história */
.story { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--g); align-items: center; }
.story .txt { grid-column: 1 / span 5; display: grid; gap: 1.4rem; }
.story .pics { grid-column: 7 / -1; position: relative; aspect-ratio: 1 / 1; }
.story .pics figure { position: absolute; overflow: hidden; border-radius: var(--r); }
.story .pics figure img { width: 100%; height: 100%; object-fit: cover; }
.story .pics .a { inset: 0 22% 18% 0; }
.story .pics .b { inset: 45% 0 0 46%; border: 10px solid var(--paper); }
.sig { font-family: var(--serif); font-size: 1.4rem; color: var(--terra); }

/* pratos */
.dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); }
.dish figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); margin-bottom: 1.2rem; }
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.dish:hover img { transform: scale(1.05); }
.dish h3 { font-size: 1.7rem; display: flex; justify-content: space-between; gap: 1rem; }
.dish h3 span { white-space: nowrap; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--terra); padding-top: .4rem; }
.dish p { color: rgba(241, 231, 216, .7); margin-top: .4rem; }
.headrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.headrow > div { display: grid; gap: 1rem; max-width: 40rem; }

/* faixa */
.band { position: relative; min-height: 70svh; display: grid; place-items: center; text-align: center; color: var(--cream); isolation: isolate; padding: 4rem var(--g); }
.band img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.band blockquote { max-width: 18em; font-family: var(--serif); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08; }
.band cite { display: block; margin-top: 1.5rem; font-style: normal; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }

/* visita */
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); }
.visit div { border-top: 1px solid var(--ink); padding-top: 1.2rem; display: grid; gap: .5rem; align-content: start; }
.visit h3 { font-size: 1.5rem; }
.visit p, .visit dd { color: var(--mute); }
.visit dl div { display: flex; justify-content: space-between; border: 0; padding: .3rem 0; border-bottom: 1px dotted var(--line); }
.visit dt { font-weight: 500; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* carta */
.page main { padding-top: 78px; }
.phead { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.phead h1 { font-size: clamp(3.2rem, 9vw, 8rem); line-height: .9; letter-spacing: -.03em; margin: 1rem 0 1.2rem; }
.tabs { position: sticky; top: 78px; z-index: 20; background: var(--paper); border-block: 1px solid var(--line); }
.tabs .w { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 0; scrollbar-width: none; }
.tabs .w::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; border: 1px solid var(--line); background: none; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .9rem; min-height: 42px; }
.tabs button[aria-pressed="true"] { background: var(--night); color: var(--cream); border-color: var(--night); }
.menu-sec { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--g); padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.menu-sec[hidden] { display: none; }
.menu-sec header { grid-column: 1 / span 4; position: sticky; top: 150px; align-self: start; display: grid; gap: 1rem; }
.menu-sec header h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.menu-sec header img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.menu-sec ul { grid-column: 6 / -1; display: grid; gap: 0; }
.item { padding: 1.2rem 0; border-bottom: 1px dotted var(--line); }
.item .top { display: flex; align-items: baseline; gap: .8rem; }
.item h3 { font-size: 1.35rem; }
.item .dots { flex: 1; border-bottom: 1px dotted var(--mute); transform: translateY(-.3em); opacity: .5; }
.item .p { font-weight: 600; white-space: nowrap; }
.item p { color: var(--mute); font-size: .95rem; margin-top: .3rem; max-width: 34em; }
.badges { display: inline-flex; gap: .3rem; margin-left: .2rem; }
.badges span { font-family: var(--sans); font-size: .64rem; font-weight: 700; padding: .12rem .4rem; border-radius: 4px; background: var(--cream-2); color: var(--olive); vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--mute); }

/* diário */
.feature-post { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--g); align-items: center; text-decoration: none; }
.feature-post figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.feature-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.feature-post:hover img { transform: scale(1.04); }
.feature-post h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: .8rem 0 1rem; }
.meta { font-size: .82rem; color: var(--mute); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); }
.post { text-decoration: none; display: grid; gap: .8rem; align-content: start; }
.post figure { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.post:hover img { transform: scale(1.05); }
.post h3 { font-size: 1.5rem; }
.post p { color: var(--mute); font-size: .95rem; }
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--r); background: var(--night); color: var(--cream); }
.news form { display: flex; gap: .5rem; }
.news input { flex: 1; min-width: 0; min-height: 52px; padding: 0 1.2rem; border: 1px solid var(--line-l); border-radius: 999px; background: transparent; color: var(--cream); }

/* reservas e contactos */
.book { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--g); align-items: start; }
.book > *, .contact-grid > *, .panel > * { min-width: 0; }
.panel { background: #fff; border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2.4rem); display: grid; gap: 1.6rem; box-shadow: 0 0 0 1px var(--line); }
.panel h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--mute); margin-bottom: .7rem; }
.dates { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.date, .slot, .chip { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; font-weight: 600; transition: background .2s, color .2s; }
.date { flex: 0 0 64px; display: grid; gap: .05rem; padding: .55rem 0; text-align: center; }
.date small { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.date b { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.date:disabled { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .4rem; }
.slot { padding: .6rem 0; min-height: 44px; }
.slot:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.chip { padding: .5rem 1rem; min-height: 42px; }
.date[aria-pressed="true"], .slot[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--night); color: var(--cream); border-color: var(--night); }
.date[aria-pressed="true"] small { color: var(--cream-2); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.stepper { display: inline-flex; align-items: center; gap: 1rem; padding: .3rem; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.2rem; }
.stepper output { min-width: 5.5rem; text-align: center; font-weight: 600; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fld { display: grid; gap: .35rem; font-size: .82rem; font-weight: 600; }
.fld input, .fld textarea, .fld select { width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 1rem; -webkit-appearance: none; appearance: none; }
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 0; border-color: var(--terra); background: #fff; }
.full { grid-column: 1 / -1; }
.ticket { position: sticky; top: 110px; background: var(--night); color: var(--cream); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; }
.ticket h2 { font-size: 2.2rem; }
.ticket dl { display: grid; }
.ticket dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line-l); }
.ticket dt { color: rgba(241, 231, 216, .6); font-size: .9rem; }
.ticket dd { font-weight: 600; text-align: right; }
.ticket .note { font-size: .82rem; color: rgba(241, 231, 216, .6); }
.ok { display: none; padding: 1rem; border-radius: 10px; background: var(--olive); color: #fff; font-size: .92rem; font-weight: 600; }
.sent .ok { display: block; }
.map { position: relative; min-height: 340px; border-radius: var(--r); overflow: hidden; background: #2a2420; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .lbl { position: absolute; left: 1rem; bottom: 1rem; padding: .8rem 1rem; border-radius: 10px; background: var(--cream); font-size: .9rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); align-items: start; }
.info-list { display: grid; border-top: 1px solid var(--ink); }
.info-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-weight: 600; padding-top: .25rem; }
.info-list dd { font-size: 1.05rem; }

/* rodapé */
.ft { background: var(--night); color: var(--cream); padding: clamp(3.5rem, 7vw, 6rem) 0 6rem; }
.ft .top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-l); }
.ft .big { font-family: var(--serif); font-size: clamp(3rem, 8vw, 6.5rem); line-height: .85; }
.ft h4 { margin: 0 0 .8rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(241, 231, 216, .55); }
.ft li { padding: .2rem 0; color: rgba(241, 231, 216, .85); font-size: .95rem; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--terra); }
.ft .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .82rem; color: rgba(241, 231, 216, .55); }

.demo { position: fixed; left: 12px; bottom: 12px; z-index: 90; display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .5rem; border-radius: 999px; background: #0e0f12; color: #fff; font: 500 .75rem/1.2 system-ui, sans-serif; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); }
.demo i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2741e6; font-style: normal; }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s, transform 1s cubic-bezier(.2, .7, .1, 1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hd nav, .hd .btn { display: none; }
  .burger { display: block; }
  .open .hd { background: var(--night); color: var(--cream); box-shadow: none; }
  .open .hd nav { display: flex; position: fixed; inset: 78px 0 0; flex-direction: column; gap: 0; padding: 1.5rem var(--g); background: var(--night); color: var(--cream); }
  .open .hd nav a { font-family: var(--serif); font-size: 2.4rem; padding: .5rem 0; border-bottom: 1px solid var(--line-l); }
  .open .hd nav a::after { display: none; }
  .hero .row { grid-template-columns: 1fr; }
  .story .txt, .story .pics { grid-column: 1 / -1; }
  .dishes { grid-template-columns: 1fr 1fr; }
  .visit { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .menu-sec header, .menu-sec ul { grid-column: 1 / -1; position: static; }
  .menu-sec header img { aspect-ratio: 16 / 7; }
  .feature-post, .news, .book, .contact-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .ticket { position: static; }
  .ft .top { grid-template-columns: 1fr 1fr; }
  .ft .top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hd .w { height: 66px; }
  .open .hd nav { inset: 66px 0 0; }
  .page main { padding-top: 66px; }
  .tabs { top: 66px; }
  .logo span { display: none; }
  .hero { padding-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(4.4rem, 26vw, 7rem); }
  .quick { flex-wrap: wrap; border-radius: 20px; padding: .5rem; }
  .quick label { flex: 1 1 40%; border: 0; padding: .4rem .7rem; }
  .quick .btn { flex: 1 1 100%; margin: .4rem 0 0; }
  .dishes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--g)); padding: 0 var(--g); gap: 1rem; scrollbar-width: none; }
  .dish { flex: 0 0 78%; scroll-snap-align: start; }
  .posts { grid-template-columns: 1fr; }
  .news form { flex-direction: column; }
  .fields { grid-template-columns: 1fr; }
  .info-list div { grid-template-columns: 1fr; gap: .2rem; }
  .item h3 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .rv { opacity: 1; transform: none; } }
