/* Motion & SVG effects — editorial, not flashy */

/* Page load */
body.is-ready .hero-copy > * {
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.is-ready .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
body.is-ready .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
body.is-ready .hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
body.is-ready .hero-copy > *:nth-child(4) { animation-delay: 0.3s; }
body.is-ready .hero-copy > *:nth-child(5) { animation-delay: 0.38s; }
body.is-ready .hero-copy > *:nth-child(6) { animation-delay: 0.46s; }

body.is-ready .hero-photo {
  animation: photoIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes photoIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 100;
  background: var(--accent);
  transform-origin: left center;
  pointer-events: none;
  transition: opacity 0.3s;
}

body.rtl .scroll-progress {
  left: auto;
  right: 0;
  transform-origin: right center;
}

/* Decorative SVG flourishes */
.ornament {
  display: block;
  width: 48px;
  height: 16px;
  color: var(--accent);
  margin: 0.65rem 0 0.35rem;
  opacity: 0.75;
}

.ornament svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ornament .draw {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in .ornament .draw,
.ornament.is-drawn .draw {
  stroke-dashoffset: 0;
}

/* Label underline draw */
.label {
  position: relative;
  display: inline-block;
}

.label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

body.rtl .label::after {
  transform-origin: right center;
}

.reveal.in .label::after,
.section-head.in .label::after,
.story-intro.in .label::after,
.reserve-intro.in .label::after {
  transform: scaleX(1);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Stagger children */
.stagger > *.reveal {
  transition-delay: calc(var(--i, 0) * 0.07s);
}

/* Hero photo hover / parallax shell */
.hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo .photo-frame {
  overflow: hidden;
  background: var(--photo-bg);
}

.hero-photo img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-photo:hover img {
  transform: scale(1.03);
}

/* Image mask reveal */
.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
  z-index: 1;
}

body.rtl .img-reveal::after {
  transform-origin: left center;
}

.img-reveal.in::after,
.reveal.in .img-reveal::after,
.dish-card.in .img-reveal::after,
.gallery-mosaic a.in::after {
  transform: scaleX(0);
  transform-origin: left center;
}

body.rtl .img-reveal.in::after,
body.rtl .reveal.in .img-reveal::after,
body.rtl .dish-card.in .img-reveal::after,
body.rtl .gallery-mosaic a.in::after {
  transform-origin: right center;
}

/* Feature SVG icons */
.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon svg {
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature.in .feature-icon svg {
  opacity: 1;
  transform: none;
}

/* line-draw when path is direct child */
.feature-icon .icon-draw {
  stroke-dasharray: 72;
  stroke-dashoffset: 72;
  transition: stroke-dashoffset 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.feature.in .feature-icon .icon-draw {
  stroke-dashoffset: 0;
}

.feature {
  transition: background 0.25s, padding-inline 0.25s;
}

.feature:hover {
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}

/* Dish row hover */
.dish-card {
  transition: background 0.25s ease, transform 0.25s ease;
}

.dish-card:hover {
  background: color-mix(in srgb, var(--paper-2) 80%, transparent);
}

.dish-card img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.dish-card:hover img {
  transform: scale(1.04);
}

/* Gallery */
.gallery-mosaic a {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-mosaic a img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s;
}

.gallery-mosaic a:hover img {
  transform: scale(1.05);
  filter: contrast(1.03) saturate(1.05);
}

.gallery-mosaic a .gal-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-mosaic a:hover .gal-shine {
  transform: translateX(120%);
}

/* Buttons micro */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.25s;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 48%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.12);
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-text {
  transition: color 0.2s, text-decoration-color 0.2s, gap 0.2s;
}

.btn-text:hover {
  gap: 0.45rem;
  color: var(--accent);
}

/* Form focus glow line */
.field {
  position: relative;
}

.field .focus-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

body.rtl .field .focus-line {
  transform-origin: right center;
}

.field:focus-within .focus-line {
  transform: scaleX(1);
}

.field input,
.field textarea {
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

/* Nav link underline */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

body.rtl .nav-links a::after {
  transform-origin: right;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

/* Burger morph */
.nav-burger span {
  transition: transform 0.25s ease, opacity 0.2s;
}

.nav-burger[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Mobile bar */
.bar-btn {
  transition: background 0.2s, letter-spacing 0.2s;
}

.bar-btn:hover {
  letter-spacing: 0.02em;
  background: var(--accent);
}

/* Contact link icons */
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, gap 0.2s;
}

.contact-links a:hover {
  color: var(--accent);
  gap: 0.55rem;
}

.contact-links .ci {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: inherit;
}

.contact-links .ci use {
  fill: currentColor;
}

/* Floating soft blob — very subtle, paper-friendly */
.ambient-svg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.35;
}

.ambient-svg svg {
  width: 100%;
  height: 100%;
}

.ambient-svg .blob {
  animation: blobFloat 18s ease-in-out infinite alternate;
}

.ambient-svg .blob-2 {
  animation-delay: -6s;
  animation-duration: 22s;
}

@keyframes blobFloat {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(2%, 3%);
  }
}

main,
.nav,
.site-footer,
.mobile-bar,
.scroll-progress {
  position: relative;
  z-index: 1;
}

.nav {
  z-index: 40;
}

.mobile-bar,
.scroll-progress {
  z-index: 50;
}

/* Section divider SVG */
.section-rule {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0 auto;
  height: 12px;
  color: var(--line-strong);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.6s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-rule.in {
  opacity: 1;
  transform: scaleX(1);
}

.section-rule svg {
  width: 100%;
  height: 100%;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .img-reveal::after {
    display: none;
  }

  .ornament .draw,
  .feature-icon .icon-draw {
    stroke-dashoffset: 0;
  }

  .scroll-progress,
  .ambient-svg {
    display: none;
  }

  body.is-ready .hero-copy > *,
  body.is-ready .hero-photo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
