/* ===========================================================
   Il Palazzo Ristorante — shared styles
   =========================================================== */

:root {
  --bg: #0d0a09;
  --bg-alt: #161110;
  --bg-card: #1b1513;
  --gold: #c8a24d;
  --gold-light: #e8cd8a;
  --gold-dim: #8a7239;
  --wine: #5b1420;
  --wine-light: #7c2233;
  --cream: #f3ead9;
  --cream-dim: #cfc3ac;
  --text-muted: #a89c86;
  --border-soft: rgba(200, 162, 77, 0.25);
  --ink: #2a211b;
  --ink-muted: #6e6153;
  --line-soft-dark: rgba(42, 33, 27, 0.15);

  --font-display: 'Cinzel', serif;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Cormorant Garamond', serif;

  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--cream);
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Ornamental divider ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto;
  color: var(--gold);
  width: 100%;
  max-width: 320px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--border-soft) 20%, var(--gold) 50%, var(--border-soft) 80%, transparent);
}

.divider .mark {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background: var(--gold);
  color: #16110d;
  box-shadow: 0 0 22px rgba(200, 162, 77, 0.35);
}

.btn.solid {
  background: var(--gold);
  color: #16110d;
}

.btn.solid:hover {
  background: var(--gold-light);
}

.btn.small {
  padding: 9px 20px;
  font-size: 11px;
}

.btn.danger {
  border-color: var(--wine-light);
  color: #e8a9b3;
}

.btn.danger:hover {
  background: var(--wine-light);
  color: #fff;
  box-shadow: none;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(13, 10, 9, 0.94);
  backdrop-filter: blur(6px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.brand-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold-light);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--border-soft);
}

.header-social a {
  color: var(--gold);
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header-social a:hover {
  color: var(--gold-light);
  opacity: 1;
}

.header-social svg {
  width: 17px;
  height: 17px;
  display: block;
}

.nav-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span {
  top: 50%;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 140px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid var(--border-soft);
  pointer-events: none;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 10, 9, 0.5), rgba(13, 10, 9, 0.82) 65%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(91, 20, 32, 0.35), transparent 60%);
}

.hero-slides {
  display: flex;
  height: 100%;
  transition: transform 900ms cubic-bezier(0.45, 0.05, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides {
    transition: none;
  }
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(232, 205, 138, 0.4);
  background: rgba(13, 10, 9, 0.3);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(13, 10, 9, 0.6);
  border-color: var(--gold);
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
}

.hero-arrow-prev {
  left: 24px;
}

.hero-arrow-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.active {
  background: var(--gold-light);
  width: 22px;
  border-radius: 5px;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 84px);
  line-height: 1.05;
  color: var(--cream);
  text-shadow: 0 0 40px rgba(200, 162, 77, 0.15);
}

.hero-sub {
  font-style: italic;
  font-size: 22px;
  color: var(--cream-dim);
  max-width: 520px;
  margin: 18px auto 34px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-top: 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 20px;
}

.alt-bg {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* ---------- Feature / value cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 34px 22px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  color: var(--gold);
}

.feature-card h3 {
  font-size: 21px;
  letter-spacing: 0.03em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 0;
}

/* ---------- Home: menu teaser ---------- */

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.teaser-card {
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-alt));
  overflow: hidden;
}

.teaser-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
}

.teaser-card-body {
  padding: 24px 26px 30px;
}

.teaser-card .cat {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.teaser-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.teaser-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0;
}

.center {
  text-align: center;
}

/* ---------- Photo components (split block, gallery grid, wide strip) ---------- */

.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-block.reverse .split-photo {
  order: 2;
}

.split-photo {
  border: 1px solid var(--border-soft);
  padding: 10px;
}

.split-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.split-text .section-eyebrow {
  display: block;
  margin-bottom: 10px;
}

.split-text h2 {
  font-size: 34px;
}

.split-text p {
  color: var(--cream-dim);
  font-size: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.6s ease;
}

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

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 14px;
  background: linear-gradient(0deg, rgba(13, 10, 9, 0.95), transparent);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
}

.photo-strip {
  position: relative;
  height: 360px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 10, 9, 0.55), rgba(13, 10, 9, 0.4) 50%, rgba(13, 10, 9, 0.75));
}

.photo-strip-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
}

/* ---------- Quote / story strip ---------- */

.quote-strip {
  text-align: center;
  padding: 90px 24px;
}

.quote-strip blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(24px, 3vw, 34px);
  max-width: 780px;
  margin: 0 auto 18px;
  color: var(--gold-light);
}

.quote-strip cite {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

/* ---------- About page ---------- */

.about-hero {
  padding: 160px 0 60px;
  text-align: center;
}

.about-hero h1 {
  font-size: clamp(38px, 6vw, 60px);
}

.about-hero .sub {
  color: var(--text-muted);
  font-style: italic;
  font-size: 21px;
  max-width: 560px;
  margin: 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-grid .frame {
  border: 1px solid var(--border-soft);
  padding: 10px;
}

.story-grid .frame-inner {
  border: 1px solid var(--border-soft);
  padding: 50px 30px;
  text-align: center;
  background: var(--bg-card);
}

.story-grid .frame-inner .big-mark {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
}

.story-grid .frame-inner p {
  font-style: italic;
  color: var(--cream-dim);
  margin-top: 14px;
}

.story-text h2 {
  font-size: 34px;
}

.story-text p {
  color: var(--cream-dim);
  font-size: 20px;
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--border-soft);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--border-soft);
}

.timeline-year {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0.05em;
}

.timeline-item h4 {
  font-size: 21px;
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}

.info-grid h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.info-grid p {
  color: var(--cream-dim);
  margin-bottom: 4px;
}

