/* La Rivarella Novigrad - light seaside restaurant website */
:root {
  --ink: #132023;
  --muted: #657174;
  --soft: #f5f1e9;
  --paper: #fffdfa;
  --sea: #0e6f83;
  --sea-dark: #074653;
  --coral: #d8603f;
  --gold: #c89445;
  --line: rgba(19, 32, 35, 0.12);
  --shadow: 0 24px 80px rgba(20, 42, 47, 0.16);
  --display: Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --radius: 8px;
  --ease: cubic-bezier(.22,.8,.26,1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fffefa 0%, #f6fbfb 36%, #fffdfa 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .22vw, 1.08rem);
  line-height: 1.62;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: rgba(216, 96, 63, .24);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.2rem, 10vw, 8.6rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.7rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
}

p {
  color: var(--muted);
}

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

.section {
  padding-block: var(--section);
}

.section--cream {
  background: var(--soft);
}

.section--sea {
  background: linear-gradient(135deg, #e9f8f8 0%, #fffdfa 48%, #f8efe5 100%);
  border-block: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 4rem);
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--sea);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.lead {
  max-width: 58ch;
  color: #435154;
  font-size: clamp(1.14rem, 2vw, 1.46rem);
  line-height: 1.48;
}

.center {
  text-align: center;
}

.center .lead,
.center .section-head {
  margin-inline: auto;
}

.mt-s { margin-top: .85rem; }
.mt-m { margin-top: 1.45rem; }
.mt-l { margin-top: 2.3rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .88rem 1.15rem;
  border: 1px solid rgba(14, 111, 131, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--sea-dark);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.1;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(14, 111, 131, .08);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 111, 131, .55);
  background: #fff;
}

.btn--solid {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
  box-shadow: 0 16px 36px rgba(216, 96, 63, .28);
}

.btn--solid:hover {
  background: #c84f31;
  color: #fff;
}

.btn--ghost {
  background: transparent;
}

.link {
  color: var(--sea-dark);
  font-weight: 800;
  border-bottom: 1px solid rgba(14, 111, 131, .28);
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(.9rem, 2vw, 1.25rem) var(--gutter);
  color: #fff;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}

.nav.scrolled,
.nav.nav--light {
  padding-block: .72rem;
  background: rgba(255, 253, 250, .92);
  color: var(--ink);
  box-shadow: 0 16px 50px rgba(15, 35, 40, .08);
  backdrop-filter: blur(18px);
}

.nav__brand {
  display: inline-grid;
  gap: .05rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: .95;
}

.nav__brand span {
  color: var(--coral);
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.6rem);
}

.nav__links a {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .76;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--coral);
  opacity: 1;
}

.nav__cta {
  display: none;
}

.lang-switcher {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: inherit;
  cursor: pointer;
  padding: .45rem .65rem;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav.scrolled .lang-switcher,
.nav.nav--light .lang-switcher {
  border-color: var(--line);
  background: #fff;
  color: var(--sea-dark);
}

.lang-switcher option {
  color: var(--ink);
  background: #fffdfa;
}

.nav__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  cursor: pointer;
}

.nav.scrolled .nav__burger,
.nav.nav--light .nav__burger {
  border-color: var(--line);
  background: #fff;
}

.nav__burger span {
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.nav__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 980px) {
  .nav__links,
  .nav__cta {
    display: flex;
  }

  .nav__burger {
    display: none;
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  visibility: hidden;
  opacity: 0;
  background: rgba(255, 253, 250, .98);
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}

.drawer.open {
  visibility: visible;
  opacity: 1;
}

.drawer a,
.drawer button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(2rem, 9vw, 4.2rem);
}

.drawer .btn {
  margin-top: .8rem;
  font-family: var(--sans);
  font-size: .76rem;
}

.drawer .lang-switcher {
  width: min(220px, 70vw);
  color: var(--sea-dark);
  border-color: var(--line);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -3;
  background: var(--sea-dark);
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media video {
  z-index: 2;
}

.hero__poster {
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 49, 61, .18) 0%, rgba(9, 49, 61, .18) 42%, rgba(9, 49, 61, .72) 100%),
    linear-gradient(90deg, rgba(7, 45, 55, .78), rgba(7, 45, 55, .24) 58%, rgba(255,255,255,.08));
}

.hero__inner {
  width: 100%;
  padding-top: 8rem;
  padding-bottom: clamp(5rem, 9vw, 7.5rem);
  color: #fff;
}

.hero__title {
  max-width: 12ch;
  margin-top: .85rem;
  text-wrap: balance;
}

