/* ============================================
   GO LYVK — Main Stylesheet
   ============================================ */

/* Fonts (Alegreya + Playfair Display/Cormorant Garamond/Barlow) are
   self-hosted via css/fonts.css (P6/§6.5) — loaded as a <link> in each page
   BEFORE this stylesheet, so no @import here (an @import is itself a
   render-blocking request discovered late, worse than a <link>). */

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f4f0;
  --gray-light: #e8e6e0;
  --gray-mid: #888;
  --accent-red: #cc2200;
  --accent-gold: #ecb858;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Barlow', sans-serif;
}

body.lang-cyrillic {
  --font-display: 'Alegreya', Georgia, serif;
  --font-body: 'Alegreya', Georgia, serif;
}

body.lang-cyrillic .logo-main,
body.lang-cyrillic .logo-sub {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ===== LANGUAGE SWITCHER DROPDOWN ===== */
.lang-switcher {
  position: relative;
}

.lang-switcher__current {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: inherit;
  padding: 0;
  white-space: nowrap;
}

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border: 1px solid #e0ddd6;
  min-width: 160px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.lang-switcher.open .lang-switcher__dropdown {
  display: block;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.lang-switcher__option:hover {
  background: #f5f4f0;
}

.lang-switcher__option.active {
  background: #f5f4f0;
}

.lang-switcher__code {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #0a0a0a;
  min-width: 24px;
}

.lang-switcher__name {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #666;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll on all devices */
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  min-width: 320px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 12px 24px;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
}

.btn--outline.btn--dark {
  color: var(--black);
  border-color: var(--black);
  background: transparent;
}

.btn--outline.btn--dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn--outline.btn--light {
  color: var(--white);
  border-color: var(--white);
  background: transparent;
}

.btn--outline.btn--light:hover {
  background: var(--white);
  color: var(--black);
}

/* ============================================
   SECTION LABEL
   ============================================ */

.section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--gray-mid);
  display: block;
  margin-bottom: 16px;
}

.section-label--dark {
  color: var(--gray-mid);
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: none;
  padding: 28px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-content: center;
  text-align: center;

  transition:
    background .3s ease,
    padding .3s ease;
}

.header__logo {
  text-align: center;
  user-select: none;
  transition:
    opacity .3s ease,
    transform .3s ease;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--black);
}

.logo-sub {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--black);
  margin-top: 2px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 50px;
}


.nav-link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--black);
  opacity: 0.6;
  transition: opacity 0.2s;
  user-select: none;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

.nav-link.active {
  color: var(--accent-gold);
  opacity: 1;
}

.nav-link--lang {
  color: var(--accent-gold);
  opacity: 1;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  touch-action: manipulation;
}

.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Burger open state */
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile/tablet/narrow-desktop nav open state */
.device-mobile .header__nav.nav--open,
.device-tablet .header__nav.nav--open,
.device-desktop .header__nav.nav--open {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px 24px 28px;
  border-bottom: 1px solid #e8e6e0;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  gap: 20px;
}

/* Buttons touch optimization */
.btn, button { touch-action: manipulation; }

/* ============================================
   HERO
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px clamp(32px, 8vw, 120px);
  min-height: 380px;
  gap: clamp(24px, 4vw, 60px);
}

.hero__tagline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__not {
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--accent-red);
  padding: 4px 12px;
  display: inline-block;
  align-self: flex-start;
  transform: rotate(-2deg);
  margin-bottom: 6px;
}

.hero__average {
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--black);
  display: block;
  padding-left: 4px;
}

.hero__cafe {
  font-family: var(--font-ui);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--black);
  display: block;
  padding-left: 4px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 20px;
}

.hero__desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--black);
  opacity: 0.7;
  max-width: 360px;
}

/* ============================================
   EXPERIENCE
   ============================================ */

.experience {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 600px;
  background: var(--black);
}

.experience__image {
  height: 600px;
  overflow: hidden;
}

.experience__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 60px 80px;
  color: var(--white);
}

.experience__title {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}

.experience__desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
  margin-bottom: 36px;
}

/* ============================================
   PROMO
   ============================================ */

.promo {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 520px;
}

.promo__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px 120px;
  background: var(--white);
  position: relative;
}

.promo__content::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 1px;
  background: var(--gray-mid);
}

.promo__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 20px;
}

.promo__days {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 6px;
}

.promo__desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 36px;
}

.promo__image {
  height: 520px;
  overflow: hidden;
}

/* ============================================
   MORNINGS
   ============================================ */