/* ---------- Menu page (bounded card, photo carousel + light content panel) ---------- */

.menu-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 130px 90px 60px;
}

.menu-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  z-index: 2;
}

.menu-arrow:hover {
  border-color: var(--gold);
  background: rgba(200, 162, 77, 0.1);
}

.menu-arrow svg {
  width: 20px;
  height: 20px;
}

.menu-arrow.prev {
  left: 24px;
}

.menu-arrow.next {
  right: 24px;
}

.menu-card {
  width: 100%;
  max-width: 1300px;
  height: min(760px, 82vh);
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  perspective: 1800px;
}

@keyframes menuCoverOpenLeft {
  from {
    opacity: 0;
    transform: rotateY(38deg);
  }
  to {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@keyframes menuCoverOpenRight {
  from {
    opacity: 0;
    transform: rotateY(-38deg);
  }
  to {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@keyframes menuFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-card-photo {
  transform-origin: right center;
  animation: menuCoverOpenLeft 0.85s cubic-bezier(0.22, 0.8, 0.25, 1) both;
}

.menu-card-content {
  transform-origin: left center;
  animation: menuCoverOpenRight 0.85s cubic-bezier(0.22, 0.8, 0.25, 1) 0.08s both;
}

.menu-arrow,
.menu-dots {
  animation: menuFadeUp 0.5s ease 0.7s both;
}

@media (prefers-reduced-motion: reduce) {
  .menu-card-photo,
  .menu-card-content,
  .menu-arrow,
  .menu-dots {
    animation: none;
  }
}

.menu-card-photo {
  position: relative;
  width: 44%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-alt);
}

.menu-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.menu-card-photo img.loaded {
  opacity: 1;
}

.menu-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 10, 9, 0.7), transparent 40%);
}

.menu-photo-caption {
  position: absolute;
  left: 30px;
  bottom: 46px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

.menu-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.menu-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.menu-dot.active {
  width: 20px;
  border-radius: 4px;
  background: var(--gold-light);
}

.menu-card-content {
  width: 56%;
  background: var(--cream);
  color: var(--ink);
  padding: 56px 60px;
  overflow-y: auto;
  position: relative;
}

.menu-close {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.menu-close:hover {
  color: var(--ink);
}

.menu-close svg {
  width: 100%;
  height: 100%;
}

@keyframes menuPageTurn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-page {
  animation: menuPageTurn 0.4s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .menu-page {
    animation: none;
  }
}

.menu-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.menu-card-title-bar {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px 0 26px;
}

.menu-list {
  display: grid;
  gap: 24px;
}

.menu-item {
  cursor: default;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft-dark);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-toprow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.menu-item-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  transition: color 0.2s ease;
}

.menu-item.active .menu-item-name,
.menu-item:hover .menu-item-name {
  color: #8a5a1f;
}

.menu-item-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}

.menu-item-desc {
  color: var(--ink-muted);
  font-size: 16px;
  margin-top: 4px;
}

.menu-empty {
  color: var(--ink-muted);
  font-style: italic;
  padding: 40px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 30px;
  background: var(--bg-alt);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer-brand span {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 2px 0;
}

.footer-meta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.footer-meta a:hover {
  color: var(--gold-light);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page transition (opening the menu) ---------- */

.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.page-transition-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(200, 162, 77, 0.12), transparent 60%);
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ---------- Admin page ---------- */

.admin-page {
  padding: 150px 0 100px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.admin-note {
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  padding: 16px 22px;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 44px;
}

.admin-note strong {
  color: var(--gold-light);
}

.admin-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 50px;
  align-items: start;
}

.admin-panel {
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  padding: 30px;
  position: sticky;
  top: 110px;
}

.admin-panel h2 {
  font-size: 24px;
  margin-bottom: 22px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  padding: 11px 14px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 14px;
}

.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
  text-align: center;
}

.admin-list-cat {
  margin-bottom: 36px;
}

.admin-list-cat h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(200, 162, 77, 0.12);
}

.admin-item-photo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.admin-item-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-alt));
  color: var(--gold-dim);
}

.admin-item-photo.placeholder svg {
  width: 20px;
  height: 20px;
}

.admin-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.admin-item-main {
  min-width: 0;
}

.image-preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  margin-top: 10px;
  display: none;
}

.image-preview.show {
  display: block;
}

.admin-item-main .name-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: 19px;
}

.admin-item-main .name-line .price {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 16px;
}

.admin-item-main .desc-line {
  color: var(--text-muted);
  font-style: italic;
  font-size: 15px;
  margin-top: 2px;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-empty {
  color: var(--text-muted);
  font-style: italic;
}

.status-msg {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--gold-light);
  min-height: 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .story-grid,
  .split-block {
    grid-template-columns: 1fr;
  }

  .split-block.reverse .split-photo {
    order: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    position: static;
  }

  .menu-stage {
    padding: 110px 20px 40px;
  }

  .menu-card {
    flex-direction: column;
    height: auto;
    max-height: none;
  }

  .menu-card-photo {
    width: 100%;
    height: 280px;
  }

  .menu-card-content {
    width: 100%;
    padding: 50px 28px 60px;
    overflow-y: visible;
  }

  .menu-arrow {
    width: 40px;
    height: 40px;
    top: 250px;
    transform: none;
  }

  .menu-arrow.prev {
    left: 6px;
  }

  .menu-arrow.next {
    right: 6px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-alt);
    border-left: 1px solid var(--border-soft);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .header-social {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  section {
    padding: 70px 0;
  }

  .menu-item-name {
    font-size: 20px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .hero-arrow-prev {
    left: 12px;
  }

  .hero-arrow-next {
    right: 12px;
  }
}
