.header-unified {
  background: transparent;
  position: absolute;
  top: 0;
  z-index: 100;
  left: 0;
  right: 0;
  border-bottom: 0;
  box-shadow: none;
}

.header-unified.is-scrolled {
  position: fixed;
  background: linear-gradient(90deg, #02233f 0%, #054a87 60%, #0c6fb0 135%);
  border-bottom: 2px solid rgba(244, 149, 33, 0.85);
  box-shadow: 0 10px 30px rgba(2, 35, 63, 0.25);
}

.topbar {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  border-bottom: 0;
  margin: 0;
}
.topbar .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 3vw, 52px);
  min-height: clamp(42px, 4vw, 52px);
  border-bottom: 0;
}
.topbar a {
  color: #ffffff;
  font-weight: 500;
}

.topbar-contact {
  justify-self: end;
}

.topbar-widget,
.topbar-widget p {
  margin: 0;
}

.topbar-widget {
  display: inline;
}

.topbar-social {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.topbar-social .wp-block-social-links {
  gap: clamp(7px, 1vw, 12px);
  margin: 0;
}

.topbar-social .wp-social-link {
  margin: 0;
}

.topbar-social .wp-social-link a {
  padding: 0;
}

.topbar-social .wp-social-link svg {
  width: clamp(16px, 1.3vw, 20px);
  height: clamp(16px, 1.3vw, 20px);
}

.topbar-social-custom {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1vw, 12px);
}

.topbar-social-custom-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-social-custom-link img {
  display: block;
  width: clamp(18px, 1.5vw, 24px);
  height: clamp(18px, 1.5vw, 24px);
  object-fit: contain;
}

.topbar-contact-custom-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 0.6vw, 10px);
}

.topbar-contact-custom-link img {
  display: block;
  width: clamp(16px, 1.5vw, 60px);
  height: clamp(16px, 1.5vw, 60px);
  object-fit: contain;
}

.site-header {
  background: transparent;
  border-bottom: 0;
  position: static;
  box-shadow: none;
  margin: 0;
}
.site-header .brand {
  color: #ffffff;
}
.site-header .brand small {
  color: rgba(255, 255, 255, 0.8);
}
.site-header .main-navigation a {
  color: rgba(255, 255, 255, 0.9);
}
.site-header .main-navigation a:hover, .site-header .main-navigation a.is-active {
  color: #ffffff;
}
.site-header .current-menu-item > a {
  color: #ffffff;
}

.header-inner {
  min-height: clamp(64px, 7vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 12px);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: clamp(36px, 4vw, 42px);
  height: clamp(36px, 4vw, 42px);
  border-radius: clamp(10px, 1.2vw, 13px);
  background: linear-gradient(135deg, #d67a08, #f49521 60%, #ffb85c);
  color: #ffffff;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1;
  box-shadow: 0 4px 14px rgba(244, 149, 33, 0.35);
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.5rem, 0.8vw, 0.57rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-navigation ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(2px, 1.2vw, 13px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  font-weight: 400;
}

.main-navigation {
  margin-inline: auto;
  min-width: 0;
}

.main-navigation li {
  white-space: nowrap;
}

.main-navigation a {
  padding: clamp(6px, 0.8vw, 8px) clamp(5px, 0.9vw, 9px);
  font-family: var(--font-ui);
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  font-weight: 500;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1vw, 8px);
  flex-shrink: 0;
  white-space: nowrap;
}

.header-mobile-cta {
  display: none;
}

.mobile-menu-footer {
  display: none;
}

.header-actions .button {
  background: linear-gradient(135deg, #d67a08, #f49521 55%, #ffb85c);
  color: #fff;
  font-family: var(--font-ui);
  font-size: clamp(0.78rem, 1.1vw, 0.93rem);
  padding-inline: clamp(14px, 1.8vw, 15px);
  box-shadow: 0 6px 18px rgba(244, 149, 33, 0.35);
  border: 0;
}

.header-actions .button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #fff;
}

.header-whatsapp {
  display: grid;
  place-items: center;
  width: clamp(34px, 3.5vw, 38px);
  height: clamp(34px, 3.5vw, 38px);
  border-radius: clamp(7px, 0.8vw, 8px);
  color: #16a34a;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.header-whatsapp:hover {
  background: #f0fdf4;
  color: #15803d;
}

.header-logo-area,
.header-logo-widget,
.header-logo-image {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo-widget {
  margin: 0;
}

.header-logo-widget p {
  margin: 0;
}

.header-logo-image img,
.header-logo-custom .custom-logo,
.header-logo-widget img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 80px;
  object-fit: contain;
}

.header-logo-custom .custom-logo-link,
.header-logo-widget a {
  display: flex;
  align-items: center;
}

@media (max-width: 1100px) {
  .main-navigation ul {
    gap: 2px;
  }
  .main-navigation a {
    padding: 6px 5px;
    font-size: 0.8rem;
  }
  .header-logo-image img,
  .header-logo-custom .custom-logo,
  .header-logo-widget img {
    max-width: 170px;
    max-height: 58px;
  }
  .header-actions .button {
    font-size: 0.8rem;
    padding-inline: 14px;
    min-height: 46px;
  }
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    margin: 0;
    padding: 18px 16px;
    background: linear-gradient(160deg, #02233f, #054a87 80%);
    border-bottom: 2px solid rgba(244, 149, 33, 0.7);
    box-shadow: 0 12px 32px rgba(2, 35, 63, 0.35);
  }
  .main-navigation.is-open {
    display: block;
  }
  .main-navigation ul {
    display: block;
  }
  .main-navigation li {
    padding: 10px 0;
    white-space: normal;
  }
  .main-navigation a {
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 850px) {
  .topbar-inner {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .topbar-inner {
    min-height: 38px;
    text-align: center;
  }
  .topbar-contact {
    font-size: clamp(0.65rem, 3vw, 0.75rem);
  }
  .header-actions .button {
    display: none;
  }
}
.header-logo-custom {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

body.home .header-unified {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  transition: transform 0.46s cubic-bezier(0.22, 0.72, 0.22, 1), opacity 0.34s ease, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.home .header-unified.is-scrolled {
  background: linear-gradient(90deg, #02233f 0%, #054a87 60%, #0c6fb0 135%);
  border-bottom: 2px solid rgba(244, 149, 33, 0.85);
  box-shadow: 0 10px 30px rgba(2, 35, 63, 0.25);
}

body.home .header-unified .main-navigation a {
  text-shadow: 0 1px 12px rgba(2, 35, 63, 0.55);
}

body.admin-bar.home .header-unified {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar.home .header-unified {
    top: 46px;
  }
}
.header-unified {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform, opacity;
  transition: transform 0.46s cubic-bezier(0.22, 0.72, 0.22, 1), opacity 0.34s ease, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header-unified.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

body.admin-bar .header-unified {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .header-unified {
    top: 46px;
  }
}
body:not(.home) {
  padding-top: var(--header-h, 150px);
}

body.page {
  padding-top: 0;
}

body.page .ref-hero--inner {
  min-height: 100vh;
  min-height: 100svh;
}

@media (prefers-reduced-motion: reduce) {
  .header-unified {
    transition: none;
  }
}
