/* ===================================================================
   Sarajevo Resort — Shared chrome styles (header + footer + floats)
   Loaded on every page AFTER the page's own <style>, so these rules
   are the single source of truth for the navbar, mobile menu, footer
   and WhatsApp button. Edit here once → every page updates.
   The markup itself lives in assets/layout.js.
=================================================================== */

/* ---------- NAVBAR ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(15, 35, 71, 0.97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
  transition: background 0.4s ease, padding 0.3s ease, box-shadow 0.4s ease;
}
.nav-logo img { height: 44px; filter: brightness(0) invert(1); transition: height 0.3s; }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 15px;
  font-weight: 500; position: relative; transition: color 0.3s; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; right: 0; width: 0; height: 1.5px;
  background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-lang { display: flex; gap: 6px; align-items: center; }
.lang-btn {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.75); padding: 5px 12px; border-radius: 20px;
  font-size: 12px; cursor: pointer; font-family: 'Tajawal', sans-serif; transition: all 0.3s;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--gold); border-color: var(--gold); color: var(--navy-deep); font-weight: 700;
}
.nav-book-btn {
  background: var(--gold); color: var(--navy-deep); border: none; padding: 10px 22px;
  border-radius: 4px; font-size: 14px; font-weight: 700; font-family: 'Tajawal', sans-serif;
  cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s;
}
.nav-book-btn:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,166,35,0.4); }

/* Homepage: transparent navbar over the hero, solid once scrolled */
body.home nav { background: transparent; box-shadow: none; padding: 20px 48px; }
body.home nav.scrolled {
  background: rgba(15, 35, 71, 0.97); box-shadow: 0 2px 24px rgba(0, 0, 0, 0.15); padding: 14px 48px;
}

/* ---------- HAMBURGER ---------- */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--navy-deep); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-menu a { color: #fff; text-decoration: none; font-size: 22px; font-weight: 500; transition: color 0.3s; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mob-book { background: var(--gold); color: var(--navy-deep); padding: 13px 38px; border-radius: 4px; font-weight: 700; }
.mob-lang { display: flex; gap: 8px; margin-top: 6px; }

/* ---------- FOOTER ---------- */
footer { background: var(--navy-deep); padding: 60px 80px 28px; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px;
  margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-brand img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, 0.45); line-height: 1.8; margin-bottom: 18px; }
.fsoc { display: flex; gap: 10px; }
.soc-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s; }
.soc-btn:hover { background: var(--gold); }
.soc-btn svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 1.5; }
.fcol h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.fcol ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fcol ul a { color: rgba(255, 255, 255, 0.45); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.fcol ul a:hover { color: var(--gold); }
.fci { display: flex; align-items: flex-start; gap: 9px; color: rgba(255, 255, 255, 0.45); font-size: 14px; margin-bottom: 10px; line-height: 1.5; }
.fci svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: rgba(255, 255, 255, 0.28); font-size: 12px; }

/* Payment logos + company legal data + legal links */
.footer-payrow { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 22px 0; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.footer-company { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.5); line-height: 1.6; }
.footer-company strong { color: #fff; font-size: 14px; font-weight: 700; }
.footer-company a { color: var(--gold); text-decoration: none; }
.footer-company a:hover { text-decoration: underline; }
.footer-pay { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pay-caption { font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chip { background: #fff; border-radius: 6px; height: 34px; padding: 5px 9px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); }
.pay-chip img { height: 100%; width: auto; max-height: 24px; object-fit: contain; display: block; }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-legal-links a:hover { color: var(--gold); }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; bottom: 28px; left: 28px; width: 54px; height: 54px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; z-index: 50; box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  transition: all 0.3s; animation: sr-wap 2s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes sr-wap { 0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 28px rgba(37,211,102,0.65); } }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  nav, body.home nav { padding: 15px 28px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
  footer { padding: 48px 40px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  nav, body.home nav, body.home nav.scrolled { padding: 13px 18px; }
  .nav-links, .nav-lang, .nav-book-btn { display: none; }
  .hamburger { display: flex; }
  footer { padding: 44px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-payrow { flex-direction: column; align-items: flex-start; gap: 18px; }
  .wa-float { bottom: 18px; left: 18px; width: 48px; height: 48px; }
  .wa-float svg { width: 22px; height: 22px; }
}
