/* =================================================================== */
/* LAYOUT — Navbar, footer, floating elements, language dropdown.      */
/* The site chrome that wraps every page.                              */
/* =================================================================== */

/* =============== NAVBAR =============== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.navbar.scrolled {
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark { flex-shrink: 0; }
.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-text {
  display: block;
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3.5px;
  line-height: 1;
}
.logo-sub {
  display: block;
  color: var(--gold);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 2.5px;
  opacity: 0.85;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}

/* =============== LANGUAGE DROPDOWN =============== */
.lang-switcher {
  position: relative;
  margin-left: 16px;
  flex-shrink: 0;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  padding: 7px 12px 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  min-width: 96px;
  justify-content: space-between;
}
.lang-trigger:hover {
  border-color: var(--gold);
  color: var(--white);
}
.lang-switcher.open .lang-trigger {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,97,.08);
}
.lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,169,97,.12);
  border: 1px solid rgba(201,169,97,.3);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 5px;
  min-width: 24px;
  height: 18px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
}
.lang-option .lang-badge {
  background: rgba(201,169,97,.08);
  border-color: rgba(201,169,97,.2);
}
.lang-option.active .lang-badge {
  background: rgba(201,169,97,.2);
  border-color: var(--gold);
}
.lang-current {
  flex: 1;
  text-align: left;
}
.lang-chev {
  transition: transform .25s;
  opacity: 0.7;
}
.lang-switcher.open .lang-chev {
  transform: rotate(180deg);
  opacity: 1;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #1a1a1a;
  border: 1px solid rgba(201,169,97,.25);
  border-radius: 10px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(201,169,97,.05) inset;
  z-index: 1001;
  max-height: 70vh;
  overflow-y: auto;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* RTL: open dropdown to the right */
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.75);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-option:hover {
  background: rgba(201,169,97,.08);
  color: var(--white);
}
.lang-option.active {
  color: var(--gold);
  background: rgba(201,169,97,.06);
}
.lang-option .lang-name { flex: 1; }
.lang-option .lang-check {
  opacity: 0;
  color: var(--gold);
  transition: opacity .15s;
}
.lang-option.active .lang-check { opacity: 1; }

[dir="rtl"] .lang-option { text-align: right; }

/* =============== FOOTER =============== */
.footer {
  background: #080f1e;
  padding: 48px 0 32px;
  color: rgba(255,255,255,.5);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .logo-text { color: var(--white); font-size: 18px; font-weight: 600; letter-spacing: 3px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); font-style: italic; font-family: var(--serif); letter-spacing: .5px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 13px; }

/* =============== WHATSAPP — temporarily hidden site-wide =============== */
.wa-float,
.btn-whatsapp,
#contactWhatsAppItem,
#contactWhatsAppButton { display: none !important; }

/* =============== WHATSAPP FLOAT =============== */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform .2s, background .2s;
}
.wa-float:hover { transform: scale(1.1); background: #1dab55; }

/* =============== RESPONSIVE =============== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .lang-switcher { margin-left: 8px; }
}
@media (max-width: 640px) {
  .lang-dropdown { min-width: 200px; }
  .wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}
