/* ============================================
   Restoran Francesco — Coming Soon
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #C6A664;
  --gold-light: #D4BB83;
  --cream: #F5F0E8;
  --white: #FAFAF8;
  --dark: #0A0A0A;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Slideshow ---- */

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
}

@keyframes kenburns-a {
  0%   { transform: scale(1.00) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

@keyframes kenburns-b {
  0%   { transform: scale(1.04) translate(-1%, 0.5%); }
  100% { transform: scale(1.14) translate(1%, -1.5%); }
}

@keyframes kenburns-c {
  0%   { transform: scale(1.02) translate(0.5%, -0.5%); }
  100% { transform: scale(1.12) translate(-0.5%, 1%); }
}

.slide:nth-child(1) { animation: kenburns-a 22s ease-in-out infinite alternate; }
.slide:nth-child(2) { animation: kenburns-b 24s ease-in-out infinite alternate; }
.slide:nth-child(3) { animation: kenburns-c 26s ease-in-out infinite alternate; }

/* Overlay — gradient + radial vignette */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse at center,
      rgba(10, 10, 10, 0.30) 0%,
      rgba(10, 10, 10, 0.65) 70%,
      rgba(10, 10, 10, 0.85) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.35) 0%,
      rgba(10, 10, 10, 0.40) 35%,
      rgba(10, 10, 10, 0.65) 100%
    );
  pointer-events: none;
}

/* Film grain texture */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.03;
  pointer-events: none;
  animation: grainShift 0.5s steps(1) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-5%, -5%); }
  50%  { transform: translate(5%, 0); }
  75%  { transform: translate(-2%, 5%); }
  100% { transform: translate(0, 0); }
}

/* ---- Language Toggle ---- */

.lang-toggle {
  position: fixed;
  top: 2rem;
  right: 2.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.lang-btn {
  position: relative;
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 3px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.lang-btn img {
  display: block;
  border-radius: 2px;
  pointer-events: none;
}

.lang-btn:hover {
  opacity: 0.85;
  transform: scale(1.08);
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--gold);
}

/* ---- Main Content ---- */

.content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4rem 2rem 6rem;
  text-align: center;
}

.content-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Logo */
.logo {
  margin-bottom: 2.5rem;
}

.logo-img {
  display: block;
  width: clamp(160px, 22vw, 260px);
  height: auto;
  mix-blend-mode: screen;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.divider-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

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

/* Tagline */
.tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
}

/* Subtitle */
.subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  max-width: 30em;
  line-height: 1.7;
}

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

.contact {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  padding: 0 2rem;
}

.contact-line {
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 1.2rem;
}

.contact-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: center;
}

.contact-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.4s ease;
}

.contact-link:hover {
  color: var(--gold);
}

.contact-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* ---- Entrance Animations ---- */

.anim-item {
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.content-inner .anim-item:nth-child(1) { animation-delay: 0.3s; }
.content-inner .anim-item:nth-child(2) { animation-delay: 0.7s; }
.content-inner .anim-item:nth-child(3) { animation-delay: 1.0s; }
.content-inner .anim-item:nth-child(4) { animation-delay: 1.3s; }

.contact.anim-item { animation-delay: 1.7s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---- Language Switch Text Transition ---- */

[data-hr], [data-en] {
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.lang-switching [data-hr],
.lang-switching [data-en] {
  opacity: 0;
  transform: translateY(4px);
}

/* ---- Tablet ---- */

@media (max-width: 768px) {
  .content {
    padding: 3rem 2rem 5rem;
  }

  .logo-img {
    width: clamp(140px, 28vw, 200px);
  }

  .tagline {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
  }
}

/* ---- Mobile ---- */

@media (max-width: 480px) {
  .overlay {
    background:
      radial-gradient(
        ellipse at center,
        rgba(10, 10, 10, 0.40) 0%,
        rgba(10, 10, 10, 0.70) 60%,
        rgba(10, 10, 10, 0.90) 100%
      ),
      linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.45) 0%,
        rgba(10, 10, 10, 0.50) 35%,
        rgba(10, 10, 10, 0.75) 100%
      );
  }

  .lang-toggle {
    top: 1.2rem;
    right: 1.2rem;
    gap: 0.5rem;
  }

  .lang-btn {
    padding: 3px;
  }

  .lang-btn img {
    width: 26px;
    height: auto;
  }

  .content {
    padding: 2rem 1.5rem 7rem;
    justify-content: center;
  }

  .logo {
    margin-bottom: 1.8rem;
  }

  .logo-img {
    width: 190px;
  }

  .divider {
    margin-bottom: 2rem;
  }

  .divider-line {
    width: 28px;
  }

  .tagline {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 0 0.5rem;
  }

  .contact {
    bottom: 1.8rem;
    padding: 0 1.5rem;
  }

  .contact-line {
    margin-bottom: 0.8rem;
  }

  .contact-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-dot {
    display: none;
  }

  .contact-link {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }
}

/* ---- Very small screens ---- */

@media (max-width: 360px) {
  .logo-img {
    width: 160px;
  }

  .tagline {
    font-size: 0.58rem;
  }
}
