/* ============================================================
   CURIONI — HEADER  |  Redesign premium 2025
   ============================================================ */

/* ── TOP BAR ─────────────────────────────────────────────── */
.site-topbar {
  background: #111;
  padding: 9px 0;
  border-bottom: none;
}

.site-topbar__inner {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-topbar__msg {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.site-topbar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  flex-shrink: 0;
}

.site-topbar__link {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-topbar__link:hover {
  color: #fff;
}

.site-topbar__links {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ── HEADER PRINCIPAL ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  /* garante contexto de posicionamento para o mega-menu */
  background: rgba(250, 248, 244, 0.94);
  border-bottom: 1px solid rgba(18, 18, 18, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

.site-header__container {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 74px;
}

/* ── BRAND / LOGO ─────────────────────────────────────────── */
.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.site-header__brand:hover .site-header__logo-img {
  opacity: 0.75;
}

/* ── NAV PRINCIPAL ───────────────────────────────────────── */
.site-header__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.site-header__nav a {
  color: #2a2622;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  position: relative;
}

.site-header__nav a:hover {
  background: rgba(17, 17, 17, 0.06);
  color: #111;
}

.site-header__nav a[aria-current="page"] {
  background: #111;
  color: #fff;
}

/* Badge Pronta Entrega */
.site-header__nav a.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5a9c7a;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── AÇÕES DIREITA ───────────────────────────────────────── */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-header__mini-link {
  color: #5a5550;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.site-header__mini-link:hover {
  background: rgba(17, 17, 17, 0.06);
  color: #111;
}

.site-header__mini-link[aria-current="page"] {
  background: #111;
  color: #fff;
}

/* Divisor */
.site-header__sep {
  width: 1px;
  height: 20px;
  background: rgba(17,17,17,0.1);
  flex-shrink: 0;
}

/* Botão WhatsApp */
.site-header__wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: transparent;
  color: #2a2622;
  border: 1.5px solid rgba(17,17,17,0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.site-header__wa:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

.site-header__wa svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Botão orçamento */
.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(17,17,17,0.18);
  background: transparent;
  color: #111;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.site-header__cta:hover {
  background: #111;
  border-color: #111;
  color: #fff;
  transform: translateY(-1px);
}

/* ── NAV ITEM COM MEGA MENU ──────────────────────────────── */
.nav-item {
  position: static; /* mega usa posição relativa ao header */
}

/* Botão trigger */
.nav-item__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2a2622;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-item__btn:hover,
.nav-item__btn.is-open {
  background: rgba(17, 17, 17, 0.06);
  color: #111;
}

.nav-item__btn.is-current {
  background: #111;
  color: #fff;
}

.nav-item__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* ── MEGA MENU ───────────────────────────────────────────── */
.mega-menu {
  position: absolute;
  top: 100%; /* relativo ao .site-header (sticky) */
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid rgba(17,17,17,0.07);
  border-bottom: 1px solid rgba(17,17,17,0.07);
  box-shadow: 0 24px 48px rgba(0,0,0,0.10);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 150;
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu__inner {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 220px;
}

/* Coluna esquerda — grupos (Indoor / Outdoor) */
.mega-menu__groups {
  border-right: 1px solid rgba(17,17,17,0.07);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-menu__group-all {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-radius: 0;
  transition: background 0.15s;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(17,17,17,0.06);
  padding-bottom: 16px;
}

.mega-menu__group-all:hover {
  background: rgba(44,90,86,0.05);
}

.mega-menu__group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: none;
  font: 500 15px/1 var(--body);
  color: #5a5550;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}

.mega-menu__group-btn:hover,
.mega-menu__group-btn.is-active {
  background: rgba(17,17,17,0.04);
  color: #111;
  font-weight: 600;
}

.mega-menu__group-btn svg {
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity 0.15s;
}

.mega-menu__group-btn.is-active svg {
  opacity: 0.8;
}

/* Coluna direita — sublists */
.mega-menu__panel {
  padding: 20px 32px;
  position: relative;
}

.mega-menu__sublist {
  display: none;
  flex-direction: column;
  gap: 2px;
}

.mega-menu__sublist.is-active {
  display: flex;
}

.mega-menu__sublist-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9189;
  padding: 4px 10px 10px;
  display: block;
}

.mega-menu__sublink {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #1a1815;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.mega-menu__sublink:hover {
  background: rgba(17,17,17,0.05);
  color: #111;
  padding-left: 16px;
}

/* Mobile nav sublists */
.mobile-main-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 11px 12px;
  color: #1a1815;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.mobile-sub-head {
  display: block;
  padding: 10px 12px 4px 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9189;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 9px 12px 9px 28px;
  color: #5a5550;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s;
}

.mobile-sub-link:hover {
  background: rgba(17,17,17,0.05);
  color: #111;
}

/* ── TOGGLE MOBILE ───────────────────────────────────────── */
.site-header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 18px;
  color: #111;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.site-header__toggle:hover {
  background: rgba(17,17,17,0.07);
}

/* ── MOBILE PANEL ────────────────────────────────────────── */
.site-header__panel {
  position: absolute;
  right: 20px;
  top: calc(100% + 10px);
  width: min(340px, calc(100vw - 32px));
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 20px;
  background: rgba(253, 251, 248, 0.99);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  padding: 8px;
  display: none;
  backdrop-filter: blur(20px);
}

.site-header__panel.is-open {
  display: block;
}

.site-header__panel-section {
  border-bottom: 1px solid rgba(17, 17, 17, 0.07);
  padding: 6px 0 8px;
  margin-bottom: 6px;
}

.site-header__panel-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 2px;
}

.site-header__panel-label {
  display: block;
  padding: 6px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9a9189;
  font-weight: 600;
}

.site-header__panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 11px 12px;
  color: #1a1815;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.site-header__panel a:hover,
.site-header__panel a[aria-current="page"] {
  background: rgba(17, 17, 17, 0.05);
}

.site-header__panel a[aria-current="page"] {
  color: #111;
  font-weight: 600;
}

/* Botão WA dentro do painel mobile */
.panel-wa-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366 !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  margin: 6px 0 2px;
}

.panel-wa-btn:hover {
  background: #1fba5a !important;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-header__nav,
  .site-header__mini-link,
  .site-header__sep,
  .site-header__wa,
  .site-header__cta {
    display: none;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .site-topbar__links {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header__container {
    width: min(100% - 28px, 1280px);
  }

  .site-header__inner {
    min-height: 66px;
  }

  .site-topbar__msg span {
    display: none;
  }

  .site-topbar__msg {
    font-size: 11px;
  }
}

/* ── BUSCA INLINE (expande na actions bar) ───────────────── */
.hdr-search {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.hdr-search__input {
  width: 0;
  max-width: 0;
  padding: 0;
  border: none;
  border-bottom: 1.5px solid transparent;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  letter-spacing: -.01em;
  opacity: 0;
  transition: width .25s ease, max-width .25s ease, opacity .2s ease,
              border-color .2s ease, padding .25s ease;
  overflow: hidden;
  white-space: nowrap;
}
.hdr-search__input::placeholder { color: #aaa; }

.hdr-search.is-open .hdr-search__input {
  width: 190px;
  max-width: 190px;
  opacity: 1;
  padding: 3px 8px 3px 0;
  border-bottom-color: #111;
}

.hdr-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #111;
  border-radius: 50%;
  transition: background .15s;
}
.hdr-search__btn:hover { background: rgba(17,17,17,.07); }

@media (max-width: 900px) {
  .hdr-search.is-open .hdr-search__input { width: 140px; max-width: 140px; }
}
@media (max-width: 768px) {
  .hdr-search { display: none; } /* mobile usa menu drawer */
}
