:root {
  --black: #000000;
  --cream: #f0dbc0;
  --cream-muted: rgba(240, 219, 192, 0.62);
  --orange: #de5e2b;
  --orange-strong: #e85a24;
  --white: #ffffff;
  --button-glow: rgba(218, 207, 163, 0.35);
  --page-gutter: 10px;
  --content-max: 527px;
  --background-image: url("./assets/brickell-bg.webp");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--cream);
  font-family: "Lato", Arial, sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange-strong);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 5px;
  color: var(--black);
  background: var(--cream);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.48) 62%, rgba(0, 0, 0, 0.78)),
    var(--background-image);
  background-position: center;
  background-size: cover;
}

.page-bg::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.34)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  opacity: 0.34;
}

.link-page {
  width: 100%;
  min-height: 100vh;
  padding: 20px var(--page-gutter) 96px;
}

.link-card {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(78vw, 300px);
  height: auto;
  margin: 30px auto 10px;
  object-fit: contain;
}

.location-title {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.address {
  max-width: 100%;
  margin: 0 0 20px;
  color: var(--cream-muted);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
}

.booking-provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.booking-title {
  margin: 0;
  color: var(--cream);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
}

.provider-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.provider-logo-opentable {
  width: 210px;
}

.widget-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}

.widget-shell iframe {
  max-width: 100%;
}

.widget-shell-opentable {
  min-height: 301px;
}

.link-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--cream);
  border-radius: 5px;
  color: var(--cream);
  background: var(--black);
  box-shadow: 0 0 14px 1px var(--button-glow);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--black);
  background: var(--cream);
}

.link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.hours-box {
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin-top: 20px;
  padding: 2px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--black);
  background: var(--orange-strong);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.hours-box h2,
.hours-box p {
  margin: 0;
}

.hours-box h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.hours-box-long {
  gap: 4px;
  padding: 12px 14px;
}

.flyers-section {
  margin-top: 24px;
}

.flyers-title {
  margin: 0 0 14px;
  color: var(--cream);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
}

.flyers-grid {
  display: grid;
  gap: 18px;
}

.flyer-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(240, 219, 192, 0.42);
  border-radius: 5px;
  box-shadow: 0 0 14px 1px var(--button-glow);
}

.fixed-book-button {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 143px;
  height: 56px;
  padding: 15px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--black);
  background: var(--orange);
  box-shadow: 2px 2px 9px rgba(221, 169, 46, 0.49);
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.reservation-modal[hidden] {
  display: none;
}

.reservation-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.reservation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.reservation-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 360px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px 18px 18px;
  border: 1px solid rgba(240, 219, 192, 0.42);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.58), 0 0 18px var(--button-glow);
}

.reservation-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(240, 219, 192, 0.6);
  border-radius: 50%;
  color: var(--cream);
  background: var(--black);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.reservation-modal__title {
  margin: 14px 42px 16px;
  color: var(--cream);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.reservation-modal__iframe {
  width: 224px;
  height: 301px;
  border: 0;
  border-radius: 4px;
  background: var(--white);
}

.reservation-modal__fallback {
  margin: 14px 0 0;
  color: var(--cream-muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.reservation-modal__fallback a {
  color: var(--cream);
  font-weight: 700;
}

@media (max-width: 480px) {
  .fixed-book-button {
    width: 128px;
    height: 52px;
    font-size: 18px;
  }
}

@media (min-width: 481px) {
  .link-page {
    padding-top: 20px;
  }

  .brand-logo {
    margin-top: 30px;
  }

  .location-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 400;
  }

  .address {
    font-size: 17px;
  }

  .link-button {
    font-weight: 700;
  }

  .fixed-book-button {
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 374px) {
  .brand-logo {
    width: min(76vw, 260px);
  }

  .booking-title {
    font-size: 21px;
  }

  .link-button {
    font-size: 16px;
  }
}
