/* ===== LAYOUT — nav, footer, floating buttons, preloader, scroll ===== */

/* Scroll progress */
#sp {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9998;
  background: linear-gradient(90deg, var(--gold3), var(--gold), var(--gold2));
  transform-origin: left; transform: scaleX(0); transition: transform .1s linear;
}

/* Preloader */
#pl {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: plDismiss .8s ease forwards 3.2s;
}
#plCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.plRings { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.plRing { position: absolute; border-radius: 50%; border: 2px solid transparent; }
.plR1 { width: 180px; height: 180px; border-top-color: var(--gold); border-right-color: var(--gold2); animation: spin1 1.8s linear infinite; }
.plR2 { width: 140px; height: 140px; border-bottom-color: var(--gold); border-left-color: var(--gold3); animation: spin2 2.4s linear infinite; }
.plR3 { width: 100px; height: 100px; border-top-color: var(--gold2); border-left-color: var(--gold); animation: spin1 1.2s linear infinite reverse; }
#plLogo {
  position: absolute; width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  background: #111; display: flex; align-items: center; justify-content: center;
  animation: plLogoIn .6s cubic-bezier(.34,1.56,.64,1) forwards .3s;
  opacity: 0; transform: scale(0);
}
#plLogo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
#plBar { width: 200px; height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; margin-top: 30px; overflow: hidden; position: relative; z-index: 1; }
#plBarFill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold3), var(--gold), var(--gold2)); border-radius: 3px; animation: plFill 2.8s ease forwards; }
#plLabel { font-family: var(--ff); font-size: 1.1rem; letter-spacing: 3px; color: var(--gold); margin-top: 14px; position: relative; z-index: 1; animation: plLabelPulse 1.5s ease infinite; }

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all var(--tr);
}
#nav.scrolled {
  background: rgba(5,5,5,.97);
  backdrop-filter: blur(24px);
  padding: 12px 40px;
  box-shadow: 0 2px 30px rgba(0,0,0,.6);
  border-bottom: 1px solid rgba(201,168,76,.18);
}
.navLogo { display: flex; align-items: center; gap: 12px; }
.navLogoImg {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: contain; object-position: center;
  border: 2px solid rgba(201,168,76,.5);
  background: #111; padding: 2px;
  transition: transform var(--tr);
}
.navLogo:hover .navLogoImg { transform: rotate(10deg) scale(1.05); }
.navLogoText { font-family: var(--ff); font-size: 1.25rem; font-weight: 700; color: var(--gold); letter-spacing: 1px; }
.navLinks { display: flex; align-items: center; gap: 32px; }
.navLinks a {
  font-size: .85rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.8); transition: color var(--tr); position: relative;
}
.navLinks a::after {
  content: ''; position: absolute; bottom: -4px; right: 0; left: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform var(--tr);
}
.navLinks a:hover { color: var(--gold); }
.navLinks a:hover::after { transform: scaleX(1); }
.navRight { display: flex; align-items: center; gap: 16px; }
#langBtn {
  font-size: .8rem; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); border: 1px solid var(--gold);
  padding: 6px 14px; border-radius: 20px;
  transition: all var(--tr);
}
#langBtn:hover { background: var(--gold); color: var(--black); }
.navCta {
  background: linear-gradient(135deg, var(--gold3), var(--gold));
  color: var(--black) !important; font-weight: 700; font-size: .8rem; letter-spacing: 1px;
  padding: 9px 22px; border-radius: 25px;
  transition: all var(--tr); box-shadow: 0 4px 20px rgba(201,168,76,.3);
}
.navCta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,.5); }
.navCta::after { display: none !important; }
#burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.bLine { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: all var(--tr); }
#mobileMenu {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(5,5,5,.99); backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
#mobileMenu.open { display: flex; }
#mobileMenu a { font-family: var(--ff); font-size: 2rem; color: var(--light); transition: color var(--tr); }
#mobileMenu a:hover { color: var(--gold); }
#mClose { position: absolute; top: 24px; left: 24px; font-size: 2rem; color: var(--gray); }

