@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --cream: #f7f3ee;
  --warm-white: #faf8f5;
  --sand: #e8ddd0;
  --champagne: #d4c4a6;
  --gold: #b8976a;
  --gold-light: #d4b896;
  --charcoal: #2c2825;
  --warm-gray: #6b6360;
  --soft-brown: #8a7e72;
  --blush: #e8d5c4;
}

/* ===== RESET / BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  font-weight: 300;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: rgba(247, 243, 238, 0.95);
  padding: 18px 60px;
  box-shadow: 0 1px 20px rgba(44, 40, 37, 0.06);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}

.logo span {
  color: var(--gold);
  text-shadow:
    0 0 8px rgba(184, 151, 106, 0.6),
    0 0 20px rgba(184, 151, 106, 0.3),
    0 0 40px rgba(184, 151, 106, 0.15);
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% {
    text-shadow:
      0 0 6px rgba(184, 151, 106, 0.5),
      0 0 16px rgba(184, 151, 106, 0.25),
      0 0 32px rgba(184, 151, 106, 0.1);
  }
  100% {
    text-shadow:
      0 0 12px rgba(184, 151, 106, 0.8),
      0 0 28px rgba(184, 151, 106, 0.4),
      0 0 50px rgba(184, 151, 106, 0.2);
  }
}

.nav-links {
  flex: 1;
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin-left: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--warm-gray);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--charcoal); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--charcoal);
  color: var(--cream) !important;
  padding: 10px 28px;
  border-radius: 2px;
  letter-spacing: 2px !important;
  font-size: 11px !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold) !important; transform: translateY(-1px); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
  background: #1e1b18;
  color: rgba(255,255,255,0.5);
  padding: 80px 60px 40px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand .logo {
  color: white;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 22px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 300;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  font-weight: 400;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 13px;
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 300;
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover { color: var(--gold-light); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
  transition: all 0.3s ease;
  text-decoration: none !important;
}
.footer-social a:hover {
  color: var(--gold-light, #d4b896);
  border-color: var(--gold-light, #d4b896);
  transform: translateY(-2px);
}
.footer-social a::after {
  display: none !important;
}
.footer-social svg {
  width: 16px;
  height: 16px;
}

/* ===== MOBILE HAMBURGER MENU ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44,40,37,0.75);
  z-index: 998;
  backdrop-filter: blur(4px);
}

.nav-overlay.active {
  display: block;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--sand);
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--warm-gray);
  transition: all 0.3s ease;
}
.lang-btn:hover {
  border-color: var(--gold);
  color: var(--charcoal);
}
.lang-btn .lang-arrow {
  width: 10px; height: 10px;
  stroke: currentColor; fill: none; stroke-width: 2.5;
  transition: transform 0.3s ease;
}
.lang-switcher.open .lang-btn .lang-arrow {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(44,40,37,0.13);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s ease;
  z-index: 1002;
  overflow: hidden;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 11px 16px !important;
  text-decoration: none !important;
  color: var(--warm-gray) !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(232,221,208,0.4);
}
.lang-dropdown a:last-child { border-bottom: none; }
.lang-dropdown a::after { display: none !important; }
.lang-dropdown a:hover {
  background: var(--warm-white);
  color: var(--charcoal) !important;
}
.lang-dropdown a.lang-active {
  color: var(--gold) !important;
  font-weight: 400;
}
.lang-flag {
  width: 20px; height: 14px;
  border-radius: 2px;
  display: inline-block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 2px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.flag-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23012169' d='M0 0v30h60V0z'/%3E%3Cpath stroke='%23FFF' stroke-width='6' d='m0 0 60 30m0-30L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='m0 0 60 30m0-30L0 30' clip-path='url(%23a)'/%3E%3Cpath stroke='%23FFF' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/g%3E%3C/svg%3E"); }
.flag-fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect fill='%23002395' width='1' height='2'/%3E%3Crect fill='%23FFF' x='1' width='1' height='2'/%3E%3Crect fill='%23ED2939' x='2' width='1' height='2'/%3E%3C/svg%3E"); }
.flag-ru { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Crect fill='%23FFF' width='9' height='2'/%3E%3Crect fill='%230039A6' y='2' width='9' height='2'/%3E%3Crect fill='%23D52B1E' y='4' width='9' height='2'/%3E%3C/svg%3E"); }

/* ===== RESPONSIVE - NAV/FOOTER/LANG ===== */
@media (max-width: 900px) {
  nav {
    padding: 20px 28px !important;
  }

  /* Mobile: logo & hamburger WHITE when nav is transparent (over dark hero) */
  nav:not(.scrolled) .logo {
    color: #fff !important;
  }
  nav:not(.scrolled) .logo span {
    color: var(--gold-light) !important;
  }
  nav:not(.scrolled) .nav-toggle span {
    background: #fff !important;
  }

  /* Mobile: logo & hamburger revert to DARK when nav is scrolled (cream bg) */
  nav.scrolled {
    padding: 16px 28px !important;
  }
  nav.scrolled .logo {
    color: var(--charcoal) !important;
  }
  nav.scrolled .logo span {
    color: var(--gold) !important;
  }
  nav.scrolled .nav-toggle span {
    background: var(--charcoal) !important;
  }

  .logo {
    font-size: 22px !important;
    letter-spacing: 4px !important;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    flex-direction: column;
    padding: 80px 32px 32px;
    padding-bottom: 40px;
    gap: 0;
    box-shadow: -6px 0 30px rgba(44,40,37,0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(232, 221, 208, 0.5);
    padding: 0;
    display: block !important;
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 24px;
  }

  .nav-links a {
    display: block;
    padding: 20px 0 !important;
    font-size: 14px !important;
    letter-spacing: 2.5px !important;
    width: 100%;
  }

  .nav-links a::after {
    display: none !important;
  }

  .nav-cta {
    padding: 16px 32px !important;
    text-align: center;
    background: var(--charcoal) !important;
    color: var(--cream) !important;
    border-radius: 2px;
    margin-top: 8px !important;
  }

  .lang-switcher {
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(232, 221, 208, 0.5);
  }
  .lang-btn { width: 100%; justify-content: center; }
  .lang-dropdown {
    position: static !important;
    box-shadow: none;
    border: 1px solid var(--sand);
    margin-top: 8px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease, max-height 0.3s ease;
  }
  .lang-switcher.open .lang-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 200px;
    overflow: visible;
  }
  .lang-dropdown a {
    padding: 11px 16px !important;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  nav {
    padding: 18px 20px !important;
  }

  .logo {
    font-size: 20px !important;
    letter-spacing: 4px !important;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  footer { padding: 60px 24px 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
