/* =============================================
   STYL_MENU_GORNE.CSS — Top navigation module
   Modular stylesheet for the sticky header
   ============================================= */

/* ── STICKY HEADER ── */
.top-menu {
  position: sticky;
  top: 0;
  background: rgba(28, 25, 20, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 64px;
  z-index: 1000;
}

/* ── LOGO ── */
.logo {
  font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 22px;
  color: #f2ede6;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  position: relative;
  cursor: default;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #8c6a3f;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.logo:hover::after { transform: scaleX(1); }


/* ── HAMBURGER BUTTON (mobile only) ── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: #f2ede6;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}

/* Animate hamburger to X when menu is open */
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* ── NAVIGATION (mobile: hidden drawer) ── */
#main-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(28, 25, 20, 0.99);
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
  padding: 16px 0;
}

#main-nav.is-open { display: flex; }

.top-menu a {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(242, 237, 230, 0.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 14px 5%;
  position: relative;
  transition: color 0.3s ease;
}

.top-menu a::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 5%;
  width: 0;
  height: 1px;
  background: #8c6a3f;
  transition: width 0.3s ease;
}

.top-menu a:hover        { color: #8c6a3f; }
.top-menu a:hover::before{ width: 24px; }
.top-menu a:visited      { color: rgba(242, 237, 230, 0.5); }
.top-menu a:focus        { outline: 2px solid #8c6a3f; outline-offset: 3px; color: #8c6a3f; }

/* Active section highlight (set by JS) */
.top-menu a.active { color: #8c6a3f; }


/* ── TABLET & DESKTOP: inline nav, hide hamburger ── */
@media (min-width: 768px) {

  .top-menu { padding: 0 8%; }

  .hamburger { display: none; }

  #main-nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    align-items: center;
  }

  .top-menu a {
    padding: 8px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .top-menu a:first-child { border-left: 1px solid rgba(255, 255, 255, 0.06); }

  .top-menu a::before {
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
  }

  .top-menu a:hover::before { width: 60%; }
}

@media (min-width: 1024px) {
  .top-menu { padding: 0 10%; }
}