/* FOOTER */
#footer {
  background: var(--dark); border-top: 1px solid rgba(201,168,76,.15);
  padding: 60px 24px 30px;
}
.footerInner { max-width: 1200px; margin: 0 auto; }
.footerTop { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.fLogoWrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fLogoImg {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: contain; object-position: center;
  border: 2px solid rgba(201,168,76,.4);
  background: #111; padding: 3px;
}
.fLogoText { font-family: var(--ff); font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.footerDesc { color: var(--gray); font-size: .9rem; line-height: 1.7; margin-bottom: 24px; }
.footerSocial { display: flex; gap: 12px; }
.footerSocial a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: all var(--tr);
}
.footerSocial a:hover { background: var(--gold); color: var(--black); transform: translateY(-3px); }
.footerCol h4 { font-family: var(--ff); font-size: 1.1rem; color: var(--gold); margin-bottom: 20px; }
.footerCol ul { display: flex; flex-direction: column; gap: 10px; }
.footerCol ul a { font-size: .9rem; color: var(--gray); transition: color var(--tr); }
.footerCol ul a:hover { color: var(--gold); }
.footerBottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footerCopy { font-size: .8rem; color: var(--gray); }
.footerCopy span { color: var(--gold); }
.footerBadge { font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(201,168,76,.5); }

/* WA Float */
#wa {
  position: fixed; bottom: 30px; left: 30px; z-index: 888;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 30px rgba(37,211,102,.5);
  transition: all var(--tr);
  animation: waEntrance .6s cubic-bezier(.34,1.56,.64,1) forwards 4s;
  opacity: 0; transform: scale(0);
}
html[lang=en] #wa { left: auto; right: 30px; }
#wa:hover { transform: scale(1.12); box-shadow: 0 12px 48px rgba(37,211,102,.7); }
#wa svg { width: 32px; height: 32px; fill: #fff; }
.waPulse, .waPulse2 { position: absolute; border-radius: 50%; pointer-events: none; }
.waPulse  { inset: -10px; background: rgba(37,211,102,.25); animation: waPulse 2s ease infinite; }
.waPulse2 { inset: -20px; background: rgba(37,211,102,.12); animation: waPulse 2s ease infinite .5s; }
.waTooltip {
  position: absolute; left: calc(100% + 16px); top: 50%; transform: translateY(-50%);
  background: rgba(5,5,5,.92); backdrop-filter: blur(16px);
  border: 1px solid rgba(37,211,102,.3);
  padding: 10px 18px; border-radius: 10px;
  font-size: .85rem; white-space: nowrap; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity var(--tr); color: #25D366;
}
html[lang=en] .waTooltip { left: auto; right: calc(100% + 16px); }
#wa:hover .waTooltip { opacity: 1; }

/* Phone Float */
#phoneFloat {
  position: fixed; bottom: 104px; left: 30px; z-index: 888;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold3), var(--gold));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 30px rgba(201,168,76,.5);
  transition: all var(--tr); font-size: 1.6rem;
  animation: waEntrance .6s cubic-bezier(.34,1.56,.64,1) forwards 4.3s;
  opacity: 0; transform: scale(0); text-decoration: none;
}
html[lang=en] #phoneFloat { left: auto; right: 30px; }
#phoneFloat:hover { transform: scale(1.12); box-shadow: 0 12px 48px rgba(201,168,76,.7); }
.phoneTooltip {
  position: absolute; left: calc(100% + 16px); top: 50%; transform: translateY(-50%);
  background: rgba(5,5,5,.92); backdrop-filter: blur(16px);
  border: 1px solid rgba(201,168,76,.3);
  padding: 10px 18px; border-radius: 10px;
  font-size: .85rem; white-space: nowrap; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity var(--tr); color: var(--gold);
}
html[lang=en] .phoneTooltip { left: auto; right: calc(100% + 16px); }
#phoneFloat:hover .phoneTooltip { opacity: 1; }

/* Back to top */
#btt {
  position: fixed; bottom: 30px; right: 30px; z-index: 888;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.3);
  color: var(--gold); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: all var(--tr);
}
html[lang=en] #btt { right: auto; left: 30px; }
#btt.show { opacity: 1; pointer-events: all; transform: none; }
#btt:hover { background: var(--gold); color: var(--black); }

/* Responsive nav */
@media(max-width: 1024px) {
  .footerTop { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 768px) {
  #nav { padding: 16px 20px; }
  #nav.scrolled { padding: 10px 20px; }
  .navLinks { display: none; }
  #burger { display: flex; }
  /* All 3 left buttons: 56px each, 10px gap between them */
  #wa { bottom: 16px; left: 16px; width: 56px; height: 56px; }
  html[lang=en] #wa { left: auto; right: 16px; }
  #wa svg { width: 26px; height: 26px; }
  #phoneFloat { bottom: 82px; left: 16px; width: 56px; height: 56px; font-size: 1.3rem; }
  html[lang=en] #phoneFloat { left: auto; right: 16px; }
  #btt { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: .95rem; }
  html[lang=en] #btt { right: auto; left: 16px; }
  .waTooltip, .phoneTooltip { display: none; }
  .footerTop { grid-template-columns: 1fr; }
}