.mornings {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 620px;
  background: var(--black);
}

.mornings__image {
  height: 620px;
  overflow: hidden;
}

.mornings__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  color: var(--white);
  position: relative;
}

.mornings__content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 1px;
  background: var(--gray-mid);
}

.mornings__title {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
}

.mornings__desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  max-width: 340px;
  margin-bottom: 36px;
}

.mornings__btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ============================================
   BRAND HERO
   ============================================ */

.brand-hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.brand-hero__text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.brand-hero__name {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
}

.brand-hero__sub {
  font-family: var(--font-ui);
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--white);
  margin-top: 12px;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
  padding: 80px 60px;
  background: var(--white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 8px;
}

.gallery__item {
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery__item img {
  transition: transform 0.5s ease;
  object-position: center;
}

.gallery__item:nth-child(2) img {
  object-position: 60% center;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__follow {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 60px 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: clamp(24px, 4vw, 60px);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 4px;
}

.footer__tagline {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}

.social-icon:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.footer__col-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__list li {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.footer__text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}
.footer__text:last-child { margin-bottom: 0; }

.footer__phone {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  padding-top: 28px;
  text-align: center;
}

.footer__bottom p {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ── Desktop browser resized/zoomed narrow: same layout switch as tablet/mobile,
   just gated by width instead of being unconditional (a real desktop can be
   resized to any width, unlike touch devices which are narrow by nature) ── */
@media (max-width: 1024px) {
  .device-desktop .header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    min-height: 70px;
  }
  .device-desktop .header__nav   { display: none; }
  .device-desktop .header__logo  { display: block; text-align: left; }
  .device-desktop .logo-main     { font-size: 34px; line-height: 1; }
  .device-desktop .logo-sub      { font-size: 10px; letter-spacing: .22em; }
  .device-desktop .burger {
    display: flex;
    position: static;
    width: 48px; height: 48px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }
  .device-desktop .burger span { width: 30px; height: 2px; }

  .device-desktop .hero { grid-template-columns: 1fr; padding: 60px 48px; gap: 40px; }

  .device-desktop .experience,
  .device-desktop .promo,
  .device-desktop .mornings { grid-template-columns: 1fr; }

  .device-desktop .experience__image,
  .device-desktop .promo__image,
  .device-desktop .mornings__image { height: 300px; }

  .device-desktop .experience__content,
  .device-desktop .mornings__content { padding: 48px 24px; }

  .device-desktop .promo__content { padding: 48px 24px; }

  .device-desktop .experience__content > .btn,
  .device-desktop .promo__content > .btn {
    align-self: flex-start;
    padding: 10px 22px;
    font-size: 10.5px;
  }

  .device-desktop .promo__content::before,
  .device-desktop .mornings__content::before { display: none; }

  .device-desktop .experience__title,
  .device-desktop .mornings__title { font-size: 44px; }

  .device-desktop .brand-hero { height: 340px; }

  .device-desktop .gallery       { padding: 48px 24px; }
  .device-desktop .gallery__grid { grid-template-columns: 1fr 1fr; }
  .device-desktop .gallery__item--tall { grid-row: span 1; aspect-ratio: 1; }

  .device-desktop .footer         { padding: 48px 24px 32px; }
  .device-desktop .footer__inner  { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Tablet + Mobile shared layout ── */
.device-tablet .header,
.device-mobile .header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  min-height: 70px;
}

.device-tablet .header__nav,
.device-mobile .header__nav { display: none; }

.device-tablet .header__logo,
.device-mobile .header__logo { display: block; text-align: left; }

.device-tablet .logo-main,
.device-mobile .logo-main { font-size: 34px; line-height: 1; }

.device-tablet .logo-sub,
.device-mobile .logo-sub { font-size: 10px; letter-spacing: .22em; }

.device-tablet .burger,
.device-mobile .burger {
  display: flex;
  position: static;
  width: 48px; height: 48px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.device-tablet .burger span,
.device-mobile .burger span { width: 30px; height: 2px; }

/* Language switcher pulled out of the burger menu → next to the burger */
.lang-switcher--header {
  margin-left: auto;
  margin-right: 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.lang-switcher--header .lang-switcher__current {
  color: #0a0a0a;
  font-size: 14px;
}

.device-tablet .experience,
.device-mobile .experience,
.device-tablet .promo,
.device-mobile .promo,
.device-tablet .mornings,
.device-mobile .mornings { grid-template-columns: 1fr; }

.device-tablet .experience__image,
.device-mobile .experience__image,
.device-tablet .promo__image,
.device-mobile .promo__image,
.device-tablet .mornings__image,
.device-mobile .mornings__image { height: 300px; }

.device-tablet .experience__content,
.device-mobile .experience__content,
.device-tablet .mornings__content,
.device-mobile .mornings__content { padding: 48px 24px; }

.device-tablet .promo__content,
.device-mobile .promo__content { padding: 48px 24px; }

/* RESERVE NOW / COFFEE MENU — were stretching full-width as flex items;
   size them to content so they read as proper buttons, and make them smaller */
.device-tablet .experience__content > .btn,
.device-mobile .experience__content > .btn,
.device-tablet .promo__content > .btn,
.device-mobile .promo__content > .btn {
  align-self: flex-start;
  padding: 10px 22px;
  font-size: 10.5px;
}

.device-tablet .promo__content::before,
.device-mobile .promo__content::before,
.device-tablet .mornings__content::before,
.device-mobile .mornings__content::before { display: none; }

.device-tablet .brand-hero,
.device-mobile .brand-hero { height: 340px; }

.device-tablet .footer__inner,
.device-mobile .footer__inner { grid-template-columns: 1fr; gap: 32px; }

.device-tablet .footer,
.device-mobile .footer { padding: 48px 24px 32px; }

.device-tablet .gallery,
.device-mobile .gallery { padding: 48px 24px; }

.device-tablet .gallery__grid,
.device-mobile .gallery__grid { grid-template-columns: 1fr 1fr; }

.device-tablet .gallery__item--tall,
.device-mobile .gallery__item--tall { grid-row: span 1; aspect-ratio: 1; }

/* ── Mobile only (single column hero) ── */
.device-mobile .hero {
  grid-template-columns: 1fr;
  padding: 48px 24px;
  gap: 32px;
}

/* ── Tablet: wider hero, retain some desktop feel ── */
.device-tablet .hero {
  grid-template-columns: 1fr;
  padding: 60px 48px;
  gap: 40px;
}
.device-tablet .header { padding: 16px 32px; min-height: 80px; }

/* ============================================
   LARGE DESKTOPS (2K and up)
   Homepage typography/spacing scaled for readability on big screens.
   Scoped to home-only sections so shared pages (menu, checkout, …) are
   unaffected; the global body font is left alone on purpose.
   ============================================ */
@media (min-width: 1920px) {
  .hero            { padding: 110px clamp(120px, 9vw, 300px); min-height: 520px; }
  .hero__not,
  .hero__average   { font-size: 36px; }
  .hero__cafe      { font-size: 46px; }
  .hero__title     { font-size: 60px; margin-bottom: 28px; }
  .hero__desc      { font-size: 19px; max-width: 460px; }

  .experience,
  .experience__image { min-height: 780px; height: auto; }
  .experience__image  { height: 780px; }
  .experience__content { padding: 80px 96px 100px; }
  .experience__title  { font-size: 74px; }
  .experience__desc   { font-size: 19px; max-width: 400px; }

  .promo           { min-height: 680px; }
  .promo__content  { padding: 100px 100px 100px 140px; }
  .promo__title    { font-size: 62px; }
  .promo__days,
  .promo__desc     { font-size: 19px; }

  .mornings__content { padding: 100px 96px; }
  .mornings__title { font-size: 74px; }
  .mornings__desc  { font-size: 19px; max-width: 480px; }

  .section-label   { font-size: 13px; letter-spacing: 0.24em; }

  .footer__inner   { padding-left: clamp(60px, 6vw, 160px); padding-right: clamp(60px, 6vw, 160px); }
  .footer__list li,
  .footer__text    { font-size: 16px; }
  .footer__col-title { font-size: 12px; }
}

@media (min-width: 2560px) {
  .hero            { padding: 140px clamp(160px, 10vw, 420px); min-height: 640px; }
  .hero__title     { font-size: 72px; }
  .hero__desc      { font-size: 22px; max-width: 540px; }

  .experience,
  .experience__image { min-height: 940px; }
  .experience__image  { height: 940px; }
  .experience__title  { font-size: 88px; }
  .experience__desc,
  .promo__desc,
  .promo__days,
  .mornings__desc  { font-size: 22px; }
  .experience__desc { max-width: 460px; }

  .promo__title,
  .mornings__title { font-size: 88px; }
  .mornings__desc  { max-width: 560px; }

  .footer__list li,
  .footer__text    { font-size: 18px; }
}