/* header.css — shared site header: top bar + main nav + mobile hamburger
   Owns: .yb-topbar, .yb-nav, .yb-hamburger, .yb-mobile-menu
   Does NOT own: page-specific hero padding or content layout */

/* ─── TOP BAR (contact info) ─────────────────────────────── */
.yb-topbar {
  background: #050505;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.4rem 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  z-index: 201;
  position: relative;
}

.yb-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.yb-topbar-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.yb-topbar-left a,
.yb-topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.yb-topbar-left a:hover {
  color: #C5A04E;
}

.yb-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.yb-topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.2s;
}

.yb-topbar-social:hover {
  background: rgba(197,160,78,0.15);
  color: #C5A04E;
}

.yb-topbar-social svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Divider dots between top bar items */
.yb-topbar-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ─── MAIN NAV ───────────────────────────────────────────── */
.yb-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}

.yb-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.yb-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.yb-nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Desktop nav links */
.yb-nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.yb-nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.yb-nav-links a:hover,
.yb-nav-links a.active {
  color: #C5A04E;
  background: rgba(197,160,78,0.08);
}

.yb-nav-cta {
  background: #C5A04E !important;
  color: #0A0A0A !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(197,160,78,0.2);
  margin-left: 0.3rem;
}

.yb-nav-cta:hover {
  background: #B8962D !important;
  color: #0A0A0A !important;
  transform: translateY(-1px);
}

/* ─── HAMBURGER BUTTON ───────────────────────────────────── */
.yb-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 210;
  position: relative;
}

.yb-hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 5px 0;
}

.yb-hamburger.open .yb-hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.yb-hamburger.open .yb-hamburger-bar:nth-child(2) {
  opacity: 0;
}

.yb-hamburger.open .yb-hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── MOBILE MENU ────────────────────────────────────────── */
.yb-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 198;
  opacity: 0;
  transition: opacity 0.3s;
}

.yb-mobile-overlay.open {
  display: block;
}

.yb-mobile-overlay.visible {
  opacity: 1;
}

.yb-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #0F0F0F;
  z-index: 199;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.yb-mobile-menu.open {
  transform: translateX(0);
}

.yb-mobile-menu-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yb-mobile-menu-header img {
  height: 30px;
  width: auto;
}

.yb-mobile-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.yb-mobile-nav {
  padding: 1rem 0;
  flex: 1;
}

.yb-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.yb-mobile-nav a:hover,
.yb-mobile-nav a.active {
  color: #C5A04E;
  background: rgba(197,160,78,0.06);
  border-left-color: #C5A04E;
}

.yb-mobile-nav-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0.5rem 1.5rem;
}

.yb-mobile-contact {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.yb-mobile-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

.yb-mobile-contact a:hover {
  color: #C5A04E;
}

.yb-mobile-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff !important;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.3rem;
  transition: opacity 0.2s;
}

.yb-mobile-whatsapp:hover {
  opacity: 0.9;
  color: #fff !important;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .yb-topbar-inner {
    justify-content: center;
    gap: 0.8rem;
  }

  .yb-topbar-right {
    display: none;
  }

  .yb-topbar {
    padding: 0.35rem 1rem;
    font-size: 0.72rem;
  }

  .yb-topbar-left {
    gap: 0.7rem;
  }

  /* Hide the location on small screens */
  .yb-topbar-location {
    display: none;
  }
}

@media (max-width: 768px) {
  .yb-nav {
    padding: 0 1.2rem;
    height: 58px;
  }

  .yb-nav-links {
    display: none;
  }

  .yb-hamburger {
    display: block;
  }

  .yb-topbar-dot {
    display: none;
  }

  .yb-topbar-left {
    gap: 0.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .yb-topbar {
    padding: 0.3rem 0.8rem;
    font-size: 0.68rem;
  }

  .yb-topbar-left {
    gap: 0.4rem;
  }

  /* On very small screens, hide email in top bar */
  .yb-topbar-email {
    display: none;
  }
}
