/* ============================================================
   Xan Atlas — restaurant website
   ============================================================ */

:root {
  --cream:      #f6f1e7;
  --cream-soft: #efe7d8;
  --dark:       #221812;
  --dark-2:     #2c201a;
  --ink:        #2b211b;
  --muted:      #8a7b6c;
  --accent:     #b5502e;   /* terracotta   */
  --teal:       #21605a;   /* ceiling teal */
  --gold:       #c9a15c;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Manrope', -apple-system, sans-serif;

  --container: 1240px;
  --tr: cubic-bezier(.25, .8, .25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

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

.section { padding: 120px 0; }
.section--dark { background: var(--dark); color: var(--cream); }

/* ---------- typography ---------- */

.label {
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.label--light { color: var(--gold); }

.h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.15;
  margin-bottom: 32px;
}
.h2--light { color: var(--cream); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 17px 46px;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background .4s var(--tr), color .4s var(--tr), border-color .4s var(--tr);
}
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--dark); }
.btn--dark { color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--cream); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--tr), transform .9s var(--tr);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Header
   ============================================================ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 26px 0;
  transition: background .45s var(--tr), padding .45s var(--tr), box-shadow .45s var(--tr);
}
.header.is-scrolled {
  background: rgba(24, 16, 12, .96);
  padding: 14px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.header__nav { display: flex; gap: 34px; }
.header__link {
  position: relative;
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  padding: 6px 0;
  transition: color .3s;
}
.header__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--tr);
}
.header__link:hover { color: #fff; }
.header__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__book {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  padding: 12px 26px;
  transition: background .35s, color .35s, border-color .35s;
  white-space: nowrap;
}
.header__book:hover { background: #fff; color: var(--dark); border-color: #fff; }

.language {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .28);
}
.language__btn {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .62);
  transition: background .3s, color .3s;
}
.language__btn:hover { color: #fff; }
.language__btn.is-active {
  background: rgba(255, 255, 255, .96);
  color: var(--dark);
}

/* burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  z-index: 110;
}
.burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: #fff;
  transition: transform .35s var(--tr), opacity .35s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 10, 7, .55) 0%, rgba(15, 10, 7, .62) 55%, rgba(15, 10, 7, .78) 100%);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero__brand {
  font-family: var(--font-serif);
  font-size: clamp(46px, 7.5vw, 96px);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  transition-delay: .15s;
}
.hero__tag {
  font-size: 13px;
  letter-spacing: .68em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin: 22px 0 54px;
  padding-left: .68em;
  transition-delay: .3s;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.3;
  margin-bottom: 48px;
  transition-delay: .45s;
}
.hero__content .btn { transition-delay: .6s; }

.hero__scroll {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, .4);
  position: relative;
  overflow: hidden;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  to { top: 110%; }
}

/* ============================================================
   About
   ============================================================ */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.about__body p { margin-bottom: 20px; }
.about__body p:last-child { margin-bottom: 0; }
.about__lead {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
}
.about__note {
  padding: 15px 0 15px 20px;
  border-left: 1px solid var(--gold);
  color: var(--muted);
  font-style: italic;
}
.about__welcome {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
  padding-top: 8px;
}
.about__img {
  position: relative;
}
.about__img img {
  width: 100%;
  height: 640px;
  object-fit: cover;
}
.about__img::after {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold);
  z-index: -1;
}

/* ============================================================
   Interior
   ============================================================ */

.interior { text-align: center; }
.interior__lead {
  max-width: 640px;
  margin: 0 auto 70px;
  color: rgba(246, 241, 231, .72);
}
.interior__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.interior__item { overflow: hidden; }
.interior__item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 1.1s var(--tr);
}
.interior__item:hover img { transform: scale(1.05); }
.interior__item figcaption {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 20px;
}

/* ============================================================
   Menu
   ============================================================ */

.menu { text-align: center; }
.menu__inner { max-width: 720px; }
.menu__lead {
  max-width: 560px;
  margin: 0 auto 44px;
  color: var(--muted);
}

/* ============================================================
   Banner
   ============================================================ */

