/* Nav and footer for /reserve/. Scoped so the booking form keeps reserve.css. */

nav.top,
footer,
.mbar,
.fab {
  --teal: #05695f;
  --teal2: #0a8a7c;
  --ink: #0a1312;
  --gold: #c8a96a;
  --line: rgba(10, 19, 18, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 24px 50px -32px rgba(3, 47, 43, .45);
  --shadow-lg: 0 40px 80px -48px rgba(3, 47, 43, .55);
  font-family: Vazirmatn, Tahoma, sans-serif;
  box-sizing: border-box;
}

nav.top *,
footer *,
.mbar *,
.fab * { box-sizing: border-box; }

body.page-reserve {
  --header-h: 120px;
}

body.page-reserve .mbar,
body.page-reserve .fab { display: none !important; }

body.page-reserve footer { padding-bottom: 48px; }

nav.top a,
footer a,
.mbar a { color: inherit; text-decoration: none; }

nav.top .btn,
footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  background: var(--teal);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 28px -16px rgba(5, 105, 95, .85);
  text-decoration: none;
}

nav.top .btn.sm,
footer .btn.sm { min-height: 44px; padding: 10px 16px; font-size: .875rem; }

nav.top {
  position: fixed;
  top: 12px;
  inset-inline: 0;
  z-index: 60;
}

nav.top .wrap,
footer .wrap { width: min(1240px, 92vw); margin-inline: auto; }

nav.top .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: #102e2b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .65);
}

nav.top.solid .bar {
  background: rgba(245, 239, 230, .96);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, .35);
}

nav.top .logo { display: flex; }
nav.top .logo img { width: 58px; height: 58px; object-fit: contain; max-width: none; }

nav.top .menu { display: flex; gap: 22px; font-size: .95rem; font-weight: 500; align-items: center; }

nav.top .menu > a,
nav.top .ddt {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  min-height: 44px;
  cursor: pointer;
}

nav.top .menu > a img {
  width: 22px;
  height: 22px;
  flex: none;
  filter: brightness(0) saturate(100%) invert(23%) sepia(19%) saturate(2174%) hue-rotate(137deg) brightness(96%) contrast(101%);
}

nav.top:not(.solid) .menu > a img { filter: brightness(0) invert(1); }

nav.top button.ddt {
  font: inherit;
  color: inherit;
  background: none;
  border-radius: 999px;
  border: 1px solid currentColor;
  padding: 8px 14px;
  font-size: .875rem;
  font-weight: 600;
}

nav.top .dd { position: relative; }

nav.top .dd .sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  background: #06332f;
  border-radius: 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  color: #fff;
  z-index: 5;
}

nav.top .dd:hover .sub,
nav.top .dd:focus-within .sub,
nav.top .dd.open .sub {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

nav.top .sub a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .9rem;
  min-height: 44px;
}

nav.top .navcta { display: flex; gap: 8px; align-items: center; }
nav.top .navcta .book img { width: 22px; height: 22px; flex: none; filter: brightness(0) invert(1); }
nav.top .navcta .call { background: #0c6e40; }

nav.top .burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

nav.top .burger i { width: 18px; height: 1.5px; background: currentColor; display: block; }

footer {
  background: var(--ink);
  color: #e7e0d6;
  padding: 96px 0 48px;
  position: relative;
  overflow: hidden;
}

footer .fhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

footer .fhead h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 900; color: #fff; line-height: 1.15; margin: 0; }

footer .fg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; }

footer .fc h3 { color: #f3e6c8; font-size: .95rem; margin-bottom: 10px; font-weight: 700; }

footer .fc p { font-size: 1.05rem; margin-bottom: 6px; color: #f6f1e8; }

footer .fc a { text-decoration: underline; text-underline-offset: 3px; }

footer .fsoc { margin-top: 32px; display: flex; gap: 10px; }

footer .fsoc a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  color: #fff;
}

footer .fsoc svg { width: 18px; height: 18px; }

footer .orn { width: 100%; max-width: 560px; margin: 40px auto 0; display: block; }

footer .btn .ar { width: 18px; height: 18px; }

@media (max-width: 1279px) {
  nav.top .navcta .call { display: none; }
  nav.top .menu { gap: 14px; font-size: .9rem; }
}

@media (max-width: 900px) {
  nav.top .menu { display: none; }
  nav.top .burger { display: flex; }
  nav.top .bar { flex-wrap: wrap; border-radius: 28px; }
  body.page-reserve.nav-open nav.top .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 0 100%;
    gap: 0;
    padding: 6px 6px 2px;
    order: 5;
  }
  body.page-reserve.nav-open nav.top .navcta {
    flex: 1 0 100%;
    flex-wrap: wrap;
    order: 6;
    padding: 4px 6px 8px;
  }
  nav.top .logo img { width: 48px; height: 48px; }
  footer .fg { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
  nav.top .wrap,
  footer .wrap { width: min(100% - 28px, 92vw); }
}
