/*
 * Noir Suadiye — single page styles.
 * Mobile first (< 768px); tablet/desktop values in the media query below.
 * Spacing values are taken from the original Elementor layout (1440px and 375px wide).
 */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Cinzel";
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/cinzel-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base ---------- */
:root {
  --black: #000;
  --white: #fff;
  --text: #525252;
  --gutter: 20px;
  --h2: 20px;
  --body: 13px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 var(--body)/1.7 "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Entrance animations slide in from off-screen; never let them cause sideways scrolling */
main, footer { overflow-x: clip; }

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

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

h1, h2, p { margin: 0; }

h2 {
  font: 400 var(--h2)/1 "Cinzel", Georgia, serif;
  color: var(--black);
}
h2 + p { margin-top: 20px; }

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Cover image used as a section background */
.hero-bg, .banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  height: 443px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 7px var(--gutter) 30px;
  color: var(--white);
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(#131313 17%, #000 100%);
  opacity: 0.39;
}
.logo img { width: 97px; }
.hero-title { font: 400 23px/1 "Cinzel", Georgia, serif; }

/* ---------- Intro ---------- */
.intro {
  position: relative;
  padding: 66px 0 61px;
  text-align: center;
}
/* The seal sits in a 270px box that runs underneath the top of the gallery */
.intro-seal {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 270px;
  opacity: 0.11;
  z-index: -1;
}

/* ---------- Gallery grid ---------- */
.grid {
  position: relative; /* paint above the intro seal */
  display: grid;
  gap: 30px;
  padding-bottom: 90px;
}
.grid img {
  width: 100%;
  aspect-ratio: 335 / 200;
  object-fit: cover;
}

/* ---------- Full-width banners (night / menu) ---------- */
.banner {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--white);
}
.banner h2 { color: var(--white); }
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.night {
  padding-block: 90px;
  text-align: center;
}
.night::after { background: #000; opacity: 0.5; }
.night h2 + p { margin-top: 30px; }
.night p { font-weight: 300; }

/* ---------- Craft ---------- */
.craft {
  display: grid;
  gap: 50px;
  padding: 60px 30px;
  text-align: center;
}
.craft h2 strong { font-weight: 700; }
.craft p { color: #424242; }
.craft p strong { font-weight: 600; }
.craft-media {
  position: relative;
  aspect-ratio: 315 / 352;
}
.craft-media img { position: absolute; object-fit: cover; }
.craft-back  { top: 0; right: 0; width: 78.7%; aspect-ratio: 248 / 298; }
.craft-front { left: 0; bottom: 0; width: 64.1%; aspect-ratio: 202 / 250; }

/* ---------- Menu ---------- */
.menu { padding: 63px 0 90px; text-align: center; }
.menu::after { background: linear-gradient(#0c0c0c, #000); opacity: 0.74; }
.menu-cards {
  display: grid;
  gap: 30px;
  margin-top: 55px;
}
.menu-card {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 438px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.menu-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(0 0 0 / 0.3);
}
.menu-card span { font: 600 18px/1 "Cinzel", Georgia, serif; }
.menu-card:hover, .menu-card:focus-visible { transform: translateY(-5px); opacity: 0.9; }
.menu-card:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

/* ---------- Choice ---------- */
.choice {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 42px 0 30px;
}
.choice-sketch {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  opacity: 0.16;
  z-index: -1;
}
.choice-inner {
  display: grid;
  gap: 30px;
}
.choice-text { order: -1; text-align: center; }
.choice-text h2 + p { margin-top: 30px; }
.choice-media {
  display: grid;
  gap: 30px;
}
.choice-media img {
  width: 100%;
  aspect-ratio: 335 / 220;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: rgb(255 255 255 / 0.65);
  text-align: center;
}

.strip {
  --white-part: 69%;
  background: linear-gradient(var(--white) var(--white-part), var(--black) var(--white-part));
}
.carousel {
  --visible: 1;
  position: relative;
  padding-inline: 30px;
}
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  translate: calc(var(--index, 0) * -100% / var(--visible)) 0;
  transition: translate 0.5s ease;
}
.carousel-slide {
  flex: 0 0 calc(100% / var(--visible));
  display: grid;
  place-items: center;
}
.carousel-slide img {
  width: 183px;
  aspect-ratio: 1;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 81px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  cursor: pointer;
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.footer-inner {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 97px 30px 94px;
}
.footer-logo { width: 92px; }
.footer address { font-style: normal; line-height: 25px; }
.reservation { line-height: 26px; }
.footer a:hover { color: var(--white); }
.instagram {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  transition: transform 0.3s;
}
.footer .instagram:hover { color: var(--black); transform: scale(1.1); }
.phone { color: var(--white); font-weight: 600; }

/* ---------- Tablet & desktop ---------- */
@media (min-width: 768px) {
  :root { --h2: 40px; --body: 18px; }
  body { line-height: 1.6; }

  .hero {
    height: 100svh;
    align-items: flex-start;
    padding: 33px max(var(--gutter), calc((100% - 1320px) / 2)) 90px;
    text-align: left;
  }
  .logo img { width: 82px; }
  .hero-title { font-size: 48px; }

  .intro { padding: 102px 0 62px; }
  .intro-seal { top: 90px; }

  .grid { grid-template-columns: 1fr 1fr; gap: 27px 30px; }
  .grid img { aspect-ratio: 630 / 400; }

  .night {
    min-height: 100svh;
    display: flex;
    align-items: center;
    text-align: left;
  }

  .craft {
    grid-template-columns: 1fr 46.5%;
    column-gap: 5.6%;
    align-items: center;
    padding-block: 90px;
    text-align: left;
  }
  .craft-text { padding-bottom: 107px; }
  .craft-media { aspect-ratio: 586 / 692; }
  .craft-back  { width: 72.9%; aspect-ratio: 427 / 539; }
  .craft-front { width: 71%; aspect-ratio: 416 / 447; }

  .menu { padding: 78px 0 149px; }
  .menu-cards { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
  .menu-card { height: 450px; }
  .menu-card span { font-size: 30px; }

  .choice { padding: 130px 0 140px; }
  .choice-sketch { bottom: -210px; }
  .choice-inner {
    grid-template-columns: 48.6% 1fr;
    column-gap: 7.3%;
    align-items: center;
  }
  .choice-text { order: 0; max-width: 520px; text-align: left; }
  .choice-media { grid-template-columns: 1fr 1fr; gap: 15px; }
  .choice-media img { aspect-ratio: 306 / 600; }

  .strip { --white-part: 54%; }
  .carousel { --visible: 3; }

  .footer { font-size: 16px; }
  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 16px 30px;
    justify-items: start;
    padding: 74px 30px 98px;
    text-align: left;
  }
  .footer-logo { width: 86px; }
  .instagram, .reservation { justify-self: end; text-align: right; }
}

@media (min-width: 1025px) {
  :root { --gutter: 15px; }
  .carousel { --visible: 5; }
}

/* ---------- Entrance animations (keyframes match the original site) ---------- */
.js [data-anim]:not(.animated) { visibility: hidden; }

.animated {
  animation-duration: 1.25s;
  animation-delay: var(--delay, 0ms);
  animation-fill-mode: backwards;
}
.animated[data-anim="fadeInUp"]       { animation-name: fadeInUp; }
.animated[data-anim="fadeInLeft"]     { animation-name: fadeInLeft; }
.animated[data-anim="slideInLeft"]    { animation-name: slideInLeft; }
.animated[data-anim="slideInRight"]   { animation-name: slideInRight; }
.animated[data-anim="riseIn"]         { animation-name: riseIn; }
.animated[data-anim="slideFromRight"] { animation-name: slideFromRight; }
.animated[data-anim="dropIn"]         { animation-name: dropIn; }

@keyframes fadeInUp      { from { opacity: 0; transform: translate3d(0, 100%, 0); } }
@keyframes fadeInLeft    { from { opacity: 0; transform: translate3d(-100%, 0, 0); } }
@keyframes slideInLeft   { from { transform: translate3d(-100%, 0, 0); } }
@keyframes slideInRight  { from { transform: translate3d(100%, 0, 0); } }
@keyframes riseIn        { from { opacity: 0; transform: translateY(60px); } }
@keyframes slideFromRight { from { opacity: 0; transform: translateX(60px); } }
@keyframes dropIn        { from { opacity: 0; transform: translateY(-60px); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-anim]:not(.animated) { visibility: visible; }
  .animated { animation: none; }
  .carousel-track, .menu-card, .instagram { transition: none; }
}