.banner {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px;
}
.banner__bg { position: absolute; inset: 0; }
.banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 9, .66);
}
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.banner__content { position: relative; z-index: 2; text-align: center; }
.banner__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.45;
  color: #fff;
  max-width: 900px;
}

/* ============================================================
   Gallery
   ============================================================ */

.gallery { text-align: center; }
.gallery .h2 { margin-bottom: 64px; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 22px;
}
.gallery__item { overflow: hidden; position: relative; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--tr), filter .6s;
}
.gallery__item:hover img { transform: scale(1.06); filter: brightness(.85); }

/* ============================================================
   Contacts
   ============================================================ */

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.contacts__list { margin: 10px 0 46px; }
.contacts__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(246, 241, 231, .14);
}
.contacts__list li:first-child { padding-top: 0; }
.contacts__key {
  font-size: 11.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.contacts__val {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--cream);
}
.contacts__val--link { transition: color .3s; }
.contacts__val--link:hover { color: var(--gold); }
.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.contacts__actions .btn {
  padding-right: 28px;
  padding-left: 28px;
}
.contacts__img img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: #16100c;
  color: rgba(246, 241, 231, .55);
  padding: 44px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__logo {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
}
.footer__copy { font-size: 13px; }

/* ============================================================
   Lightbox
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 8, 6, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 30px;
  font-size: 44px;
  font-weight: 200;
  color: rgba(255, 255, 255, .8);
  line-height: 1;
  transition: color .3s, transform .3s;
}
.lightbox__close:hover { color: #fff; transform: rotate(90deg); }
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 58px;
  font-weight: 200;
  color: rgba(255, 255, 255, .65);
  padding: 20px;
  line-height: 1;
  transition: color .3s;
}
.lightbox__arrow:hover { color: #fff; }
.lightbox__arrow--prev { left: 18px; }
.lightbox__arrow--next { right: 18px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .section { padding: 90px 0; }
  .container, .header__inner { padding: 0 28px; }

  .about__grid,
  .contacts__grid { gap: 54px; }

  .about__img img { height: 520px; }
  .interior__item img { height: 340px; }
  .gallery__grid { grid-auto-rows: 210px; gap: 16px; }
}

/* header → burger */
@media (max-width: 1020px) {
  .header { padding: 18px 0; }
  .header.is-scrolled { padding: 12px 0; }
  .header__book { display: none; }
  .header__inner { gap: 16px; }
  .burger { display: flex; }
  .header__nav {
    position: fixed;
    inset: 0;
    background: rgba(20, 13, 9, .98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
  }
  .header__nav.is-open { opacity: 1; visibility: visible; }
  .header__link { font-size: 17px; letter-spacing: .22em; }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }

  .hero { min-height: 560px; }
  .hero__tag { margin: 16px 0 40px; }

  .about__grid,
  .contacts__grid { grid-template-columns: 1fr; }

  .about__img { order: -1; }
  .about__img img { height: 380px; }
  .about__img::after { display: none; }

  .interior__grid { grid-template-columns: 1fr; gap: 34px; }
  .interior__item img { height: 300px; }
  .interior__lead { margin-bottom: 46px; }

  .banner { min-height: 380px; padding: 80px 24px; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
  }
  .gallery .h2 { margin-bottom: 40px; }

  .contacts__img { display: none; }
  .contacts__val { font-size: 21px; }
  .contacts__actions { flex-direction: column; align-items: stretch; }
  .contacts__actions .btn { text-align: center; }

  .footer__inner { flex-direction: column; text-align: center; gap: 10px; }

  .lightbox__arrow { display: none; }
  .lightbox__close { top: 14px; right: 18px; }
}

@media (max-width: 420px) {
  .container, .header__inner { padding: 0 20px; }
  .header__inner { gap: 8px; }
  .header__logo { font-size: 21px; }
  .header__actions { gap: 8px; }
  .language__btn { min-width: 26px; padding: 0 4px; }
  .btn { padding: 15px 34px; letter-spacing: .18em; }
  .hero__brand { letter-spacing: .14em; }
  .gallery__grid { grid-auto-rows: 150px; }
}
