/* ============================================================
   LINDO HEADER — Frontend CSS v2.1
   Không phụ thuộc Bulma hay bất kỳ framework nào
   ============================================================ */

/* BASE */
.lindo-header {
  width: 100%;
  position: relative;
  z-index: 1000;
  transition: background .3s, box-shadow .3s;
}
.lindo-header--shadow { box-shadow: 0 2px 10px rgba(0,0,0,.10); }
.lindo-header--sticky { position: sticky; top: 0; }
.lindo-header--scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.lindo-header--hide { transform: translateY(-100%); }

/* INNER */
.lindo-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* LOGO */
.lindo-header__logo { flex-shrink: 0; }
.lindo-header__logo-link { display: inline-block; }
.lindo-header__logo-img { max-height: 50px; width: auto; display: block; transition: opacity .2s; }
.lindo-header__logo-text { font-weight: 700; font-size: 20px; text-decoration: none; color: inherit; }

/* NAV DESKTOP */
.lindo-header__nav { flex: 1; }
.lindo-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}
.lindo-nav-menu > li { position: relative; }
.lindo-nav-menu > li > a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background .15s;
  white-space: nowrap;
}
.lindo-nav-menu > li > a:hover,
.lindo-nav-menu > li.current-menu-item > a,
.lindo-nav-menu > li.current-menu-ancestor > a {
  background: rgba(0,0,0,.07);
}

/* DROPDOWN */
.lindo-nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 6px 0;
  list-style: none;
  z-index: 100;
}
.lindo-nav-menu > li:hover > .sub-menu { display: block; }
.lindo-nav-menu .sub-menu li a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #222;
  font-size: 13px;
  transition: background .15s;
}
.lindo-nav-menu .sub-menu li a:hover { background: #f3f4f6; }

/* RIGHT SIDE */
.lindo-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* HOTLINE */
.lindo-header__hotline {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
	border: 1.5px solid rgba(255, 255, 255, .3);
    border-radius: 6px;
    padding: 8px 14px;
    transition: all .2s;
	position: relative;
}
@keyframes phone-pulse{
  0%,100%{opacity:0;transform:scale(1)}
  30%{opacity:.5;transform:scale(1.04)}
  60%{opacity:0;transform:scale(1.08)}
}
.lindo-header__hotline:before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 9px;
    border: 2px solid #22c55e;
    opacity: 0;
    animation: phone-pulse 3s ease 1.5s infinite;
}
.lindo-header__hotline-label { font-size: 12px; opacity: .7; }
@keyframes ring{0%,100%{transform:rotate(0)}8%{transform:rotate(-12deg)}16%{transform:rotate(12deg)}24%{transform:rotate(-6deg)}32%{transform:rotate(0)}}
.lindo-header__hotline-label .emoji{filter: brightness(0) invert(1) !important;animation:ring 2.5s ease infinite}
.lindo-header__hotline-num {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
}
.lindo-header__hotline-num:hover { text-decoration: underline; }
.lindo-header__hotline-num--2 { font-size: 13px; opacity: .8; }

/* CTA BUTTON */
.lindo-header__cta-btn {
  display: inline-flex;
	position: relative;
  align-items: center;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
	overflow: hidden;
}
.lindo-header__cta-btn:after{content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .15);
    transform: translateX(-100%);
    transition: transform .3s ease;}
.lindo-header__cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.lindo-header__cta-btn:hover:after{transform: translateX(0);}
/* TOGGLE BUTTON (mobile) */
.lindo-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.lindo-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.lindo-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lindo-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lindo-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE DRAWER */
.lindo-header__drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: inherit;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-top: 1px solid rgba(0,0,0,.08);
  z-index: 999;
}
.lindo-header__drawer--open { display: block; }
.lindo-header__drawer-inner { padding: 12px 20px 20px; max-width: 1280px; margin: 0 auto; }

/* Drawer menu */
.lindo-drawer-menu { list-style: none; margin: 0; padding: 0; }
.lindo-drawer-menu li a {
  display: block;
  padding: 10px 6px;
  text-decoration: none;
  color: inherit;
  font-size: 15px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .15s;
}
.lindo-drawer-menu li a:hover { background: rgba(0,0,0,.04); border-radius: 6px; }
.lindo-drawer-menu .sub-menu { padding-left: 16px; }
.lindo-drawer-menu .sub-menu li a { font-size: 14px; opacity: .85; }
.lindo-header__drawer-hotline {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.lindo-header__drawer-hotline a {
  font-weight: 700;
  font-size: 16px;
  color: inherit;
  text-decoration: none;
}

/* Prevent body scroll khi menu mở */
body.lindo-menu-open { overflow: hidden; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .lindo-header__nav { display: none; }
  .lindo-header__toggle { display: flex; }
  .lindo-header__hotline-num--2 { display: none; }
}
@media (max-width: 600px) {
  .lindo-header__inner { padding: 10px 16px; gap: 10px; }
  .lindo-header__hotline { display: none; }
  .lindo-header__logo-img { max-height: 38px; }
}