.hero__title em {
  color: #ffdca8;
  font-style: italic;
}

.hero__sub {
  color: rgba(255,255,255,.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.hero__quick {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.2rem, 4vw, 2.5rem);
  z-index: 3;
  display: none;
  width: min(360px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero__quick strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
}

.hero__quick span {
  display: block;
  margin-top: .45rem;
  color: var(--muted);
  font-size: .88rem;
}

@media (min-width: 920px) {
  .hero__quick {
    display: block;
  }
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(1.8rem, 4vw, 3.4rem);
}

.section-head h2 {
  margin-top: .75rem;
}

.intro-quote {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 3.15rem);
  line-height: 1.18;
}

.feature-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfecef;
  box-shadow: var(--shadow);
}

.feature-img img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.feature-img:hover img {
  transform: scale(1.035);
}

.caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: .45rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--sea-dark);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.stat,
.card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 50px rgba(20, 42, 47, .08);
}

.stat {
  min-height: 132px;
  padding: 1.15rem;
}

.stat strong {
  display: block;
  color: var(--sea);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: .6rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.card {
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card__body,
.info-card {
  padding: clamp(1.15rem, 2.5vw, 1.8rem);
}

.card small {
  color: var(--coral);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  list-style: none;
}

.pill-list li {
  border: 1px solid rgba(14, 111, 131, .18);
  border-radius: 999px;
  background: #fff;
  padding: .5rem .78rem;
  color: var(--sea-dark);
  font-size: .86rem;
  font-weight: 700;
}

.menu-list {
  display: grid;
  gap: .9rem;
}

.menu-item {
  display: grid;
  gap: .3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 620px) {
  .menu-item {
    grid-template-columns: 1fr auto;
  }
}

.menu-item__name {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.32rem;
}

.menu-item__price {
  color: var(--coral);
  font-weight: 900;
}

.menu-item__desc {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .96rem;
}

.pagehead {
  position: relative;
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,253,250,.94), rgba(255,253,250,.72)),
    var(--page-image, linear-gradient(135deg, #e5f7f7, #fff0e7));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.pagehead h1 {
  max-width: 12ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  grid-auto-flow: dense;
}

@media (min-width: 820px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery-item {
  position: relative;
  min-height: 210px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfecef;
  cursor: pointer;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: 1 / 2;
}

@media (max-width: 819px) {
  .gallery-item.tall {
    grid-row: span 1;
    aspect-ratio: 1;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-item span {
  position: absolute;
  inset: auto .8rem .8rem .8rem;
  padding: .45rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--sea-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.info-list {
  display: grid;
  gap: .75rem;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.info-list strong {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.reserve-panel {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: end center;
  visibility: hidden;
  opacity: 0;
  padding: 1rem;
  background: rgba(7, 32, 38, .42);
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}

.reserve-panel.open {
  visibility: visible;
  opacity: 1;
}

.reserve-panel__card {
  width: min(560px, 100%);
  border-radius: var(--radius);
  background: #fffdfa;
  box-shadow: var(--shadow);
  transform: translateY(16px);
  transition: transform .25s var(--ease);
}

.reserve-panel.open .reserve-panel__card {
  transform: none;
}

.reserve-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.3rem 0;
}

.reserve-panel__body {
  padding: 1.3rem;
}

.reserve-panel__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.reserve-actions {
  display: grid;
  gap: .8rem;
  margin-top: 1.2rem;
}

@media (min-width: 560px) {
  .reserve-panel {
    place-items: center;
  }

  .reserve-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.map {
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #dfecef;
  box-shadow: var(--shadow);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.footer {
  padding-top: clamp(3.4rem, 6vw, 5rem);
  background: #eff8f8;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 820px) {
  .footer__grid {
    grid-template-columns: 1.35fr 1fr 1fr;
  }
}

.footer__brand {
  font-family: var(--display);
  font-size: 2rem;
}

.footer h4 {
  margin-bottom: .8rem;
  color: var(--sea-dark);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: .5rem;
  list-style: none;
  color: var(--muted);
}

.footer a:hover {
  color: var(--coral);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.4rem, 5vw, 4rem);
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.reveal,
.hero .reveal-h {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.hero .reveal-h {
  animation: rise .8s var(--ease) forwards;
}

.hero .d1 { animation-delay: .16s; }
.hero .d2 { animation-delay: .3s; }
.hero .d3 { animation-delay: .44s; }
.hero .d4 { animation-delay: .58s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 680px) {
  .btn {
    width: 100%;
  }

  .hero__actions {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
