/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(58, 44, 44, 0.96);
  border-bottom: 2px solid var(--c-yellow);
  color: #fff;
  transition: background-color 0.3s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(58, 44, 44, 0.88); backdrop-filter: blur(12px) saturate(140%); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  background: #fffdfb;
  flex: none;
  box-shadow: 0 2px 10px rgba(44, 36, 36, 0.28);
}
.brand__logo--footer { width: 120px; height: 120px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
}
.brand__tag {
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--c-muted-dark);
}

/* Nav */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-dark);
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--c-accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: #fff; }

.nav__mobile-actions { display: none; }

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-dark);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.header-wa svg { width: 18px; height: 18px; color: #3fbf7f; }
.header-wa:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.header-client svg { width: 16px; height: 16px; }

/* Toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--c-line-dark);
  border-radius: var(--radius);
  background: transparent;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ''; left: 0; margin-left: 0; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: rotate(-45deg); }

@media (min-width: 1081px) and (max-width: 1280px) {
  .site-header__inner { gap: 20px; }
  .nav__link { padding: 0 10px; font-size: 13.5px; }
  .nav__link::after { left: 10px; right: 10px; }
}

@media (max-width: 1080px) {
  /* backdrop-filter turns the header into the containing block of the fixed nav */
  .site-header { background: rgba(58, 44, 44, 0.98); backdrop-filter: none; }
  .site-header__inner { gap: 16px; }
  .nav-toggle { display: inline-block; }
  .header-actions { display: none; }

  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 3px) 0 0 0;
    display: flex;
    flex-direction: column;
    padding: 24px var(--gutter) 32px;
    background: var(--c-ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    height: 60px;
    padding: 0;
    font-family: var(--f-display);
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--c-line-dark);
  }
  .nav__link::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .nav__mobile-actions {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 32px;
  }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .brand__logo { width: 52px; height: 52px; }
  .brand__logo--footer { width: 96px; height: 96px; }
}

@media (max-width: 380px) {
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 21px; }
  .brand__tag { font-size: 8.5px; letter-spacing: 0.36em; }
}

.mvp-badge {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--c-yellow);
  color: var(--c-on-yellow);
  padding: 5px 8px;
  line-height: 1;
  border-radius: 999px;
}
.mvp-bar {
  background: var(--c-graphite);
  color: var(--c-text-dark);
  border-bottom: 1px solid var(--c-line-dark);
}
.mvp-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  min-height: 52px;
  padding-block: 8px;
}
.mvp-bar p { margin: 0; font-size: 14px; }
.mvp-bar .btn {
  background: var(--c-yellow);
  color: var(--c-on-yellow);
  border: 0;
}
.mvp-bar .btn:hover { background: var(--c-yellow-hover); color: var(--c-on-yellow); }

@media (max-width: 1080px) {
  .mvp-badge { display: none; }
}

