/* Cuia interaction and layout refinement layer.
   Loaded last so it can normalize the original desktop CSS safely. */

:root {
  --cuia-gold: #b98f39;
  --cuia-gold-light: #e8a84f;
  --cuia-gold-soft: rgba(185, 143, 57, 0.18);
  --cuia-ink: #100d0d;
  --cuia-panel: #1c1819;
  --cuia-panel-light: #282021;
  --cuia-cream: #fff8eb;
  --cuia-muted: rgba(255, 248, 235, 0.68);
  --cuia-border: rgba(185, 143, 57, 0.52);
  --cuia-shadow: 0 20px 55px rgba(0, 0, 0, 0.34);
}

body {
  overflow-x: hidden;
  line-height: 1.45;
}

main {
  overflow: clip;
}

section {
  scroll-margin-top: 28px;
}

/* ---------- General spacing ---------- */
.lines {
  padding-block: 44px 22px !important;
}

.appetizers,
.maincourse,
.desserts,
.drinkmenu {
  padding-block: 76px !important;
  gap: clamp(34px, 5vw, 74px) !important;
}

.menu_container,
.menu_containertwo {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.menu_list {
  gap: 4px;
}

.menu_item {
  padding: 10px 12px;
}

.item_description {
  line-height: 1.5;
}

/* ---------- About section ---------- */
.about {
  width: 100%;
  min-height: 540px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(230px, 320px) minmax(0, 650px) !important;
  justify-content: center !important;
  align-items: center !important;
  column-gap: clamp(42px, 6vw, 92px) !important;
  padding: 86px clamp(28px, 6vw, 88px) !important;
  position: relative;
  isolation: isolate;
}

.about > div {
  width: 100%;
  max-width: 650px;
  min-width: 0;
  margin: 0 !important;
  position: relative;
  z-index: 2;
}

.cuiasphotos {
  width: min(100%, 300px) !important;
  height: auto !important;
  margin: 0 !important;
  justify-self: end;
  position: relative;
  z-index: 2;
}

.subheadline {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 28px;
}

.experience {
  margin: 0 0 -22px 38px !important;
  font-size: clamp(29px, 3vw, 38px) !important;
  line-height: 1.1;
}

.amazon {
  margin: 0 0 -20px !important;
  font-size: clamp(76px, 8vw, 108px) !important;
  line-height: 0.95;
}

.on {
  margin: 0 0 0 50px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.on em {
  font-size: clamp(38px, 4vw, 52px) !important;
}

.about_paragraph {
  max-width: 600px;
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.72;
  text-align: left !important;
  color: rgba(255, 255, 255, 0.82);
}

.plantaumtwo {
  left: -76px !important;
  top: -44px !important;
  opacity: 0.36;
  z-index: 0;
}

.plantaum {
  right: -74px !important;
  bottom: -142px !important;
  opacity: 0.42;
  z-index: 0;
}

/* ---------- Reveal motion ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.78s cubic-bezier(.22, 1, .36, 1), transform 0.78s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.reveal-left {
  transform: translate3d(-42px, 0, 0);
}

.reveal-on-scroll.reveal-right {
  transform: translate3d(42px, 0, 0);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.13s; }
.reveal-delay-3 { transition-delay: 0.2s; }

/* ---------- Hover states ---------- */
.menu a,
.footmenu a {
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

.menu a::after,
.footmenu a::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -5px;
  height: 1px;
  background: var(--cuia-gold-light);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.menu a:hover,
.footmenu a:hover {
  color: var(--cuia-gold-light);
  transform: translateY(-2px);
}

.menu a:hover::after,
.footmenu a:hover::after {
  transform: scaleX(1);
}

button,
.reservation-trigger {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

button:hover,
.reservation-trigger:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 14px 30px rgba(185, 143, 57, 0.35);
}

button:active,
.reservation-trigger:active {
  transform: translateY(-1px) scale(0.99);
}

.menu_container,
.menu_containertwo,
.contact_container,
.map {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.menu_container:hover,
.menu_containertwo:hover,
.contact_container:hover,
.map:hover {
  transform: translateY(-7px);
  box-shadow: var(--cuia-shadow);
}

.menu_item {
  border-radius: 14px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.menu_item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(5px);
}

.photo_container > img,
.cuiasphotos {
  transition: transform 0.5s cubic-bezier(.22, 1, .36, 1), filter 0.5s ease;
}

.photo_container:hover > img,
.cuiasphotos:hover {
  transform: scale(1.035) rotate(-0.75deg);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

/* ---------- Contact ---------- */
.contact {
  padding-block: 68px !important;
  gap: clamp(30px, 5vw, 66px) !important;
}

.map,
.contact_container {
  margin: 0 !important;
}

/* ---------- Branded footer ---------- */
footer {
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    "nav logo social"
    "copy copy copy";
  align-items: center !important;
  gap: 26px 48px !important;
  padding: 48px clamp(28px, 7vw, 100px) 26px !important;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(185, 143, 57, 0.16), transparent 42%),
    linear-gradient(180deg, #171213 0%, #0c0909 100%);
  border-top: 1px solid rgba(185, 143, 57, 0.36);
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(185, 143, 57, 0.09) 34.5% 35%, transparent 35.5% 100%);
}

footer::after {
  content: "";
  position: absolute;
  left: clamp(28px, 7vw, 100px);
  right: clamp(28px, 7vw, 100px);
  bottom: 57px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 143, 57, 0.5), transparent);
}

.footmenu {
  grid-area: nav;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 18px;
  font-size: 14px !important;
  position: relative;
  z-index: 1;
}

.footmenu a {
  margin: 0 !important;
  padding: 8px 0;
  letter-spacing: 0.03em;
}

footer > img:first-of-type {
  grid-area: logo;
  width: 58px !important;
  height: auto !important;
  justify-self: center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

footer > img:nth-of-type(2) {
  grid-area: social;
  width: 118px !important;
  height: auto !important;
  justify-self: end;
  position: relative;
  z-index: 1;
  opacity: 0.88;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

footer > img:nth-of-type(2):hover {
  opacity: 1;
  transform: translateY(-3px);
}

.copyrights {
  grid-area: copy;
  justify-self: center;
  margin-top: 12px !important;
  padding-top: 20px;
  color: rgba(255, 248, 235, 0.48) !important;
  font-size: 11px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ---------- Reservation modal ---------- */
body.modal-open {
  overflow: hidden;
}

.reservation-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 4, 4, 0.78);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.reservation-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.reservation-dialog {
  width: min(760px, 100%);
  max-height: min(90vh, 850px);
  overflow: auto;
  position: relative;
  background: linear-gradient(145deg, #211a1b, #100d0d);
  border: 1px solid var(--cuia-border);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.6);
  transform: translateY(28px) scale(0.97);
  transition: transform 0.32s cubic-bezier(.22, 1, .36, 1);
}

.reservation-modal.is-open .reservation-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50%;
  border: 1px solid var(--cuia-border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 28px;
  line-height: 1;
  color: #fff;
  box-shadow: none;
}

.modal-close:hover {
  transform: rotate(8deg) scale(1.06);
  background: rgba(185, 143, 57, 0.28);
}

.reservation-kicker {
  color: var(--cuia-gold-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reservation-title {
  font-family: "Besley", serif;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  margin: 8px 55px 8px 0;
  color: #fff;
}

.reservation-intro {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  margin-bottom: 24px;
}

.reservation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--cuia-cream);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-field select option {
  color: #111;
}

.form-field textarea {
  min-height: 105px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cuia-gold-light);
  box-shadow: 0 0 0 4px rgba(185, 143, 57, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
}

.form-note {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.reservation-submit {
  width: auto !important;
  min-width: 220px;
  height: auto !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 14px 22px !important;
  border: 0;
  border-radius: 999px;
  background: var(--cuia-gold);
  font-weight: 800;
  font-size: 17px;
  color: #fff;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  color: var(--cuia-gold-light);
  font-size: 14px;
}

@media (max-width: 980px) {
  .about {
    grid-template-columns: minmax(190px, 260px) minmax(0, 560px) !important;
    column-gap: 42px !important;
    padding-inline: 34px !important;
  }

  .experience {
    margin-left: 18px !important;
  }

  .on {
    margin-left: 24px;
  }

  footer {
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .lines {
    padding-block: 34px 10px !important;
  }

  .appetizers,
  .maincourse,
  .desserts,
  .drinkmenu {
    padding-block: 48px !important;
    gap: 28px !important;
  }

  .about {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    row-gap: 30px !important;
    padding: 58px 20px 64px !important;
    text-align: center;
  }

  .about > div {
    max-width: 590px;
  }

  .cuiasphotos {
    width: min(68vw, 245px) !important;
    justify-self: center;
  }

  .subheadline {
    align-items: center;
    margin-bottom: 24px;
  }

  .experience,
  .amazon,
  .on {
    margin-left: 0 !important;
    text-align: center;
  }

  .experience {
    margin-bottom: -12px !important;
  }

  .amazon {
    margin-bottom: -8px !important;
  }

  .about_paragraph {
    max-width: 560px;
    margin-inline: auto !important;
    font-size: 16px !important;
    line-height: 1.68;
    text-align: center !important;
  }

  .contact {
    padding-block: 42px !important;
  }

  footer {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo social"
      "nav nav"
      "copy copy";
    padding: 38px 22px 24px !important;
    gap: 22px 24px !important;
  }

  footer::after {
    left: 22px;
    right: 22px;
    bottom: 54px;
  }

  footer > img:first-of-type {
    justify-self: start;
    width: 54px !important;
  }

  footer > img:nth-of-type(2) {
    justify-self: end;
    width: 108px !important;
  }

  .footmenu {
    justify-content: center;
    gap: 8px 20px;
    padding-top: 8px;
  }

  .copyrights {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .reservation-dialog {
    padding: 28px 18px 22px;
    border-radius: 22px;
  }

  .reservation-form {
    grid-template-columns: 1fr;
  }

  .form-field.full,
  .form-actions,
  .form-status {
    grid-column: 1;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reservation-submit {
    width: 100% !important;
  }

  .reservation-title {
    font-size: 36px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .about {
    padding-inline: 16px !important;
  }

  .amazon {
    font-size: clamp(56px, 19vw, 76px) !important;
  }

  .on em {
    font-size: clamp(32px, 10vw, 41px) !important;
  }

  footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "nav"
      "social"
      "copy";
    justify-items: center;
  }

  footer > img:first-of-type,
  footer > img:nth-of-type(2) {
    justify-self: center;
  }

  .footmenu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 330px;
    text-align: center;
  }

  footer::after {
    bottom: 54px;
  }
}

@media (hover: none) {
  .menu_container:hover,
  .menu_containertwo:hover,
  .contact_container:hover,
  .map:hover,
  .menu_item:hover,
  .photo_container:hover > img,
  .cuiasphotos:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .reservation-dialog,
  .reservation-modal,
  * {
    scroll-behavior: auto !important;
  }
}
