/* Nigehban brand/header refresh | 2026-11-03 - original logo sizing revision
   Single component stylesheet loaded after legacy styles to avoid editing
   unrelated page designs. The --clean classes intentionally own this header. */
.topbar--clean {
  background: var(--brand-navy);
  color: #eefaff;
  font-size: .79rem;
}
.topbar--clean .topbar__inner {
  width: min(calc(100% - 48px), var(--container));
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 18px;
}
.topbar--clean .topbar-kicker {
  color: #fff;
  font-weight: 700;
  letter-spacing: .015em;
}
.topbar--clean .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar--clean .topbar__right a { color: inherit; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar--clean .topbar__right a:hover { color: #fff; text-decoration: underline; }
.topbar--clean .topbar-whatsapp { border-left: 1px solid rgba(255,255,255,.25); padding-left: 20px; }
.topbar--clean .topbar-whatsapp i { color: #7ff0be; }

.site-header--clean,
.site-header--clean.is-scrolled {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid #e1edf0;
  box-shadow: 0 2px 13px rgba(10,47,66,.045);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
}
.site-header--clean.is-scrolled { box-shadow: 0 8px 23px rgba(10,47,66,.075); }
.site-header--clean .header-shell { width: min(calc(100% - 40px), var(--container)); }
.site-header--clean .header__inner,
.site-header--clean.is-scrolled .header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 160px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
  position: relative;
}
.site-header--clean .brand,
.site-header--clean.is-scrolled .brand {
  display: flex;
  align-items: center;
  flex: 0 0 180px;
  width: 180px;
  min-width: 0;
  margin: 0;
}
.site-header--clean .brand img,
.site-header--clean.is-scrolled .brand img {
  display: block;
  width: 180px;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
}
.site-header--clean .main-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 1px;
  position: static;
}
.site-header--clean .main-nav > a,
.site-header--clean .nav-dropdown > button {
  width: auto;
  min-height: 44px;
  padding: 11px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  color: #25495b;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 750;
}
.site-header--clean .main-nav > a:hover,
.site-header--clean .main-nav > a.active,
.site-header--clean .nav-dropdown > button:hover,
.site-header--clean .nav-dropdown > button[aria-expanded="true"],
.site-header--clean .nav-dropdown.is-active > button {
  color: var(--secondary);
  background: #eff8fb;
}
.site-header--clean .main-nav > a:after,
.site-header--clean .nav-dropdown > button:after { display: none; }
.site-header--clean .nav-dropdown { position: relative; }
.site-header--clean .nav-dropdown > button i { font-size: .72rem; }
.site-header--clean .nav-dropdown.open > button i { transform: rotate(180deg); }
.site-header--clean .dropdown-menu {
  top: calc(100% + 7px);
  left: 0;
  right: auto;
  width: max-content;
  min-width: 235px;
  max-width: min(330px, calc(100vw - 24px));
  max-height: min(70vh, 600px);
  overflow-y: auto;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid #dce9ee;
  background: #fff;
  box-shadow: 0 20px 45px rgba(9,40,58,.13);
}
.site-header--clean .dropdown-menu::before { display: none; }
.site-header--clean .nav-dropdown.open > .dropdown-menu,
.site-header--clean .nav-dropdown:hover > .dropdown-menu,
.site-header--clean .nav-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.site-header--clean .dropdown-menu a { font-size: .86rem; padding: 9px 11px; border-radius: 7px; }
.site-header--clean .nav-dropdown--resources .dropdown-menu { left: auto; right: 0; min-width: 280px; }
.site-header--clean .nav-brochures { border-top: 1px solid #e4eff3; margin-top: 5px; padding-top: 5px; }
.site-header--clean .nav-brochures summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 7px;
  cursor: pointer;
  color: #25495b;
  font-size: .84rem;
  font-weight: 700;
  list-style: none;
}
.site-header--clean .nav-brochures summary::-webkit-details-marker { display: none; }
.site-header--clean .nav-brochures summary i:last-child { margin-left: auto; }
.site-header--clean .nav-brochures[open] summary i:last-child { transform: rotate(180deg); }
.site-header--clean .nav-brochures summary:hover { background: #eff8fb; }
.site-header--clean .nav-brochures__links { padding-left: 10px; }
.site-header--clean .nav-brochures__links a { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.site-header--clean .nav-brochures__links i { color: #087ca3; }
.site-header--clean .header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto; }
.site-header--clean .icon-btn,
.site-header--clean .request-btn,
.site-header--clean .mobile-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #dbe9ed;
  border-radius: 10px;
  color: #25536b;
  background: #f9fcfd;
  box-shadow: none;
}
.site-header--clean .request-btn { position: relative; gap: 0; }
.site-header--clean .request-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 20px;
  padding: 0 5px;
  font-size: .7rem;
  background: var(--primary-contrast);
  color: #fff;
}
.site-header--clean .request-btn .request-count {
  position: absolute;
  top: -7px;
  right: -7px;
  border: 2px solid #fff;
  min-width: 24px;
  height: 24px;
}
.site-header--clean .header-prescription-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  height: 44px;
  width: auto;
  padding: 0 16px;
  border-radius: var(--button-radius);
  background: var(--secondary);
  color: #fff;
  font-size: .8rem;
  font-weight: 750;
  box-shadow: none;
}
.site-header--clean .header-prescription-btn i { display: inline; width: auto; height: auto; background: none; }
.site-header--clean .header-prescription-btn:hover { background: #075a82; transform: none; }
.site-header--clean .mobile-toggle { display: none; margin: 0; order: initial; }
.site-header--clean .mobile-toggle__close { display: none; }
.site-header--clean .mobile-nav-actions { display: none; }
.site-header--clean :is(a,button,summary):focus-visible,
.topbar--clean a:focus-visible { outline: 3px solid #0d92cc; outline-offset: 3px; }

@media (max-width: 1360px) {
  .site-header--clean .header__inner,
  .site-header--clean.is-scrolled .header__inner { gap: 12px; height: 152px; }
  .site-header--clean .brand,
  .site-header--clean.is-scrolled .brand { flex-basis: 170px; width: 170px; }
  .site-header--clean .brand img,
  .site-header--clean.is-scrolled .brand img { width: 170px; max-height: 142px; }
  .site-header--clean .main-nav > a,
  .site-header--clean .nav-dropdown > button { padding-inline: 8px; font-size: .82rem; }
}

@media (max-width: 1240px) {
  .site-header--clean .header-shell { width: min(calc(100% - 28px), var(--container)); }
  .site-header--clean .header__inner,
  .site-header--clean.is-scrolled .header__inner { height: 136px; gap: 12px; }
  .site-header--clean .brand,
  .site-header--clean.is-scrolled .brand { width: 150px; flex-basis: 150px; }
  .site-header--clean .brand img,
  .site-header--clean.is-scrolled .brand img { width: 150px; max-height: 126px; }
  .site-header--clean .header-actions { margin-left: auto; }
  .site-header--clean .request-btn,
  .site-header--clean .header-prescription-btn { display: none; }
  .site-header--clean .mobile-toggle { display: inline-flex; flex: 0 0 44px; order: initial; }
  .site-header--clean .mobile-toggle[aria-expanded="true"] .mobile-toggle__open { display: none; }
  .site-header--clean .mobile-toggle[aria-expanded="true"] .mobile-toggle__close { display: inline; font-size: 1.05rem; }
  .site-header--clean .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(75vh, 650px);
    max-height: min(75dvh, 650px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1px;
    background: #fff;
    border: 1px solid #dce9ee;
    border-radius: 0 0 15px 15px;
    padding: 12px;
    box-shadow: 0 24px 42px rgba(9,40,58,.13);
    overscroll-behavior: contain;
  }
  .site-header--clean .main-nav.open { display: flex; }
  .site-header--clean .main-nav > a,
  .site-header--clean .nav-dropdown > button { display: flex; width: 100%; justify-content: space-between; font-size: .91rem; min-height: 46px; padding: 11px 13px; }
  .site-header--clean .nav-dropdown { width: 100%; }
  .site-header--clean .nav-dropdown > .dropdown-menu,
  .site-header--clean .nav-dropdown--resources > .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 2px 0 7px;
    background: #f2f8fa;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
    padding: 5px;
  }
  .site-header--clean .nav-dropdown.open > .dropdown-menu,
  .site-header--clean .nav-dropdown--resources.open > .dropdown-menu { display: block; }
  .site-header--clean .nav-dropdown:not(.open) > .dropdown-menu { display: none; }
  .site-header--clean .mobile-nav-actions { display: grid; gap: 8px; padding: 10px 0 2px; }
  .site-header--clean .mobile-nav-actions .btn,
  .site-header--clean .mobile-request-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 9px;
    text-align: center;
    font-size: .88rem;
    font-weight: 750;
  }
  .site-header--clean .mobile-request-btn { border: 1px solid #cfe3e9; background: #eff8fb; color: #174e67; }
}
@media (max-width: 640px) {
  .topbar--clean .topbar__inner { width: min(calc(100% - 28px), var(--container)); min-height: 33px; gap: 8px; }
  .topbar--clean .topbar__right { gap: 12px; }
  .topbar--clean .topbar__phone-link span { display: none; }
  .topbar--clean .topbar-whatsapp { padding-left: 12px; }
  .site-header--clean .header__inner,
  .site-header--clean.is-scrolled .header__inner { height: 118px; gap: 9px; }
  .site-header--clean .brand,
  .site-header--clean.is-scrolled .brand { flex: 0 0 125px; width: 125px; }
  .site-header--clean .brand img,
  .site-header--clean.is-scrolled .brand img { width: 125px; max-height: 105px; height: auto; }
  .site-header--clean .header-actions { gap: 0; margin-left: auto; }
  .site-header--clean .icon-btn,
  .site-header--clean .mobile-toggle { width: 44px; min-width: 44px; height: 44px; min-height: 44px; border-radius: 10px; }
  .site-header--clean .main-nav { max-height: calc(100dvh - 118px - env(safe-area-inset-bottom)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .topbar--clean .topbar-whatsapp { padding-left: 9px; }
  .topbar--clean .topbar-kicker { font-size: .69rem; }
  .topbar--clean .topbar__right { gap: 8px; }
  .site-header--clean .header-shell { width: calc(100% - 20px); }
  .site-header--clean .header__inner,
  .site-header--clean.is-scrolled .header__inner { gap: 6px; height: 110px; }
  .site-header--clean .brand,
  .site-header--clean.is-scrolled .brand { flex-basis: 115px; width: 115px; }
  .site-header--clean .brand img,
  .site-header--clean.is-scrolled .brand img { width: 115px; max-height: 98px; }
}
